/* ═══ Homepage Services — wraps reused services.html UI ═══ */

#services {
  scroll-margin-top: calc(var(--nav-height, 72px) + 18px);
}

.services-home {
  background: var(--bg-primary, var(--background, #000000));
}

.services-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  position: relative;
}

.services-heading .eyebrow,
.services-heading .section-label {
  margin: 0;
}

.services-heading .services-home__group-title {
  margin: 0;
}

.services-home__group:first-child .services-home__group-heading {
  padding: clamp(3.25rem, 5vw, 4.5rem) calc(var(--bs-gutter-x, 1.5rem) * 0.5) 0;
}

.services-home__group-heading {
  padding: 2rem calc(var(--bs-gutter-x, 1.5rem) * 0.5) 0;
}

.services-home__group-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.4rem);
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 800;
  line-height: 0.95;
  margin: 0;
  color: var(--text-primary, #ffffff);
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(255, 255, 255, 0.16);
}

.services-home__group-title::after {
  content: "";
  width: clamp(4rem, 12vw, 9rem);
  height: 1px;
  flex: 0 0 auto;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
}

.services-home__group .service-block:first-of-type {
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
}

.services-home .service-block {
  --service-panel-height: clamp(300px, 23vw, 350px);
  min-height: auto;
  padding: clamp(3rem, 5vw, 4.5rem) 0;
  overflow: visible;
  background: transparent;
}

.services-home .service-block .row {
  align-items: stretch !important;
}

.services-home .service-block--alt,
.services-home .service-block:nth-child(even) {
  background: transparent;
}

.services-home .service-block .col-lg-6 {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.services-home .service-block--alt {
  background: transparent;
}

.services-home .service-block .col-lg-6:first-child {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.services-home .service-block .eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.services-home .service-block h2,
.services-home .service-block h3.service-block__list-heading {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.services-home .service-block h2 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 0.95rem;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.14);
}

.services-home .service-block h2::after {
  content: "";
  display: block;
  width: min(4.25rem, 38%);
  height: 2px;
  margin-top: 0.65rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0));
}

.services-home .service-block p {
  max-width: 34rem;
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.7;
}

.services-home .service-block .text-secondary,
.services-home .service-block p,
.services-home .service-block .small,
.services-home .service-block ul,
.services-home .service-block ul li {
  color: rgba(255, 255, 255, 0.68) !important;
}

.service-block__list-heading {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin: 1.05rem 0 0.55rem;
}

.service-block__list {
  margin: 0 0 0.5rem;
  padding-left: 1.1rem;
}

.service-block__list li {
  margin-bottom: 0.42rem;
  color: rgba(255, 255, 255, 0.68);
}

.service-block__list--platforms {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.service-block__list--platforms li {
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
}

.services-home .service-block__copy,
.services-home .service-block__visual {
  display: flex;
  align-items: center;
}

.services-home .service-block__copy {
  justify-content: flex-start;
}

.services-home .service-block__visual {
  justify-content: center;
}

.services-home .service-block .row:not(.flex-lg-row-reverse) .service-block__visual {
  justify-content: flex-end;
}

.services-home .service-block .row.flex-lg-row-reverse .service-block__copy {
  justify-content: flex-end;
}

.services-home .service-block .row.flex-lg-row-reverse .service-block__visual {
  justify-content: flex-start;
}

.services-home .service-block__content {
  width: min(100%, 520px);
  min-height: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(0.5rem, 1vw, 1rem);
}

.services-home .service-block__content .btn-glow {
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  align-self: flex-start;
  padding-inline: 1rem;
  white-space: nowrap;
}

.services-home .service-visual {
  width: min(100%, 460px);
  height: var(--service-panel-height);
  min-height: 0;
  margin-inline: 0;
  align-self: center;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface-secondary, var(--bg-secondary, #1a1a18));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 26px 58px rgba(0, 0, 0, 0.34),
    0 0 70px rgba(255, 255, 255, 0.045);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.services-home .service-visual:hover {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15) inset,
    0 40px 80px rgba(0, 0, 0, 0.45),
    0 0 100px rgba(255, 255, 255, 0.1);
}

.services-home .service-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}

.services-home .service-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.services-home .service-visual--contain {
  background: #0b0b0b;
}

.services-home .service-visual img.contain-image {
  object-fit: contain;
  object-position: center center;
  padding: 12px;
  box-sizing: border-box;
}

.services-home .service-video-showcase {
  width: min(100%, 980px);
  margin: clamp(2.25rem, 4vw, 3.5rem) auto 0;
}

.services-home .service-video-showcase__heading {
  position: relative;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  width: min(100%, 760px);
  margin: 0 auto clamp(1.1rem, 2.5vw, 1.65rem);
  text-align: center;
}

.services-home .service-video-showcase__heading::before,
.services-home .service-video-showcase__heading::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(10vw, 82px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.46));
}

.services-home .service-video-showcase__heading::before {
  right: calc(50% + min(9.5rem, 24vw));
}

.services-home .service-video-showcase__heading::after {
  left: calc(50% + min(9.5rem, 24vw));
  transform: scaleX(-1);
}

.services-home .service-video-showcase__heading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.services-home .service-video-showcase__heading h3 {
  position: relative;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.35vw, 2.25rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  opacity: 1;
  transform: none;
  text-transform: uppercase;
  transition: none;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.18),
    0 0 22px rgba(255, 255, 255, 0.08);
}

.services-home .service-video-showcase__heading h3::after {
  content: "";
  display: block;
  width: min(5rem, 28vw);
  height: 2px;
  margin: 0.55rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #ffffff, rgba(255, 255, 255, 0));
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.22);
}

.services-home .service-video-showcase__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 30px 70px rgba(0, 0, 0, 0.42),
    0 0 90px rgba(255, 255, 255, 0.06);
}

.services-home .service-video-showcase__media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #050505;
}

.services-home .service-video-showcase__mute {
  position: absolute;
  right: clamp(0.85rem, 2vw, 1.25rem);
  bottom: clamp(0.85rem, 2vw, 1.25rem);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #0b0b0b;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.services-home .service-video-showcase__mute:hover,
.services-home .service-video-showcase__mute:focus-visible {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.48);
  outline: none;
}

.services-home .service-video-showcase__icon,
.services-home .service-video-showcase__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.services-home .service-video-showcase__icon svg {
  fill: currentColor;
}

.services-home .service-video-showcase__icon--sound,
.services-home .service-video-showcase.is-audible .service-video-showcase__icon--muted {
  display: none;
}

.services-home .service-video-showcase.is-audible .service-video-showcase__icon--sound {
  display: block;
}

@media (min-width: 992px) {
  .services-home .service-block .row {
    --bs-gutter-x: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, min(40vw, 500px)));
    column-gap: clamp(4.5rem, 7.5vw, 9rem);
    justify-content: center;
    align-items: center !important;
    margin-inline: 0;
  }

  .services-home .service-block .row.flex-lg-row-reverse {
    grid-template-columns: repeat(2, minmax(0, min(40vw, 500px)));
  }

  .services-home .service-block .col-lg-6 {
    width: auto;
    max-width: none;
    padding-inline: 0;
  }

  .services-home .service-block .row:not(.flex-lg-row-reverse) .service-block__copy,
  .services-home .service-block .row.flex-lg-row-reverse .service-block__visual {
    grid-column: 1;
    grid-row: 1;
  }

  .services-home .service-block .row:not(.flex-lg-row-reverse) .service-block__visual,
  .services-home .service-block .row.flex-lg-row-reverse .service-block__copy {
    grid-column: 2;
    grid-row: 1;
  }

  .services-home .service-block__copy,
  .services-home .service-block__visual,
  .services-home .service-block .row:not(.flex-lg-row-reverse) .service-block__visual,
  .services-home .service-block .row.flex-lg-row-reverse .service-block__copy,
  .services-home .service-block .row.flex-lg-row-reverse .service-block__visual {
    justify-content: flex-start;
  }

  .services-home .service-block__content,
  .services-home .service-visual {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .services-home .service-visual img.contain-image {
    padding: 8px;
  }
}

[data-theme="light"] .services-home .service-visual--contain {
  background: #0b0b0b;
}

/* AOS fallback — visible by default; hide only when AOS is initialized */
.services-home [data-aos],
.services-home .service-block .row[data-aos] {
  opacity: 1;
  transform: none;
  visibility: visible;
}

html.aos-init:not(.aos-disabled) .services-home [data-aos]:not(.aos-animate) {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
}

html.aos-init:not(.aos-disabled) .services-home [data-aos].aos-animate {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

@media (max-width: 1024px) {
  .services-home .service-block {
    --service-panel-height: 310px;
  }

  .services-home .service-visual {
    width: min(100%, 430px);
  }
}

@media (max-width: 768px) {
  .services-home__group-title {
    font-size: clamp(1.95rem, 10vw, 3rem);
  }

  .services-home__group-title::after {
    width: clamp(3.5rem, 20vw, 6rem);
  }

  .services-home .service-block {
    --service-panel-height: auto;
    padding: 3rem 0;
  }

  .services-home .service-block__content {
    min-height: auto;
    padding-block: 0;
  }

  .services-home .service-block__copy,
  .services-home .service-block__visual,
  .services-home .service-block .row:not(.flex-lg-row-reverse) .service-block__visual,
  .services-home .service-block .row.flex-lg-row-reverse .service-block__copy,
  .services-home .service-block .row.flex-lg-row-reverse .service-block__visual {
    justify-content: flex-start;
  }

  .services-home .service-visual {
    width: 100%;
    height: 310px;
    margin-top: 0.75rem;
  }

  .services-home .service-video-showcase {
    margin-top: 2rem;
  }

  .services-home .service-video-showcase__heading::before,
  .services-home .service-video-showcase__heading::after {
    display: none;
  }

  .services-home .service-video-showcase__heading span {
    min-height: 26px;
    font-size: 0.67rem;
  }

  .services-home .service-video-showcase__heading h3 {
    display: block;
    font-size: clamp(1.35rem, 7vw, 1.75rem);
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .services-home .service-video-showcase__frame {
    border-radius: 18px;
  }

  .services-home .service-block h2 {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .services-home .service-visual {
    height: 240px;
  }
}

[data-theme="light"] .services-home {
  background: var(--bg-primary, #ffffff);
}

[data-theme="light"] .services-home .service-block--alt,
[data-theme="light"] .services-home .service-block:nth-child(even) {
  background: transparent;
}

[data-theme="light"] .services-home__group-title {
  color: #000000;
}

[data-theme="light"] .services-heading .eyebrow,
[data-theme="light"] .services-heading .section-label {
  color: rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .services-home .service-block .eyebrow {
  color: rgba(0, 0, 0, 0.55);
}

[data-theme="light"] .services-home .service-block h2 {
  color: #000000;
}

[data-theme="light"] .services-home .service-block .text-secondary,
[data-theme="light"] .services-home .service-block p,
[data-theme="light"] .services-home .service-block .small,
[data-theme="light"] .services-home .service-block ul,
[data-theme="light"] .services-home .service-block ul li,
[data-theme="light"] .services-home .service-block__list li {
  color: rgba(0, 0, 0, 0.68) !important;
}

[data-theme="light"] .service-block__list-heading {
  color: rgba(0, 0, 0, 0.72);
}

[data-theme="light"] .service-block__list--platforms li {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(0, 0, 0, 0.78);
}

[data-theme="light"] .services-home .service-visual {
  background: #ececea;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06) inset,
    0 24px 48px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .services-home .service-video-showcase__frame {
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06) inset,
    0 24px 52px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .services-home .service-video-showcase__heading span {
  color: rgba(0, 0, 0, 0.64);
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .services-home .service-video-showcase__heading h3 {
  color: #000000;
  text-shadow: none;
}

[data-theme="light"] .services-home .service-video-showcase__heading h3::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), #000000, rgba(0, 0, 0, 0));
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .services-home .service-visual {
    transition: none;
  }

  .services-home .service-video-showcase__mute {
    transition: none;
  }

  .services-home [data-aos] {
    opacity: 1 !important;
    visibility: visible !important;
  }
}
