/* Client supplies finished team photos (not cutouts); strip the themed
   background pattern from team cards and let the photo fill the card. */
.team .hover-card__image,
.team .hover-card__image.themed-bg {
    background: none;
    padding-top: 0;
}

.team .hover-card__image.themed-bg::after {
    display: none;
}

.team .hover-card__image img {
    position: absolute;
    inset: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform: none;
}

.team .hover-card__image img.reveal-bottom {
    transform: translateY(140px);
}

.team .hover-card__image img.reveal-bottom.visible {
    transform: translateY(0);
}

.team .hover-card:hover .hover-card__image img,
.team .hover-card:focus-within .hover-card__image img {
    transform: translateY(-4%);
}

.team .hover-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
}


/* ============================================================
   REVIEWS / "WALL OF HONOR" PAGE  (/reviews)
   Everything scoped under .reviews-page so the dark theme can
   never leak into the rest of the light site. The lightbox
   <dialog> lives outside .page-wrapper, so it is scoped under
   .rv-lightbox directly.
   ============================================================ */

.reviews-page {
    --rv-bg: #0d0b09;
    --rv-gold: #c9972b;
    --rv-red: var(--color-primary, #e0242c);
    --rv-line: rgba(201, 151, 43, 0.22);
    --rv-card: rgba(255, 255, 255, 0.04);
    position: relative;
    background-color: var(--rv-bg);
    color: rgba(255, 255, 255, 0.88);
    overflow-x: clip;
    /* layered atmosphere: warm bronze glow up top, near-black edges,
       a faint diagonal tatami hatch */
    background-image:
        radial-gradient(120% 70% at 50% -10%, rgba(201, 151, 43, 0.16), rgba(13, 11, 9, 0) 60%),
        radial-gradient(90% 60% at 100% 0%, rgba(224, 36, 44, 0.08), rgba(13, 11, 9, 0) 55%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.014) 0 2px, rgba(0, 0, 0, 0) 2px 9px);
    background-attachment: fixed, fixed, fixed;
}

.reviews-page .container {
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.reviews-page .rv-section { padding: clamp(3.5rem, 8vw, 7rem) 0; position: relative; }

/* ---- dark-theme recolor of the shared section heading classes ----
   The hero and every in-page section reuse the site-wide
   .section__eyebrow / .section__title / .section__text classes for
   sizing + weight; here we only repaint them for the dark background. */
.reviews-page .section__eyebrow { color: var(--rv-gold); }
.reviews-page .section__title,
.reviews-page h1 { color: #fff; }
.reviews-page .section__text { color: rgba(255, 255, 255, 0.72); }

/* ===================== HERO ===================== */
.reviews-page .rv-hero {
    position: relative;
    min-height: clamp(560px, 86vh, 820px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 0 4rem;
}
.reviews-page .rv-hero__ribbon {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    z-index: 0;
    opacity: 0.5;
}
/* Seamless infinite marquee: two identical groups, each min-width:100% so a row
   always fills the viewport; animation shifts by exactly one group + gap so the
   second group lands precisely where the first began (no jump, no empty edge). */
.reviews-page .rv-ribbon { display: flex; overflow: hidden; width: 100%; gap: 12px; }
.reviews-page .rv-ribbon__group {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 12px;
    min-width: 100%;
    will-change: transform;
}
.reviews-page .rv-ribbon--ltr .rv-ribbon__group { animation: rv-marquee 80s linear infinite; }
.reviews-page .rv-ribbon--rtl .rv-ribbon__group { animation: rv-marquee 92s linear infinite; animation-direction: reverse; }
.reviews-page .rv-ribbon img {
    height: clamp(120px, 18vh, 190px);
    width: auto;
    border-radius: 8px;
    object-fit: cover;
    filter: saturate(1.05) brightness(0.85);
}
@keyframes rv-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 12px)); } }

.reviews-page .rv-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(80% 80% at 50% 50%, rgba(13, 11, 9, 0.55), rgba(13, 11, 9, 0.9)),
        linear-gradient(180deg, rgba(13, 11, 9, 0.6), rgba(13, 11, 9, 0.4) 40%, rgba(13, 11, 9, 0.95));
}
.reviews-page .rv-hero__content { position: relative; z-index: 2; text-align: center; }
/* larger, page-hero-scale heading — match the .hero h1 / eyebrow used on the
   About & Contact pages rather than the smaller in-page .section__title size */
.reviews-page .rv-hero__content .section__eyebrow {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    margin-bottom: 0.4rem;
}
.reviews-page .rv-hero__content .section__title {
    font-size: clamp(3rem, 7vw, 4.75rem);
    line-height: 1;
    margin-bottom: 1.25rem;
}
/* center the shared heading classes within the hero column */
.reviews-page .rv-hero__content .section__eyebrow,
.reviews-page .rv-hero__content .section__title,
.reviews-page .rv-hero__content .section__text {
    margin-left: auto;
    margin-right: auto;
}
.reviews-page .rv-hero__content .section__text { max-width: 46ch; }
.reviews-page .rv-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1.5rem, 5vw, 4rem);
    margin-bottom: 2.75rem;
}
.reviews-page .rv-stat { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; min-width: 140px; }
.reviews-page .rv-stat__num,
.reviews-page .rv-stat__stars {
    font-family: 'League Spartan', sans-serif;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}
.reviews-page .rv-stat__num { font-size: clamp(2.6rem, 6vw, 4rem); color: var(--rv-red); }
.reviews-page .rv-stat__stars { font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--rv-gold); letter-spacing: 3px; }
.reviews-page .rv-stat__label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.62);
}

/* ===================== STORIES BEHIND THE BELTS ===================== */
/* ---- FEATURED STORIES: a cinematic film-strip that docks straight into
   the wall below. No border/seam between the two — they read as one
   continuous "wall of honor". Cards are vertical posters (the footage is
   phone-shot portrait) with the name set as a film title and a belt-colour
   spine. The whole card is a play control; video opens in the shared
   lightbox in-page. ---- */
.reviews-page .rv-stories-sec { border-top: 1px solid var(--rv-line); padding-bottom: clamp(2rem, 4vw, 3rem); }
.reviews-page .rv-stories-sec .section__text { max-width: 46rem; }

.reviews-page .rv-stories-railwrap {
    margin-top: clamp(1.6rem, 3vw, 2.4rem);
    /* fade the rail edges so it reads as scrollable, not clipped */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.2rem, #000 calc(100% - 2.2rem), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 2.2rem, #000 calc(100% - 2.2rem), transparent 100%);
}
.reviews-page .rv-stories-rail {
    list-style: none; margin: 0;
    display: flex; gap: clamp(1rem, 1.8vw, 1.6rem);
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--rv-gold) transparent;
    padding: 0.5rem clamp(1.5rem, 5vw, 4rem) 1.4rem;
    /* centre the cards when they fit the viewport, but fall back to start (no
       clipped left edge) once the rail overflows and has to scroll */
    justify-content: safe center;
}
.reviews-page .rv-stories-rail::-webkit-scrollbar { height: 6px; }
.reviews-page .rv-stories-rail::-webkit-scrollbar-thumb { background: var(--rv-gold); border-radius: 99px; }
.reviews-page .rv-stories-rail::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); }

.reviews-page .rv-story {
    --belt: var(--rv-gold);
    flex: 0 0 auto;
    width: clamp(232px, 26vw, 300px);
    scroll-snap-align: start;
    display: flex; flex-direction: column;
}
.reviews-page .rv-story--white  { --belt: #eef0f2; }
.reviews-page .rv-story--yellow { --belt: #f5c518; }
.reviews-page .rv-story--green  { --belt: #2e9e4f; }
.reviews-page .rv-story--blue   { --belt: #2b6fc9; }
.reviews-page .rv-story--black  { --belt: #d8dadd; }   /* black belt → light edge so it reads on dark bg */

/* the poster/play button */
.reviews-page .rv-story__btn {
    position: relative; display: block; width: 100%;
    padding: 0; border: 0; cursor: pointer; background: #181410;
    border-radius: 16px; overflow: hidden;
    /* belt-colour spine down the left edge + thin frame */
    box-shadow: inset 4px 0 0 0 var(--belt), inset 0 0 0 1px rgba(255,255,255,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.reviews-page .rv-story__btn:hover,
.reviews-page .rv-story__btn:focus-visible {
    transform: translateY(-6px);
    box-shadow: inset 4px 0 0 0 var(--belt), 0 22px 54px rgba(0,0,0,0.6), 0 0 0 1px var(--belt);
    outline: none;
}
.reviews-page .rv-story__media { display: block; position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.reviews-page .rv-story__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.reviews-page .rv-story__btn:hover .rv-story__media img,
.reviews-page .rv-story__btn:focus-visible .rv-story__media img { transform: scale(1.06); }
.reviews-page .rv-story__scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13,11,9,0) 38%, rgba(13,11,9,0.45) 64%, rgba(13,11,9,0.92) 100%);
}
.reviews-page .rv-story__play {
    position: absolute; top: 1rem; right: 1rem;
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(224, 36, 44, 0.94); color: #fff; border-radius: 999px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, background 0.3s ease;
}
.reviews-page .rv-story__play svg { margin-left: 2px; }
.reviews-page .rv-story__btn:hover .rv-story__play,
.reviews-page .rv-story__btn:focus-visible .rv-story__play { transform: scale(1.12); background: var(--rv-red); }
.reviews-page .rv-story__cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 1.1rem 1.2rem 1.15rem; text-align: left;
    display: flex; flex-direction: column; gap: 0.18rem;
}
.reviews-page .rv-story__name {
    font-family: 'League Spartan', sans-serif; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.01em; font-size: 1.7rem; line-height: 0.95; color: #fff;
    text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}
.reviews-page .rv-story__tag {
    font-family: 'League Spartan', sans-serif; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.06em; font-size: 0.72rem; color: var(--belt);
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.reviews-page .rv-stories__more { margin-top: 1.4rem; background: transparent; border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; }
.reviews-page .rv-stories__more:hover { background: #fff; color: #1a1305; }

/* ===================== THE WALL ===================== */
/* wall docks directly under the featured stories — no dividing border, tighter top */
.reviews-page .rv-wall-sec { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(3.5rem, 8vw, 7rem); }
.reviews-page .rv-wall-wrap { max-width: 1500px; margin: 0 auto; padding: 0 1rem; }
/* no-JS fallback: native CSS columns. JS upgrades this to a shortest-column
   flex masonry (.rv-wall--js) so appending more never re-balances/reorders. */
.reviews-page .rv-wall { columns: 5; column-gap: 12px; }
.reviews-page .rv-wall.rv-wall--js { columns: auto; display: flex; align-items: flex-start; gap: 12px; }
.reviews-page .rv-wall--js .rv-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.reviews-page .rv-wall--js .rv-tile { margin: 0; }
.reviews-page .rv-tile {
    display: block; width: 100%; margin: 0 0 12px; padding: 0;
    break-inside: avoid; position: relative; cursor: pointer;
    border: 0; background: none; border-radius: 10px; overflow: hidden;
    line-height: 0; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.reviews-page .rv-tile img { width: 100%; height: auto; display: block; background: #181410; }
.reviews-page .rv-tile::after {
    content: ""; position: absolute; inset: 0; border-radius: 10px;
    box-shadow: inset 0 0 0 0 var(--rv-gold); transition: box-shadow 0.3s ease;
    pointer-events: none;
}
.reviews-page .rv-tile:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55); z-index: 2; }
.reviews-page .rv-tile:hover::after,
.reviews-page .rv-tile:focus-visible::after { box-shadow: inset 0 0 0 2px var(--rv-gold); }
.reviews-page .rv-tile__play {
    position: absolute; inset: 0; margin: auto; width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(224, 36, 44, 0.9); color: #fff; border-radius: 999px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); transition: transform 0.3s ease;
}
.reviews-page .rv-tile--video:hover .rv-tile__play { transform: scale(1.12); }
/* cascade-in for JS-appended batches */
.reviews-page .rv-tile.rv-in { opacity: 0; transform: translateY(24px); }
.reviews-page .rv-tile.rv-in.rv-shown { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }
.reviews-page .rv-wall__sentinel { height: 1px; width: 100%; }

/* ===================== LIGHTBOX (outside .page-wrapper) ===================== */
dialog.rv-lightbox {
    border: 0; padding: 0; margin: 0; max-width: 100vw; max-height: 100vh;
    width: 100vw; height: 100vh; background: transparent; color: #fff;
    overflow: hidden;
}
/* dim + blur the page behind the media instead of a flat black void, so the
   clip reads as a panel floating above the site rather than swallowing it */
dialog.rv-lightbox::backdrop {
    background: radial-gradient(120% 120% at 50% 45%, rgba(13, 11, 9, 0.82), rgba(8, 7, 5, 0.94));
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
}
dialog.rv-lightbox .rv-lightbox__stage {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    padding: clamp(1.25rem, 5vw, 4rem);
}
dialog.rv-lightbox .rv-lightbox__stage img,
dialog.rv-lightbox .rv-lightbox__stage video {
    max-width: 100%; max-height: 100%; width: auto; height: auto;
    border-radius: 14px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
    background: #000;
}
/* portrait, phone-shot story clips: cap the height so the framed panel sits
   centred with breathing room, not edge-to-edge */
dialog.rv-lightbox.rv-lightbox--single .rv-lightbox__stage video {
    max-height: min(82vh, 760px);
}
dialog.rv-lightbox .rv-lightbox__close,
dialog.rv-lightbox .rv-lightbox__nav {
    position: absolute; z-index: 3; cursor: pointer;
    border-radius: 999px; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
dialog.rv-lightbox .rv-lightbox__nav {
    background: rgba(255, 255, 255, 0.12); color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 2.2rem; line-height: 1;
}
dialog.rv-lightbox .rv-lightbox__nav:hover {
    background: var(--color-primary, #e0242c); border-color: var(--color-primary, #e0242c);
}
dialog.rv-lightbox .rv-lightbox__nav--prev { left: 1.1rem; }
dialog.rv-lightbox .rv-lightbox__nav--next { right: 1.1rem; }
/* high-contrast, always-obvious close: solid white pill with a dark X,
   pinned top-right with a glow so it never gets lost against the video */
dialog.rv-lightbox .rv-lightbox__close {
    top: clamp(0.9rem, 2.5vw, 1.6rem); right: clamp(0.9rem, 2.5vw, 1.6rem);
    width: 54px; height: 54px; font-size: 2rem; line-height: 1;
    background: #fff; color: #14110c; border: 0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}
dialog.rv-lightbox .rv-lightbox__close:hover,
dialog.rv-lightbox .rv-lightbox__close:focus-visible {
    background: var(--color-primary, #e0242c); color: #fff;
    transform: scale(1.08); outline: none;
}
/* a featured story opens as a single clip — no prev/next through the wall */
dialog.rv-lightbox.rv-lightbox--single .rv-lightbox__nav { display: none; }

/* ===================== FOOTER CTA — BLACK BAND (reviews page only) =====================
   The shared floating-CTA wrap paints a white (or grey, via .bg-grey) band behind
   the form box. The shared footer sits OUTSIDE .reviews-page, so the dark theme can't
   reach it; instead the /reviews <footer> carries data-cta-bg="bg-black", which lands
   as a .bg-black class here. Repaint that band to the wall's near-black so the page
   stays dark all the way down to the footer. */
.cta-form--floating-wrap.bg-black {
    background: linear-gradient(to bottom, #0d0b09 30%, transparent 30%);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) { .reviews-page .rv-wall { columns: 4; } }
@media (max-width: 900px) {
    .reviews-page .rv-wall { columns: 3; }
}
@media (max-width: 620px) {
    .reviews-page .rv-wall { columns: 2; column-gap: 8px; }
    .reviews-page .rv-wall.rv-wall--js,
    .reviews-page .rv-wall--js .rv-col { gap: 8px; }
    .reviews-page .rv-tile { margin-bottom: 8px; }
    dialog.rv-lightbox .rv-lightbox__nav { width: 44px; height: 44px; font-size: 1.8rem; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
    .reviews-page .rv-ribbon__group { animation: none; }
    .reviews-page .rv-tile.rv-in { opacity: 1; transform: none; transition: none; }
    .reviews-page .rv-story__btn,
    .reviews-page .rv-story__media img,
    .reviews-page .rv-story__play,
    .reviews-page .rv-tile { transition: none; }
}
