/* ERVARINGEN — the testimonial journal.
   A large open notebook (navy hardcover, cream pages, an orange bookmark, a strap with the mountain mark, a pen) floating over
   the same warm beige as the services, with an editorial column on the left. js/chapters/reviews.js builds the notebook from the
   reviews in the HTML (one double page per review), opens it and writes the review as you scroll (html.rvb-h).
   Phones, low screens, reduced motion on small screens and no JavaScript: each review is one notebook page, in reading order.
   Everything here is scoped to .reviews. */
.reviews { --rb-sky: #F4D3B7; --rb-hi: #F8E2CF; --rb-ink: #18204A; --rb-ink-soft: rgba(24, 32, 74, .72); --rb-orange: #FE6A00; --rb-orange-deep: #C4520A;
  --rb-navy: #1D2442; --rb-navy-2: #283157; --rb-paper: #FBF5EA; --rb-paper-2: #F3E9D8;
  position: relative; z-index: 4; color: var(--rb-ink); background-color: var(--rb-sky); isolation: isolate; overflow-x: clip; }
/* the soft light of the sky (fades in with the section's arrival out of the night) */
.reviews::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--rb-day, 1);
  background: radial-gradient(90% 70% at 62% 40%, var(--rb-hi) 0%, rgba(248, 226, 207, 0) 70%), radial-gradient(120% 60% at 50% 110%, rgba(214, 160, 120, .35), rgba(214, 160, 120, 0) 70%); }
.reviews *, .reviews *::before, .reviews *::after { box-sizing: border-box; }
/* towards the services: the same night as between the services and the portal builds up over the reviews' sky, behind
   the notebook (--to-services, 0–1, follows the scroll: js/chapters/bouwstenen.js); the heading turns light with it.
   The stage is at most 1560px wide, so the night reaches out to the full width of the screen (.reviews clips the overflow) */
.rvb-stage { isolation: isolate; }
.rvb-stage::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #121d52 0%, #0d1438 45%, #070A16 100%); opacity: calc(var(--to-services, 0) * .9); }
.rvb-head { --rb-light: calc(clamp(0, (var(--to-services, 0) - .4) * 12, 1) * 100%); }
.rvb-head .rv-title { color: color-mix(in srgb, #F2ECE3 var(--rb-light), var(--rb-ink)); }
.rvb-head .rvb-intro, .rvb-head .eyebrow { color: color-mix(in srgb, rgba(233, 223, 210, .86) var(--rb-light), var(--rb-ink-soft)); }

.rvb-stage { position: relative; display: grid; grid-template-columns: minmax(0, 3.3fr) minmax(0, 8.7fr); gap: 16px clamp(24px, 3vw, 56px); align-items: center;
  max-width: 1560px; margin: 0 auto; padding: clamp(110px, 16svh, 180px) max(16px, var(--gutter)) clamp(90px, 12svh, 140px); }
.rvb-head { position: relative; z-index: 2; display: grid; gap: 18px; justify-items: start; }
.rvb-head .eyebrow { margin: 0; display: flex; align-items: center; gap: 12px; color: var(--rb-ink-soft); }
.rvb-head .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--rb-orange); }
.rv-title { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(46px, 5.4vw, 92px); line-height: .9; letter-spacing: -.05em; color: var(--rb-ink); text-wrap: balance; }
.rv-title em { display: block; font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--rb-orange); }
.rvb-swash { width: 112px; height: 12px; color: var(--rb-orange); margin-top: -4px; }
.rvb-intro { margin: 0; max-width: 21em; font-size: clamp(16px, 1.15vw, 18.5px); line-height: 1.55; color: var(--rb-ink-soft); text-wrap: pretty; }

/* ---------- the notebook (built by js/chapters/reviews.js) ---------- */
.rvb-scene { position: relative; display: grid; place-items: center; perspective: 2400px; perspective-origin: 55% 25%; }
.rvb-book { --pw: 420px; --ph: 560px; position: relative; width: calc(var(--pw) * 2); height: var(--ph); transform-style: preserve-3d;
  transform: rotateX(16deg) rotateY(-10deg) rotateZ(-2.5deg); }
.rvb-book > * { position: absolute; }
.rvb-shadow { left: 6%; right: 2%; bottom: -16%; height: 16%; border-radius: 50%; transform: translateZ(-60px);
  background: radial-gradient(closest-side, rgba(90, 50, 40, .38), rgba(90, 50, 40, 0)); filter: blur(10px); }
/* the hardcover behind the pages, with its thickness */
.rvb-back { left: calc(var(--pw) - 8px); right: -18px; top: -14px; bottom: -18px; border-radius: 4px 20px 20px 4px; transform: translateZ(-14px);
  background: radial-gradient(120% 90% at 30% 20%, var(--rb-navy-2), var(--rb-navy) 60%, #141a33);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .05), inset 0 -3px 0 rgba(0, 0, 0, .35), 0 6px 0 #10152b, 0 44px 70px -26px rgba(70, 35, 20, .55); }
/* the front board (the inside of the cover): it turns with the first leaf and becomes the left half of the cover */
.rvb-board { position: absolute; inset: -14px -8px -18px -18px; border-radius: 20px 4px 4px 20px; transform: translateZ(-1px);
  background: radial-gradient(120% 90% at 70% 20%, var(--rb-navy-2), var(--rb-navy) 60%, #141a33); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .05), 0 6px 0 #10152b; }
/* the strap with the mountain mark, on the right edge */
.rvb-strap { right: -44px; top: 42%; width: 74px; height: 64px; border-radius: 12px; transform: translateZ(4px);
  background: linear-gradient(180deg, #2E3760, #1A2040); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06), 0 6px 14px rgba(20, 10, 10, .35);
  display: grid; place-items: center; color: #E9A15A; }
.rvb-strap svg { width: 36px; height: 24px; }
/* the bookmark hanging from the spine */
.rvb-ribbon { left: calc(var(--pw) - 26px); bottom: -64px; width: 26px; height: 92px; transform: translateZ(-6px) rotate(6deg); transform-origin: 50% 0;
  background: linear-gradient(90deg, #E05A00, var(--rb-orange) 40%, #FF8A3A 60%, #D85200);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%); }
/* the page blocks: stacked paper edges, the gutter shading */
.rvb-page { position: absolute; inset: 0; container-type: inline-size; overflow: hidden; color: var(--rb-ink);
  background-color: var(--rb-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(130% 100% at 50% 40%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%); }
.rvb-page-r { border-radius: 2px 12px 12px 2px; }
.rvb-page-l { border-radius: 12px 2px 2px 12px; }
.rvb-page-r::before, .rvb-page-l::before { content: ""; position: absolute; top: 0; bottom: 0; width: 16%; pointer-events: none; z-index: 3; }
.rvb-page-r::before { left: 0; background: linear-gradient(90deg, rgba(120, 85, 55, .28), rgba(120, 85, 55, .06) 40%, rgba(120, 85, 55, 0)); }
.rvb-page-l::before { right: 0; background: linear-gradient(270deg, rgba(120, 85, 55, .28), rgba(120, 85, 55, .06) 40%, rgba(120, 85, 55, 0)); }
.rvb-rstack { left: var(--pw); top: 0; width: var(--pw); height: var(--ph); transform-style: preserve-3d; }
.rvb-rstack > .rvb-page { box-shadow: 1px 1px 0 #E6DAC6, 2px 2px 0 #F6EEE1, 3px 3px 0 #E1D4BE, 4px 4px 0 #F4EBDD, 5px 5px 0 #DCCDB4, 6px 6px 0 #F1E6D5, 7px 8px 0 #D6C6AB, 9px 10px 14px rgba(60, 35, 20, .25); }
.rvb-lblock { display: none; left: 0; top: 0; width: var(--pw); height: var(--ph); border-radius: 12px 2px 2px 12px; background: var(--rb-paper-2); transform: translateZ(-2px);
  box-shadow: -1px 1px 0 #E6DAC6, -2px 2px 0 #F6EEE1, -3px 3px 0 #E1D4BE, -4px 4px 0 #F4EBDD, -5px 5px 0 #DCCDB4, -6px 6px 0 #F1E6D5, -7px 8px 0 #D6C6AB, -9px 10px 14px rgba(60, 35, 20, .25); }
/* a leaf: one sheet that turns around the spine (front on the right, back on the left once turned) */
.rvb-leaf { left: var(--pw); top: 0; width: var(--pw); height: var(--ph); transform-origin: 0 50%; transform-style: preserve-3d; }
.rvb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform-style: preserve-3d; }
.rvb-face.is-back { transform: rotateY(180deg); }
.rvb-face > * { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* the front cover: navy leather, stitched, with the mountain mark */
.rvb-cover { position: absolute; inset: -14px -18px -18px -4px; border-radius: 4px 20px 20px 4px;
  background: radial-gradient(110% 80% at 70% 25%, var(--rb-navy-2), var(--rb-navy) 55%, #151b36);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .05), inset 10px 0 18px -10px rgba(0, 0, 0, .55); display: grid; place-items: center; }
.rvb-cover::after { content: ""; position: absolute; inset: 14px 16px 14px 18px; border-radius: 4px 14px 14px 4px; border: 1.5px dashed rgba(233, 161, 90, .35); }
.rvb-cover svg { width: 26%; height: auto; color: #E9A15A; opacity: .9; }

/* ---------- what is on the pages ---------- */
.rvb-who { position: relative; height: 100%; display: grid; justify-items: center; align-content: start; gap: 3cqw; padding: 15cqw 12cqw 0; text-align: center; }
.rvb-note { position: relative; width: 50cqw; aspect-ratio: 1; display: grid; place-items: center; background: #FFFDF8; border-radius: 3cqw; rotate: -4deg;
  box-shadow: 0 1.5cqw 3cqw rgba(80, 50, 30, .18), 0 0 0 1px rgba(80, 50, 30, .06); }
.rvb-note::before { content: ""; position: absolute; top: -4.5cqw; left: 50%; width: 20cqw; height: 8cqw; translate: -50% 0; rotate: 2deg; border-radius: 1cqw;
  background: linear-gradient(180deg, #E9A65E, #D98A3E); opacity: .9; box-shadow: 0 .6cqw 1cqw rgba(120, 60, 20, .2); }
.rvb-note img { width: 66%; height: auto; display: block; }
.rvb-name { margin: 4cqw 0 0; font-family: var(--f-display); font-weight: 750; font-size: 7.6cqw; line-height: 1.05; letter-spacing: -.02em; color: var(--rb-ink); }
.rvb-role { margin: 0; font-style: italic; font-size: 4.8cqw; color: var(--rb-ink-soft); }
.rvb-sketch { position: absolute; left: 8%; right: 8%; bottom: 7%; height: auto; color: rgba(150, 105, 70, .45); }
.rvb-say { position: relative; height: 100%; padding: 13cqw 12cqw 10cqw 12cqw; display: grid; align-content: start; }
.rvb-qm { position: absolute; left: 10cqw; top: 6cqw; font-family: var(--f-serif); font-size: 30cqw; line-height: 1; color: var(--rb-orange); }
.rvb-stars { margin: 0 0 10cqw; justify-self: end; display: flex; gap: 2cqw; color: var(--rb-orange); }
.rvb-stars svg { width: 7.4cqw; height: 7.4cqw; filter: drop-shadow(0 .4cqw .5cqw rgba(160, 70, 10, .25)); }
.rvb-quote { margin: 0; }
.rvb-quote p { margin: 0; font-family: var(--f-display); font-weight: 620; font-size: 7.4cqw; line-height: 1.2; letter-spacing: -.015em; color: var(--rb-ink); }
.rvb-line { display: block; width: fit-content; }
.rvb-under { display: block; width: 58cqw; height: 4cqw; margin-top: 4cqw; color: var(--rb-orange); }
/* the pen (one, it travels to whichever page is being written) */
.rvb-pen { left: 0; top: 0; width: calc(var(--pw) * .56); height: auto; transform: translateZ(6px); pointer-events: none; filter: drop-shadow(-6px 10px 8px rgba(60, 30, 15, .3)); }

/* ---------- the notebook stage on desktop ---------- */
html.rvb-h .rvb-stage { height: 100vh; height: 100svh; padding-top: 86px; padding-bottom: 24px; }
html.rvb-h .rvb-scene { height: 100%; }
html.rvb-h .rvb-reviews { display: none; }

/* ---------- phones, low screens, no JavaScript: one notebook page per review ---------- */
html:not(.rvb-h) .rvb-stage { grid-template-columns: 1fr; }
html:not(.rvb-h) .rvb-scene { display: none; }
.rvb-reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; justify-items: center; }
html:not(.rvb-h) .rvb-review { position: relative; width: min(100%, 520px); container-type: inline-size; border-radius: 4px 14px 14px 4px; rotate: -1deg;
  background: var(--rb-paper); border-left: 12px solid var(--rb-navy);
  box-shadow: 1px 1px 0 #E6DAC6, 2px 2px 0 #F6EEE1, 3px 3px 0 #E1D4BE, 4px 4px 0 #F4EBDD, 5px 5px 0 #DCCDB4, 6px 6px 0 #D6C6AB, 10px 16px 30px -8px rgba(70, 35, 20, .35); }
html:not(.rvb-h) .rvb-review .rvb-who { height: auto; grid-template-columns: auto 1fr; justify-items: start; align-items: center; text-align: left; gap: 2px 18px; padding: 30px 26px 0 28px; }
html:not(.rvb-h) .rvb-review .rvb-note { grid-row: span 2; width: 74px; border-radius: 8px; }
html:not(.rvb-h) .rvb-review .rvb-note::before { top: -9px; width: 34px; height: 13px; border-radius: 3px; }
html:not(.rvb-h) .rvb-review .rvb-name { margin: 0; font-size: 20px; align-self: end; }
html:not(.rvb-h) .rvb-review .rvb-role { font-size: 14.5px; align-self: start; }
html:not(.rvb-h) .rvb-review .rvb-say { height: auto; padding: 22px 26px 30px 28px; }
html:not(.rvb-h) .rvb-review .rvb-stars { justify-self: start; margin: 0 0 14px; }
html:not(.rvb-h) .rvb-review .rvb-stars svg { width: 20px; height: 20px; }
html:not(.rvb-h) .rvb-review .rvb-quote p { font-size: clamp(19px, 5.4vw, 23px); line-height: 1.3; }
@media (max-width: 899px) {
  .rvb-stage { padding-top: clamp(96px, 14svh, 140px); padding-bottom: 80px; gap: 30px; }
  .rv-title { font-size: clamp(44px, 12vw, 60px); }
}
@media (min-width: 900px) { html:not(.rvb-h) .rvb-stage { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
