.intervention-hero {
  --hero-ink: #1d2129;
  --hero-gutter: max(5vw, calc((100vw - 1280px) / 2));
  padding: 0;
  background: var(--hero-ink);
}

.intervention-hero-inner {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(470px, 43vw, 700px);
}

.intervention-hero-copy {
  position: relative;
  z-index: 1;
  width: min(47vw, 640px);
  margin-left: var(--hero-gutter);
  padding-block: clamp(42px, 5vw, 85px);
  pointer-events: none;
}

.intervention-hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: .75em;
  margin: 0 0 24px;
  color: #f2f3f5;
  font-size: clamp(.72rem, .85vw, .85rem);
  letter-spacing: .12em;
  line-height: 1.5;
}

.intervention-hero-copy .dot {
  flex: none;
  width: 1.8rem;
  height: 3px;
  border-radius: 0;
  background: #fc1815;
}

.intervention-hero-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 6.7vw, 106px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .88;
  color: #fff;
}

.intervention-hero-copy h1 span { display: block; }

.intervention-hero-copy h1 em {
  display: block;
  margin-top: .08em;
  color: #fff;
  font-size: .88em;
  line-height: 1;
}

.intervention-hero-copy .intro {
  max-width: 39ch;
  margin: 23px 0 28px;
  color: #f3f4f6;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.52;
}

.intervention-hero-copy .phone-action {
  gap: .8em;
  padding: .8em 1.1em;
  font-size: clamp(1.05rem, 1.5vw, 1.4rem);
  line-height: 1.3;
  pointer-events: auto;
  background: #c90410;
  color: #fff;
}

.intervention-hero-copy .phone-action:hover { background: #b70d15; }

.intervention-hero-copy .phone-action svg {
  flex: none;
  width: 1.12em;
  height: 1.12em;
}

.intervention-carousel {
  position: absolute;
  inset: 0;
  min-width: 0;
  color: #fff;
}

.carousel-figure,
.carousel-image {
  position: absolute;
  inset: 0;
  margin: 0;
}

.carousel-image {
  left: 18%;
  overflow: hidden;
}

.carousel-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-image .slide-cayenne { object-position: 55% 61%; }
.carousel-image .slide-accident { object-position: 50% 52%; }
.carousel-image .slide-sportback { object-position: 53% 54%; }
.carousel-image .slide-collection { object-position: 53% 63%; }

.carousel-figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--hero-ink) 18%, rgb(29 33 41 / 97%) 24%, rgb(29 33 41 / 87%) 33%, rgb(29 33 41 / 65%) 41%, rgb(29 33 41 / 10%) 56%, transparent 64%),
    linear-gradient(0deg, rgb(12 13 16 / 86%), transparent 25%);
  pointer-events: none;
}

.carousel-caption {
  position: absolute;
  z-index: 1;
  right: var(--hero-gutter);
  bottom: 23px;
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 44px;
  font-size: clamp(.88rem, 1.1vw, 1.05rem);
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 1px 5px #000;
}

.intervention-carousel.is-ready .carousel-caption {
  right: calc(var(--hero-gutter) + 161px);
}

.carousel-count {
  flex: none;
  border-right: 1px solid #d1d2d6;
  padding-right: .8rem;
  color: #fff;
  font: 600 .8rem/1.1 ui-monospace, monospace;
  letter-spacing: .015em;
  white-space: nowrap;
}

.carousel-controls {
  position: absolute;
  z-index: 2;
  right: var(--hero-gutter);
  bottom: 23px;
  display: flex;
  gap: 6px;
}

.intervention-carousel [hidden] { display: none; }

.carousel-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 62%);
  border-radius: 50%;
  background: rgb(21 23 27 / 75%);
  color: #fff;
  touch-action: manipulation;
}

.carousel-controls button:hover { background: #333; }

.carousel-controls button:focus-visible,
.intervention-hero-copy .phone-action:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.carousel-controls svg {
  display: block;
  width: 19px;
  height: 19px;
}

.carousel-controls .play-icon,
.carousel-rotation.is-paused .pause-icon { display: none; }

.carousel-rotation.is-paused .play-icon { display: block; }

.carousel-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 761px) and (max-width: 1050px) {
  .intervention-hero-copy { width: 43vw; padding-bottom: 65px; }
  .intervention-hero-copy .intro { max-width: 33ch; }
  .carousel-caption { gap: .55rem; }
}

@media (max-width: 760px) {
  .intervention-hero-inner { min-height: 0; }

  .intervention-carousel {
    position: relative;
    grid-row: 1;
    height: clamp(210px, 60vw, 370px);
  }

  .carousel-image { left: 0; }
  .carousel-image .slide-cayenne { object-position: 53% 61%; }
  .carousel-image .slide-sportback { object-position: 52% 55%; }

  .carousel-figure::after {
    background: linear-gradient(0deg, rgb(18 20 24 / 95%), rgb(18 20 24 / 53%) 13%, transparent 34%);
  }

  .carousel-caption {
    right: 5%;
    bottom: 9px;
    left: 5%;
    gap: 3px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-size: .9rem;
  }

  .intervention-carousel.is-ready .carousel-caption { right: calc(5% + 152px); }
  .carousel-controls { right: 5%; bottom: 9px; gap: 4px; }
  .carousel-count { border: 0; padding: 0; font-size: .7rem; }

  .intervention-hero-copy {
    grid-row: 2;
    width: auto;
    margin-inline: 5%;
    padding: 23px 0 27px;
  }

  .intervention-hero-copy .eyebrow { margin-bottom: 11px; font-size: .68rem; }
  .intervention-hero-copy .dot { width: 1.4rem; }
  .intervention-hero-copy h1 { font-size: clamp(38px, 9.3vw, 65px); line-height: .94; }
  .intervention-hero-copy h1 span { display: inline; }
  .intervention-hero-copy h1 em { margin-top: .06em; font-size: .92em; }
  .intervention-hero-copy .intro { max-width: 52ch; margin: 13px 0 16px; font-size: 1rem; line-height: 1.42; }
  .intervention-hero-copy .phone-action {
    gap: .55em;
    padding-inline: .85em;
    font-size: clamp(1rem, 4.3vw, 1.07rem);
    white-space: nowrap;
  }
}

:root:not([data-theme="dark"]) .intervention-hero {
  background: var(--surface);
  color: var(--ink);
}
:root:not([data-theme="dark"]) .intervention-hero-copy :is(h1, .eyebrow) { color: var(--ink); }
:root:not([data-theme="dark"]) .intervention-hero-copy h1 em { color: var(--red); }
:root:not([data-theme="dark"]) .intervention-hero-copy .intro { color: var(--muted); }
:root:not([data-theme="dark"]) .intervention-hero-copy .phone-action:focus-visible { outline-color: var(--ink); }
:root:not([data-theme="dark"]) .carousel-figure::after {
  background: linear-gradient(0deg, rgb(15 18 23 / 91%), transparent 31%);
}

@media (min-width: 761px) {
  :root:not([data-theme="dark"]) .intervention-hero-inner {
    grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  }
  :root:not([data-theme="dark"]) .intervention-hero-copy {
    width: auto;
    margin-inline-end: clamp(1.5rem, 3vw, 4rem);
  }
  :root:not([data-theme="dark"]) .intervention-carousel {
    position: relative;
    align-self: stretch;
    grid-column: 2;
  }
  :root:not([data-theme="dark"]) .carousel-image { left: 0; }
  :root:not([data-theme="dark"]) .carousel-caption,
  :root:not([data-theme="dark"]) .carousel-controls {
    right: clamp(1rem, 2.4vw, 2.5rem);
    bottom: clamp(1rem, 1.8vw, 1.8rem);
  }
  :root:not([data-theme="dark"]) .carousel-caption { left: clamp(1rem, 2.4vw, 2.5rem); }
  :root:not([data-theme="dark"]) .intervention-carousel.is-ready .carousel-caption {
    right: calc(clamp(1rem, 2.4vw, 2.5rem) + 154px);
  }
}

@media (min-width: 761px) and (max-width: 960px) {
  .intervention-hero-copy .phone-action {
    font-size: 1rem;
    white-space: nowrap;
    padding-inline: .85em;
    gap: .55em;
  }
}
