/*
 * Stage 5 integrations: cookie banner, the inline Calendly scheduler (phones) and its fallback link,
 * and click-to-play video. Brand palette, fonts and buttons only.
 */

/* ---------- Cookie banner: bottom-left card on computers, full width on phones ---------- */
.op-consent{position:fixed;z-index:96;left:var(--edge,24px);bottom:24px;width:min(440px,calc(100vw - 48px));background:var(--shadow);color:var(--bone);padding:24px 24px 22px;border-top:3px solid var(--lava);box-shadow:0 18px 40px rgba(35,31,32,.28)}
.op-consent[hidden]{display:none}
.op-consent .lbl{color:var(--sandstone)}
.op-consent-t{margin-top:10px;font-family:var(--serif);font-size:18px;line-height:1.4;color:var(--bone)}
.op-consent-t a{color:var(--sandstone);border-bottom:1px solid currentColor}
.op-consent-b{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.op-consent-b .btn{padding:14px 12px;font-size:12px;letter-spacing:.16em;width:100%}
/* Reject is as visible and as easy as Accept: same size and weight, outlined. */
.op-consent .op-consent-no{background:transparent;color:var(--bone);box-shadow:inset 0 0 0 1px var(--sandstone)}
.op-consent .op-consent-no:hover{background:var(--bloodline)}
@media (max-width:767px){
  .op-consent{left:0;right:0;bottom:0;width:auto;padding:20px var(--edge,20px) calc(18px + env(safe-area-inset-bottom))}
  .op-consent-t{font-size:16px}
  body.consent-open .sticky{display:none !important}
}
.op-cookie-btn{background:none;border:0;padding:0;font:inherit;color:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;border-bottom:1px solid transparent}
.op-cookie-btn:hover,.op-cookie-btn:focus-visible{border-bottom-color:currentColor}
.op-cookie-btn[hidden]{display:none}

/* ---------- Booking: inline scheduler on phones, fallback link ---------- */
.op-inline:not([hidden]){display:block;margin-top:24px;scroll-margin-top:80px;min-width:280px;height:720px;background:var(--bone)}
.op-inline iframe{width:100%;height:100%;border:0}
.op-cal[aria-busy="true"]{opacity:.7;cursor:progress}
.op-cal-fallback{margin-top:16px;font-size:15px}
.op-cal-fallback a{color:var(--lava);border-bottom:1px solid currentColor}

/* ---------- Click-to-play YouTube (privacy-enhanced, nothing loads before the click) ---------- */
.op-yt{cursor:pointer}
.op-yt.op-playing{padding:0;border:0;background:var(--shadow) !important}
.op-yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.op-yt:focus-visible{outline:2px solid var(--lava);outline-offset:3px}

/* ---------- Stage 6 · performance: web-sized brand patterns (24 Nov 2026) ---------- */
/* The patterns are shown with background-size:cover on a solid brand colour, so they are served as JPEGs
   flattened onto exactly that colour: 3840px on computers, 1920px on tablets and phones. The originals in
   img/brand are unchanged. */
.b .pat-skin{background-image:url("../img/brand/web/pattern-panther-skin-3840.jpg")}
.cta{background-image:url("../img/brand/web/pattern-panther-light-3840.jpg")}
@media (max-width:1023px){
  .b .pat-skin{background-image:url("../img/brand/web/pattern-panther-skin-1920.jpg")}
  .cta{background-image:url("../img/brand/web/pattern-panther-light-1920.jpg")}
}

/* ---------- Stage 6 · accessibility: footer column headings are h2 (correct heading order), styled as before ---------- */
.ftr h2.ftr-h{font-family:var(--tenor);font-weight:400;font-size:11px;line-height:inherit;letter-spacing:.26em;text-transform:uppercase;color:var(--sandstone);margin:0 0 16px}
/* Stage 6 · accessibility: a visible focus ring on the client videos (inside the frame, which crops anything outside). */
.op-vframe video:focus-visible,.op-vframe video:focus{outline:2px solid var(--sandstone);outline-offset:-4px}
/* The booking button became a link in Stage 5 (works without JavaScript); same height as the approved button. */
.cta-card a.op-cal{line-height:normal}
/* Selected work with more than one case study: the same card, stacked, with breathing room (24 Nov 2026). */
.op .b .case .frame.op-case-next{margin-top:48px}
@media (max-width:767px){ .op .b .case .frame.op-case-next{margin-top:32px} }
