.heroBlockWithSlider {
  --hero-reveal-ease: ease;
  --hero-reveal-duration: 1.3s;
  --hero-settle-duration: 2.4s;
  --hero-hover-zoom-duration: 3s;

  font-family: "Inter", sans-serif;
  width: 100%;
}

.heroBlockWithSlider__layout {
  display: grid;
  grid-template-columns: minmax(0, 856fr) minmax(0, 584fr);
  min-height: 738px;
}

.heroBlockWithSlider__hero,
.heroBlockWithSlider__slider {
  min-height: 738px;
  overflow: hidden;
  position: relative;
}

.heroBlockWithSlider__heroMedia,
.heroBlockWithSlider__slideMedia {
  inset: 0;
  position: absolute;
}

.heroBlockWithSlider__heroImage,
.heroBlockWithSlider__slideImage {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/*
 * Entrance + hover animations.
 * transform/opacity only (compositor friendly, no LCP impact) and
 * `backwards` fill so finished animations release control back to the
 * hover transitions below.
 */
@keyframes heroBlockWithSliderSettle {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1);
  }
}

@keyframes heroBlockWithSliderRise {
  from {
    transform: translateY(16px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes heroBlockWithSliderFadeRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroBlockWithSliderVeilFade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Slow cinematic settle of the hero image; image is visible from frame one. */
.heroBlockWithSlider__heroImage {
  animation: heroBlockWithSliderSettle var(--hero-settle-duration)
    var(--hero-reveal-ease) backwards;
  transition: transform var(--hero-hover-zoom-duration) var(--hero-reveal-ease);
}

/* Dark veil that "lights up" the hero on load. */
.heroBlockWithSlider__heroOverlay::after {
  background: rgba(0, 0, 0, 0.22);
  content: "";
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  animation: heroBlockWithSliderVeilFade 0.9s var(--hero-reveal-ease) backwards;
}

/* Title rises with transform only — never hidden, so LCP text is safe. */
.heroBlockWithSlider__heroTitle {
  animation: heroBlockWithSliderRise var(--hero-reveal-duration)
    var(--hero-reveal-ease) backwards;
}

.heroBlockWithSlider__heroText {
  animation: heroBlockWithSliderFadeRise var(--hero-reveal-duration)
    var(--hero-reveal-ease) 0.2s backwards;
}

.heroBlockWithSlider__heroActions {
  animation: heroBlockWithSliderFadeRise var(--hero-reveal-duration)
    var(--hero-reveal-ease) 0.35s backwards;
}

.heroBlockWithSlider__heroOverlay,
.heroBlockWithSlider__slideOverlay {
  inset: 0;
  position: absolute;
}

.heroBlockWithSlider__heroOverlay {
  background:
    linear-gradient(
      180deg,
      rgba(12, 17, 29, 0.02) 0%,
      rgba(12, 17, 29, 0.72) 100%
    ),
    rgba(0, 0, 0, 0.1);
}

.heroBlockWithSlider__slideOverlay {
  background: rgba(0, 0, 0, 0.5);
}

.heroBlockWithSlider__heroInner,
.heroBlockWithSlider__slideInner {
  align-items: flex-end;
  box-sizing: border-box;
  display: flex;
  inset: 0;
  position: absolute;
}

.heroBlockWithSlider__heroInner {
  padding: 60px 64px;
}

.heroBlockWithSlider__heroContent {
  color: #fff;
  max-width: 728px;
  width: 100%;
}

.heroBlockWithSlider__heroTitle {
  color: #fff;
  font-size: 68px;
  font-weight: 400;
  letter-spacing: 0.35px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.heroBlockWithSlider__heroText {
  color: #fff;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 32px;
}

.heroBlockWithSlider__heroText p {
  margin: 0;
}

.heroBlockWithSlider__heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.heroBlockWithSlider__slider {
  background: #3d3125;
}

.heroBlockWithSlider__slide {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transition: opacity 0.5s ease;
}

.heroBlockWithSlider__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.heroBlockWithSlider__slideInner {
  padding: 30px 31px 24px;
}

.heroBlockWithSlider__slideContent {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 462px;
  width: 100%;
  margin-bottom: 42px;
}

.heroBlockWithSlider__badge {
  align-items: center;
  background: #000;
  border-radius: 3px;
  color: #fff;
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.5;
  opacity: 0.9;
  padding: 3px 12px;
  text-transform: uppercase;
  width: fit-content;
}

.heroBlockWithSlider__card {
  border-radius: 12px;
  border: 1px solid rgba(22, 22, 22, 0.1);
  background: radial-gradient(
    169.58% 79.74% at 81.87% 30.37%,
    rgba(255, 255, 255, 0.44) 0%,
    rgba(255, 255, 255, 0.6) 100%
  );
  backdrop-filter: blur(7px);
  box-shadow: 0 0 0 rgba(16, 24, 40, 0);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
  padding: 22px 21px;
  transition:
    transform 0.3s var(--hero-reveal-ease),
    box-shadow 0.3s var(--hero-reveal-ease);
  width: 100%;
}

.heroBlockWithSlider__cardLogo {
  align-items: center;
  justify-content: flex-start;
  display: inline-flex;
  max-height: 52px;
  max-width: 120px;
}

.heroBlockWithSlider__cardLogoImage {
  display: block;
  height: auto;
  max-height: 52px;
  max-width: 120px;
  object-fit: contain;
  object-position: left;
  width: auto;
}

.heroBlockWithSlider__cardTitle {
  color: #101828;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.35px;
  line-height: 1.5;
  margin: 0;
}

.heroBlockWithSlider__tabs {
  align-items: center;
  display: flex;
  gap: 8.75px;
  height: 32px;
  max-width: 462px;
  width: 100%;
}

.heroBlockWithSlider__tabsWrap {
  bottom: 24px;
  box-sizing: border-box;
  left: 31px;
  position: absolute;
  right: 31px;
  z-index: 3;
}

.heroBlockWithSlider__tab {
  background: transparent;
  border: 0;
  border-bottom: 2px solid #fff;
  cursor: pointer;
  flex: 1 1 0;
  height: 32px;
  opacity: 0.3;
  padding: 0;
  transition: opacity 0.2s ease;
}

.heroBlockWithSlider__tab.is-active {
  opacity: 1;
}

/* Hover micro-interactions — pointer devices only, no sticky touch states. */
@media (hover: hover) {
  .heroBlockWithSlider__hero:hover .heroBlockWithSlider__heroImage {
    transform: scale(1.03);
  }

  .heroBlockWithSlider__slideImage {
    transition: transform var(--hero-hover-zoom-duration)
      var(--hero-reveal-ease);
  }

  .heroBlockWithSlider__slider:hover
    .heroBlockWithSlider__slide.is-active
    .heroBlockWithSlider__slideImage {
    transform: scale(1.03);
  }

  .heroBlockWithSlider__slide.is-active .heroBlockWithSlider__card:hover {
    box-shadow: 0 12px 28px rgba(16, 24, 40, 0.18);
    transform: translateY(-3px);
  }

  .heroBlockWithSlider__tab:not(.is-active):hover {
    opacity: 0.6;
  }
}

@media (max-width: 1200px) {
  .heroBlockWithSlider__layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .heroBlockWithSlider__heroInner {
    padding: 48px 40px;
  }

  .heroBlockWithSlider__heroTitle {
    font-size: 56px;
  }

  .heroBlockWithSlider__heroText {
    font-size: 18px;
  }

  .heroBlockWithSlider__cardTitle {
    font-size: 28px;
  }
}

@media (max-width: 991px) {
  .heroBlockWithSlider__layout {
    grid-template-columns: 1fr;
    min-height: 520px;
  }

  .heroBlockWithSlider__hero,
  .heroBlockWithSlider__slider,
  .heroBlockWithSlider__slide {
    min-height: 520px;
  }

  .heroBlockWithSlider__heroInner,
  .heroBlockWithSlider__slideInner {
    padding: 40px 24px 24px;
  }

  .heroBlockWithSlider__heroTitle {
    font-size: 44px;
  }

  .heroBlockWithSlider__slideContent {
    max-width: 100%;
  }

  .heroBlockWithSlider__tabsWrap {
    left: 24px;
    right: 24px;
  }
  .heroBlockWithSlider__slider {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .heroBlockWithSlider__heroImage,
  .heroBlockWithSlider__heroOverlay::after,
  .heroBlockWithSlider__heroTitle,
  .heroBlockWithSlider__heroText,
  .heroBlockWithSlider__heroActions {
    animation: none;
  }

  .heroBlockWithSlider__heroImage,
  .heroBlockWithSlider__slideImage,
  .heroBlockWithSlider__card,
  .heroBlockWithSlider__slide {
    transition: none;
  }

  .heroBlockWithSlider__hero:hover .heroBlockWithSlider__heroImage,
  .heroBlockWithSlider__slider:hover
    .heroBlockWithSlider__slide.is-active
    .heroBlockWithSlider__slideImage,
  .heroBlockWithSlider__slide.is-active .heroBlockWithSlider__card:hover {
    transform: none;
  }

  .heroBlockWithSlider__heroOverlay::after {
    opacity: 0;
  }
}

@media (max-width: 640px) {
  .heroBlockWithSlider__hero,
  .heroBlockWithSlider__slider,
  .heroBlockWithSlider__slide {
    min-height: 460px;
  }

  .heroBlockWithSlider__heroTitle {
    font-size: 36px;
  }

  .heroBlockWithSlider__heroText {
    font-size: 18px;
  }

  .heroBlockWithSlider__heroActions {
    flex-direction: column;
  }

  .heroBlockWithSlider__heroActions .bildeveButton {
    width: 100%;
  }

  .heroBlockWithSlider__card {
    gap: 20px;
    padding: 20px 18px;
  }

  .heroBlockWithSlider__cardTitle {
    font-size: 24px;
  }
}
