.scene-temoignages {
  background:
    radial-gradient(ellipse at 74% 82%, rgb(74 106 104 / .46), transparent 57%),
    radial-gradient(ellipse at 37% 96%, #54384d, transparent 62%),
    #211a2e;
}

.release-voices {
  --voice-reveal: clamp(0, calc((var(--scene-progress, .6) - .015) * 6.5), 1);
  display: grid;
  align-self: stretch;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 105rem);
  margin-inline: auto;
  padding: clamp(5rem, 14svh, 9rem) clamp(1.35rem, 7vw, 7rem) clamp(3.7rem, 8svh, 5.2rem);
  color: var(--cream, #fff0e1);
}

.voice-heading { text-align: center; }
.voice-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.7vw, 5rem);
  font-weight: 365;
  line-height: 1.03;
  letter-spacing: -.042em;
  text-wrap: balance;
}

.voice-stage {
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: clamp(12rem, 32svh, 24rem);
  isolation: isolate;
}

.voice-content { position: relative; min-width: 0; }
.voice-quote {
  position: relative;
  width: min(32ch, 62%);
  margin: 0 0 0 clamp(1.8rem, 6.8vw, 7rem);
  font-size: clamp(1.3rem, 2.2vw, 2.4rem);
  color: #fff1e5;
}

.voice-quote blockquote { margin: 0; }
.voice-quote p {
  margin: 0;
  line-height: 1.18;
  font-weight: 385;
  letter-spacing: -.026em;
  text-wrap: pretty;
}

.voice-quote figcaption {
  margin-top: clamp(.8rem, 3svh, 2rem);
  color: #e7d1cb;
  font-size: clamp(.72rem, 1vw, .92rem);
  line-height: 1.5;
}
.voice-quote figcaption span:first-child { color: #fff1e5; font-weight: 550; }
.voice-quote figcaption span:nth-child(2) { margin-inline: .24rem; }
.voice-quote figcaption time { white-space: nowrap; }

.voice-quote[data-slot="next"] {
  position: absolute;
  z-index: -1;
  inset: 10% 0 auto auto;
  width: min(25ch, 28%);
  margin: 0;
  font-size: clamp(.85rem, 1.3vw, 1.35rem);
  opacity: .24;
  filter: blur(2px);
  pointer-events: none;
}
.voice-quote[data-slot="next"] figcaption { display: none; }

.voice-nav {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.voice-nav:not([hidden]) { display: flex; justify-content: space-between; align-items: center; }
.voice-step, .voice-auto {
  display: grid;
  place-items: center;
  padding: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #e2bfa05e;
  border-radius: 50%;
  background: transparent;
  color: #fff1e5;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity .28s ease, background .28s ease;
}
.voice-step { opacity: .38; }
.voice-previous { margin-left: -1.2rem; }
.voice-next { margin-right: -1.2rem; }
.voice-previous svg { transform: rotate(180deg); }
.voice-step:is(:hover, :focus-visible), .voice-auto:is(:hover, :focus-visible) {
  opacity: 1;
  background: #6a485c;
}
.voice-step:focus-visible, .voice-auto:focus-visible, .voice-source a:focus-visible {
  outline: 2px solid #f8c6a5;
  outline-offset: 4px;
}

.voice-footer {
  display: flex;
  gap: .4rem 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: #e7d1cb;
}
.voice-source { margin: 0; font-size: .73rem; }
.voice-reading-credit { margin-inline-start: .55rem; color: #d3bec4; }
.voice-source a { text-decoration-thickness: 1px; text-underline-offset: .28em; }
.voice-replay {
  margin-inline-start: .65rem;
  padding: .32rem .7rem;
  border: 1px solid #e2bfa05e;
  border-radius: 2rem;
  color: inherit;
  background: transparent;
  font-size: inherit;
}
.voice-sequence:not([hidden]) {
  display: flex;
  gap: .25rem;
  align-items: center;
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.voice-auto { border-color: transparent; opacity: .62; }
.voice-auto[aria-pressed="true"] .voice-auto-pause,
.voice-auto[aria-pressed="false"] .voice-auto-start { display: none; }

.voice-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
[data-voices][data-playing] .voice-quote[data-slot="current"] [data-voice-word] {
  color: #d9c2bd;
  transition: color .16s ease;
}
[data-voices][data-playing] .voice-quote[data-slot="current"] [data-voice-word][data-current] {
  color: #ffe7b9;
  text-shadow: 0 0 .42em #ffc98680;
}

@media (prefers-reduced-motion: no-preference) {
  [data-enhanced] .voice-heading, [data-enhanced] .voice-stage { transition: opacity .16s ease; }
  [data-enhanced] .voice-heading {
    transform: translateY(calc(-3.8svh * clamp(0, (var(--scene-progress, .4) - .2) * 2.2, 1)));
  }
  [data-enhanced] .voice-stage {
    opacity: max(.2, var(--voice-reveal));
    filter: blur(calc((1 - var(--voice-reveal)) * 6px));
    transform: translateY(calc((1 - var(--voice-reveal)) * 3svh));
  }
  .voice-quote[data-slot="current"] { animation: voice-appear .52s ease both; }
  .voice-quote[data-slot="next"] { animation: voice-preview .6s ease both; }
  @keyframes voice-appear {
    from { opacity: .35; transform: translateY(.65rem); filter: blur(3px); }
    to { opacity: 1; transform: translateY(0); filter: none; }
  }
  @keyframes voice-preview {
    from { opacity: 0; transform: translateY(.6rem); }
    to { opacity: .24; transform: translateY(0); }
  }
}

@media (max-width: 48rem) {
  .release-voices { padding-inline: clamp(1.15rem, 7vw, 3rem); }
  .voice-heading h2 { font-size: clamp(2.3rem, 8.3vw, 4.3rem); }
  .voice-quote { width: min(100%, 27ch); margin-inline: auto; }
  .voice-quote[data-slot="next"] { display: none; }
  .voice-stage { grid-template-rows: 1fr auto; padding-top: .65rem; }
  .voice-nav { position: relative; justify-self: center; gap: 1rem; margin-top: .5rem; }
  .voice-step { opacity: .72; }
  .voice-previous, .voice-next { margin-inline: 0; }
}

@media (max-width: 48rem) and (max-height: 43rem) {
  .release-voices { padding-block: 4.45rem 3.4rem; }
  .voice-quote { font-size: clamp(1.35rem, 5.55vw, 2.1rem); }
  .voice-heading h2 { font-size: clamp(2rem, 7.7vw, 3.5rem); }
  .voice-quote figcaption { margin-block-start: .7rem; }
}

@media (max-width: 24rem) {
  .voice-footer { column-gap: .15rem; }
  .voice-source { font-size: .66rem; }
  .voice-source span { margin-inline: .16rem; }
  .voice-sequence:not([hidden]) { gap: 0; }
  .voice-auto { width: 36px; }
}

@media (max-height: 28rem) and (min-width: 48rem) {
  .release-voices { padding-block: 3.2rem 2.5rem; }
  .voice-heading h2 { font-size: 2.7rem; }
  .voice-quote { font-size: 1.55rem; }
  .voice-stage { min-height: 8rem; }
}

[data-enhanced] .release-voices[data-voice-ready] { --voice-reveal: 1; }

.voice-quote[data-slot="next"] {
  transform-origin: right center;
  transform: perspective(460px) translateZ(-54px) translateX(6%);
  opacity: .20;
  filter: blur(2.7px);
}
.voice-quote[data-slot="leaving"] {
  position: absolute;
  inset: 0 auto auto 0;
  pointer-events: none;
  animation: voice-depart .68s var(--ease) both;
}
.release-voices[data-voice-ready] .voice-quote[data-slot="current"] {
  animation: voice-arrive .75s var(--ease) both;
}
@keyframes voice-depart {
  to { opacity: 0; transform: translate(-5%, -1.1rem) scale(.92); filter: blur(5px); }
}
@keyframes voice-arrive {
  from { opacity: 0; transform: translate(4%, 1rem) scale(.95); filter: blur(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .voice-quote[data-slot="leaving"] { visibility: hidden; }
  .release-voices[data-voice-ready] .voice-quote[data-slot="current"] { animation: none; }
}

.voice-kicker { display: flex; justify-content: center; align-items: center; gap: .7rem; margin-top: .9rem; font: 650 .68rem/1.3 "DM Sans", var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #f3d6c4; }
.voice-kicker::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--peach, #f3b58d); }
