/* Placeholder image layer. Replace the SVG files in /public/images while keeping the same filenames. */

.hero-section::before {
  position: absolute;
  top: 16%;
  right: clamp(-90px, -3vw, -28px);
  z-index: 1;
  width: clamp(330px, 36vw, 570px);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(242, 240, 233, .12);
  border-radius: 28px;
  content: '';
  opacity: .42;
  background:
    linear-gradient(135deg, rgba(10, 8, 7, .05), rgba(10, 8, 7, .58)),
    url('/images/hero-ai-placeholder.svg') center / cover no-repeat;
  box-shadow:
    0 36px 100px rgba(0, 0, 0, .38),
    0 0 90px rgba(203, 90, 60, .12);
  transform: rotate(2deg);
  pointer-events: none;
  mask-image: linear-gradient(to left, #000 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, #000 55%, transparent 100%);
}

.service-card {
  --service-media-h: clamp(230px, 24vw, 330px);

  padding-top: clamp(285px, 28vw, 390px);
}

.service-card::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: var(--service-media-h);
  border-bottom: 1px solid rgba(242, 240, 233, .1);
  content: '';
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 650ms cubic-bezier(.22, 1, .36, 1), filter 350ms ease;
  transform-origin: center;
}

.service-card:first-child::before {
  background-image:
    linear-gradient(to bottom, transparent 65%, #0a0807 100%),
    url('/images/automation-placeholder.svg');
}

.service-card:nth-child(2)::before {
  background-image:
    linear-gradient(to bottom, transparent 65%, #0a0807 100%),
    url('/images/training-placeholder.svg');
}

.service-card:hover::before {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.02);
}

.about-identity {
  background:
    linear-gradient(to top, rgba(10, 8, 7, .8), transparent 46%),
    url('/images/portrait-placeholder.svg') center 32% / cover no-repeat;
}

.about-identity .identity-rings,
.about-identity .identity-mark {
  opacity: 0;
}

.about-identity .identity-caption {
  padding: 16px;
  border: 1px solid rgba(242, 240, 233, .13);
  background: rgba(10, 8, 7, .68);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (max-width: 1120px) {
  .hero-section::before {
    top: 22%;
    right: -160px;
    width: min(60vw, 540px);
    opacity: .28;
  }
}

@media (max-width: 900px) {
  .hero-section::before {
    top: 20%;
    right: -230px;
    width: 640px;
    opacity: .2;
  }

  .service-card {
    --service-media-h: 285px;

    padding-top: 330px;
  }
}

@media (max-width: 680px) {
  .hero-section::before {
    top: 15%;
    right: -250px;
    width: 540px;
    opacity: .17;
    transform: rotate(5deg);
  }

  .service-card {
    --service-media-h: 205px;

    padding-top: 240px;
  }

  .about-identity {
    min-height: 420px;
    aspect-ratio: auto;
    background-position: center 26%;
  }
}

@media (max-width: 420px) {
  .hero-section::before {
    right: -275px;
    width: 500px;
  }

  .service-card {
    --service-media-h: 185px;

    padding-top: 215px;
  }

  .about-identity {
    min-height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card::before {
    transition: none;
  }
}
