.hero-slideshow {
  min-height: 92vh;
  isolation: isolate;
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  background: #080b12;
}

[data-theme="light"] .hero-media {
  background: #f5f0e6;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 900ms ease, transform 6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-scrim {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(4, 8, 18, 0.88) 0%, rgba(4, 8, 18, 0.62) 48%, rgba(4, 8, 18, 0.34) 100%),
    linear-gradient(0deg, rgba(4, 8, 18, 0.68), rgba(4, 8, 18, 0.08) 42%, rgba(4, 8, 18, 0.44));
}

[data-theme="light"] .hero-scrim {
  background:
    linear-gradient(90deg, rgba(28, 21, 8, 0.82) 0%, rgba(28, 21, 8, 0.55) 48%, rgba(28, 21, 8, 0.28) 100%),
    linear-gradient(0deg, rgba(28, 21, 8, 0.62), rgba(28, 21, 8, 0.06) 42%, rgba(28, 21, 8, 0.38));
}

.hero-slideshow .hero-content {
  max-width: 760px;
  text-align: left;
}

.hero-slideshow .hero-title,
.hero-slideshow .hero-subtitle,
.hero-slideshow .hero-trust-value,
.hero-slideshow .hero-trust-label {
  color: #EEF2FF !important;
}

[data-theme="light"] .hero-slideshow .hero-title,
[data-theme="light"] .hero-slideshow .hero-subtitle,
[data-theme="light"] .hero-slideshow .hero-trust-value,
[data-theme="light"] .hero-slideshow .hero-trust-label {
  color: #FFFFFF !important;
}

.hero-slideshow .hero-cta,
.hero-slideshow .hero-trust {
  justify-content: flex-start;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  padding: 0;
}

.hero-dot.is-active {
  background: var(--gold);
}

.service-card-image {
  width: calc(100% + 2px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin: -1px -1px var(--space-md);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: block;
}

.service-card-note {
  color: var(--gold);
  font-size: var(--text-sm);
  font-weight: 700;
}

.section-gallery {
  overflow: hidden;
}

.image-story-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: var(--space-md);
}

.image-story-card {
  min-height: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.image-story-card-large {
  grid-row: span 2;
}

.image-story-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  transition: transform var(--trans-slow);
}

.image-story-card:hover img {
  transform: scale(1.035);
}

.cta-title-light {
  color: #fff;
}

.cta-copy-light {
  color: rgba(255, 255, 255, 0.72);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-action-row {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero-slideshow {
    min-height: 88vh;
  }

  .hero-slideshow .hero-content {
    text-align: center;
  }

  .hero-slideshow .hero-cta,
  .hero-slideshow .hero-trust {
    justify-content: center;
  }

  .image-story-grid {
    grid-template-columns: 1fr;
  }

  .image-story-card,
  .image-story-card-large {
    min-height: 220px;
    grid-row: auto;
  }
}
