/* Selected testimonial.png composition; only About testimonials are affected. */
.testimonials-reference{background:#fafafa;color:#262626;padding:76px 32px 112px;margin:0;width:100%;scroll-margin-top:-38px}
.testimonial-ref-header{text-align:center;max-width:760px;margin:0 auto}
.testimonial-ref-header h2{font:700 36px/1.2 "Raleway",Arial,sans-serif;letter-spacing:-.035em;text-transform:uppercase;margin:0}
.testimonial-ref-rule{width:124px;height:3px;margin:16px auto 14px;background:linear-gradient(90deg,#239aba,#79c36e)}
.testimonial-ref-header p{font:400 13px/1.85 "Raleway",Arial,sans-serif;color:#777;max-width:620px;margin:auto}
.testimonial-ref-grid{display:grid;grid-template-columns:repeat(2,262px);gap:98px;justify-content:center;align-items:stretch;margin:110px auto 0;max-width:850px}
.testimonial-ref-card{position:relative;margin:0;min-width:0;isolation:isolate}
.testimonial-ref-backing{position:absolute;width:calc(100% + 64px);height:calc(100% + 64px);max-width:none;left:-32px;top:-32px;object-fit:fill;transform:rotate(17deg);clip-path:inset(5.3% round 6%);z-index:-1}
.testimonial-ref-card:nth-child(2) .testimonial-ref-backing{transform:rotate(-17deg)}
.testimonial-ref-face{position:relative;height:100%;min-height:320px;border-radius:28px;background:#fafafa;box-shadow:-14px 18px 35px rgb(0 0 0 / 25%);padding:73px 27px 39px;text-align:center}
.testimonial-ref-avatar{position:absolute;top:-45px;left:50%;transform:translateX(-50%);width:90px;height:90px;object-fit:cover;border-radius:50%}
.testimonial-ref-face figcaption{margin:0 0 18px}
.testimonial-ref-face h3{font:400 27px/1.25 "Raleway",Arial,sans-serif;letter-spacing:-.04em;margin:0 0 4px}
.testimonial-ref-face figcaption p{font:italic 400 16px/1.35 "Raleway",Arial,sans-serif;color:#333;margin:0}
.testimonial-ref-face blockquote{margin:0;font:400 12px/1.85 "Raleway",Arial,sans-serif;color:#6c6c6c}
.testimonial-ref-face blockquote p{margin:0;font:inherit;color:inherit}
.testimonial-star{position:absolute;bottom:-28px;left:50%;transform:translateX(-50%);width:56px;height:56px;display:grid;place-items:center;border-radius:50%;background:#fff;box-shadow:0 3px 14px rgb(0 0 0 / 20%)}
.testimonial-star img{width:27px;height:27px;filter:invert(77%) sepia(86%) saturate(1139%) hue-rotate(358deg) brightness(105%) contrast(104%)}
@media(min-width:1450px){.testimonials-reference{padding-top:90px;padding-bottom:130px}.testimonial-ref-grid{grid-template-columns:repeat(2,300px);gap:112px}.testimonial-ref-face{padding:80px 34px 45px;min-height:345px}.testimonial-ref-face h3{font-size:30px}.testimonial-ref-face blockquote{font-size:13px}.testimonial-ref-avatar{width:102px;height:102px;top:-51px}}
@media(max-width:700px){.testimonials-reference{padding:56px 28px 100px;scroll-margin-top:-44px}.testimonial-ref-header h2{font-size:30px}.testimonial-ref-header p{font-size:13px;max-width:330px}.testimonial-ref-grid{grid-template-columns:minmax(0,262px);gap:106px;margin-top:100px}.testimonial-ref-face{padding:73px 27px 39px;min-height:320px}.testimonial-ref-backing{width:100%;height:100%;left:0;top:0}}
@media(max-width:360px){.testimonials-reference{padding-left:28px;padding-right:28px}.testimonial-ref-grid{grid-template-columns:minmax(0,240px)}.testimonial-ref-backing{width:100%;height:100%;left:0;top:0;transform:rotate(9deg)}.testimonial-ref-card:nth-child(2) .testimonial-ref-backing{transform:rotate(-9deg)}}

/* Gentle scroll reveals and mouse-responsive cards. */
.testimonial-ref-card{--panel-angle:17deg;--panel-turn:0deg;--tilt-x:0deg;--tilt-y:0deg;--card-lift:0px;--entry-y:0px;--entry-rotation:0deg;transform:perspective(900px) translateY(calc(var(--entry-y) + var(--card-lift))) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotateZ(var(--entry-rotation));transition:opacity .8s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.testimonial-ref-card:nth-child(2){--panel-angle:-17deg}
.testimonial-ref-backing{transform:rotate(calc(var(--panel-angle) + var(--panel-turn)));transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.testimonial-ref-face{transition:box-shadow .5s ease}
.testimonial-ref-avatar{transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.testimonial-star{transition:transform .6s cubic-bezier(.2,.7,.2,1)}
.testimonial-ref-header{transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.testimonial-ref-rule{transform-origin:center;transition:transform .9s cubic-bezier(.2,.7,.2,1)}
.testimonial-motion .testimonial-ref-header:not(.is-revealed){opacity:0;transform:translateY(24px)}
.testimonial-motion .testimonial-ref-header:not(.is-revealed) .testimonial-ref-rule{transform:scaleX(.2)}
.testimonial-motion .testimonial-ref-card:not(.is-revealed){opacity:0;--entry-y:45px;--entry-rotation:-2deg}
.testimonial-motion .testimonial-ref-card:nth-child(2):not(.is-revealed){--entry-rotation:2deg}
.testimonial-motion .testimonial-ref-card:nth-child(2){transition-delay:.12s}
@media(hover:hover) and (pointer:fine){
 .testimonial-ref-card.is-revealed.is-hovered{--card-lift:-10px;--panel-turn:5deg;transition:opacity .8s ease,transform .22s ease-out}
 .testimonial-ref-card:nth-child(2).is-hovered{--panel-turn:-5deg;transition-delay:0s}
 .testimonial-ref-card.is-hovered .testimonial-ref-face{box-shadow:-16px 24px 42px rgb(0 0 0 / 29%)}
 .testimonial-ref-card.is-hovered .testimonial-ref-avatar{transform:translateX(-50%) translateY(-3px) scale(1.06)}
 .testimonial-ref-card.is-hovered .testimonial-star{transform:translateX(-50%) translateY(-4px) rotate(12deg)}
}
@media(max-width:360px){.testimonial-ref-card{--panel-angle:9deg}.testimonial-ref-card:nth-child(2){--panel-angle:-9deg}}
@media(prefers-reduced-motion:reduce){
 .testimonials-reference .testimonial-ref-header,.testimonials-reference .testimonial-ref-card{opacity:1!important;transform:none!important;transition:none!important}
 .testimonials-reference .testimonial-ref-rule{transform:none!important;transition:none!important}
 .testimonials-reference .testimonial-ref-backing{transform:rotate(var(--panel-angle))!important;transition:none!important}
 .testimonials-reference .testimonial-ref-avatar,.testimonials-reference .testimonial-star{transform:translateX(-50%)!important;transition:none!important}
 .testimonials-reference .testimonial-ref-face{transition:none!important}
}

/* Supplied bohemian bedroom covers the complete testimonial frame. */
.testimonials-reference{background:#222 url("/assets/testimonials-bedroom.webp?v=bedroom1") center center/cover no-repeat;background-image:linear-gradient(rgb(2 1 5 / 51%),rgb(2 1 5 / 43%)),url("/assets/testimonials-bedroom.webp?v=bedroom1")}
.testimonial-ref-header h2,.testimonial-ref-header>p{color:#fff;text-shadow:0 2px 7px rgb(0 0 0 / 60%)}

/* Crop the wooden top edge of the bedroom out of the mobile background. */
@media(max-width:760px){.testimonials-reference{background-size:100% 100%,auto calc(100% + 64px);background-position:center center,center bottom}}
