/* Recensieblok van variant A3: één groot citaat over een schermvullende foto. Alle regels beginnen met .rv3 */
.rv3 {
  --rv3-rand: clamp(12px, 1.8vw, 26px);
  --rv3-duur: 11s;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; min-height: clamp(620px, 100vh, 1040px); min-height: clamp(620px, 100svh, 1040px);
  background: #181613; color: #f7f4ef;
}

/* De foto's liggen op elkaar; alleen de huidige is zichtbaar en beweegt heel langzaam. */
.rv3__beelden { position: absolute; inset: 0; z-index: -3; }
.rv3__beeld { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; filter: brightness(.5) contrast(1.06) saturate(.88); transform: scale(calc(var(--z, 1) * 1.06)); transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1); will-change: opacity, transform; }
.rv3__beeld.is-nu { opacity: 1; }
.rv3.is-klaar .rv3__beeld { animation: rv3-drijf 26s ease-in-out infinite alternate; animation-play-state: paused; }
.rv3.is-klaar .rv3__beeld:nth-child(even) { animation-name: rv3-drijf-b; }
.rv3.is-klaar.is-zicht .rv3__beeld.is-nu, .rv3.is-klaar.is-zicht .rv3__beeld.is-weg { animation-play-state: running; }
@keyframes rv3-drijf { from { transform: scale(calc(var(--z, 1) * 1.05)) translate3d(-1%, 0, 0); } to { transform: scale(calc(var(--z, 1) * 1.16)) translate3d(1%, 1%, 0); } }
@keyframes rv3-drijf-b { from { transform: scale(calc(var(--z, 1) * 1.15)) translate3d(1%, 1%, 0); } to { transform: scale(calc(var(--z, 1) * 1.05)) translate3d(-1%, 0, 0); } }
/* Uitsnede per foto: de bovenrand van de showroomwand (met de namen van leveranciers) valt buiten beeld. */
.rv3__beeld--tegels-marmerwand { --z: 1.36; transform-origin: 0 100%; object-position: 0 100%; }
.rv3__beeld--sanitair-meubel { --z: 1.36; transform-origin: 0 100%; object-position: 0 100%; }
.rv3__beeld--stalen-deur-showroom { --z: 1.32; transform-origin: 100% 62%; object-position: 100% 60%; }

/* Donkere waas: boven vloeit hij over in de donkere sectie erboven, onder sluit hij af als een filmbeeld. */
.rv3__waas { position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(180deg, #181613 0%, rgba(24, 22, 19, .86) 9%, rgba(24, 22, 19, 0) 34%),
  linear-gradient(0deg, rgba(24, 22, 19, .92) 0%, rgba(24, 22, 19, 0) 38%),
  linear-gradient(90deg, rgba(24, 22, 19, .42) 0%, rgba(24, 22, 19, .24) 60%, rgba(24, 22, 19, .2) 100%); }
/* Dunne lijst als van een titelkaart. Onderaan een zandkleurige lijn als bewuste grens met de lichte voet. */
.rv3__kader { position: absolute; inset: var(--rv3-rand); top: calc(var(--rv3-rand) + 8px); z-index: -1; border: 1px solid rgba(201, 172, 139, .26); border-top: 0; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 34%); mask-image: linear-gradient(180deg, transparent 4%, #000 34%); }
.rv3::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: #c9ac8b; }

.rv3__binnen { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; width: 100%; max-width: 1560px; margin-inline: auto;
  padding: clamp(104px, 9vw, 130px) calc(var(--gutter) + var(--rv3-rand)) clamp(54px, 5.5vw, 84px); }

.rv3__kop { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.rv3__titel { margin: 0; font: 400 11.5px/1.2 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: rgba(247, 244, 239, .82); }
.rv3__teller { display: flex; align-items: center; gap: 12px; font: 400 12px/1 var(--sans); letter-spacing: .22em; color: rgba(247, 244, 239, .7); font-variant-numeric: tabular-nums; }
.rv3__teller b { font-weight: 400; color: #c9ac8b; }
.rv3__teller i { font-style: normal; color: rgba(247, 244, 239, .5); }

.rv3__toneel { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(28px, 3.4vw, 56px); touch-action: pan-y; }
.rv3__teken { display: block; height: .42em; font: 300 clamp(110px, 13vw, 230px)/1 var(--serif); color: #c9ac8b; margin: 0 0 clamp(14px, 1.6vw, 26px) -.04em; user-select: none; }
.rv3__stapel { display: grid; max-width: 1180px; }
.rv3__citaat { grid-area: 1 / 1; margin: 0; min-width: 0; }
.rv3__citaat blockquote { margin: 0; }
.rv3__citaat blockquote p { margin: 0; font: 300 clamp(26px, calc(2.75vw + 17px), 68px)/1.14 var(--serif); letter-spacing: -.012em; color: #f7f4ef; text-wrap: pretty; text-shadow: 0 1px 30px rgba(24, 22, 19, .55); }
.rv3__citaat figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: clamp(26px, 3vw, 46px); font: 400 11.5px/1.2 var(--sans); letter-spacing: .3em; text-transform: uppercase; }
.rv3__citaat cite { font-style: normal; color: #f7f4ef; }
.rv3__bron { display: inline-flex; align-items: center; gap: 18px; color: rgba(247, 244, 239, .72); }
.rv3__bron::before { content: ""; width: 34px; height: 1px; background: #c9ac8b; }
.rv3__sterren { display: inline-flex; gap: 4px; color: #c9ac8b; flex-basis: 100%; margin-bottom: 4px; }

/* Zonder script staan alle recensies onder elkaar. Met script ligt alles op elkaar en is er één zichtbaar. */
.rv3:not(.is-klaar) .rv3__citaat { grid-area: auto; }
.rv3:not(.is-klaar) .rv3__citaat + .rv3__citaat { margin-top: 56px; }
.rv3:not(.is-klaar) .rv3__voet { display: none; }

.rv3.is-klaar .rv3__citaat { visibility: hidden; transition: visibility 0s .6s; }
.rv3.is-klaar .rv3__citaat.is-nu { visibility: visible; transition-delay: 0s; }
/* Regel voor regel: elk woord kent zijn regel (--r) en komt met die vertraging omhoog uit de mist. */
.rv3__woord { display: inline-block; opacity: 0; transform: translate3d(0, .55em, 0); filter: blur(7px); transition: opacity .5s ease, transform .5s ease, filter .5s ease; }
.rv3.is-begonnen .rv3__citaat.is-nu .rv3__woord { opacity: 1; transform: none; filter: none;
  transition: opacity 1.1s cubic-bezier(.2, .7, .1, 1), transform 1.3s cubic-bezier(.2, .7, .1, 1), filter 1.1s ease;
  transition-delay: calc(.5s + var(--r, 0) * .13s); }
.rv3.is-klaar .rv3__citaat figcaption { opacity: 0; transform: translate3d(0, 12px, 0); transition: opacity .45s ease, transform .45s ease; }
.rv3.is-klaar.is-begonnen .rv3__citaat.is-nu figcaption { opacity: 1; transform: none; transition: opacity 1.1s ease, transform 1.2s cubic-bezier(.2, .7, .1, 1); transition-delay: calc(.75s + var(--regels, 4) * .13s); }
/* Tijdens het meten van de regels (bij start en bij een nieuwe breedte) geen overgang. */
.rv3.is-meet .rv3__woord, .rv3.is-meet .rv3__citaat figcaption { transition: none !important; }

.rv3__voet { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.rv3__lijnen { flex: 1; display: flex; gap: clamp(6px, .8vw, 12px); min-width: 0; }
.rv3__lijn { flex: 1; min-width: 0; padding: 20px 0; cursor: pointer; }
.rv3__lijn span { display: block; height: 1px; background: rgba(247, 244, 239, .34); overflow: hidden; transition: background .3s, height .3s; }
.rv3__lijn:hover span { background: rgba(247, 244, 239, .6); }
.rv3__lijn i { display: block; height: 100%; background: #c9ac8b; transform: scaleX(0); transform-origin: left; }
.rv3__lijn.is-gezien i { transform: none; }
.rv3__lijn.is-nu span { height: 2px; }
.rv3__lijn.is-nu i { animation: rv3-vul var(--rv3-duur) linear forwards; animation-play-state: paused; }
.rv3.is-zicht:not(.is-pauze) .rv3__lijn.is-nu i { animation-play-state: running; }
@keyframes rv3-vul { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.rv3__pijlen { display: flex; gap: 10px; flex: none; }
.rv3__pijlen button { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(247, 244, 239, .42); color: #f7f4ef; transition: background .35s, color .35s, border-color .35s; }
.rv3__pijlen button:hover { background: #f7f4ef; border-color: #f7f4ef; color: #181613; }
.rv3 button:focus-visible { outline: 2px solid #c9ac8b; outline-offset: 4px; }
.rv3__lijn:focus-visible { outline-offset: -6px; }

/* Brede schermen: rechts ruimte vrij voor de zwevende versiebalk. */
@media (min-width: 761px) {
  .rv3__binnen { padding-right: max(calc(var(--gutter) + var(--rv3-rand)), 96px); }
}
@media (max-width: 760px) {
  .rv3 { min-height: clamp(600px, 100svh, 860px); }
  .rv3__waas { background:
    linear-gradient(180deg, #181613 0%, rgba(24, 22, 19, .86) 8%, rgba(24, 22, 19, 0) 30%),
    linear-gradient(0deg, rgba(24, 22, 19, .92) 0%, rgba(24, 22, 19, 0) 36%),
    linear-gradient(rgba(24, 22, 19, .3), rgba(24, 22, 19, .3)); }
  .rv3__binnen { padding-bottom: 46px; }
  .rv3__citaat blockquote p { line-height: 1.17; }
  .rv3__pijlen button { width: 46px; height: 46px; }
  .rv3__citaat figcaption { letter-spacing: .24em; gap: 8px 14px; }
  .rv3__bron { gap: 14px; }
  .rv3__bron::before { width: 22px; }
}
@media (max-width: 360px) {
  .rv3__titel, .rv3__teller { letter-spacing: .2em; }
  .rv3__citaat blockquote p { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  .rv3 .rv3__beeld { animation: none !important; transform: scale(calc(var(--z, 1) * 1.02)); transition-duration: .01s; }
  .rv3__woord { transform: none; filter: none; transition: opacity .3s linear !important; transition-delay: 0s !important; }
  .rv3.is-klaar .rv3__citaat figcaption { transform: none; transition: opacity .3s linear !important; transition-delay: 0s !important; }
  .rv3 .rv3__lijn.is-nu i { animation: none; transform: none; }
}

/* Op verzoek lager: het blok vult niet meer het hele scherm. Tekst en marges zijn mee verkleind zodat het in verhouding blijft. */
@media (min-width: 761px) {
  .rv3 { min-height: clamp(560px, 86svh, 900px); }
  .rv3__binnen { padding-top: clamp(64px, 5vw, 84px); padding-bottom: clamp(40px, 3.6vw, 58px); }
  .rv3__toneel { padding-block: clamp(18px, 2vw, 32px); }
  .rv3__teken { font-size: clamp(96px, 10vw, 180px); }
  .rv3__citaat blockquote p { font-size: clamp(26px, calc(2.3vw + 15px), 58px); line-height: 1.16; max-width: 28em; }
}

/* Scrollen in plaats van knoppen: het blok blijft staan terwijl je scrolt en de recensies schuiven een voor een naar links weg. */
.rv3-baan { position: relative; }
.rv3.is-scroll { position: sticky; top: var(--rv3-top, 0px); }
.rv3.is-scroll .rv3__pijlen { display: none; }
.rv3.is-scroll .rv3__lijn i { animation: none !important; transition: transform .12s linear; }
.rv3.is-scroll.is-klaar .rv3__citaat { transform: translate3d(90px, 0, 0); transition: transform .9s cubic-bezier(.2, .7, .1, 1), visibility 0s .6s; }
.rv3.is-scroll.is-klaar .rv3__citaat.is-voor { transform: translate3d(-90px, 0, 0); }
.rv3.is-scroll.is-klaar .rv3__citaat.is-nu { transform: none; transition: transform .9s cubic-bezier(.2, .7, .1, 1), visibility 0s 0s; }
