/* Client Stories page ([bff_reviews]) and the "Our work" slider ([bff_showcase]). Light, modern. */
body:has(.bffs) main,
body:has(.bffs) .wp-site-blocks > main { background: #fff; padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
body:has(.bffs) .wp-block-post-title { display: none; }
html:has(.bffs) { overflow-x: clip; }
/* Full width, whatever the theme's content width. */
div.bffs.bffs { left: 50%; width: 100vw; max-width: none !important; margin-left: -50vw !important; margin-right: 0 !important; margin-top: 0 !important; }
body:has(.bffs) .entry-content > *:not(.bffs) { color: #1b1b1b; }

.bffs {
  --ink: #0b0b0b; --ink-2: #4b4b4b; --muted: #8a8a8a; --line: #ececec; --wash: #fafaf8;
  --gold: #c99a2e; --gold-2: #e9c46a; --gold-wash: #fbf5e6;
  position: relative;
  background: #fff; color: var(--ink); overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.bffs *, .bffs *::before, .bffs *::after { box-sizing: border-box; }
/*
 * The site's own stylesheet sets colours and sizes on plain tags with !important
 * (p, li → --bff-gray; h1 → --bff-gold-light; h2 → --bff-gold; strong → --bff-white;
 * a → --bff-gold-light / --bff-gold; section → transparent). Inside this page those
 * variables point at the page's own colours, and sizes are restated with !important.
 */
.bffs { --bff-gray: currentColor; --bff-white: currentColor; --bff-gold-light: currentColor; --bff-gold: currentColor; }
.bffs-lede { --bff-gray: var(--ink-2); }
.bffs-rated, .bffs-areas li { --bff-gray: var(--ink-2); }
.bffs-note, .bffs-empty { --bff-gray: var(--muted); }
.bffs-quote, .bffs-quote p { --bff-gray: var(--ink); }
.bffs-areas li b { --bff-white: var(--ink); }
.bffs-card.is-short .bffs-rated { --bff-gray: #cfcfcf; }
.bffs-card.is-short .bffs-rated strong { --bff-white: #fff; }
.bffs-h { --bff-gold-light: var(--ink); }
.bffs-work h2 { --bff-gold: var(--ink); }
.bffs-cta { --bff-gold-light: #fff; --bff-gold: #fff; }
.bffs-cta.ghost { --bff-gold-light: var(--ink); --bff-gold: var(--ink); }
.bffs .bffs-h { font-size: clamp(44px, 8vw, 92px) !important; line-height: .98 !important; letter-spacing: -.04em !important; font-weight: 800 !important; }
.bffs .bffs-work h2 { font-size: clamp(32px, 5vw, 56px) !important; line-height: 1 !important; letter-spacing: -.035em !important; font-weight: 800 !important; }
.bffs .bffs-work { background: var(--wash) !important; }
body:has(.bffs) .entry-content { padding-top: 0 !important; padding-bottom: 0 !important; margin-top: 0 !important; margin-bottom: 0 !important; }
body:has(.bffs) main > *, body:has(.bffs) .entry-content > .bffs { margin-block-start: 0 !important; margin-block-end: 0 !important; }
body:has(.bffs) main > .wp-block-spacer { display: none; }
body:has(.bffs) footer.wp-block-template-part { margin-top: 0 !important; }
.bffs-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Hero */
.bffs-hero { position: relative; padding: clamp(72px, 11vw, 140px) 0 clamp(40px, 6vw, 72px); text-align: center; isolation: isolate; }
.bffs-glow { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at 22% 30%, rgba(233, 196, 106, .32), transparent 70%), radial-gradient(35% 45% at 80% 20%, rgba(201, 154, 46, .18), transparent 70%), radial-gradient(50% 50% at 50% 100%, rgba(240, 236, 226, .9), transparent 70%);
  filter: blur(8px); }
.bffs-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.bffs-eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.bffs-h { margin: 16px 0 0; font-size: clamp(44px, 8vw, 92px); line-height: .98; letter-spacing: -.04em; font-weight: 800; color: var(--ink); }
.bffs-h em { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-style: italic; font-weight: 500; letter-spacing: -.02em;
  background: linear-gradient(100deg, #b8862a, #e9c46a 55%, #b8862a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bffs-lede { max-width: 560px; margin: 20px auto 0; font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); }
.bffs-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.bffs-cta { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: #fff !important; font-weight: 700; text-decoration: none !important; transition: transform .2s, box-shadow .2s; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); }
.bffs-cta:hover { transform: translateY(-2px); }
.bffs-cta.ghost { background: #fff; color: var(--ink) !important; border: 1px solid var(--line); box-shadow: none; }
.bffs-cta:focus-visible, .bffs-play:focus-visible, .bffs-arrow:focus-visible, .bffs-track:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Cards */
.bffs-card { position: relative; margin: 0 0 24px; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 50px -24px rgba(0, 0, 0, .18); break-inside: avoid; transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.bffs-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 28px 60px -24px rgba(0, 0, 0, .25); }
.bffs-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.bffs-stars { display: inline-flex; gap: 2px; font-size: 18px; color: var(--gold); letter-spacing: 0; }
.bffs-stars .off { color: #e3e3e3; }
.bffs-mark { font-family: Georgia, serif; font-size: 96px; line-height: .7; height: 40px; color: var(--gold-2); opacity: .55; }
.bffs-quote { margin: 14px 0 0; padding: 0; border: 0 !important; font-size: 17px; line-height: 1.65; color: var(--ink) !important; font-style: normal; }
.bffs-quote p { margin: 0 0 12px; color: inherit !important; }
.bffs-quote p:last-child { margin-bottom: 0; }
.bffs-rated { margin: 14px 0 0; color: var(--ink-2); }
.bffs-who { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.bffs-avatar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 800; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, #0b0b0b, #3a3a3a); box-shadow: inset 0 0 0 2px rgba(233, 196, 106, .7); }
.bffs-who strong { display: block; font-size: 15px; color: var(--ink); }
.bffs-who small { display: block; font-size: 13px; color: var(--muted); }
.bffs-areas { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.bffs-areas li { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--gold-wash); font-size: 13px; color: var(--ink-2); }
.bffs-areas b { color: var(--ink); }
.bffs-areas i { font-style: normal; color: var(--muted); font-weight: 400; }
.bffs-film { position: relative; aspect-ratio: 16 / 9; margin: -12px -12px 20px; border-radius: 16px; overflow: hidden; background: #000; }
.bffs-film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Featured review */
.bffs-card.is-featured { padding: clamp(28px, 5vw, 56px); margin-bottom: 32px; background: linear-gradient(180deg, #fff, var(--wash)); }
.bffs-card.is-featured .bffs-quote { font-size: clamp(19px, 2.4vw, 26px); line-height: 1.5; letter-spacing: -.01em; font-weight: 500; }
.bffs-card.is-featured .bffs-mark { font-size: 160px; height: 64px; }
.bffs-card.is-featured::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 24px 24px 0 0; background: linear-gradient(90deg, #b8862a, #e9c46a, #b8862a); }

.bffs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; align-items: start; }
.bffs-grid .bffs-card { margin: 0; }
.bffs-card.is-short { background: var(--ink); border-color: var(--ink); color: #fff; }
.bffs-card.is-short .bffs-stars { font-size: 26px; }
.bffs-card.is-short .bffs-stars .off { color: #333; }
.bffs-card.is-short .bffs-rated { color: #cfcfcf; font-size: 18px; }
.bffs-card.is-short .bffs-rated strong { color: #fff; }
.bffs-card.is-short .bffs-who { border-color: #262626; }
.bffs-card.is-short .bffs-who strong { color: #fff; }

.bffs-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.bffs-note { margin: 40px auto 64px; text-align: center; font-size: 13px; color: var(--muted); max-width: 640px; }

/* Average rating badge (all ratings received) */
.bffs-avg { display: inline-flex; align-items: center; gap: 14px; margin: 26px auto 0; padding: 12px 22px 12px 18px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); text-align: left; }
.bffs .bffs-avg-n { --bff-white: var(--ink); font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.bffs-avg-r { display: flex; flex-direction: column; gap: 3px; }
.bffs-avg-stars { position: relative; display: inline-block; font-size: 19px; line-height: 1; letter-spacing: 2px; }
.bffs-avg-stars .bg { color: #e3e3e3; }
.bffs-avg-stars .fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--gold); }
.bffs-avg small { font-size: 13px; color: var(--muted); }
@media (max-width: 480px) { .bffs-avg { gap: 10px; padding: 10px 16px 10px 14px; } .bffs .bffs-avg-n { font-size: 28px; } .bffs-avg small { font-size: 12px; } }

/* Reviews slideshow: the box fits the review on screen and resizes smoothly between reviews. */
.bffs-show { max-width: 720px; margin: 0 auto; }
/* Medium-size slides (the owner's choice), not the big featured look. */
.bffs-show .bffs-card.is-featured { padding: clamp(22px, 4vw, 36px); }
.bffs-show .bffs-card.is-featured .bffs-quote { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.65; font-weight: 400; letter-spacing: 0; }
.bffs-show .bffs-card.is-featured .bffs-mark { font-size: 84px; height: 36px; }
.bffs-show .bffs-card .bffs-stars { font-size: 17px; }
.bffs-show-track { position: relative; transition: height .5s cubic-bezier(.2, .7, .2, 1); }
.bffs-show-track > .bffs-card { position: absolute; top: 0; left: 0; right: 0; margin: 0 0 8px; opacity: 0; visibility: hidden; transform: translateX(40px) scale(.98);
  transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .7s; display: flex; flex-direction: column; }
.bffs-show-track > .bffs-card.is-active { position: relative; opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.bffs-show-track > .bffs-card.is-leaving { transform: translateX(-40px) scale(.98); }
.bffs-show-track > .bffs-card .bffs-quote { margin-bottom: 22px; }
.bffs-show-track > .bffs-card.is-short { justify-content: center; text-align: center; align-items: center; }
.bffs-show-track > .bffs-card.is-short .bffs-card-top { justify-content: center; }
.bffs-show-track > .bffs-card.is-short .bffs-stars { font-size: 32px; gap: 4px; }
.bffs-show-track > .bffs-card.is-short .bffs-rated { font-size: clamp(18px, 2.2vw, 22px); margin: 14px 0 22px; }
.bffs-show-track > .bffs-card.is-short .bffs-who { margin-top: 0; border-top: 0; padding-top: 0; justify-content: center; text-align: left; }
.bffs-card.is-short.is-featured::before { opacity: .9; }
.bffs-show-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.bffs-dots { display: flex; gap: 8px; }
.bffs-dot { position: relative; width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.bffs-dot i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 99px; background: #d9d9d9; overflow: hidden; transition: width .35s, margin .35s, background .35s; }
.bffs-dot.is-on i { width: 36px; margin-left: -18px; background: #ececec; }
.bffs-dot.is-on i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); animation: bffs-fill var(--dur, 8s) linear forwards; }
.bffs-show.is-paused .bffs-dot.is-on i::after { animation-play-state: paused; }
.bffs-show.no-auto .bffs-dot.is-on i::after { animation: none; transform: none; }
.bffs-dot:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 99px; }
@keyframes bffs-fill { to { transform: scaleX(1); } }

/* Our work slider */
.bffs-work { margin-top: clamp(56px, 8vw, 96px); padding: clamp(48px, 7vw, 80px) 0 12px; background: var(--wash); border-top: 1px solid var(--line); }
.bffs-solo .bffs-work { margin-top: 0; }
.bffs-work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 28px; }
.bffs-work h2 { margin: 10px 0 0; font-size: clamp(32px, 5vw, 56px); line-height: 1; letter-spacing: -.035em; font-weight: 800; color: var(--ink); }
.bffs-arrows { display: flex; gap: 10px; }
.bffs-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.bffs-arrow:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.bffs-track-wrap { position: relative; }
.bffs-track { list-style: none; display: flex; gap: 20px; margin: 0; padding: 8px max(24px, calc((100vw - 1112px) / 2)) 40px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(24px, calc((100vw - 1112px) / 2)); scrollbar-width: none; scroll-behavior: smooth; }
.bffs-track::-webkit-scrollbar { display: none; }
.bffs-track { --h: clamp(300px, 34vw, 440px); align-items: flex-start; }
.bffs-slide { flex: 0 0 min(86vw, calc(var(--h) * 16 / 9)); scroll-snap-align: start; }
.bffs-slide.is-vertical { flex-basis: calc(var(--h) * 9 / 16); }
.bffs-play { position: relative; display: block; width: 100%; height: var(--h); padding: 0; border: 0; border-radius: 20px; overflow: hidden; cursor: pointer; background: #111; text-align: left;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .55); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.bffs-play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.bffs-play:hover { transform: translateY(-4px); }
.bffs-play:hover img { transform: scale(1.05); }
.bffs-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .78)); }
.bffs-btn { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; color: #0b0b0b;
  background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .3s, background .3s; }
.bffs-play:hover .bffs-btn { transform: scale(1.1); background: #e9c46a; }
.bffs-cap { position: absolute; left: 20px; right: 20px; bottom: 16px; color: #fff; }
.bffs-slide.is-vertical .bffs-cap strong { font-size: 15px; }
.bffs-cap strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.bffs-cap small { display: block; margin-top: 2px; font-size: 13px; color: rgba(255, 255, 255, .78); }

/* Video lightbox */
.bffs-lb { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; padding: 24px; background: rgba(8, 8, 8, .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: bffs-fade .25s ease; }
.bffs-lb-box { position: relative; width: min(1100px, 100%); aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 40px 80px rgba(0, 0, 0, .6); }
.bffs-lb-box.is-vertical { width: auto; height: min(86vh, 860px); aspect-ratio: 9 / 16; max-width: 100%; }
.bffs-lb-box.is-ig { background: #fff; width: min(440px, 100%); height: min(88vh, 820px); aspect-ratio: auto; }
.bffs-lb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.bffs-lb-x { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: #0b0b0b; font-size: 26px; line-height: 1; cursor: pointer; }
@keyframes bffs-fade { from { opacity: 0; } }

/* Scroll reveal */
.bffs [data-reveal] { opacity: 0; transform: translateY(24px); }
.bffs [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.bffs.no-js [data-reveal] { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .bffs-wrap { padding: 0 16px; }
  .bffs-card { padding: 22px; border-radius: 20px; }
  .bffs-arrows { display: none; }
  .bffs-track { padding-left: 16px; padding-right: 16px; scroll-padding: 0 16px; }
  .bffs-track { --h: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  .bffs *, .bffs *::before { transition: none !important; animation: none !important; }
  .bffs [data-reveal] { opacity: 1; transform: none; }
  .bffs-track { scroll-behavior: auto; }
}
