/* =====================================================================
   RDA homepage — page styles for hubspot.html
   Trimmed from the sandbox styles.css to only what this page uses:
   the WebGL hero, the scroll sections, and their reveals. No sandbox
   chrome (controls/version nav) and no unused design-variant rules.
   ===================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: #000; color: #fff; }

/* hero pins behind the content for the whole scroll; sections scroll up over it */
#hero-pin { position: sticky; top: 0; height: 100vh; z-index: 0; }
#stage { position: relative; height: 100vh; width: 100%; overflow: hidden; background: #000; }

/* the hero has two stacked layers; only the WebGL layer is shown.
   layer-v1 stays hidden but exists so the hero engine has a transform target. */
.layer { position: absolute; inset: 0; display: none; }
.layer-v2 { display: block; }

/* WebGL canvas */
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#gl-fallback { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: 13px; }

/* mobile hero (no WebGL): the hero video plays full-bleed as a plain <video> and the
   RDA logo is a frosted-glass cutout — a masked backdrop-filter over the moving video */
.no-gl #gl { display: none; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-logo-frost { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 82vw; max-width: 430px; aspect-ratio: 720 / 329; pointer-events: none;
  -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
  background: rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.4) brightness(1.35); backdrop-filter: blur(16px) saturate(1.4) brightness(1.35); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero-logo-frost { background: rgba(255,255,255,0.4); }
}

.scroll-hint { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.55); z-index: 6; animation: bob 2s ease-in-out infinite; transition: opacity .4s; }
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,8px)} }

/* ===================== content sections ===================== */
#content { position: relative; z-index: 1; }
.sec-inner { max-width: 1180px; width: 100%; margin: 0 auto; }
/* scroll-scrubbed sticky sections: pin while the reveal is driven by scroll */
.scrub-sec { position: relative; height: var(--scrub-h); }
.scrub-sec .pin { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; padding: 14vh 7vw; }
.scrub-sec .pin.center { justify-content: center; text-align: center; }

/* staggered reveal */
:root { --rv-dur: 0.9s; --rv-ease: cubic-bezier(.16,1,.3,1); --scrub-h: 230vh; }   /* fast text-in */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity var(--rv-dur) var(--rv-ease), transform var(--rv-dur) var(--rv-ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }

/* per-section stick lengths (how long each pins) — Loren's locked-in 5F (round-2) values:
   every section stays pinned ~a full page AFTER it animates in; the rotating line needs the most dwell */
.sentence-sec.cw-rotate { height: 400vh; }   /* line 2 · value→success→trust rotates */
.sentence-sec:not(.cw-rotate) { height: 280vh; }   /* line 3 · Starting AI is easy… */
.logos-sec, .services-sec { height: 300vh; }   /* partners + expertise */
.schedule-sec { height: 220vh; }

/* large sentence type (shared by hero welcome, paragraph, testimonials) */
.sentence { font-size: clamp(40px, 7vw, 100px); line-height: 1.04; font-weight: 600; letter-spacing: -0.025em; color: #fff; max-width: 20ch; text-wrap: balance; text-align: left;
  text-shadow: 0 0 40px #000000; }
.sentence .word { display: inline-block; }

/* hero welcome — auto-reveals on load, scrolls up out of focus.
   Identical layout/style to the body sentence sections. */
.hero-welcome { position: absolute; inset: 0; display: flex; align-items: center; z-index: 5; pointer-events: none; padding: 14vh 7vw; }

/* testimonials — separate sticky sections */
.testimonial-sec { height: 220vh; }
.testimonial-sec .pin { min-height: 0; height: 100vh; }
.testimonial-sec .quote { font-size: clamp(40px, 7vw, 100px); max-width: 20ch; text-wrap: balance; }   /* 5F: big statement-sentence size */
.attrib { margin-top: 30px; font-size: 15px; letter-spacing: 0.04em; color: rgba(255,255,255,0.55); }

/* logo wall (rectilinear grid spanning the fixed content width) */
.sec-eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 36px; }
.logo-wall { position: relative; width: 100%; }
/* 5F: the partner wall gets the same frosted blur panel as Expertise, fading in with the grid */
.logo-wall::before { content: ""; position: absolute; inset: 0; z-index: 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity 0.8s ease 0.35s; }
.logo-wall.group-in::before { opacity: 1; }
.logo-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); width: 100%; }
.logo-cell { position: relative; display: flex; align-items: center; justify-content: center; height: 140px; overflow: hidden; }
.logo-cell img { height: 54px; width: auto; max-width: 76%; filter: drop-shadow(0 0 40px #000000); transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); }
/* hover: logo lifts, company name (from data-name) rises in beneath it */
.logo-cell::after { content: attr(data-name); position: absolute; left: 0; right: 0; top: calc(50% + 30px); text-align: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.6); opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1); pointer-events: none; }
.logo-cell:hover img { transform: translateY(-16px); }
.logo-cell:hover::after { opacity: 1; transform: none; }
/* grid lines that draw in (scale) with the logo reveal */
.grid-lines span { position: absolute; background: rgba(255,255,255,0.16); pointer-events: none; }
.grid-lines .hline { left: 0; width: 100%; height: 1px; transform: scaleX(0); transform-origin: left center; transition: transform var(--rv-dur) var(--rv-ease); }
.grid-lines .vline { top: 0; height: 100%; width: 1px; transform: scaleY(0); transform-origin: top center; transition: transform var(--rv-dur) var(--rv-ease); }
.logo-wall.group-in .hline, .service-wall.group-in .hline { transform: scaleX(1); }
.logo-wall.group-in .vline, .service-wall.group-in .vline { transform: scaleY(1); }

/* services (same rectilinear grid language as the logo wall) */
.services-sec { background: transparent; }
.services-head { font-size: clamp(28px, 4vw, 48px); font-weight: 600; letter-spacing: -0.02em; color: #fff; margin-bottom: 8px; }
.services-sub { color: rgba(255,255,255,0.5); margin-bottom: 48px; font-size: 16px; }
/* the dark blurred panel FADES in from nothing (no scroll-up), just after the text reveals */
.service-wall { position: relative; width: 100%; }
/* 5F: Expertise panel = BLUR ONLY (no dark fill), fading in just after the text reveals */
.service-wall::before { content: ""; position: absolute; inset: 0; z-index: 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity 0.8s ease 0.35s; }
.service-wall.group-in::before { opacity: 1; }
.service-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.service-cell { min-height: 176px; padding: 26px 28px; display: flex; flex-direction: column; justify-content: space-between; }
.service-cell .num { font-size: 12px; letter-spacing: 0.14em; color: rgba(255,255,255,0.4); font-variant-numeric: tabular-nums; }
.service-cell h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; color: #fff; letter-spacing: -0.01em; line-height: 1.18; text-shadow: 0 0 40px #000000; }

/* schedule */
.schedule-inner { width: 100%; max-width: 1180px; }
.schedule-head { font-size: clamp(30px, 4.5vw, 56px); font-weight: 600; letter-spacing: -0.025em; color: #fff; margin-bottom: 12px; }
.schedule-sub { color: rgba(255,255,255,0.55); margin-bottom: 40px; font-size: 17px; }
/* Cal.com inline embed — the script injects a <cal-inline> element into this container.
   min-height reserves space so there's no jump before load. */
#my-cal-inline-30min { width: 100%; }
cal-inline.cal-element-embed-dark {
    max-width: 1040px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
}

/* ---- 5F: line-2 word ROTATE, bleeding Expertise icons, testimonial logos, schedule CTA + focus line ---- */
/* line-2 trailing word: lead-in reveals normally, then ONE slot plays value → success → trust ONCE —
   wipe ON (gradient text, L→R), hold, wipe OFF + next wipe ON in one sweep. JS owns the per-frame clip-path. */
.cw-rotate .rot-slot { position: relative; display: inline-block; }
.cw-rotate .rot-ghost { position: absolute; left: 0; bottom: 0; }   /* outgoing word — wipes off in the same spot, no layout shift */
.cw-rotate .rot-word { display: inline-block; white-space: pre;
  padding-bottom: 0.18em;   /* extend the background box below the baseline so descenders (g,y) fill instead of clipping to transparent */
  background-image: linear-gradient(177deg, rgb(255, 210, 63) 20%, rgb(235, 31, 31) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;   /* kill the .sentence 40px black glow — it muddied the gradient word */
  filter: drop-shadow(0 3px 14px rgba(0,0,0,0.55));
  clip-path: inset(-0.7em 100% -0.7em -0.5em); will-change: clip-path; }   /* starts hidden; held outside the glyph so the soft shadow isn't hard-clipped */

/* Expertise icons (Option E) — the RDA line-symbol BIG in the bottom-right bleeding corner, filled with the
   gold→red gradient + a corner fade so it bleeds off the cropped corner; text bound to the left, top-aligned. */
.svc-bleed-cell { position: relative; overflow: hidden; display: block; }
.svc-bleed-cell .num { position: relative; z-index: 1; }
.svc-bleed-cell h3 { position: relative; z-index: 1; max-width: 62%; margin-top: 12px; }
/* a subtle dark radial behind the bottom-right icon so the symbol stays legible over the moving video */
.svc-bleed-cell::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(166% 147% at 102% 106%, rgba(0,0,0,.5), rgba(0,0,0,3) 32%, transparent 73%); }
.svc-fg-rda { position: absolute; display: block; pointer-events: none; z-index: 0;
  right: 28px; bottom: -117px; width: 109px; height: 300px;
  /* single mask layer only — Safari mishandles two-layer mask compositing and painted the
     extra corner-fade gradient layer as a solid square. The bleed fade now lives entirely
     in the background gradient (which already runs to transparent). */
  background: linear-gradient(180deg, #ffd23f 30%, #eb1f1f 51%, #00000000 61%);
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat; }

/* inline gradient words — *word* markers in data-sentence (variant B's ##% stats) get the same
   gold→red gradient fill as the rotating word, but always shown (no wipe) */
.sentence .grad-word {
  display: inline-block; padding-bottom: 0.18em;   /* same descender fix as .rot-word */
  background-image: linear-gradient(177deg, rgb(255, 210, 63) 20%, rgb(235, 31, 31) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 3px 14px rgba(0,0,0,0.55)); }

/* section CTA links under the partner + expertise grids — the gold→red gradient underline
   SWEEPS IN (left→right) as the link reveals, then thickens on hover */
.sec-link { display: inline-block; margin-top: 32px; font-size: 15px; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.72); text-decoration: none; padding-bottom: 3px;
  background-image: linear-gradient(90deg, rgb(255, 210, 63), rgb(235, 31, 31));
  background-repeat: no-repeat; background-position: left bottom; background-size: 0% 1px;
  text-shadow: 0 0 22px #000;
  transition: opacity var(--rv-dur) var(--rv-ease), transform var(--rv-dur) var(--rv-ease),
              color .25s ease, background-size .6s var(--rv-ease) .3s; }
.sec-link.in { background-size: 100% 1px; }
.sec-link:hover { color: #fff; background-size: 100% 2px; transition-delay: 0s; }

/* variant B: expertise bleed icons render WHITE (same fade-out geometry as the gradient set) */
.variant-b .svc-fg-rda { background: linear-gradient(180deg, #ffffff 42%, rgba(255,255,255,0) 61%); }

/* schedule footer: focus line under the booking block, then email + button */
.sched-focus { margin: 40px auto 0; max-width: 52ch; color: rgba(255,255,255,0.55); font-size: 17px; text-align: center; }
.sched-cta { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.sched-cta .cta-or { color: rgba(255,255,255,0.5); font-size: 15px; }
.sched-cta .cta-btn { display: inline-block; padding: 13px 26px; border-radius: 10px; background: #fff; color: #0b0b0c; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.sched-cta .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }

/* ===================== tablet ===================== */
@media (max-width: 820px) {
  .sec-inner { min-width: 0; }   /* let the flex item shrink so grids never overflow */
  /* 3-col partner wall + single-col services. The hardcoded 5-col line spans don't fit, so hide them and
     draw the grid as cell borders (matches any column count); fade them in with .group-in like the panel. */
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(1, 1fr); }
  .logo-wall .grid-lines, .service-wall .grid-lines { display: none; }
  .logo-grid, .service-grid { border-top: 1px solid transparent; border-left: 1px solid transparent; transition: border-color 0.8s ease 0.35s; }
  .logo-wall.group-in .logo-grid, .service-wall.group-in .service-grid { border-top-color: rgba(255,255,255,.16); border-left-color: rgba(255,255,255,.16); }
  .logo-grid .logo-cell, .service-grid .service-cell { border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
}

/* ===================== phones (~360–414px) ===================== */
@media (max-width: 640px) {
  /* pinned sections: tighter padding so content isn't crushed */
  .scrub-sec .pin { padding: 10vh 6vw; }

  /* logo wall: shorter cells */
  .logo-cell { height: 96px; }
  .logo-cell img { height: 34px; max-width: 76%; }
  .logo-cell::after { top: calc(50% + 20px); font-size: 10px; letter-spacing: 0.1em; }
  .logo-cell:hover img { transform: translateY(-12px); }

  /* services: smaller cells; keep the bleeding icon clear of the text */
  .service-cell { min-height: 0; padding: 20px 20px; gap: 12px; }
  .svc-bleed-cell h3 { max-width: 66%; }

  /* booking embed: a touch shorter on phones */
/*   #my-cal-inline-30min { min-height: 640px; } */

  /* schedule section: NO pinning on phones — the sticky scrub fought the calendar's own
     scrolling and made the embed nearly unusable. It lays out as a normal section. */
  .schedule-sec { height: auto; }
  .schedule-sec .pin { position: static; min-height: 0; padding: 12vh 6vw 14vh; }
}


/* ===================== video testimonials (rda-dev alt homepage only) =====================
   Two pinned stages, one between Expertise and the first client quote and one between the first
   and second quote, each holding ONE full-width Video Testimonial card that the page places after
   this module. Ground, dwell and reveal are the page's own; nothing about the card is restyled.
   The height matches .testimonial-sec exactly (220vh), so a card pins for the same beat as the
   quotes on either side of it and the sequence reads as one piece. */
.vt-sec { display: none; height: 220vh; }
.vt-sec.is-filled { display: block; }

/* The stage is the area BELOW the site header, not the whole viewport. The header is sticky
   (z-index 999) and paints OVER this section, so a card centred in a full 100vh has its top -
   including its top rounded corners - hidden behind it. Pinning the stage at the header's
   bottom edge and taking its height off the remainder centres the card in what is actually
   visible. --vt-hdr is the real measured header height (96px on wide screens, 80px and 68px at
   narrower breakpoints), published by the script at the foot of this module; the fallback only
   applies if that never runs. --vt-gap is the breathing room kept above and below the card. */
.vt-sec .pin {
  min-height: 0;
  top: var(--vt-hdr, 96px);
  height: calc(100vh - var(--vt-hdr, 96px));
  padding: var(--vt-gap, 32px) 7vw;
}

/* The card takes the same 1180px column as every other section, then scales as one piece to fit
   the height of that same area (--vt-fit, measured per section by the same script). Scaling beats
   narrowing: it keeps the approved quote wrapping exactly instead of re-breaking the lines at
   every window size, and the wide card has a 500px minimum height that narrowing cannot get under.
   The scale is 1 whenever the card already fits, which on a full-width card is almost every
   window - so in practice nothing is transformed at all. */
.vt-sec .sec-inner { max-width: 1180px; }
.vt-sec .rda-vt { transform: scale(var(--vt-fit, 1)); transform-origin: center center; }
.vt-sec .dnd-section > .row-fluid { max-width: none; }

/* the page rows the cards were moved OUT of: hidden only once every card has actually been
   relocated, so a failed move still shows the cards at the foot of the page rather than losing
   them */
.rda-vt-cards.is-moved { display: none; }

/* phones: the card lays its own media above its copy below 860px (the testimonial module's own
   breakpoint) and still fits the stage, so the section keeps pinning exactly like the quotes.
   Only the horizontal inset follows the homepage's own phone padding. */
@media (max-width: 640px) {
  .vt-sec .pin { padding: var(--vt-gap, 32px) 6vw; }
}


/* ===================== testimonial strip: the page beside it (three-js-home-strip only) =====================
   Generated by tools/build-home-strip-module.py. Everything sits behind the strip's own cutoff, so below
   1250 px wide the page is exactly the video-testimonial homepage, its own Joe Greco and Scott Davis
   sections included. */
@media (min-width:1250px){
  :root{--hp-w:clamp(220px,16vw,320px)}
  /* the strip carries the two video testimonials here, so the page's own sections step aside */
  .dnd-section.rda-vt-cards,.scrub-sec.vt-sec{display:none!important}
  /* the page lays itself out in the room left of the strip; type and breakpoints still read the window */
  body{margin-right:var(--hp-w)}
  /* the fixed header spans the room, not the window; its menu column lines up with the content column,
     never under 960 so the full menu stays on one line */
  .page--dark-header #hs_cos_wrapper_header{left:0;right:var(--hp-w);width:auto}
  .page--dark-header #hs_cos_wrapper_header .nav-container{margin:0 auto;
    max-width:max(960px,min(var(--layout-content-width),calc(86vw - var(--hp-w) + 20px)))}
  .scroll-hint{left:calc((100vw - var(--hp-w)) / 2)}
  /* Ask RDA draws its button 28 px from its host's right edge: the host becomes the room */
  ai12z-bot{position:fixed!important;z-index:1001;top:0!important;left:0!important;width:calc(100vw - var(--hp-w))!important;height:100vh!important;
    transform:translateZ(0);pointer-events:none}
}
/* Expertise takes its own tablet arrangement (from its max-width:820px block) where the room is too tight */
@media (min-width:1250px) and (max-width:1570px){
  .services-sec .sec-inner{min-width:0}
  .service-grid{grid-template-columns:repeat(1,1fr)}
  .service-wall .grid-lines{display:none}
  .service-grid{border-top:1px solid transparent;border-left:1px solid transparent;transition:border-color .8s ease .35s}
  .service-wall.group-in .service-grid{border-top-color:rgba(255,255,255,.16);border-left-color:rgba(255,255,255,.16)}
  .service-grid .service-cell{border-right:1px solid rgba(255,255,255,.16);border-bottom:1px solid rgba(255,255,255,.16)}
}
/* Agentic Partnerships logo grid, every width: no hover on a logo without a case study; a logo with one
   links to it over the whole cell and shows "Case study" on hover or keyboard focus */
.logo-grid .logo-cell:not(.has-cs):hover img{transform:none}
.logo-grid .logo-cell:not(.has-cs)::after{content:none;opacity:0;transform:translateY(10px)}
.logo-grid .logo-cell.has-cs::after{content:"Case study";font-size:var(--font-size-small,14px);font-weight:400;line-height:1.2;
  letter-spacing:normal;text-transform:none;color:#fff}
.logo-grid .logo-cell.has-cs:focus-within img{transform:translateY(-16px)}
.logo-grid .logo-cell.has-cs:focus-within::after{opacity:1;transform:none}
.logo-grid .logo-cs{position:absolute;inset:0;z-index:2;cursor:pointer}
.logo-grid .logo-cs:focus-visible{outline:2px solid #fe9426;outline-offset:-4px}
@media (max-width:820px){.logo-grid .logo-cell.has-cs:focus-within img{transform:translateY(-12px)}}

/* ===================== testimonial strip ===================== */
.hp{--orange:#fc630d;--o1:#fe9426;--o2:#fb6e1f;--ease:cubic-bezier(.16,1,.3,1);--hp-w:clamp(220px,16vw,320px);
  --hp-rule:rgba(255,255,255,.16);--hp-fade:min(160px,18vh);
  position:fixed;z-index:1000;right:0;top:0;bottom:0;width:var(--hp-w);overflow:hidden;overscroll-behavior:contain;
  background:#000;border-left:1px solid var(--hp-rule);box-sizing:border-box;
  font-family:"Avenir","Avenir Next",-apple-system,BlinkMacSystemFont,sans-serif;color:#fff;text-align:left;
  -webkit-font-smoothing:antialiased;opacity:0;animation:hp-in 1.2s var(--ease) .4s forwards}
@keyframes hp-in{to{opacity:1}}
.hp *,.hp *::before,.hp *::after{box-sizing:border-box}
.hp button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;text-transform:none;letter-spacing:normal;border-radius:0;box-shadow:none}
.hp-track{position:absolute;left:0;right:0;top:0;will-change:transform}

.hp-cell{position:relative;margin:0;border-bottom:1px solid var(--hp-rule)}
.hp-vid{padding:calc(var(--hp-w) * .1) calc(var(--hp-w) * .09) calc(var(--hp-w) * .12)}
.hp .hp-media{position:relative;display:block;width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:2px;background:#16000f}
.hp-media img,.hp-media video{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:50% 22%}
.hp-media video{opacity:0;transition:opacity .9s var(--ease)}
.hp-media video.is-on{opacity:1}
.hp-media::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to top,rgba(0,0,0,.45),rgba(0,0,0,0) 40%)}
.hp .hp-play{position:absolute;z-index:1;right:12px;bottom:12px;width:40px;height:40px;border-radius:50%;
  background:linear-gradient(var(--o1),var(--o2));display:grid;place-items:center;transition:transform .5s var(--ease)}
.hp-play svg{display:block;width:13px;height:13px;margin-left:3px;fill:#fff}
.hp-media:hover .hp-play,.hp-media:focus-visible .hp-play{transform:scale(1.08)}
.hp-media:focus-visible{outline:2px solid var(--o1);outline-offset:4px}
.hp .hp-quote{margin:22px 0 0;padding:0;border:0;background:none;quotes:none;font-size:clamp(16px,1.16vw,20px);font-weight:400;line-height:1.4;
  letter-spacing:-.1px;color:#fff;font-style:normal;text-align:left;text-wrap:pretty}
.hp .hp-quote::before{content:"\201C"}
.hp .hp-quote::after{content:"\201D"}
.hp-who{display:block;margin-top:18px;padding-top:14px;border-top:1px solid var(--hp-rule)}
.hp-name{display:block;font-size:14px;font-weight:600;line-height:1.3}
.hp-role{display:block;margin-top:3px;font-size:12.5px;line-height:1.4;color:rgba(255,255,255,.62)}

.hp-logo{display:flex;align-items:center;justify-content:center;padding:calc(var(--hp-w) * .16) 0;overflow:hidden}
.hp-logo img{display:block;width:calc(var(--hp-w) * var(--f));height:auto;max-width:none;
  margin:calc(var(--hp-w) * var(--mt,0) * -1) 0 calc(var(--hp-w) * var(--mb,0) * -1);
  filter:brightness(0) invert(1) drop-shadow(0 0 40px #000);opacity:.9;transition:transform .6s var(--ease)}
.hp-type{display:block;font-size:calc(var(--hp-w) * .087);font-weight:600;line-height:1;letter-spacing:-.01em;color:#fff;opacity:.94;
  white-space:nowrap;transition:transform .6s var(--ease)}
.hp .hp-logo--cs{color:#fff;text-decoration:none;cursor:pointer}
.hp-logo--cs:hover img,.hp-logo--cs:hover .hp-type,.hp-logo--cs:focus-visible img,.hp-logo--cs:focus-visible .hp-type{transform:translateY(-8px)}
.hp-cs{position:absolute;left:0;right:0;top:calc(100% - var(--hp-w) * .16 + 4px);text-align:center;
  font-size:14px;font-weight:400;line-height:1.2;letter-spacing:normal;text-transform:none;color:#fff;
  opacity:0;transform:translateY(6px);transition:opacity .35s ease,transform .6s var(--ease);pointer-events:none}
.hp-logo--cs:hover .hp-cs,.hp-logo--cs:focus-visible .hp-cs{opacity:1;transform:none}
.hp-logo--cs:focus-visible{outline:2px solid var(--o1);outline-offset:-6px}

.hp-fade{position:absolute;z-index:2;left:0;right:0;height:var(--hp-fade);pointer-events:none}
.hp-fade--top{top:0;background:linear-gradient(#000 0,rgba(0,0,0,.85) 30%,rgba(0,0,0,0))}
.hp-fade--bot{bottom:0;background:linear-gradient(to top,#000 0,rgba(0,0,0,.85) 30%,rgba(0,0,0,0))}

dialog.hp-box{position:fixed!important;inset:0!important;margin:auto!important;padding:0;border:0;overflow:visible;background:#000;border-radius:6px;
  width:min(1100px,92vw,calc(84vh * 16 / 9));height:auto;aspect-ratio:16/9;max-width:none;max-height:none;box-shadow:0 30px 120px rgba(0,0,0,.6)}
dialog.hp-box::backdrop{background:rgba(10,0,8,.86);backdrop-filter:blur(6px)}
.hp-boxbody{width:100%;height:100%;overflow:hidden;border-radius:6px}
.hp-box iframe,.hp-box video{width:100%;height:100%;border:0;display:block;background:#000}
.hp-box .hp-x{position:absolute;top:-48px;right:-6px;width:40px;height:40px;padding:0;font-size:32px;line-height:1;color:#fff;background:none;border:0;cursor:pointer}
.hp-x:focus-visible{outline:2px solid #fe9426;outline-offset:2px}

.hp.hp-asking{visibility:hidden;pointer-events:none;transition:visibility 0s .4s}

/* below 1250 wide there is no strip, and the page (its own testimonial sections included) is the vt page */
@media (max-width:1249px){.hp{display:none}}
@media (prefers-reduced-motion:reduce){
  .hp{animation:none;opacity:1;overflow-y:auto}
  .hp-track{position:relative;will-change:auto}
  .hp-cell:not([data-copy="0"]){display:none}
  .hp-fade{position:sticky;display:block}
  .hp-fade--top{top:0;margin-bottom:calc(-1 * var(--hp-fade))}
  .hp-media video,.hp-logo img,.hp-play,.hp-type,.hp-cs{transition:none}
  .hp.hp-asking{transition:none}
}

/* ===================== hero headline from first paint (three-js-home-strip) =====================
   The words are in the HTML; they fade in from CSS with the engine's own stagger (42 ms), duration and curve,
   150 ms after first paint, instead of waiting for the engine script plus its 1.2 s timer. */
@keyframes hs-word-in{from{opacity:0;transform:translateY(30px)}to{opacity:1;transform:none}}
.hero-welcome .sentence .word{animation:hs-word-in var(--rv-dur) var(--rv-ease) both;animation-delay:calc(150ms + var(--i) * 42ms)}
@media (prefers-reduced-motion:reduce){.hero-welcome .sentence .word{animation:none;opacity:1;transform:none}}


/* ===================== Video Testimonial cards: the rda-video-testimonial module's own CSS (three-js-home-strip) ===================== */
/* ============================================================
   RDA — Video Testimonial block
   Reusable HubSpot module: a muted looping clip of the speaker,
   a pull quote, attribution, and a "Play video" action that opens
   the full testimonial in a lightbox.

   Variants (data-variant):
     wide     — full-width card, copy left / speaker right (default)
     compact  — card for grids and sidebars, square loop on top

   Themes (data-theme):
     dark     — RDA dark-purple radial (default, matches live sections)
     light    — glass card on light ground

   Speaker composition (data-focus, wide only):
     center   — speaker looks straight to camera → centred in the clip
                area (default)
     right    — speaker is at an angle, looking toward the copy →
                composed to the right, longer dissolve

   The clip is blended into the card with a CSS mask, so it dissolves
   into whatever ground sits beneath it (no colour-matched overlay,
   no seam). Values mirror rdadigital.com computed styles
   (2026-10-15) and clients/RDA/DESIGN-SYSTEM.md.
   ============================================================ */

.rda-vt {
  --vt-purple: #481031;
  --vt-orange: #fc630d;
  --vt-white: #ffffff;
  --vt-ground: radial-gradient(107.94% 133.12% at -6.99% -10.14%, #7f0369 13.94%, rgba(20, 0, 16, .93) 66.83%);
  --vt-cta: linear-gradient(#fe9426 0px, #fb6e1f 100%);
  --vt-radius: 16px;
  --vt-font: "Avenir", "Avenir Next", -apple-system, system-ui, sans-serif;
  --vt-pad: 56px;

  /* wide-layout clip geometry (overridden by data-focus) */
  --vt-clip-width: 60%;      /* how far the clip reaches in from the right */
  --vt-clip-solid: 42%;      /* where the dissolve ends and the clip is fully opaque (of clip width) */
  --vt-clip-x: 50%;          /* object-position x */

  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: var(--vt-radius);
  background: var(--vt-ground);
  color: var(--vt-white);
  font-family: var(--vt-font);
  box-shadow: 0 1px 20px 4px rgba(0, 0, 0, .08);
  isolation: isolate;
}

.rda-vt[data-focus="right"] {
  --vt-clip-width: 66%;
  --vt-clip-solid: 48%;
  --vt-clip-x: 74%;
}

/* ---------- wide (default) ---------- */
.rda-vt[data-variant="wide"],
.rda-vt:not([data-variant]) {
  grid-template-columns: minmax(0, 50%) minmax(0, 50%);
  min-height: 500px;
}

.rda-vt__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--vt-clip-width);
  background: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 var(--vt-clip-solid));
          mask-image: linear-gradient(90deg, transparent 0%, #000 var(--vt-clip-solid));
}

.rda-vt__media video,
.rda-vt__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--vt-clip-x) 30%;
  display: block;
}

/* Brand tint on the footage + a soft foot so the clip never
   fights the card's bottom edge. */
.rda-vt__media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(42, 2, 34, 0) 70%, rgba(42, 2, 34, .45) 100%),
    linear-gradient(0deg, rgba(127, 3, 105, .16), rgba(127, 3, 105, .16));
  pointer-events: none;
}

.rda-vt__body {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: var(--vt-pad);
}

.rda-vt__eyebrow {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--vt-orange);
}

.rda-vt__quote {
  margin: 0;
  font-size: 32px;            /* system Testimonial style is 36/150%; 32 keeps a 140-char quote to five lines in the wide card */
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -1px;
  text-wrap: balance;
}

.rda-vt__quote::before { content: "\201C"; }
.rda-vt__quote::after  { content: "\201D"; }

.rda-vt__who { display: flex; flex-direction: column; gap: 2px; }
.rda-vt__name { font-size: 18px; font-weight: 700; line-height: 1.65; }
.rda-vt__role { font-size: 16px; font-weight: 400; line-height: 1.5; color: rgba(255, 255, 255, .72); }

.rda-vt__play {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--vt-white);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .7px;
  text-transform: uppercase;
  line-height: 1.65;
  cursor: pointer;
  text-decoration: none;
}

.rda-vt__play-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--vt-cta);
  box-shadow: 0 6px 18px rgba(252, 99, 13, .35);
  transition: transform .25s ease, box-shadow .25s ease;
}

.rda-vt__play-icon svg { width: 18px; height: 18px; margin-left: 3px; fill: var(--vt-white); }

.rda-vt__play:hover .rda-vt__play-icon,
.rda-vt__play:focus-visible .rda-vt__play-icon {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(252, 99, 13, .5);
}

.rda-vt__play:focus-visible { outline: 2px solid var(--vt-orange); outline-offset: 6px; border-radius: 4px; }

/* The whole card is a hit target; the button carries the a11y name. */
.rda-vt__hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
}

/* ---------- compact ---------- */
.rda-vt[data-variant="compact"] {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  min-height: 0;
  --vt-pad: 28px;
}

.rda-vt[data-variant="compact"] .rda-vt__media {
  position: relative;
  inset: auto;
  width: 100%;
  grid-column: 1;
  grid-row: 1;
  aspect-ratio: 1 / 1;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
}

.rda-vt[data-variant="compact"] .rda-vt__media::before {
  background: linear-gradient(0deg, rgba(127, 3, 105, .16), rgba(127, 3, 105, .16));
}

.rda-vt[data-variant="compact"] .rda-vt__media video,
.rda-vt[data-variant="compact"] .rda-vt__media img { object-position: 50% 20%; }

.rda-vt[data-variant="compact"] .rda-vt__body {
  grid-column: 1;
  grid-row: 2;
  gap: 14px;
  padding: 8px var(--vt-pad) var(--vt-pad);
  margin-top: -72px;
}

.rda-vt[data-variant="compact"] .rda-vt__eyebrow { font-size: 13px; }
.rda-vt[data-variant="compact"] .rda-vt__quote { font-size: 21px; line-height: 1.36; letter-spacing: -.3px; font-weight: 800; }
.rda-vt[data-variant="compact"] .rda-vt__name { font-size: 16px; }
.rda-vt[data-variant="compact"] .rda-vt__role { font-size: 14px; }
.rda-vt[data-variant="compact"] .rda-vt__play-icon { width: 40px; height: 40px; }
.rda-vt[data-variant="compact"] .rda-vt__play-icon svg { width: 14px; height: 14px; }

/* ---------- light theme ---------- */
.rda-vt[data-theme="light"] {
  background: rgba(255, 255, 255, .8);
  color: var(--vt-purple);
  border: 1px solid var(--vt-white);
  box-shadow: 1px 1px 22px rgba(100, 10, 23, .03);
  backdrop-filter: blur(9.5px);
}
.rda-vt[data-theme="light"] .rda-vt__role { color: #6b5560; }
.rda-vt[data-theme="light"] .rda-vt__play { color: var(--vt-purple); }
.rda-vt[data-theme="light"] .rda-vt__media::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .45) 100%);
}
.rda-vt[data-theme="light"][data-variant="compact"] .rda-vt__media::before { background: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .rda-vt[data-variant="wide"],
  .rda-vt:not([data-variant]) {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 0;
    --vt-pad: 28px;
  }
  .rda-vt[data-variant="wide"] .rda-vt__media,
  .rda-vt:not([data-variant]) .rda-vt__media {
    position: relative;
    inset: auto;
    width: 100%;
    grid-column: 1; grid-row: 1;
    aspect-ratio: 16 / 10;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .rda-vt[data-variant="wide"] .rda-vt__media::before,
  .rda-vt:not([data-variant]) .rda-vt__media::before {
    background: linear-gradient(0deg, rgba(127, 3, 105, .16), rgba(127, 3, 105, .16));
  }
  .rda-vt[data-variant="wide"] .rda-vt__media video,
  .rda-vt:not([data-variant]) .rda-vt__media video,
  .rda-vt[data-variant="wide"] .rda-vt__media img,
  .rda-vt:not([data-variant]) .rda-vt__media img { object-position: 50% 30%; }
  .rda-vt[data-variant="wide"] .rda-vt__body,
  .rda-vt:not([data-variant]) .rda-vt__body {
    grid-column: 1; grid-row: 2;
    margin-top: -64px;
    padding-top: 0;
    gap: 16px;
  }
  .rda-vt__quote { font-size: 24px; line-height: 1.4; letter-spacing: -.5px; }
}

/* ---------- motion ----------
   The poster paints first; the clip takes over on its own once it can play.
   (No opacity fade: when autoplay is blocked the clip never reports
   loadeddata and the poster would stay hidden.) */
@media (prefers-reduced-motion: reduce) {
  .rda-vt__media video { display: none; }
  .rda-vt__play-icon { transition: none; }
}

/* ---------- lightbox ---------- */
.rda-vt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  /* override the UA <dialog> box: fit-content size, auto margins, border */
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 24px;
  background: rgba(20, 0, 16, .92);
  backdrop-filter: blur(8px);
}
.rda-vt-lightbox[open] { display: flex; }
.rda-vt-lightbox::backdrop { background: transparent; }

.rda-vt-lightbox__frame {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.rda-vt-lightbox__frame iframe,
.rda-vt-lightbox__frame video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}

.rda-vt-lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.rda-vt-lightbox__close:hover { background: var(--vt-orange, #fc630d); }

.rda-vt-lightbox__caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  color: rgba(255, 255, 255, .8);
  font-family: var(--vt-font, "Avenir", sans-serif);
  font-size: 14px;
}

/* ============================================================
   ADDITIONS (2026-10-19) — the two options the review preview
   proved, both optional and both off by default on a bare
   instance. Jason's block above is byte-identical to his file;
   everything below is appended, nothing is edited.
   ============================================================ */

/* ---------- Fade reach = Wide ----------
   The card's purple reaches further across the clip, so the quote
   stays the loudest thing on the card and the clip's near edge
   softens instead of stopping. Lifted from the approved review
   page's own override, scoped to a class instead of the page. */
.rda-vt.rda-vt--fade-wide[data-variant="wide"][data-focus="right"]  { --vt-clip-solid: 66%; }
.rda-vt.rda-vt--fade-wide[data-variant="wide"][data-focus="center"] { --vt-clip-solid: 64%; }
.rda-vt.rda-vt--fade-wide[data-variant="compact"] .rda-vt__media {
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
}

/* ---------- Client mark, bottom-right of the card ----------
   A white client logo, or the company name as small caps when
   there is no usable logo. */
.rda-vt--logo .rda-vt__client {
  position: absolute;
  right: var(--vt-pad);          /* same gutter as the quote */
  bottom: var(--vt-pad);
  z-index: 4;                    /* over the media tint, body and click layer */
  margin: 0;
  display: flex;
  align-items: flex-end;
  pointer-events: none;          /* the whole card stays one click target */
}

/* --- legibility scrim ---
   Deepens the card's OWN bottom fade under the mark, so a white logo
   holds up when the footage behind it is light (a pale shirt, a window).
   This darkens the video, not the logo — no effect is applied to the
   mark itself, which Acuity's logo policy forbids. */
.rda-vt--logo .rda-vt__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg,
    rgba(42, 2, 34, .8) 0%, rgba(42, 2, 34, .4) 48%, rgba(42, 2, 34, 0) 100%);
}
.rda-vt--logo[data-theme="light"] .rda-vt__media::after {
  background: linear-gradient(0deg,
    rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .36) 45%, rgba(255, 255, 255, 0) 100%);
}

/* --- logo --- */
.rda-vt--logo .rda-vt__client img {
  display: block;
  height: 46px;                  /* desktop — 2026-10-20, up from 32px */
  width: auto;                   /* proportions locked — never set both */
  max-width: 275px;
}

/* --- name fallback --- */
.rda-vt--logo .rda-vt__client--name {
  display: block;
  font-family: var(--vt-font);
  font-size: 18px;               /* scaled in step with the logo */
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: right;
  color: rgba(255, 255, 255, .9);
  max-width: 275px;
  text-wrap: balance;
}
.rda-vt--logo .rda-vt__client--name span { display: block; }

/* --- light theme: a white mark would vanish, so the author picks the
       dark artwork; the name fallback switches tone here. --- */
.rda-vt--logo[data-theme="light"] .rda-vt__client--name { color: rgba(72, 16, 49, .72); }

/* --- compact card ---
   The Play button is left-aligned on this same row, so the name box is
   held narrow enough that the two can never collide on a 300px card. */
.rda-vt--logo[data-variant="compact"] .rda-vt__client img { height: 30px; max-width: 180px; }
.rda-vt--logo[data-variant="compact"] .rda-vt__client--name {
  font-size: 14px; letter-spacing: .06em; line-height: 1.3; max-width: 135px;
}

/* --- phones: the wide card restacks here too --- */
@media (max-width: 860px) {
  .rda-vt--logo .rda-vt__client img { height: 30px; max-width: 180px; }
  .rda-vt--logo .rda-vt__client--name { font-size: 14px; letter-spacing: .06em; line-height: 1.3; max-width: 135px; }
}

/* --- very narrow cards: keep the mark clear of the Play button --- */
@media (max-width: 380px) {
  .rda-vt--logo .rda-vt__client img { height: 24px; }
  .rda-vt--logo .rda-vt__client--name { font-size: 12px; max-width: 115px; }
}
