/* ---------- NAV ---------- */
/* The global nav appearance (white bar + dark ink + brand-logo transition fix)
   now lives in site.css so it applies on every page, not just where redesign.css
   loads. The nav CTA wipe-fill below is also mirrored globally in site.css. */
/* Nav CTA: outlined carbon-black with a directional wipe-fill on hover */
.nav-bar .button.w-button {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: transparent !important;
  color: #040810 !important;
  border: 1px solid #040810 !important;
  transition: color .35s ease;
}
.nav-bar .button.w-button::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #F0F4F8;
  transform: translateX(-100%); transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.nav-bar .button.w-button:hover { color: #040810 !important; }
.nav-bar .button.w-button:hover::before { transform: translateX(0); }

/* ============================================================
   Homepage redesign — matches Figma/PDF mockup.
   Scoped under .rd-* classes so it never collides with the
   Webflow-generated styles used by the kept nav/footer and the
   untouched "Our fully autonomous agents…" (#agent-flow) section.
   ============================================================ */

:root {
  /* Brand palette — from Medallion Color Guide */
  --rd-blue: #2941F3;        /* Primary · Cobalt (core) */
  --rd-blue-hover: #1c2fc4;
  --rd-iris: #5068F8;        /* Primary · Iris (mid) */
  --rd-navy: #091628;        /* Anchor · Abyss (core dark) */
  --rd-navy-2: #143E75;      /* Anchor · Navy (core) */
  --rd-ink: #14202c;
  --rd-grey: #5b6670;
  --rd-grey-2: #7888a0;      /* Neutral · Steel */
  --rd-line: #e6e8eb;
  --rd-bg-soft: #f0f4f8;     /* Neutral · Clinical white */
  --rd-lime: #D9F597;        /* Accent · Lime */
  --rd-fern: #5a8800;        /* Accent · Fern (mid) */
  --rd-teal: #3DB8B8;        /* Complementary · Aqua (light) */
  --rd-lagoon: #0E7070;      /* Complementary · Lagoon (mid) */
  --rd-sky: #e0f5f5;         /* Complementary · Mist (tint) */
  --rd-ice: #EEF2FF;         /* Primary · Ice (tint) */
  /* Signature gradients */
  --rd-grad-deep: linear-gradient(135deg, #040810 0%, #091628 45%, #143E75 100%);   /* Deep space */
  --rd-grad-electric: linear-gradient(135deg, #091628 0%, #0a1880 55%, #2941F3 100%); /* Electric depth */
  --rd-grad-teal: linear-gradient(135deg, #091628 0%, #0A3D3D 55%, #0E7070 100%);     /* Abyss → teal */
  --rd-radius: 4px;
  --rd-maxw: 1200px;
  --rd-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rd-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.rd { font-family: var(--rd-font); color: var(--rd-ink); -webkit-font-smoothing: antialiased; }
.rd *, .rd *::before, .rd *::after { box-sizing: border-box; }
.rd-wrap { max-width: var(--rd-maxw); margin: 0 auto; padding: 0 32px; }
.rd-section { padding: 96px 0; }

.rd h1, .rd h2, .rd h3, .rd p { margin: 0; }
.rd-eyebrow {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--rd-navy); text-transform: none;
  padding: 7px 16px; border-radius: 999px; border: 0;
  background: var(--rd-lime);            /* Lime */
  box-shadow: 0 2px 8px -6px rgba(9,22,40,.25);
}
.rd-eyebrow__icon {
  width: 16px; height: 16px; display: inline-block; flex: none;
  background: var(--rd-navy);
  -webkit-mask: url(/assets/cdn.prod.website-files.com/6877cbe9ead9a7e4d203574e/69c31f5aca5771bf0253c4d5_Icon_Agent-Workflows.svg) center / contain no-repeat;
          mask: url(/assets/cdn.prod.website-files.com/6877cbe9ead9a7e4d203574e/69c31f5aca5771bf0253c4d5_Icon_Agent-Workflows.svg) center / contain no-repeat;
  transform-origin: center; animation: rd-eyebrow-spin 6s ease-in-out infinite;
}
/* Periodic spin: one smooth rotation, then a rest before repeating */
@keyframes rd-eyebrow-spin { 0% { transform: rotate(0deg); } 15% { transform: rotate(360deg); } 100% { transform: rotate(360deg); } }
/* Reveal on scroll-into-view (class toggled by JS) */
.rd-eyebrow.rd-reveal { opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.rd-eyebrow.rd-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rd-eyebrow, .rd-eyebrow__icon { animation: none; }
  .rd-eyebrow.rd-reveal { opacity: 1; transform: none; transition: none; }
}
.rd-h1 { font-family: var(--rd-display); font-size: clamp(32px, 3.9vw, 48px); line-height: 1.08; font-weight: 400; letter-spacing: -0.02em; }
.rd-h2 { font-family: var(--rd-display); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; font-weight: 300; letter-spacing: -0.02em; }
.rd-h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }
.rd-lead { font-size: 18px; line-height: 1.55; color: var(--rd-grey); }
.rd-muted { color: var(--rd-grey); }

/* Buttons — Routable-style directional wipe-fill on hover */
.rd-btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11.25px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 12.75px 22.5px; border-radius: 3px; text-decoration: none; cursor: pointer;
  transition: color .35s ease, border-color .35s ease;
}
.rd-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateX(-100%); transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.rd-btn:hover::before { transform: translateX(0); }
/* `.rd .rd-btn.rd-btn--primary` (0,3,0) outranks the inline `.p26-root a:not(.p26-btn)`
   rule (0,2,1) that was forcing the link to `color: inherit` (dark ink). */
.rd-btn--primary { background: var(--rd-blue); }
.rd .rd-btn.rd-btn--primary { color: #fff; }
.rd-btn--primary::before { background: #0A1880; }   /* wipes to Midnight blue */
.rd-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.rd-btn--ghost::before { background: #fff; }
.rd-btn--ghost:hover { color: var(--rd-navy); border-color: #fff; } /* text → Abyss on white fill */

/* ---------- HERO ---------- */
.rd-hero { background: #fff; padding: 132px 0 0; text-align: center; }
.rd-hero__inner { max-width: 880px; margin: 0 auto; }
.rd-hero .rd-h1 { margin-bottom: 20px; }
.rd-hero .rd-lead { max-width: 620px; margin: 0 auto 32px; }
.rd-hero__logos {
  margin-top: 64px; display: flex; align-items: center; gap: 40px;
  flex-wrap: wrap; justify-content: center;
}
.rd-hero__logos-label { font-size: 14px; color: var(--rd-grey); max-width: 180px; text-align: left; line-height: 1.4; flex: none; }
/* Gong-style auto-scrolling logo marquee. Logos tinted to brand Carbon black. */
.rd-marquee {
  flex: 1; min-width: 0; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.rd-marquee__track { display: flex; align-items: center; width: max-content; animation: rd-logo-scroll 45s linear infinite; }
/* height needs to beat the inline `.p26-root img { height:auto }` rule (equal specificity, loads later),
   otherwise logos fall back to their natural 35px. 26px ≈ 25% smaller than that. */
.rd .rd-marquee__track img { height: 26px; width: auto; margin: 0 28px; opacity: 1; filter: brightness(0); flex: none; }
@keyframes rd-logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .rd-marquee__track { animation: none; }
}
.rd-hero__media {
  margin: 56px auto 0; max-width: 1120px; border-radius: 6px; overflow: hidden;
  box-shadow: 0 16px 36px -24px rgba(10,22,38,.25); line-height: 0; background: var(--rd-navy);
  /* Scroll-linked scale (set via JS). Start slightly smaller, grow to full. */
  transform: scale(0.93); transform-origin: center top; will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .rd-hero__media { transform: none !important; }
}
.rd-hero__media video, .rd-hero__media img { width: 100%; height: auto; display: block; }

/* ---------- AGENT WORKFLOWS CARD ---------- */
.rd-aw { background: #fff; }
.rd-aw__card {
  background: #fff; border: 1px solid var(--rd-line); border-radius: 6px;
  padding: 48px; box-shadow: 0 16px 36px -24px rgba(10,22,38,.25);  /* matches hero video */
}
.rd-aw .rd-h2 { margin: 18px 0 40px; max-width: 640px; }
.rd-aw__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.rd-acc { border-top: 1px solid var(--rd-line); }
.rd-acc__item { border-bottom: 1px solid var(--rd-line); position: relative; }
/* Auto-advance progress bar (sits on the item's bottom rule) */
.rd-acc__progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--rd-blue); }
.rd-acc__head {
  width: 100%; background: none; border: 0; text-align: left; cursor: pointer;
  font-family: inherit; font-size: 19px; font-weight: 500; color: var(--rd-ink);
  padding: 20px 0; display: flex; justify-content: space-between; align-items: center;
}
.rd-acc__head:hover { color: var(--rd-blue); }
/* Tighten the gap between the open item's title and its description */
.rd-acc__item.is-open .rd-acc__head { padding-bottom: 6px; }
.rd-acc__body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
/* max-height matches the reserved body height EXACTLY (not an oversized 220px).
   With slack, a closing item lingers at full height while the next one expands,
   so two bodies are briefly open and the column grows then snaps back — the
   "bounce". Matching the heights makes open/close mirror, keeping the column
   (and the page) a constant height through the rotation. */
.rd-acc__item.is-open .rd-acc__body { max-height: 116px; }
/* Reserve a constant body height so switching items never changes the section
   height. 116px fits the tallest two-line copy in the two-column band (the old
   96px clipped/varied there); shorter one-line copy just keeps the slack. */
.rd-acc__body-inner { padding: 0 0 22px; min-height: 116px; }
.rd-acc__body p { color: var(--rd-grey); font-size: 16px; line-height: 1.55; margin-bottom: 14px; }
.rd-acc__more { color: var(--rd-blue); font-weight: 600; font-size: 14px; text-decoration: none; }
.rd-acc__icon { color: var(--rd-grey-2); flex: none; transition: transform .2s ease; }
.rd-acc__item.is-open .rd-acc__icon { transform: rotate(45deg); color: var(--rd-blue); }
/* Visual floats freely in the column (no box); height matches the left list. */
.rd-aw__visuals { position: relative; min-height: 100%; }
/* Each graphic cross-fades in as its tab becomes active — no scale/translate,
   so the section keeps a constant height (the inner pieces do the animating). */
.rd-aw__visual {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .5s ease;
}
.rd-aw__visual.is-active { opacity: 1; pointer-events: auto; }
.rd-aw__visual > img { width: 100%; height: 100%; object-fit: contain; object-position: center top; display: block; }
/* Layered, multi-piece visual (photo + decorative shapes + widget) with staggered entrance */
.rd-aw__visual--layered.is-active img { animation: none; }  /* override generic float */
.rd-awl { position: absolute; inset: 0; }
/* `.rd` prefix raises specificity above the inline `.p26-root img { height:auto }` rule;
   without it the photo renders at its natural height and overflows its container (on mobile
   it spills onto the progress dashes + text below). */
.rd .rd-awl__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 6px; }
.rd-awl__spark, .rd-awl__rings, .rd-awl__widget { position: absolute; }
.rd-awl__spark { top: 4%; left: 42%; width: 24%; mix-blend-mode: overlay;
  opacity: 0; transform: scale(.6) rotate(-22deg);
  transition: opacity .6s ease, transform .8s cubic-bezier(.16, .84, .34, 1); }
.rd-awl__rings { top: 3%; right: -8%; width: 32%;
  opacity: 0; transform: scale(.85);
  transition: opacity .7s ease, transform .8s ease; }
.rd-awl__widget { bottom: 6%; right: 5%; left: auto; width: 56%;
  opacity: 0; transform: translateY(42px) scale(.94);
  transition: opacity .55s ease, transform .7s cubic-bezier(.16, .84, .34, 1);
  filter: drop-shadow(0 10px 18px rgba(10, 22, 38, .18)); }
.rd-aw__visual--layered.is-active .rd-awl__spark { opacity: .6; transform: scale(1) rotate(0deg); transition-delay: .18s; }
.rd-aw__visual--layered.is-active .rd-awl__rings { opacity: 1; transform: none; transition-delay: .28s; }
.rd-aw__visual--layered.is-active .rd-awl__widget { opacity: 1; transform: none; transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  .rd-awl__spark, .rd-awl__rings, .rd-awl__widget { opacity: 1 !important; transform: none !important; transition: none; }
}
/* Provider-enrollment widget assembled from animated pieces (card frame coords: 393×325) */
.rd-awl__widget.rd-pe { aspect-ratio: 393 / 325; filter: none; }
.rd-pe > img { position: absolute; display: block; }
.rd-pe__card { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(10, 22, 38, .18)); }
.rd-pe__pie { left: 6.9%; top: 38.4%; width: 86.5%; transform-origin: 50% 100%; }
.rd-pe__stat { left: 37%; top: 36%; width: 26%; }
.rd-pe__label { top: 23.3%; }
.rd-pe__label--1 { left: 5.3%; width: 20.6%; }
.rd-pe__label--2 { left: 29.5%; width: 16.3%; }
.rd-pe__label--3 { left: 49.4%; width: 18.8%; }
.rd-pe__label--4 { left: 69%; width: 20.1%; }
/* Pieces populate in sequence once the tab is active */
.rd-pe__pie, .rd-pe__stat, .rd-pe__label { opacity: 0; transition: opacity .5s ease, transform .6s cubic-bezier(.16, .84, .34, 1); }
.rd-pe__pie { transform: scale(.9); transform-origin: 50% 100%; }
.rd-pe__stat { transform: translateY(8px) scale(.8); }
.rd-pe__label { transform: translateY(6px); }
.rd-aw__visual--layered.is-active .rd-pe__label--1 { opacity: 1; transform: none; transition-delay: .5s; }
.rd-aw__visual--layered.is-active .rd-pe__label--2 { opacity: 1; transform: none; transition-delay: .6s; }
.rd-aw__visual--layered.is-active .rd-pe__label--3 { opacity: 1; transform: none; transition-delay: .7s; }
.rd-aw__visual--layered.is-active .rd-pe__label--4 { opacity: 1; transform: none; transition-delay: .8s; }
.rd-aw__visual--layered.is-active .rd-pe__pie { opacity: 1; transform: none; transition-delay: .6s; }
.rd-aw__visual--layered.is-active .rd-pe__stat { opacity: 1; transform: none; transition-delay: 1.1s; }
@media (prefers-reduced-motion: reduce) {
  .rd-pe__pie, .rd-pe__stat, .rd-pe__label { opacity: 1 !important; transform: none !important; transition: none; }
}
/* Left-aligned widget variant (credentialing) */
.rd-aw__visual--left .rd-awl__widget { left: 5%; right: auto; }
/* Credentialing widget (card 487×271) — sized wider so its HEIGHT matches the
   other (taller) widgets rather than its width. */
.rd-awl__widget.rd-cr { aspect-ratio: 487 / 271; filter: none; width: 82%; }
.rd-cr > img { position: absolute; display: block; }
.rd-cr__card { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(10, 22, 38, .18)); }
.rd-cr__chart { left: 5.5%; top: 36%; width: 89%; }   /* grid + line combined */
.rd-cr__badge { left: 73%; top: 12%; width: 19%; }    /* "10 days" indicator */
.rd-cr__stat { left: 59%; top: 59%; width: 18.5%; }   /* "6hr 43m" tooltip — pointer sits just above the line dot */
/* Pieces populate in sequence: badge → chart → tooltip */
.rd-cr__chart, .rd-cr__badge, .rd-cr__stat { opacity: 0; transition: opacity .5s ease, transform .6s cubic-bezier(.16, .84, .34, 1); }
.rd-cr__chart { transform: translateX(-8px); }
.rd-cr__stat { transform: translateY(8px) scale(.85); transform-origin: 50% 100%; }
.rd-aw__visual--layered.is-active .rd-cr__badge { opacity: 1; transition-delay: .45s; }
.rd-aw__visual--layered.is-active .rd-cr__chart { opacity: 1; transform: none; transition-delay: .55s; }
.rd-aw__visual--layered.is-active .rd-cr__stat { opacity: 1; transform: none; transition-delay: 1s; }
@media (prefers-reduced-motion: reduce) {
  .rd-cr__chart, .rd-cr__badge, .rd-cr__stat { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ===== Roster management (gauge + 2 labels) — card 393×325 ===== */
.rd-awl__widget.rd-rm { aspect-ratio: 393 / 325; filter: none; }
.rd-rm > img { position: absolute; display: block; }
.rd-rm__card { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(10,22,38,.18)); }
.rd-rm__pie { left: 6%; top: 40%; width: 88%; }
.rd-rm__label { top: 23%; }
.rd-rm__l1 { left: 7%; width: 28%; }
.rd-rm__l3 { left: 40%; width: 25.5%; }
.rd-rm__pie, .rd-rm__label { opacity: 0; transition: opacity .5s ease, transform .6s cubic-bezier(.16,.84,.34,1); }
.rd-rm__label { transform: translateY(6px); }
.rd-rm__pie { transform: scale(.9); transform-origin: 50% 100%; }
.rd-aw__visual--layered.is-active .rd-rm__l1 { opacity: 1; transform: none; transition-delay: .5s; }
.rd-aw__visual--layered.is-active .rd-rm__l3 { opacity: 1; transform: none; transition-delay: .6s; }
.rd-aw__visual--layered.is-active .rd-rm__pie { opacity: 1; transform: none; transition-delay: .6s; }

/* ===== Privileging (donut + 2 indicators) — card 393×325 ===== */
.rd-awl__widget.rd-pv { aspect-ratio: 393 / 325; filter: none; }
.rd-pv > img { position: absolute; display: block; }
.rd-pv__card { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(10,22,38,.18)); }
.rd-pv__pie { left: 21.25%; top: 25%; width: 57.5%; }   /* centered, slightly raised */
.rd-pv__i1 { left: 5%; top: 44%; width: 20%; }
.rd-pv__i3 { left: 62%; top: 40%; width: 27%; }
.rd-pv__pie, .rd-pv__ind { opacity: 0; transition: opacity .5s ease, transform .6s cubic-bezier(.16,.84,.34,1); }
.rd-pv__pie { transform: scale(.7); transform-origin: center; }
.rd-pv__ind { transform: translateY(8px) scale(.85); }
.rd-aw__visual--layered.is-active .rd-pv__pie { opacity: 1; transform: none; transition-delay: .5s; }
.rd-aw__visual--layered.is-active .rd-pv__i1 { opacity: 1; transform: none; transition-delay: .8s; }
.rd-aw__visual--layered.is-active .rd-pv__i3 { opacity: 1; transform: none; transition-delay: .95s; }

/* ===== Delegated credentialing (area chart + months + stat) — card 393×325 ===== */
.rd-awl__widget.rd-dc { aspect-ratio: 393 / 325; filter: none; }
.rd-dc > img { position: absolute; display: block; }
.rd-dc__card { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(10,22,38,.18)); }
.rd-dc__stat { left: 31.5%; top: 21%; width: 37%; }   /* centered horizontally */
.rd-dc__chart { left: 6%; top: 40%; width: 88%; }
.rd-dc__months { left: 9%; top: 80%; width: 80%; }
.rd-dc__stat, .rd-dc__chart, .rd-dc__months { opacity: 0; transition: opacity .5s ease, transform .6s cubic-bezier(.16,.84,.34,1); }
.rd-dc__chart { transform: translateY(8px); }
.rd-dc__stat { transform: translateY(6px); }
.rd-aw__visual--layered.is-active .rd-dc__stat { opacity: 1; transform: none; transition-delay: .5s; }
.rd-aw__visual--layered.is-active .rd-dc__months { opacity: 1; transition-delay: .55s; }
.rd-aw__visual--layered.is-active .rd-dc__chart { opacity: 1; transform: none; transition-delay: .65s; }

/* ===== Monitoring (bar chart + 3 labels) — card 468×285 ===== */
.rd-awl__widget.rd-mo { aspect-ratio: 468 / 285; filter: none; }
.rd-mo > img { position: absolute; display: block; }
.rd-mo__card { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(10,22,38,.18)); }
.rd-mo__chart { left: 7.5%; top: 48%; width: 85%; }
.rd-mo__label { top: 34%; }
.rd-mo__l1 { left: 6%; width: 13.2%; }
.rd-mo__l2 { left: 23%; width: 10.3%; }
.rd-mo__l3 { left: 36%; width: 11.5%; }
.rd-mo__chart, .rd-mo__label { opacity: 0; transition: opacity .5s ease, transform .6s cubic-bezier(.16,.84,.34,1); }
.rd-mo__chart { transform: translateY(8px); }
.rd-mo__label { transform: translateY(6px); }
.rd-aw__visual--layered.is-active .rd-mo__l1 { opacity: 1; transform: none; transition-delay: .5s; }
.rd-aw__visual--layered.is-active .rd-mo__l2 { opacity: 1; transform: none; transition-delay: .58s; }
.rd-aw__visual--layered.is-active .rd-mo__l3 { opacity: 1; transform: none; transition-delay: .66s; }
.rd-aw__visual--layered.is-active .rd-mo__chart { opacity: 1; transform: none; transition-delay: .6s; }

/* ===== Cross-state licensing (card + 5 stacked rows) — card 317×316 ===== */
.rd-awl__widget.rd-cs { aspect-ratio: 317 / 316; filter: none; }
.rd-cs > img { position: absolute; display: block; }
.rd-cs__card { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(10,22,38,.18)); }
.rd-cs__row { left: 8.4%; width: 83%; }
.rd-cs__r1 { top: 23%; }
.rd-cs__r2 { top: 36.25%; }
.rd-cs__r3 { top: 49.5%; }
.rd-cs__r4 { top: 62.75%; }
.rd-cs__r5 { top: 76%; }
.rd-cs__row { opacity: 0; transform: translateX(-8px); transition: opacity .45s ease, transform .55s cubic-bezier(.16,.84,.34,1); }
.rd-aw__visual--layered.is-active .rd-cs__r1 { opacity: 1; transform: none; transition-delay: .45s; }
.rd-aw__visual--layered.is-active .rd-cs__r2 { opacity: 1; transform: none; transition-delay: .55s; }
.rd-aw__visual--layered.is-active .rd-cs__r3 { opacity: 1; transform: none; transition-delay: .65s; }
.rd-aw__visual--layered.is-active .rd-cs__r4 { opacity: 1; transform: none; transition-delay: .75s; }
.rd-aw__visual--layered.is-active .rd-cs__r5 { opacity: 1; transform: none; transition-delay: .85s; }
@media (prefers-reduced-motion: reduce) {
  .rd-rm__pie, .rd-rm__label, .rd-pv__pie, .rd-pv__ind, .rd-dc__stat, .rd-dc__chart, .rd-dc__months,
  .rd-mo__chart, .rd-mo__label, .rd-cs__row { opacity: 1 !important; transform: none !important; transition: none; }
}

/* Mobile progress segments (count indicator); hidden on desktop, injected by JS */
.rd-aw__dots { display: none; }
/* ---------- AGENT WORKFLOWS · MOBILE (single rotating card) ----------
   Phones (<=768px) get the stacked single-card layout. The two-column
   layout (where the image naturally matches the copy height beside it)
   stays in place for everything above that — see the 769px+ note below. */
@media (max-width: 768px) {
  .rd-aw__grid { display: flex; flex-direction: column; gap: 22px; }
  .rd-aw__visuals { order: 1; aspect-ratio: 1 / 1; margin-top: 12px; }
  .rd-aw__dots { order: 2; display: flex; gap: 6px; }
  /* Stack EVERY item in one grid cell so the box always sizes to the tallest
     item — switching the active section no longer changes the section height,
     so the page no longer bounces on rotation. Only the active item is shown. */
  .rd-acc { order: 3; border-top: 0; display: grid; }
  .rd-acc__item { grid-area: 1 / 1; border-bottom: 0; position: static;
    visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
  .rd-acc__item.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
  /* Uniform head + fully-expanded body on ALL items (not just the open one) so the
     stack's height is constant regardless of which item is currently visible. */
  .rd-acc__head { padding: 0 0 8px; font-size: 22px; }
  .rd-acc__body { max-height: none; }
  .rd-acc__progress { display: none; }       /* the segment row replaces the per-item bar */
  /* Tappable progress segments */
  .rd-aw__dot { flex: 1; height: 3px; padding: 0; border: 0; cursor: pointer;
    background: var(--rd-line); border-radius: 2px; position: relative; overflow: hidden; }
  .rd-aw__dot-fill { position: absolute; inset: 0; width: 0; background: var(--rd-blue); border-radius: 2px; }
}

/* ---------- DARK EXPERTISE ---------- */
.rd-dark { background: var(--rd-grad-deep); color: #fff; }
.rd-dark .rd-h2 { color: #fff; max-width: 560px; }
.rd-dark__top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.rd-stat__num { font-size: 88px; line-height: 1; font-weight: 500; color: var(--rd-lime); letter-spacing: -.03em; }
.rd-stat__label { color: #aeb8c4; font-size: 16px; margin-top: 12px; max-width: 260px; }
.rd-dark__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rd-dcard {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.1); border-radius: 6px; padding: 28px; min-height: 230px;
  display: flex; flex-direction: column;
}
.rd-dcard__num { font-size: 13px; color: var(--rd-teal); font-weight: 600; letter-spacing: .08em; }
.rd-dcard__icon { width: 44px; height: 44px; border-radius: 6px; margin: 18px 0 auto;
  background: linear-gradient(135deg, var(--rd-blue), var(--rd-iris)); }
.rd-dcard h3 { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.rd-dcard p { color: #aeb8c4; font-size: 15px; line-height: 1.5; }

/* ---------- REAL-TIME DASHBOARD ---------- */
.rd-rt { background: linear-gradient(180deg, var(--rd-sky) 0%, var(--rd-bg-soft) 100%); text-align: center; }
.rd-rt .rd-h2 { margin: 0 auto 40px; max-width: 640px; }
.rd-rt__card { background: #fff; border: 1px solid var(--rd-line); border-radius: 6px;
  box-shadow: 0 30px 70px -40px rgba(10,22,38,.3); overflow: hidden; }
.rd-rt__tabs { display: flex; gap: 8px; padding: 18px 22px 0; border-bottom: 1px solid var(--rd-line); }
.rd-rt__tab { font-size: 14px; font-weight: 500; color: var(--rd-grey); padding: 10px 14px;
  border: 0; background: none; cursor: pointer; border-bottom: 2px solid transparent; font-family: inherit; }
.rd-rt__tab.is-active { color: var(--rd-blue); border-bottom-color: var(--rd-blue); }
.rd-rt__panel { display: none; padding: 22px; }
.rd-rt__panel.is-active { display: block; }
.rd-rt__panel img { width: 100%; height: auto; display: block; border-radius: 6px; }

/* ---------- COMPLETE PLATFORM ---------- */
.rd-plat__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.rd-plat .rd-h2 { position: sticky; top: 100px; }
.rd-plat__item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--rd-line); }
.rd-plat__item:first-child { border-top: 0; }
.rd-plat__ico { width: 48px; height: 48px; border-radius: 6px; background: var(--rd-sky);
  display: flex; align-items: center; justify-content: center; }
.rd-plat__ico img { width: 26px; height: 26px; }
.rd-plat__num { font-size: 12px; color: var(--rd-teal); font-weight: 700; letter-spacing: .1em; }
.rd-plat__item h3 { margin: 4px 0 8px; font-size: 21px; font-weight: 600; }
.rd-plat__item p { color: var(--rd-grey); font-size: 16px; line-height: 1.55; }

/* ---------- TESTIMONIALS ---------- */
.rd-test { background: var(--rd-bg-soft); text-align: center; }
.rd-test .rd-h2 { margin: 0 auto 44px; }
.rd-test__feature { display: grid; grid-template-columns: 1.2fr .8fr; gap: 0; background: #fff;
  border-radius: 6px; overflow: hidden; border: 1px solid var(--rd-line); text-align: left; }
.rd-test__media { position: relative; min-height: 340px; background: var(--rd-navy); }
.rd-test__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 999px;
  background: rgba(255,255,255,.9); border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.rd-play::after { content: ""; border-left: 18px solid var(--rd-ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 4px; }
.rd-test__quote { padding: 44px; display: flex; flex-direction: column; justify-content: center; }
.rd-test__quote blockquote { font-size: 20px; line-height: 1.45; margin: 18px 0 24px; font-weight: 500; }
.rd-test__attr { color: var(--rd-grey); font-size: 14px; }
.rd-test__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 28px; }
.rd-test__thumb { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 6px; overflow: hidden; position: relative; line-height: 0; }
.rd-test__thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

/* ---------- HONORED / PRESS ---------- */
.rd-press .rd-h2 { margin-bottom: 12px; }
.rd-press__sub { color: var(--rd-grey); font-size: 17px; margin-bottom: 44px; max-width: 560px; }
.rd-press__grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; }
.rd-press__feature { grid-row: span 2; border: 1px solid var(--rd-line); border-radius: 6px; padding: 32px;
  display: flex; flex-direction: column; }
.rd-press__feature .rd-press__logo { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 34px; }
.rd-press__tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--rd-teal); margin: auto 0 10px; }
.rd-press__feature h3 { font-size: 24px; font-weight: 600; line-height: 1.25; }
.rd-pcard { border: 1px solid var(--rd-line); border-radius: 6px; padding: 26px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; }
.rd-pcard__logo { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.rd-pcard__logo img { height: 22px; width: auto; }
.rd-pcard p { color: var(--rd-grey); font-size: 15px; line-height: 1.45; margin-top: auto; }
.rd-pcard__arrow { position: absolute; }

/* ---------- TRUSTED CTA ---------- */
.rd-cta { padding: 40px 0 96px; }
.rd-cta__banner { position: relative; border-radius: 6px; overflow: hidden; min-height: 360px;
  display: flex; align-items: center; background: var(--rd-grad-deep); }
.rd-cta__banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.rd-cta__content { position: relative; padding: 56px; max-width: 620px; }
.rd-cta__content h2 { color: #fff; font-size: clamp(28px,3.4vw,40px); font-weight: 500; line-height: 1.15; margin-bottom: 28px; letter-spacing: -.02em; }
.rd-cta__content .rd-hl { color: var(--rd-lime); }

/* ---------- FAQ ---------- */
.rd-faq__grid { display: grid; grid-template-columns: .5fr 1fr; gap: 48px; align-items: start; }
.rd-faq .rd-h2 { position: sticky; top: 100px; }
.rd-faq__item { background: #dfe5ec; border-radius: 6px; margin-bottom: 14px; overflow: hidden; }
.rd-faq__head { width: 100%; background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 19px; font-weight: 500; color: var(--rd-ink); padding: 22px 26px; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.rd-faq__icon { flex: none; color: var(--rd-grey); transition: transform .2s ease; }
.rd-faq__item.is-open .rd-faq__icon { transform: rotate(45deg); }
.rd-faq__body { max-height: 0; overflow: hidden; transition: max-height .35s ease; padding: 0 26px; }
.rd-faq__item.is-open .rd-faq__body { max-height: 400px; }
.rd-faq__body p { color: var(--rd-grey); font-size: 16px; line-height: 1.6; padding-bottom: 24px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .rd-section { padding: 64px 0; }
  /* NB: .rd-aw__grid is intentionally NOT collapsed here — agent-workflows stays
     two-column (image matched to copy height beside it) down to 768px, where it
     switches to the stacked single card. */
  .rd-dark__top, .rd-plat__grid, .rd-test__feature, .rd-faq__grid { grid-template-columns: 1fr; }
  .rd-dark__cards, .rd-press__grid { grid-template-columns: 1fr; }
  .rd-press__feature { grid-row: auto; }
  .rd-test__thumbs { grid-template-columns: repeat(3, 1fr); }
  .rd-plat .rd-h2, .rd-faq .rd-h2 { position: static; }
  .rd-aw__card { padding: 28px; }
  .rd-hero__logos { gap: 24px; }
}
@media (max-width: 700px) {
  /* Logo bar: copy centered above the moving logos */
  .rd-hero__logos { flex-direction: column; gap: 20px; }
  .rd-hero__logos-label { max-width: none; text-align: center; }
  .rd-marquee { width: 100%; flex: none; }
}
@media (max-width: 560px) {
  .rd-wrap { padding: 0 20px; }
  .rd-test__thumbs { grid-template-columns: repeat(2, 1fr); }
  .rd-cta__content { padding: 32px; }
}

/* ===== Section 3: AI + human expertise (auto-advancing card carousel) =====
   Visual design is the .rd dark redesign; the movement (autoplay slide,
   per-card progress bars, swapping stat) is ported from ai-at-medallion.html.
   JS lives in preview-body.html ([data-ai-carousel]). */
.rd-ai {
  display: grid;
  grid-template-columns: 5fr 7fr;
  background: linear-gradient(160deg, #060f1c 0%, var(--rd-navy) 55%, #0b2138 100%);
  color: #fff;
  overflow: hidden;
}
.rd-ai__left {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(104px, 10.5vw, 150px) clamp(28px, 3vw, 52px) clamp(104px, 10.5vw, 150px) clamp(24px, 5vw, 80px);
  border-right: 1px solid rgba(200, 212, 224, .08);
}
.rd-ai__title { color: #fff; max-width: 360px; text-wrap: balance; }
/* Stats are stacked in the same box; only the active one fades/rises in.
   Kept smaller than the heading so the eye lands on the heading first. */
.rd-ai__stat-wrap { position: relative; margin-top: clamp(32px, 4vw, 52px); min-height: 108px; }
.rd-ai__stat {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .5s ease, transform .5s ease;
}
.rd-ai__stat.is-visible { opacity: 1; transform: none; }
.rd-ai__stat-num {
  font-family: var(--rd-display); font-weight: 400; line-height: 1;
  font-size: clamp(32px, 3vw, 42px); letter-spacing: -.03em;
  color: var(--rd-lime); margin-bottom: 10px;
}
.rd-ai__stat-label { font-size: 14px; line-height: 1.5; color: var(--rd-grey-2); max-width: 230px; }
/* Progress bar runs half the column width. */
.rd-ai__progress { display: flex; gap: 8px; margin-top: clamp(36px, 5vw, 88px); max-width: 50%; }
.rd-ai__progress-item {
  flex: 1; height: 3px; padding: 0; border: 0; cursor: pointer;
  background: rgba(200, 212, 224, .16); border-radius: 2px; overflow: hidden;
}
.rd-ai__progress-fill { display: block; height: 100%; width: 0; background: var(--rd-teal); border-radius: 2px; }

/* Scroll-reveal: the header, stat, and progress rise in (staggered) when the
   section's top crosses the middle of the viewport — same trigger + cadence as
   the Section 4 dashboard widgets (.6s spring, 95ms between items). A JS
   controller (preview-body.html) toggles .is-in. Driven by a keyframe with
   `backwards` fill so it holds the hidden state through the stagger delay but
   reverts to the natural resting style afterward (doesn't clobber any hover).
   Guarded by Webflow's .w-mod-js so no-JS visitors just see everything. */
@keyframes rd-reveal-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.w-mod-js .rd-ai__left[data-reveal-group]:not(.is-in) > * { opacity: 0; transform: translateY(30px); }
.w-mod-js .rd-ai__left[data-reveal-group].is-in > * {
  animation: rd-reveal-rise .6s cubic-bezier(.34, 1.2, .42, 1) backwards;
  animation-delay: calc(var(--rev-i, 0) * 95ms);
}
.rd-ai__left[data-reveal-group] > *:nth-child(2) { --rev-i: 1; }
.rd-ai__left[data-reveal-group] > *:nth-child(3) { --rev-i: 2; }
@media (prefers-reduced-motion: reduce) {
  .w-mod-js .rd-ai__left[data-reveal-group]:not(.is-in) > *,
  .w-mod-js .rd-ai__left[data-reveal-group].is-in > * { opacity: 1; transform: none; animation: none; }
}

.rd-ai__right { position: relative; overflow: hidden; display: flex; align-items: center; }
.rd-ai__track { display: flex; gap: 16px; transition: transform .6s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.rd-ai__card {
  flex: 0 0 auto; width: 60%;
  display: flex; flex-direction: column;
  min-height: 400px;
  padding: clamp(28px, 3vw, 40px) clamp(24px, 2.5vw, 34px);
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(200, 212, 224, .1);
  opacity: .4; cursor: pointer;
  transition: opacity .4s ease, background .3s ease, border-color .3s ease;
}
.rd-ai__card.is-active {
  opacity: 1;
  background: rgba(14, 112, 112, .1);
  border-color: rgba(61, 184, 184, .28);
}
.rd-ai__icon { width: clamp(64px, 6vw, 84px); margin-bottom: clamp(28px, 4vw, 48px); }
.rd-ai__icon svg, .rd-ai__icon img { display: block; width: 100%; height: auto; }
.rd-ai__num {
  font-family: var(--rd-display); font-weight: 400;
  font-size: 14px; letter-spacing: .06em; color: var(--rd-teal); opacity: .8; margin-bottom: 12px;
}
.rd-ai__card-title {
  font-family: var(--rd-display); font-weight: 400; color: #fff;
  font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; letter-spacing: -.01em;
}
/* margin-top opens the gap below the card heading. (The heading's own
   margin-bottom can't: the base `.rd h3 { margin: 0 }` rule outranks a
   single-class selector, so the spacing lives on the rule instead.) */
.rd-ai__rule { width: 32px; height: 2px; background: var(--rd-teal); opacity: .35; margin-top: 24px; margin-bottom: 20px; transition: width .3s, opacity .3s; }
.rd-ai__card.is-active .rd-ai__rule { width: 48px; opacity: 1; }
.rd-ai__card-desc { font-size: 15px; line-height: 1.6; color: var(--rd-grey-2); max-width: 42ch; }

/* Tablet / mobile: stack the two columns and widen the cards. */
@media (max-width: 900px) {
  .rd-ai { grid-template-columns: 1fr; }
  .rd-ai__left { border-right: 0; border-bottom: 1px solid rgba(200, 212, 224, .08); }
  .rd-ai__title, .rd-ai__stat-label, .rd-ai__card-desc { max-width: none; }
  .rd-ai__right { padding: clamp(32px, 6vw, 56px) 0; }
  /* vw, not %: the card is a flex child of an auto-width track, so a percentage
     resolves circularly and the card blows out. The right column spans the full
     viewport once the grid collapses to one column, so vw maps to it directly. */
  .rd-ai__card { width: 76vw; min-height: 356px; }
  .rd-ai__stat-wrap { min-height: 112px; }
}
@media (max-width: 560px) {
  .rd-ai__card { width: 82vw; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-ai__track, .rd-ai__stat { transition: none; }
}

/* ===== Section 5: Complete platform — sticky-left column beside scroll-
   highlighted points. Light-mode adaptation of ai-at-medallion.html's
   "A different philosophy for AI in healthcare". JS toggles .is-active on the
   point nearest the viewport centre ([data-phil] in preview-body.html). ===== */
.rd-phil { background: #fff; color: var(--rd-ink); }
.rd-phil__inner { display: grid; grid-template-columns: 1fr 1fr; }
.rd-phil__left {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-start;
  /* top-anchored at the same line as the first card (right side) so the header
     top-aligns with it; calc matches .rd-phil__point:first-child. */
  padding: calc(50vh - 84px) 56px 80px clamp(24px, 5vw, 80px);
  border-right: 1px solid var(--rd-line);
}
.rd-phil__title { color: var(--rd-ink); max-width: 440px; }
/* padding-bottom holds the sticky header pinned long enough for the LAST card
   to scroll up until its MIDDLE aligns with the (centered) sticky header before
   the section releases. Derivation: at release, grid bottom meets the viewport
   bottom, so the last card's centre sits at (vh - padBottom - cardH/2); the
   header centre sits at ~50vh. With cardH = 52vh that solves to padBottom =
   24vh + ~12px, so the correction grows with viewport height (the card's height
   scales with vh, so a fixed px value would only center on one screen). */
.rd-phil__right { display: flex; flex-direction: column; padding: 0 clamp(24px, 5vw, 80px) calc(24vh + 12px) 56px; }
.rd-phil__point {
  min-height: 52vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 0; border-bottom: 1px solid var(--rd-line);
  opacity: .4; transition: opacity .4s ease;
}
/* First point is top-anchored to the (vertically-centered) heading so the first
   card lines up with the top of the header copy on entry — the rest stay
   centered for the scroll-reveal. calc tracks viewport height. */
.rd-phil__point:first-child { justify-content: flex-start; padding-top: calc(50vh - 84px); }
.rd-phil__point:last-child { border-bottom: 0; }
.rd-phil__point.is-active { opacity: 1; }
.rd-phil__num {
  font-family: var(--rd-display); font-size: 13px; font-weight: 400; letter-spacing: .1em;
  color: var(--rd-lagoon); margin-bottom: 22px;
  display: flex; align-items: center; gap: 10px;
}
.rd-phil__num::after { content: ''; flex: 1; height: 1px; background: var(--rd-lagoon); max-width: 40px; }
.rd-phil__icon { width: 56px; height: 56px; margin-bottom: 24px; }
.rd-phil__icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* `.rd`-prefixed so it outranks the base `.rd h3 { margin: 0 }` reset. */
.rd .rd-phil__h3 {
  font-family: var(--rd-display); font-size: clamp(22px, 2vw, 28px); font-weight: 400;
  line-height: 1.2; letter-spacing: -.01em; color: var(--rd-ink); margin-bottom: 16px;
}
.rd-phil__p { color: var(--rd-grey); font-size: 16px; line-height: 1.6; max-width: 440px; }

/* Mobile: drop the sticky split — stack the heading over the points and show
   them all at full opacity (the scroll-highlight needs the tall sticky column). */
@media (max-width: 900px) {
  .rd-phil__inner { grid-template-columns: 1fr; }
  .rd-phil__left {
    position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--rd-line);
    padding: clamp(48px, 9vw, 72px) clamp(24px, 6vw, 40px);
  }
  .rd-phil__right { padding: clamp(8px, 3vw, 24px) clamp(24px, 6vw, 40px) clamp(40px, 9vw, 72px); }
  .rd-phil__point { min-height: 0; opacity: 1; padding: 36px 0; }
  .rd-phil__point:first-child { justify-content: center; padding-top: 36px; }  /* no top-anchor when stacked */
}
@media (prefers-reduced-motion: reduce) {
  .rd-phil__point { transition: none; }
}

/* ===== Section 6: Customer videos — paraform-style wide testimonial tiles.
   One tile per view; dots navigate; thumbnail click opens the pop-up player. */
.rd-vid { background: #fff; padding: clamp(64px, 8vw, 96px) 0; overflow: hidden; }
.rd .rd-vid__title { color: var(--rd-ink); max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; text-wrap: balance; }
.rd-vid__carousel { margin-top: clamp(32px, 5vw, 56px); position: relative; width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
.rd-vid__viewport { overflow: hidden; }
.rd-vid__track { display: flex; gap: clamp(16px, 2vw, 28px); transition: transform .55s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
/* Centered "peek" carousel (paraform-style): the active tile is full-opacity and
   centred; its neighbours peek, dimmed, on either side. JS centres the active tile. */
.rd-vid__tile { flex: 0 0 clamp(320px, 52vw, 820px); min-width: 0; opacity: .35; transition: opacity .45s ease; }
.rd-vid__tile.is-active { opacity: 1; }
.rd-vid__tile:not(.is-active) { pointer-events: none; }
/* …but the greyed side thumbnails stay clickable to jump to that video. */
.rd-vid__tile:not(.is-active) .rd-vid__thumb { pointer-events: auto; cursor: pointer; }
.rd-vid__thumb {
  display: block; width: 100%; position: relative; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--rd-navy);
}
/* `.rd`-prefixed to beat the inline `.p26-root img { height: auto }` override. */
.rd .rd-vid__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.rd-vid__thumb:hover img { transform: scale(1.02); }
/* Active tile autoplays an inline muted/looping Vimeo background; the iframe ignores
   pointer events so a click still falls through to the button and opens the player. */
/* Inline video starts hidden so the thumbnail shows during load, then fades in
   on the iframe `load` event (.is-ready) — avoids a hard cut from thumb → video. */
.rd-vid__thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.rd-vid__thumb iframe.is-ready { opacity: 1; }
.rd-vid__play {
  position: absolute; left: clamp(14px, 1.6vw, 22px); bottom: clamp(14px, 1.6vw, 22px);
  width: clamp(28px, 2.4vw, 36px); height: clamp(28px, 2.4vw, 36px);
  z-index: 2;  /* sit above the inline video iframe on the active tile */
  display: grid; place-items: center; color: #fff; pointer-events: none;
  filter: drop-shadow(0 2px 10px rgba(9, 22, 40, .45));
  transform-origin: bottom left;
  transition: transform .3s cubic-bezier(.34, 1.25, .64, 1);  /* gentle overshoot */
}
.rd-vid__play svg { width: 100%; height: 100%; fill: currentColor; }
.rd-vid__thumb:hover .rd-vid__play { transform: scale(1.1); }
@media (prefers-reduced-motion: reduce) { .rd-vid__play { transition: none; } }
.rd-vid__body { display: flex; align-items: flex-start; justify-content: space-between; gap: clamp(28px, 4vw, 64px); margin-top: clamp(20px, 2.4vw, 32px); }
.rd .rd-vid__quote {
  font-family: var(--rd-font); font-weight: 500; color: var(--rd-ink);
  font-size: clamp(14px, 1.15vw, 16px); line-height: 1.45; letter-spacing: -.005em;
  border: 0; padding: 0; margin: 0; max-width: none; text-wrap: balance;
}
.rd-vid__cta {
  flex: none; align-self: flex-start; white-space: nowrap;
  display: inline-block; padding: 10px 18px; border-radius: 4px;
  border: 1px solid var(--rd-blue);
  font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
/* `.rd.rd-vid` (3 classes) beats inline `.p26-root a:not(.p26-btn) { color: inherit }`. */
.rd.rd-vid .rd-vid__cta { color: var(--rd-blue); }
.rd.rd-vid .rd-vid__cta:hover { background: var(--rd-blue); color: #fff; }
.rd .rd-vid__attr { color: var(--rd-grey-2); font-size: clamp(12px, 1vw, 14px); line-height: 1.5; margin-top: 22px; max-width: 44ch; text-wrap: balance; }
.rd-vid__dots { display: flex; gap: 10px; justify-content: center; margin-top: clamp(28px, 4vw, 44px); }
.rd-vid__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--rd-line); cursor: pointer; overflow: hidden; transition: width .3s ease; }
.rd-vid__dot.is-active { width: 32px; }
/* Progress sweep on the active dot; JS drives its width from the autoplay timer. */
.rd-vid__dot-fill { display: block; height: 100%; width: 0; background: var(--rd-blue); border-radius: 999px; }

@media (max-width: 1024px) {
  .rd-vid__tile { display: flex; flex-direction: column; }
  .rd-vid__body { display: contents; }
  .rd-vid__thumb { order: 0; }
  .rd .rd-vid__quote { order: 1; margin-top: clamp(20px, 3vw, 28px); text-wrap: pretty; }  /* span full thumbnail width */
  .rd .rd-vid__attr  { order: 2; max-width: none; text-wrap: pretty; }  /* span full thumbnail width */
  .rd-vid__cta   { order: 3; align-self: flex-start; margin-top: 18px; }
}
@media (max-width: 768px) {
  .rd-vid__tile { flex-basis: 86%; }
}













