/* The hero backdrop sits behind the existing, fixed WebGL orb layer (-2). */
[data-page="home"] [home-hero] {
  position: relative;
}

[data-page="home"] [home-hero]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background: #111 url("/assets/omgrowth/hero/black-dunes-v1.png") center center / cover no-repeat;
  /* Fade into the page's current theme color without masking the orb. */
  --hero-fade: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, 0.95) 65%, rgba(0, 0, 0, 0.7) 75%, rgba(0, 0, 0, 0.35) 85%, rgba(0, 0, 0, 0.05) 95%, transparent 100%);
  -webkit-mask-image: var(--hero-fade);
  mask-image: var(--hero-fade);
}

/* Keep the three-line hero composition while exposing one complete H1. */
.omg-home-h1__visible {
  display: block;
}

.omg-home-h1__semantic {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Helpful crawler-readable context without changing the hero composition. */
.omg-home-seo-copy {
  position: relative;
  z-index: 2;
  padding: clamp(5rem, 10vw, 11rem) 0;
}

.omg-home-seo-copy__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
  row-gap: 2rem;
}

.omg-home-seo-copy__eyebrow {
  grid-column: 1 / span 3;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
}

.omg-home-seo-copy__heading {
  grid-column: 4 / -1;
  max-width: 15ch;
  margin: 0;
  color: var(--main-light, #f2f1ee);
  font-size: clamp(2.25rem, 4.5vw, 5.25rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

.omg-home-seo-copy__intro {
  grid-column: 4 / -1;
  max-width: 58rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.5vw, 1.45rem);
  line-height: 1.45;
}

.omg-home-seo-copy__items {
  grid-column: 4 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 3rem);
}

.omg-home-seo-copy article {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 1rem;
}

.omg-home-seo-copy h3 {
  margin: 0 0 1rem;
  color: var(--main-light, #f2f1ee);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
}

.omg-home-seo-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.55;
}

.omg-home-seo-copy a {
  color: inherit;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 0.2em;
}

.omg-home-seo-copy__links {
  grid-column: 4 / -1;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  line-height: 1.4;
}

/* Shared, fixed-size content tiers for the three reading and enquiry pages. */
:root {
  --omg-content-size: 32px;
  --omg-content-heading: 44px;
  --omg-control-height: 88px;
  --omg-option-height: 120px;
  --omg-content-gap: 24px;
  --omg-content-inset: 48px;
}

/* Match these page titles to the first line of the homepage hero. */
[data-page="contact"] [contact-hero] [hh-tb] .h-display,
[data-page="services"] [contact-hero] [hh-tb] .h-display,
[data-page="privacy"] [hero-privacy] .h-display {
  font-size: 6.75em;
  line-height: 1;
  letter-spacing: 0;
}

@media (min-width: 1920px) {
  :root {
    --omg-content-size: 48px;
    --omg-content-heading: 64px;
    --omg-control-height: 112px;
    --omg-option-height: 160px;
    --omg-content-gap: 32px;
    --omg-content-inset: 64px;
  }
}

@media (min-width: 3200px) {
  :root {
    --omg-content-size: 64px;
    --omg-content-heading: 88px;
    --omg-control-height: 144px;
    --omg-option-height: 208px;
    --omg-content-gap: 48px;
    --omg-content-inset: 80px;
  }
}

@media (max-width: 991px) {
  :root {
    --omg-content-size: 24px;
    --omg-content-heading: 32px;
    --omg-control-height: 72px;
    --omg-option-height: 112px;
    --omg-content-gap: 20px;
    --omg-content-inset: 24px;
  }

  [data-page="contact"] [contact-hero] [hh-tb] .h-display,
  [data-page="services"] [contact-hero] [hh-tb] .h-display,
  [data-page="privacy"] [hero-privacy] .h-display {
    font-size: 5.25rem;
  }

  .omg-home-seo-copy__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .omg-home-seo-copy__eyebrow,
  .omg-home-seo-copy__heading,
  .omg-home-seo-copy__intro,
  .omg-home-seo-copy__items,
  .omg-home-seo-copy__links {
    grid-column: 1 / -1;
  }
}

@media (max-width: 899px) {
  [data-page="contact"] [contact-hero] [hh-tb] .h-display,
  [data-page="services"] [contact-hero] [hh-tb] .h-display,
  [data-page="privacy"] [hero-privacy] .h-display {
    font-size: 4.75rem;
  }
}

@media (max-width: 839px) {
  [data-page="contact"] [contact-hero] [hh-tb] .h-display,
  [data-page="services"] [contact-hero] [hh-tb] .h-display,
  [data-page="privacy"] [hero-privacy] .h-display {
    font-size: 4.32rem;
  }
}

@media (max-width: 767px) {
  [data-page="contact"] [contact-hero] [hh-tb] .h-display,
  [data-page="services"] [contact-hero] [hh-tb] .h-display,
  [data-page="privacy"] [hero-privacy] .h-display {
    font-size: 4rem;
  }

  .omg-home-seo-copy__items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 639px) {
  [data-page="contact"] [contact-hero] [hh-tb] .h-display,
  [data-page="services"] [contact-hero] [hh-tb] .h-display,
  [data-page="privacy"] [hero-privacy] .h-display {
    font-size: 3.375rem;
  }
}

@media (max-width: 479px) {
  [data-page="contact"] [contact-hero] [hh-tb] .h-display,
  [data-page="services"] [contact-hero] [hh-tb] .h-display,
  [data-page="privacy"] [hero-privacy] .h-display {
    font-size: 2.4375rem;
  }
}

@media (max-width: 359px) {
  [data-page="contact"] [contact-hero] [hh-tb] .h-display,
  [data-page="services"] [contact-hero] [hh-tb] .h-display,
  [data-page="privacy"] [hero-privacy] .h-display {
    font-size: 2rem;
  }
}

/* Remove legacy cross-shaped transition artwork without affecting the orb. */
.page-wipe-object-w,
.ob-mask-wrap,
.s.is-hsc,
.home-client__corner-img,
.hcs-cross-w,
.team-cross-w,
.ps-cross-w {
  display: none !important;
}

.ser-cross {
  transform: none !important;
}

.ser-cross > svg:not(.omg-service-chevron) {
  display: none !important;
}

.ser-cross .omg-service-chevron {
  display: block;
  width: 28px;
  height: 28px;
  transition: transform 200ms ease;
}

.ser-grid-item.is--active .omg-service-chevron {
  transform: rotate(180deg);
}

/* Remove the footer AI-summary prompt and its provider links. */
.ft-nav-col.is-ai {
  display: none !important;
}

/* Keep the practical footer navigation in normal document flow.
   The inherited reveal animation can otherwise leave its grid collapsed. */
.grid-main.ft-nav-w.mbm-diff {
  grid-template-rows: auto !important;
  height: auto !important;
  min-height: 0 !important;
}

.grid-main.ft-nav-w.mbm-diff > .ft-nav-col:first-child,
.grid-main.ft-nav-w.mbm-diff > .ft-nav-col.is-legal {
  height: auto !important;
  min-height: 0 !important;
  opacity: 1 !important;
  transform: none !important;
}

.grid-main.ft-nav-w.mbm-diff > .ft-nav-col:first-child {
  display: block !important;
}

.grid-main.ft-nav-w.mbm-diff > .ft-nav-col.is-legal {
  display: flex !important;
}

/* Hide inherited award claims immediately, before the cleanup script removes them. */
.s:has(.haw-sub-group) {
  display: none !important;
}

/* Give the client marks more presence while balancing their source-image padding. */
.home-client__grid-item[data-client-item="Baidu"] {
  --omg-client-size: min(76%, 19.5rem);
}

.home-client__grid-item[data-client-item="Manycore"] {
  --omg-client-size: min(76%, 20rem);
}

.home-client__grid-item[data-client-item="Tencent"] {
  --omg-client-size: min(108%, 28rem);
}

.home-client__grid-item[data-client-item="Alibaba"] {
  --omg-client-size: min(74%, 19rem);
}

.home-client__grid-item[data-client-item="Growatt"] {
  --omg-client-size: min(74%, 19rem);
}

.home-client__grid-item[data-client-item="Bank of China"] {
  --omg-client-size: min(70%, 18rem);
}

@media (max-width: 991px) {
  .home-client__grid-item[data-client-item="Baidu"],
  .home-client__grid-item[data-client-item="Alibaba"],
  .home-client__grid-item[data-client-item="Growatt"] {
    --omg-client-size-mobile: min(82%, 12rem);
  }

  .home-client__grid-item[data-client-item="Manycore"] {
    --omg-client-size-mobile: min(95%, 14rem);
  }

  .home-client__grid-item[data-client-item="Tencent"] {
    --omg-client-size-mobile: min(160%, 18rem);
  }

  .home-client__grid-item[data-client-item="Bank of China"] {
    --omg-client-size-mobile: min(80%, 12rem);
  }
}
