/* Real customer video story cards + pop-up player on the partner sales pages (Ollie, 21 Nov 2026).
   Same look as the home page's "In Their Own Words." cards (home-v2.css); used by partials/story_cards.php.
   Navy panel with a slanted teal edge over the customer's photo, rounded corners, two staggered columns.
   Hover: lift, stripe slides out, photo eases in, silent clip plays, play button grows and pulses. */
.sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; align-items: start; max-width: 860px; margin: 0 auto 48px; }
.sc-grid .hv2-story:nth-child(even) { margin-top: 32px; }
.hv2-story { container-type: inline-size; position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0C1F30; text-decoration: none !important; font-size: 16px;
    box-shadow: 0 10px 26px rgba(12,31,48,.16); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.hv2-story__media { position: absolute; left: 33%; top: 0; width: 67%; height: 100%; }
.hv2-story__media img, .hv2-story__media video { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none !important; object-fit: cover; object-position: var(--p, 50%) center;
    transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .35s; }
.hv2-story__media video { opacity: 0; }
.hv2-story.is-playing .hv2-story__media video { opacity: 1; }
.hv2-story__stripe { position: absolute; left: 0; top: 0; width: 52.6%; height: 100%; background: #3FA7C2; clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.hv2-story__panel { position: absolute; left: 0; top: 0; width: 51%; height: 100%; background: #0C1F30; clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%); }
.hv2-story__text { position: absolute; left: 4.7%; top: 0; width: 37%; height: 100%; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.hv2-story__eyebrow { font: 700 max(10px, 2cqw)/1 Montserrat, "Segoe UI", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #3FA7C2; white-space: nowrap; }
.hv2-story__quote { font-family: Lora, Georgia, serif !important; font-style: italic; font-weight: 600; font-size: max(15px, 4.3cqw); line-height: 1.13; color: #fff; margin-top: 3.2cqw; text-wrap: balance; }
.hv2-story__name { font: 700 max(10px, 2.15cqw)/1.2 Montserrat, "Segoe UI", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-top: 3.2cqw; white-space: nowrap; }
.hv2-story__stars { color: #ECC63D; letter-spacing: .12em; margin-left: .5em; }
.hv2-story__play { position: relative; display: flex; align-items: center; justify-content: center; align-self: flex-start; width: max(48px, 14cqw); height: max(48px, 14cqw); margin-top: 4.4cqw;
    border-radius: 50%; background: #3FA7C2; border: max(3px, .9cqw) solid #fff; box-shadow: 0 8px 22px rgba(0,0,0,.35);
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), box-shadow .3s; }
.hv2-story__play i { display: block; width: 0; height: 0; border-style: solid; border-width: max(9px, 2.6cqw) 0 max(9px, 2.6cqw) max(15px, 4.3cqw); border-color: transparent transparent transparent #fff; margin-left: max(4px, 1.1cqw); }
.hv2-story__play::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #3FA7C2; opacity: 0; pointer-events: none; }
.hv2-story:hover, .hv2-story:focus-visible { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(12,31,48,.26); }
.hv2-story:hover .hv2-story__stripe, .hv2-story:focus-visible .hv2-story__stripe { transform: translateX(3.2%); }
.hv2-story:hover .hv2-story__media img { transform: scale(1.05); }
.hv2-story:hover .hv2-story__play, .hv2-story:focus-visible .hv2-story__play { transform: scale(1.28); box-shadow: 0 0 0 8px rgba(63,167,194,.28), 0 14px 30px rgba(0,0,0,.4); }
.hv2-story:hover .hv2-story__play::after, .hv2-story:focus-visible .hv2-story__play::after { animation: sc-play-pulse 1.4s ease-out infinite; }
@keyframes sc-play-pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
.hv2-story:focus-visible { outline: 3px solid #3FA7C2; outline-offset: 4px; }
@container (max-width: 440px) { .hv2-story__eyebrow { display: none; } .hv2-story__quote { margin-top: 0; } .hv2-story__stars { display: block; margin: .35em 0 0; } }
@media (prefers-reduced-motion: reduce) { .hv2-story, .hv2-story * { transition: none !important; animation: none !important; } .hv2-story:hover { transform: none; } }
@media (max-width: 767px) { .sc-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 28px; } .sc-grid .hv2-story:nth-child(even) { margin-top: 0; } }

/* pop-up player: about half the screen, page dimmed behind it */
.hv2-story-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; background: rgba(12,31,48,.72); opacity: 0; transition: opacity .3s; }
.hv2-story-modal[hidden] { display: none; }
.hv2-story-modal.is-open { opacity: 1; }
.hv2-story-modal__wrap { position: relative; width: min(50vw, 880px); min-width: min(520px, 92vw); }
.hv2-story-modal__box { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.45); transform: scale(.94); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.hv2-story-modal.is-open .hv2-story-modal__box { transform: scale(1); }
.hv2-story-modal__box video { width: 100%; height: 100%; display: block; object-fit: cover; }
.hv2-story-modal__close { position: absolute; top: -56px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #0C1F30; font: 700 26px/44px Montserrat, "Segoe UI", sans-serif; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.3); padding: 0; }
.hv2-story-modal__cap { color: #fff; font: 600 16px Montserrat, "Segoe UI", sans-serif; margin: 14px 0 0 !important; text-align: center; }
