/* =========================================================
   Deep Breath Research — product page
   Accent: research blue (#2f80ed) + cyan (#56ccf2)
   Extends styles.css (header, buttons, CTA)
   ========================================================= */

.page-research {
  --research: #2f80ed;
  --research-soft: #56ccf2;
  --research-dim: rgba(47, 128, 237, 0.14);
  --research-glow: rgba(47, 128, 237, 0.22);
  overflow-x: clip;
}

/* ---------- Hero: first screen = full product composition ----------
   Layout mirrors the approved mockup:
   devices (left) · particle stream + logo + tagline (center) · dashboards (right)
   No extra marketing chrome over the art.
   --------------------------------------------------------------- */
.rp-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rp-hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 640px;
  background: #000;
  overflow: hidden;
}

/* =========================================================
   Hero — reference duplication (devices + flowing dots + logo + coded cards)
   Reuses root vars, fonts, accent colors, border language from main site
   ========================================================= */
.rp-hero-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 0 1.25rem;
  overflow: hidden;
}

/* Main composition container - grid for perfect symmetry */
.hero-ref {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  height: 100%;
  max-height: 620px;
  gap: 1.1rem;
}

/* LEFT — devices (two copies, dots flow from both) */
.hero-devices {
  grid-column: 1;
  justify-self: start;  /* devices on the left */
  display: flex;
  flex-direction: column;
  align-items: flex-start;  /* images hug the left */
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: 0;
  padding-right: 4px;
}

.hero-devices-img {
  width: auto;
  height: auto;
  max-width: 85%;
  max-height: 35%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.65);
  filter: saturate(1.05) contrast(1.02);
}

/* CENTER — brand + tagline */
.hero-brand {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  padding: 0 0.5rem;
  z-index: 3;
}

.hero-lungs {
  width: 100%;
  max-width: 162px;
  height: auto;
  margin-bottom: 6px;
  display: block;
  filter: saturate(1.1);
}

.hero-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 11px;
}

.hero-brand-main {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.35px;
  color: #fff;
  line-height: 1;
}

.hero-brand-research {
  font-size: 10.8px;
  font-weight: 700;
  letter-spacing: 3.1px;
  background: linear-gradient(90deg, #56ccf2, #f256ec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 0;
}

.hero-tagline {
  font-size: 0.95rem;   /* match other body text size on the site (bigger) */
  line-height: 1.38;
  color: #9aa3b8;
  max-width: 268px;
  font-weight: 400;
}

/* RIGHT — image cards using exact same border + background as collect / trustworthy cards (screen 4 / block 05) */
.hero-dashboards {
  grid-column: 3;
  justify-self: end;           /* cards on the right */
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 100%;
  max-height: 595px;
  z-index: 3;
  align-items: flex-end;       /* cards hug the right */
}

/* Same fancy gradient border treatment as .rp-usecase / .rp-collect-card */
.hero-image-card {
  min-height: 0;
  width: 320px;                /* same width as the smallest image (airway waveforms) */
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, rgba(10, 14, 24, 0.98), rgba(6, 8, 14, 0.99)) padding-box,
    linear-gradient(
      135deg,
      rgba(86, 204, 242, 0.65),
      rgba(124, 92, 252, 0.45),
      rgba(242, 86, 236, 0.65)
    ) border-box;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-image-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;           /* keep images reasonable height */
  object-fit: contain;
  background: #0a0d17;
}

.hero-image-title {
  padding: 4px 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: #c8d0e0;
  text-align: center;
  letter-spacing: 0.2px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.dash-head {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #c8d0e0;
  margin-bottom: 5px;
  padding-left: 1px;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 7px;
  flex: 1;
  min-height: 0;
  align-content: start;
}

.dash-grid.alarm {
  grid-template-columns: 1fr 1fr;
  gap: 4px 6px;
}

.dash-grid.quality {
  grid-template-columns: 1fr 1fr;
  gap: 5px 6px;
}

.dash-block {
  background: #11151f;
  border-radius: 6px;
  padding: 4px 6px 3px;
  font-size: 9px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.04);
}

.dash-block.small { padding: 3px 5px; }

.dash-label {
  font-size: 7.8px;
  color: #8e96aa;
  letter-spacing: 0.3px;
  margin-bottom: 1px;
}

.mini-line {
  width: 100%;
  height: 22px;
  margin: 1px 0 2px;
}

.mini-stats { font-size: 10px; line-height: 1.05; color: #d2d7e3; }
.mini-stats .val { font-weight: 600; color: #fff; }
.mini-stats .hi { color: #56ccf2; font-weight: 600; }
.mini-stats .conf { color: #8e96aa; }

.gauge {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.gauge .g-val { color: #56ccf2; }
.gauge .g-sub { display: block; font-size: 7.5px; color: #6f788c; margin-top: 1px; }

.big-num {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.05;
}

.delta { font-size: 9.5px; font-weight: 600; }
.delta.up { color: #4ade80; }
.delta.down { color: #f87171; }

.bias-dots {
  display: flex;
  gap: 3px;
  margin: 3px 0 1px;
}
.bias-dots span {
  width: 5px; height: 5px;
  background: #56ccf2;
  border-radius: 50%;
  opacity: 0.85;
}
.bias-note { font-size: 8px; color: #6f788c; }

.kpi-val {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.kpi-label { font-size: 8px; color: #8e96aa; margin-top: -1px; }

.bars { margin-top: 2px; }
.bar {
  height: 8px;
  background: #1a202c;
  border-radius: 2px;
  margin: 2.5px 0;
  position: relative;
  font-size: 7.5px;
  display: flex;
  align-items: center;
}
.bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #56ccf2, #7c9cff);
  border-radius: 2px;
}
.bar-label {
  position: relative;
  padding-left: 4px;
  color: #c8d0e0;
  z-index: 1;
  font-size: 7px;
}

.priority { font-size: 8px; line-height: 1.15; }
.pri-item { display: flex; justify-content: space-between; padding: 1px 0; }
.pri-item.high { color: #f87171; }
.pri-item.med { color: #facc15; }
.pri-item.low { color: #4ade80; }
.pri-item b { color: #fff; font-weight: 600; }

.q-metric {
  background: #11151f;
  border-radius: 6px;
  padding: 4px 5px 3px;
  font-size: 9.5px;
  border: 1px solid rgba(255,255,255,0.04);
}
.q-num { font-weight: 600; color: #fff; }
.q-lab { font-size: 7.8px; color: #8e96aa; line-height: 1; }

.insights {
  grid-column: 1 / -1;
  font-size: 7.8px;
  color: #8e96aa;
  line-height: 1.25;
  padding-top: 2px;
}
.insights .ins-item {
  margin: 1px 0;
}

/* Inner layout helpers for coded cards to better match reference density */
.dash-block.cols-2,
.dash-grid > .dash-block.cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 3px 5px 4px;
}

.dash-grid.quality .dash-block.full {
  grid-column: 1 / -1;
  padding: 3px 6px;
}

.dash-grid.quality .insights {
  grid-column: 1 / -1;
  background: #11151f;
  border-radius: 6px;
  padding: 4px 6px;
  border: 1px solid rgba(255,255,255,0.04);
  font-size: 7.6px;
}

.hero-ref {
  padding-right: 4px;
}

/* Slight lift on the device to match visual weight in reference */
.hero-devices {
  padding-top: 6px;
}

/* Particle flow canvas — on top of devices/brand but behind cards? z managed in HTML order + this */
.hero-flow-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Soft top veil under fixed header only — composition stays fully visible */
.rp-hero-veil {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(var(--header-h) + 1.25rem);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.28) 55%,
    transparent 100%
  );
}

/* Minimal scroll affordance — bottom center, outside the dashboards */
.rp-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  z-index: 3;
  transform: translateX(-50%);
  width: 28px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rp-scroll-hint:hover {
  border-color: rgba(86, 204, 242, 0.55);
  background: rgba(0, 0, 0, 0.45);
}

.rp-scroll-hint-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--research-soft);
  animation: rp-scroll-dot 1.6s ease-in-out infinite;
}

@keyframes rp-scroll-dot {
  0%,
  100% {
    transform: translateY(-6px);
    opacity: 0.35;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* Research-blue outline variant for this page’s secondary actions */
.page-research .btn-outline {
  border-color: rgba(47, 128, 237, 0.65);
}

.page-research .btn-outline:hover {
  border-color: var(--research-soft);
  box-shadow: 0 0 0 1px rgba(86, 204, 242, 0.22);
}

.page-research .btn-gradient {
  background-image:
    linear-gradient(#0a0a0a, #0a0a0a),
    linear-gradient(100deg, #56ccf2 0%, #2f80ed 55%, #7c9cff 100%);
}

.page-research .btn-gradient:hover {
  box-shadow: 0 0 24px rgba(47, 128, 237, 0.28);
}

.page-research .btn-gradient .arrow {
  color: var(--research-soft);
}

/* ---------- Screen slot (reserved) ---------- */
.rp-screen-slot[hidden] {
  display: none !important;
}



/* ---------- Screens 02→03: Data gap → Built differently (scroll morph) ---------- */
.rp-story {
  --story-t: 0; /* 0 = EHR gap, 1 = Deep Breath solution */
  position: relative;
  height: 320vh;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.rp-story-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding:
    calc(var(--header-h) + 0.75rem)
    clamp(1.25rem, 4vw, 2.75rem)
    1.5rem;
  overflow: hidden;
}

.rp-story-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Light gap → dark solution */
  background:
    radial-gradient(
      900px 500px at 70% 35%,
      rgba(47, 128, 237, calc(0.1 - var(--story-t) * 0.02 + var(--story-t) * 0.08)),
      transparent 55%
    ),
    radial-gradient(
      700px 420px at 85% 70%,
      rgba(242, 86, 236, calc(var(--story-t) * 0.08)),
      transparent 50%
    ),
    linear-gradient(
      180deg,
      rgb(
        calc(244 + (0 - 244) * var(--story-t)),
        calc(247 + (0 - 247) * var(--story-t)),
        calc(251 + (0 - 251) * var(--story-t))
      ) 0%,
      rgb(
        calc(236 + (0 - 236) * var(--story-t)),
        calc(242 + (0 - 242) * var(--story-t)),
        calc(255 + (0 - 255) * var(--story-t))
      ) 100%
    );
  transition: none;
}

.rp-story-inner {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: center;
}

.rp-story-copy {
  position: relative;
  min-height: 22rem;
  max-width: 28rem;
}

.rp-story-layer {
  transition: none;
  will-change: opacity;
}

.rp-story-layer--gap {
  position: relative;
  opacity: 1;
}

.rp-story-layer--sol {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  /* JS drives opacity via inline style — do not fight it */
}

.rp-story-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  margin-bottom: 1.25rem;
}

.rp-story-badge--gap {
  color: #2f80ed;
  border: 1px solid rgba(47, 128, 237, 0.35);
  background: rgba(255, 255, 255, 0.75);
}

.rp-story-badge--sol {
  color: var(--research-soft);
  border: 1px solid rgba(86, 204, 242, 0.5);
  background: rgba(0, 0, 0, 0.4);
}

.rp-story-title {
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 1.1rem;
}

.rp-story-title--gap {
  color: #0f172a;
}

.rp-story-title--sol {
  color: #fff;
}

.rp-story-grad {
  background: linear-gradient(100deg, #2f80ed 0%, #7c5cfc 48%, #f256ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rp-story-lead {
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.6;
  max-width: 28rem;
  margin-bottom: 1.25rem;
}

.rp-story-lead--gap {
  color: #64748b;
}

.rp-story-lead--sol {
  color: rgba(255, 255, 255, 0.58);
}

.rp-ehr-note {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  opacity: calc(1 - var(--story-t));
}

.rp-ehr-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #2f80ed;
}

.rp-ehr-icon svg {
  width: 20px;
  height: 20px;
}

.rp-ehr-note strong {
  display: block;
  font-size: 0.92rem;
  color: #2f80ed;
  margin-bottom: 0.25rem;
}

.rp-ehr-note p {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
  margin: 0;
}

/* Right visualisation */
.rp-story-viz {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.rp-feat-row {
  display: grid;
  gap: 0.75rem;
}

.rp-feat-row--top {
  grid-template-columns: 1fr 1fr;
}

.rp-feat-row--bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Cards morph light minus → dark plus via --morph on each card */
.rp-feat {
  --morph: 0;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  position: relative;
  overflow: hidden;
  /* Blend toward dark gradient card */
  box-shadow:
    0 8px 24px rgba(15, 23, 42, calc(0.05 + var(--morph) * 0.3));
}

.rp-feat::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background:
    linear-gradient(
      160deg,
      rgba(12, 16, 28, calc(var(--morph) * 0.95)),
      rgba(8, 10, 18, calc(var(--morph) * 0.98))
    ) padding-box,
    linear-gradient(
      120deg,
      rgba(86, 204, 242, calc(var(--morph) * 0.85)),
      rgba(124, 92, 252, calc(var(--morph) * 0.55)),
      rgba(242, 86, 236, calc(var(--morph) * 0.85))
    ) border-box;
  pointer-events: none;
  z-index: 0;
}

.rp-feat > * {
  position: relative;
  z-index: 1;
}

.rp-feat-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #2f80ed;
  background: rgba(47, 128, 237, 0.1);
  border: 1px solid rgba(47, 128, 237, 0.12);
  position: relative;
}

.rp-icon-plus {
  opacity: var(--morph);
  color: #56ccf2;
  grid-area: 1 / 1;
}

.rp-icon-minus {
  opacity: calc(1 - var(--morph));
  grid-area: 1 / 1;
}

.rp-feat-icon .icon {
  width: 18px;
  height: 18px;
}

.rp-feat-text {
  position: relative;
  flex: 1;
  min-height: 3.4rem;
}

.rp-feat-minus,
.rp-feat-plus {
  transition: none;
}

.rp-feat-minus {
  opacity: calc(1 - var(--morph));
}

.rp-feat-plus {
  position: absolute;
  inset: 0;
  opacity: var(--morph);
}

.rp-feat h3 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 0.28rem;
  color: rgb(
    calc(15 + (255 - 15) * var(--morph)),
    calc(23 + (255 - 23) * var(--morph)),
    calc(42 + (255 - 42) * var(--morph))
  );
}

.rp-feat-n {
  font-weight: 600;
  color: rgb(
    calc(100 + (140 - 100) * var(--morph)),
    calc(116 + (140 - 116) * var(--morph)),
    calc(139 + (140 - 139) * var(--morph))
  );
  opacity: calc(0.7 + var(--morph) * 0.15);
}

.rp-feat p {
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgb(
    calc(100 + (255 * 0.52 - 100) * var(--morph)),
    calc(116 + (255 * 0.52 - 116) * var(--morph)),
    calc(139 + (255 * 0.52 - 139) * var(--morph))
  );
}

/* Waveform panel — light EHR chart → dark full platform */
.rp-wave-panel {
  position: relative;
  border-radius: 16px;
  border: 1px solid
    rgba(
      calc(47 + (255 - 47) * var(--story-t, 0)),
      calc(128 + (255 - 128) * var(--story-t, 0)),
      calc(237 + (255 - 237) * var(--story-t, 0)),
      calc(0.14 + var(--story-t, 0) * 0.0)
    );
  background: linear-gradient(
    180deg,
    rgb(
      calc(255 + (10 - 255) * var(--story-t, 0)),
      calc(255 + (14 - 255) * var(--story-t, 0)),
      calc(255 + (24 - 255) * var(--story-t, 0))
    )
      0%,
    rgb(
      calc(248 + (7 - 248) * var(--story-t, 0)),
      calc(250 + (10 - 250) * var(--story-t, 0)),
      calc(252 + (18 - 252) * var(--story-t, 0))
    )
      100%
  );
  padding: 0.9rem 0.9rem 1.15rem;
  box-shadow:
    0 0 0 1px rgba(86, 204, 242, calc(var(--story-t, 0) * 0.04)) inset,
    0 16px 48px rgba(15, 23, 42, calc(0.06 + var(--story-t, 0) * 0.4));
}

.rp-wave-block + .rp-wave-block {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid
    rgba(15, 23, 42, calc(0.08 * (1 - var(--story-t, 0)) + 0.06 * var(--story-t, 0)));
}

.rp-wave-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  padding-left: 2.1rem;
}

.rp-wave-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rp-wave-label--cyan {
  color: #56ccf2;
}

.rp-wave-label--magenta {
  color: #f256ec;
}

.rp-wave-unit {
  font-size: 0.65rem;
  color: rgba(
    calc(100 + (255 - 100) * var(--story-t, 0)),
    calc(116 + (255 - 116) * var(--story-t, 0)),
    calc(139 + (255 - 139) * var(--story-t, 0)),
    calc(0.55 + (0.35 - 0.55) * var(--story-t, 0))
  );
}

.rp-wave-plot {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.25rem;
  align-items: stretch;
}

.rp-wave-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0.15rem 0;
  font-size: 0.58rem;
  color: rgba(
    calc(100 + (255 - 100) * var(--story-t, 0)),
    calc(116 + (255 - 116) * var(--story-t, 0)),
    calc(139 + (255 - 139) * var(--story-t, 0)),
    calc(0.5 + (0.32 - 0.5) * var(--story-t, 0))
  );
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.rp-wave-canvas {
  position: relative;
  height: 128px;
  border-radius: 8px;
  background: rgba(
    0,
    0,
    0,
    calc(0.03 + var(--story-t, 0) * 0.25)
  );
  overflow: visible;
}

.rp-wave-block--abp .rp-wave-canvas {
  height: 108px;
}

/* Dotted particle canvases */
.rp-wave-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.rp-anno-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.rp-wave-x {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0 0 2.1rem;
  font-size: 0.58rem;
  color: rgba(
    calc(100 + (255 - 100) * var(--story-t, 0)),
    calc(116 + (255 - 116) * var(--story-t, 0)),
    calc(139 + (255 - 139) * var(--story-t, 0)),
    calc(0.5 + (0.32 - 0.5) * var(--story-t, 0))
  );
  font-variant-numeric: tabular-nums;
}

/* Annotations — left % set by built-waves.js from shared DT episodes */
.rp-anno {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 0;
  z-index: 2;
  pointer-events: none;
}

.rp-anno--dt {
  top: 2%;
}

.rp-anno-tag {
  white-space: nowrap;
  font-size: 0.58rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(10, 14, 24, 0.92);
  border: 1px solid rgba(86, 204, 242, 0.45);
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
  margin-bottom: 0.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.rp-anno-box {
  width: 42px;
  height: 52px;
  border-radius: 6px;
  border-style: dashed;
  border-width: 1.5px;
  transform: translateY(4px);
}

.rp-anno-box--cyan {
  border-color: rgba(86, 204, 242, 0.65);
  background: rgba(86, 204, 242, 0.06);
  box-shadow: 0 0 12px rgba(86, 204, 242, 0.12);
}

.rp-anno--abp {
  top: 8%;
}

.rp-anno--abp .rp-anno-box {
  width: 36px;
  height: 48px;
}

.rp-anno-box--magenta {
  border-color: rgba(242, 86, 236, 0.65);
  background: rgba(242, 86, 236, 0.07);
  box-shadow: 0 0 12px rgba(242, 86, 236, 0.12);
}

/* Linked insight callout under ABP */
.rp-link-callout {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 0.55rem;
  padding-top: 0.55rem;
}

.rp-link-callout p {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(10, 14, 24, 0.95);
  border: 1px solid rgba(242, 86, 236, 0.55);
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  text-align: center;
  box-shadow: 0 0 20px rgba(242, 86, 236, 0.12);
}

.rp-link-line {
  position: absolute;
  top: 0;
  left: var(--link-a, 18%);
  right: auto;
  width: calc(var(--link-b, 88%) - var(--link-a, 18%));
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(242, 86, 236, 0.5) 12%,
    rgba(242, 86, 236, 0.5) 88%,
    transparent
  );
  pointer-events: none;
}

.rp-link-line::before,
.rp-link-line::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #f256ec;
  box-shadow: 0 0 8px rgba(242, 86, 236, 0.7);
}

.rp-link-line::before {
  left: 0;
}

.rp-link-line::after {
  right: 0;
  left: auto;
}

/* Vertical stems from DT boxes to ABP (decorative) */
.rp-wave-panel::before {
  content: "";
  position: absolute;
  left: 24%;
  top: 42%;
  bottom: 28%;
  width: 1px;
  background: linear-gradient(180deg, rgba(86, 204, 242, 0.35), rgba(242, 86, 236, 0.45));
  opacity: 0.55;
  pointer-events: none;
  display: none; /* hidden — annotations already tell the story */
}

/* ---------- Responsive: story morph ---------- */
@media (max-width: 1100px) {
  .rp-story-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
  }

  .rp-story-copy {
    max-width: 36rem;
    min-height: 0;
  }

  .rp-story {
    height: 340vh;
  }

  .rp-story-sticky {
    align-items: flex-start;
    padding-top: calc(var(--header-h) + 0.65rem);
  }
}

@media (max-width: 820px) {
  .rp-feat-row--top,
  .rp-feat-row--bottom {
    grid-template-columns: 1fr;
  }

  .rp-story {
    height: 300vh;
  }

  .rp-story-sticky {
    align-items: flex-start;
    padding:
      calc(var(--header-h) + 0.45rem)
      clamp(0.9rem, 3.5vw, 1.25rem)
      max(0.85rem, env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .rp-story-inner {
    width: 100%;
    gap: 0.9rem;
  }

  .rp-story-copy {
    max-width: none;
    min-height: 0;
  }

  .rp-story-badge {
    margin-bottom: 0.65rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.64rem;
  }

  .rp-story-title {
    font-size: clamp(1.45rem, 6.2vw, 2.05rem);
    margin-bottom: 0.7rem;
  }

  .rp-story-lead {
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: none;
    margin-bottom: 0.85rem;
  }

  .rp-ehr-note {
    padding: 0.8rem 0.85rem;
    gap: 0.65rem;
  }

  .rp-ehr-icon {
    width: 34px;
    height: 34px;
  }

  .rp-feat {
    padding: 0.7rem 0.75rem;
    gap: 0.55rem;
  }

  .rp-feat-icon {
    width: 32px;
    height: 32px;
  }

  .rp-feat-text {
    min-height: 0;
  }

  .rp-feat h3 {
    font-size: 0.8rem;
  }

  .rp-feat p {
    font-size: 0.72rem;
  }

  .rp-wave-panel {
    padding: 0.75rem 0.7rem 0.9rem;
  }

  .rp-wave-canvas {
    height: 104px;
  }

  .rp-wave-block--abp .rp-wave-canvas {
    height: 88px;
  }

  .rp-link-callout p {
    font-size: 0.66rem;
    line-height: 1.35;
    padding: 0.4rem 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rp-wave-dots {
    /* still drawn statically by built-waves.js */
  }
}

@media (max-width: 560px) {
  .rp-story {
    height: 280vh;
  }

  .rp-wave-meta {
    padding-left: 0;
  }

  .rp-wave-plot {
    grid-template-columns: 1.45rem 1fr;
  }

  .rp-wave-x {
    padding-left: 1.45rem;
    font-size: 0.52rem;
  }

  .rp-wave-y {
    font-size: 0.52rem;
  }

  .rp-wave-canvas {
    height: 88px;
  }

  .rp-wave-block--abp .rp-wave-canvas {
    height: 72px;
  }

  .rp-anno-tag {
    display: none;
  }

  .rp-anno-box {
    width: 28px;
    height: 36px;
  }

  .rp-anno--abp .rp-anno-box {
    width: 24px;
    height: 32px;
  }

  .rp-feat-icon {
    width: 28px;
    height: 28px;
  }

  .rp-feat-icon .icon {
    width: 15px;
    height: 15px;
  }
}

/* ---------- 04 · Direct device data collection ---------- */
.rp-collect {
  position: relative;
  background:
    radial-gradient(900px 520px at 18% 55%, rgba(47, 128, 237, 0.14), transparent 55%),
    radial-gradient(800px 480px at 78% 30%, rgba(242, 86, 236, 0.1), transparent 50%),
    radial-gradient(600px 400px at 55% 80%, rgba(86, 204, 242, 0.06), transparent 45%),
    #03050c;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding:
    clamp(3.5rem, 8vh, 5.5rem)
    clamp(1.25rem, 4vw, 2.75rem)
    clamp(3rem, 6vh, 4.5rem);
  overflow: hidden;
}

.rp-collect-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3vh, 2.5rem);
}

/* Shared card border — cyan → violet → magenta, dark fill, no white */
.rp-collect-card {
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, rgba(10, 14, 24, 0.98), rgba(6, 8, 14, 0.99)) padding-box,
    linear-gradient(
      135deg,
      rgba(86, 204, 242, 0.65),
      rgba(124, 92, 252, 0.45),
      rgba(242, 86, 236, 0.65)
    ) border-box;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.rp-collect-flow {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}

.rp-collect-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Above cards so streams from platform → use cases stay visible */
  z-index: 4;
}

.rp-collect-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--research-soft);
  border: 1px solid rgba(86, 204, 242, 0.45);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  margin-bottom: 1.25rem;
  background: rgba(0, 0, 0, 0.35);
}

.rp-collect-title {
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 1.1rem;
}

.rp-collect-grad {
  background: linear-gradient(100deg, #56ccf2 0%, #9b7cff 45%, #f256ec 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rp-collect-lead {
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.58);
  max-width: 28rem;
  margin-bottom: 1.75rem;
}

/* Devices + BreathBox: free-floating on section bg; box sits between devices & cards */
.rp-collect-devices {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
  max-width: none;
  width: 100%;
  z-index: 3;
}

.rp-devices-photo {
  position: relative;
  margin: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(100%, 380px);
}

.rp-devices-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left bottom;
  background: transparent;
}

/* Invisible anchors for particle flow (vent left, monitor right) */
.rp-flow-anchor {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
}

.rp-flow-anchor--vent {
  left: 38%;
  top: 42%;
}

.rp-flow-anchor--monitor {
  left: 78%;
  top: 38%;
}

.rp-device--box {
  margin: 0;
  padding: 0;
  overflow: visible;
  border-radius: 0;
  border: 0;
  background: transparent;
  flex: 0 0 auto;
  width: min(148px, 32%);
  max-width: 160px;
  box-shadow: none;
  align-self: flex-end;
  margin-bottom: 0.35rem;
}

.rp-device--box img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.rp-device--box figcaption {
  padding: 0.35rem 0.1rem 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  border: 0;
  background: transparent;
  text-align: center;
}

/* Platform hub */
.rp-collect-right {
  position: relative;
  z-index: 3;
  min-width: 0;
}

/* Platform hub — matches reference: lockup + title row + 5 capability icons */
.rp-platform-hub {
  position: relative;
  border-radius: 18px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(165deg, rgba(8, 12, 22, 0.96), rgba(5, 8, 14, 0.98)) padding-box,
    linear-gradient(
      115deg,
      rgba(86, 204, 242, 0.9) 0%,
      rgba(124, 92, 252, 0.65) 45%,
      rgba(242, 86, 236, 0.9) 100%
    ) border-box;
  box-shadow:
    0 0 0 1px rgba(86, 204, 242, 0.06) inset,
    0 14px 48px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(86, 204, 242, 0.08);
  padding: 1.25rem 1.35rem 1.35rem;
  /* Gap so platform → card particle stems are readable */
  margin-bottom: 2.85rem;
}

.rp-platform-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: center;
  margin-bottom: 1.15rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rp-platform-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.rp-platform-mark {
  width: 48px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(86, 204, 242, 0.4));
}

.rp-platform-wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.rp-platform-name {
  font-family: var(--font-brand, Nunito, sans-serif);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #f4f7fb;
}

.rp-platform-product {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #56ccf2, #a78bfa, #f256ec);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rp-platform-title-block {
  text-align: left;
  min-width: 0;
}

.rp-platform-title {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 0.3rem;
  line-height: 1.2;
}

.rp-platform-tagline {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(86, 204, 242, 0.88);
}

.rp-platform-caps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem 0.65rem;
  margin: 0;
  padding: 0;
}

.rp-platform-caps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.rp-cap-ico {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #56ccf2;
  background: rgba(86, 204, 242, 0.1);
  border: 1px solid rgba(86, 204, 242, 0.28);
  box-shadow: 0 0 16px rgba(86, 204, 242, 0.12);
}

.rp-cap-ico .icon {
  width: 17px;
  height: 17px;
}

.rp-platform-caps li:nth-child(3) .rp-cap-ico {
  color: #c4b5fd;
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.35);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.12);
}

.rp-platform-caps li:nth-child(4) .rp-cap-ico,
.rp-platform-caps li:nth-child(5) .rp-cap-ico {
  color: #f9a8d4;
  background: rgba(242, 86, 236, 0.1);
  border-color: rgba(242, 86, 236, 0.32);
  box-shadow: 0 0 16px rgba(242, 86, 236, 0.12);
}

/* Decorative stems optional — live particle fan-out draws the connectors */
.rp-platform-stems {
  display: none;
}

@media (max-width: 900px) {
  .rp-platform-top {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .rp-platform-caps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 0.5rem;
  }

  .rp-platform-stems {
    display: none;
  }
}

@media (max-width: 560px) {
  .rp-platform-caps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Use cases — same border language */
.rp-usecases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  background: transparent;
  padding: 0.5rem 0 0;
  border: 0;
  margin-top: 0.15rem;
  position: relative;
  z-index: 3;
}

.rp-usecase {
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, rgba(10, 14, 24, 0.98), rgba(6, 8, 14, 0.99)) padding-box,
    linear-gradient(
      135deg,
      rgba(86, 204, 242, 0.65),
      rgba(124, 92, 252, 0.45),
      rgba(242, 86, 236, 0.65)
    ) border-box;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  padding: 0.95rem 1rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 118px;
}

.rp-usecase-n {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(86, 204, 242, 0.8);
}

.rp-usecase h3 {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #fff;
  flex: 1;
}

.rp-usecase-foot {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-usecase-foot strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #56ccf2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.rp-usecase:nth-child(2) .rp-usecase-foot strong,
.rp-usecase:nth-child(3) .rp-usecase-foot strong {
  color: #c4b5fd;
}

.rp-usecase:nth-child(5) .rp-usecase-foot strong,
.rp-usecase:nth-child(6) .rp-usecase-foot strong {
  color: #f9a8d4;
}

.rp-usecase-foot span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Bottom bar — same border system, dark only */
.rp-collect-bar {
  display: grid;
  grid-template-columns: minmax(200px, 0.85fr) minmax(0, 1.4fr);
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 1.05rem 1.2rem;
  border-radius: 16px;
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, rgba(10, 14, 24, 0.98), rgba(6, 8, 14, 0.99)) padding-box,
    linear-gradient(
      135deg,
      rgba(86, 204, 242, 0.65),
      rgba(124, 92, 252, 0.45),
      rgba(242, 86, 236, 0.65)
    ) border-box;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.rp-collect-bar-lead strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #56ccf2;
  margin-bottom: 0.2rem;
}

.rp-collect-bar-lead span {
  font-size: 0.75rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
}

.rp-collect-bar-items {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
  margin: 0;
  padding: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  padding-left: 1.15rem;
}

.rp-collect-bar-items strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.12rem;
  line-height: 1.25;
}

.rp-collect-bar-items span {
  font-size: 0.65rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 1100px) {
  .rp-collect-flow {
    grid-template-columns: 1fr;
  }

  .rp-collect-canvas {
    display: none;
  }

  .rp-collect-devices {
    max-width: 100%;
  }

  .rp-collect-bar {
    grid-template-columns: 1fr;
  }

  .rp-collect-bar-items {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.9rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .rp-usecases {
    grid-template-columns: 1fr;
  }

  .rp-collect-bar-items {
    grid-template-columns: 1fr;
  }

  .rp-collect-devices {
    flex-wrap: wrap;
    align-items: flex-end;
  }

  .rp-devices-photo {
    max-width: 100%;
    flex: 1 1 220px;
  }

  .rp-device--box {
    width: min(140px, 40%);
    max-width: 160px;
  }
}

/* ---------- 05 · Trustworthy AI (bright theme, edge particle inflow) ---------- */
.rp-trust {
  position: relative;
  background:
    radial-gradient(900px 520px at 16% 40%, rgba(86, 204, 242, 0.16), transparent 55%),
    radial-gradient(820px 480px at 82% 20%, rgba(167, 139, 250, 0.14), transparent 52%),
    radial-gradient(640px 420px at 55% 85%, rgba(242, 86, 236, 0.08), transparent 48%),
    #f4f7fb;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding:
    clamp(3.5rem, 8vh, 5.5rem)
    clamp(1.25rem, 4vw, 2.75rem)
    clamp(3rem, 6vh, 4.5rem);
  overflow: hidden;
}

/* Full-bleed canvas so streams start at the left edge of the screen/section */
.rp-trust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.rp-trust-inner {
  position: relative;
  z-index: 3;
  width: min(1180px, 100%);
  margin: 0 auto;
}

/* No device column visuals — copy + hub only */
.rp-trust-flow {
  align-items: start;
}

.rp-trust-flow .rp-collect-left {
  position: relative;
  z-index: 3;
}

.rp-trust-flow .rp-collect-right {
  z-index: 3;
}

.rp-trust-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2f80ed;
  border: 1px solid rgba(47, 128, 237, 0.35);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.rp-trust-title {
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #0b1220;
  margin-bottom: 1.1rem;
}

.rp-trust-grad {
  display: inline;
  background: linear-gradient(100deg, #2f80ed 0%, #7c5cfc 45%, #db40d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rp-trust-lead {
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.62);
  max-width: 28rem;
  margin-bottom: 1.75rem;
}

/* Light platform hub */
.rp-platform-hub--light {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)) padding-box,
    linear-gradient(
      115deg,
      rgba(86, 204, 242, 0.95) 0%,
      rgba(124, 92, 252, 0.7) 45%,
      rgba(242, 86, 236, 0.9) 100%
    ) border-box;
  box-shadow:
    0 0 0 1px rgba(47, 128, 237, 0.04) inset,
    0 14px 40px rgba(15, 23, 42, 0.08),
    0 0 32px rgba(86, 204, 242, 0.1);
}

.rp-platform-hub--light .rp-platform-top {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.rp-platform-hub--light .rp-platform-name {
  color: #0b1220;
}

.rp-platform-hub--light .rp-platform-title {
  color: #0b1220;
}

.rp-platform-hub--light .rp-platform-tagline {
  color: #2f80ed;
}

.rp-platform-hub--light .rp-platform-caps li {
  color: rgba(15, 23, 42, 0.72);
}

.rp-platform-hub--light .rp-cap-ico {
  color: #2f80ed;
  background: rgba(47, 128, 237, 0.08);
  border-color: rgba(47, 128, 237, 0.22);
  box-shadow: 0 0 14px rgba(86, 204, 242, 0.12);
}

.rp-platform-hub--light .rp-platform-caps li:nth-child(3) .rp-cap-ico {
  color: #7c5cfc;
  background: rgba(124, 92, 252, 0.1);
  border-color: rgba(124, 92, 252, 0.28);
  box-shadow: 0 0 14px rgba(124, 92, 252, 0.1);
}

.rp-platform-hub--light .rp-platform-caps li:nth-child(4) .rp-cap-ico,
.rp-platform-hub--light .rp-platform-caps li:nth-child(5) .rp-cap-ico {
  color: #db40d4;
  background: rgba(242, 86, 236, 0.08);
  border-color: rgba(242, 86, 236, 0.24);
  box-shadow: 0 0 14px rgba(242, 86, 236, 0.1);
}

/* Light use-case / focus cards */
.rp-usecase--light {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.99)) padding-box,
    linear-gradient(
      135deg,
      rgba(86, 204, 242, 0.75),
      rgba(124, 92, 252, 0.5),
      rgba(242, 86, 236, 0.7)
    ) border-box;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  min-height: 108px;
}

.rp-usecase--light .rp-usecase-n {
  color: #2f80ed;
}

.rp-usecase--light h3 {
  color: #0b1220;
}

/* Tighter for 5-card single row */
.rp-usecases--light .rp-usecase--light h3 {
  font-size: 0.76rem;
  line-height: 1.25;
}

/* 5 cards in one horizontal row, positioned below the text block (full width, starting left) */
.rp-usecases--light {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-row: 2;
  grid-column: 1 / -1;
  margin-top: 1.25rem;
  gap: 0.6rem;
}

/* Ensure the row sits cleanly below the upper content */
.rp-trust-flow > .rp-usecases--light {
  margin-top: 1rem;
}

@media (max-width: 1100px) {
  .rp-trust-flow {
    grid-template-columns: 1fr;
  }

  /* Keep edge streams on tablet; hide only if extremely constrained */
  .rp-trust-canvas {
    opacity: 0.85;
  }
}

@media (max-width: 720px) {
  .rp-trust-canvas {
    display: none;
  }
}

@media (max-width: 720px) {
  .rp-usecases--light {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }
}

/* ---------- Shared section chrome ---------- */
.rp-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.rp-section-header {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vh, 2.75rem);
}

.rp-section-header--dark {
  max-width: 40rem;
}

.rp-section-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--research);
  margin-bottom: 0.9rem;
}

.rp-section-kicker--cyan {
  color: var(--research-soft);
}

.rp-section-title {
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #0f172a;
  margin-bottom: 1rem;
}

.rp-section-title--light {
  color: #fff;
}

.rp-section-lead {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.6;
  color: #64748b;
  max-width: 36rem;
}

.rp-section-lead--muted {
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- Capabilities (light) ---------- */
.rp-capabilities {
  background: #f4f7fb;
  padding:
    clamp(3.5rem, 8vh, 5.5rem)
    clamp(1.25rem, 4vw, 2.75rem)
    clamp(4rem, 9vh, 6rem);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.rp-preview {
  margin: 0 0 clamp(2rem, 4vh, 2.75rem);
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #000;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  aspect-ratio: 1672 / 941;
  max-height: min(52vh, 520px);
}

.rp-preview-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.rp-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.rp-cap-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 1.45rem 1.3rem 1.35rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.rp-cap-card:hover {
  border-color: rgba(47, 128, 237, 0.28);
  box-shadow: 0 16px 40px rgba(47, 128, 237, 0.08);
  transform: translateY(-2px);
}

.rp-cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--research);
  background: var(--research-dim);
  flex-shrink: 0;
}

.rp-cap-icon svg {
  width: 22px;
  height: 22px;
}

.rp-cap-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.rp-cap-card > p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #64748b;
}

.rp-cap-list {
  list-style: none;
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rp-cap-list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.86rem;
  font-weight: 500;
  color: #334155;
  line-height: 1.4;
}

.rp-cap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--research);
}

/* ---------- Value (dark) ---------- */
.rp-value {
  background:
    radial-gradient(800px 420px at 15% 20%, rgba(47, 128, 237, 0.12), transparent 55%),
    radial-gradient(700px 400px at 85% 70%, rgba(86, 204, 242, 0.08), transparent 50%),
    #000;
  padding:
    clamp(3.5rem, 8vh, 5.5rem)
    clamp(1.25rem, 4vw, 2.75rem)
    clamp(4rem, 9vh, 6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.rp-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.rp-value-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.35rem 1.3rem 1.25rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rp-value-card:hover {
  border-color: rgba(86, 204, 242, 0.28);
  background: rgba(47, 128, 237, 0.06);
}

.rp-value-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--research-soft);
  margin-bottom: 0.75rem;
}

.rp-value-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.rp-value-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.rp-value-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* (legacy light use-case section styles removed — .rp-usecases lives in dark collect) */

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .rp-cap-grid {
    grid-template-columns: 1fr;
  }

  /* Hero: tighten 3-column composition before stacking */
  .hero-ref {
    max-width: 100%;
    gap: 0.65rem;
    max-height: min(560px, calc(100dvh - var(--header-h) - 2rem));
  }

  .hero-image-card {
    width: min(260px, 28vw);
  }

  .hero-image-card img {
    max-height: 150px;
  }

  .hero-lungs {
    max-width: 130px;
  }

  .hero-brand-main {
    font-size: 18px;
  }

  .hero-tagline {
    font-size: 0.85rem;
    max-width: 220px;
  }

  .hero-devices-img {
    max-width: 90%;
    max-height: 32%;
  }
}

@media (max-width: 900px) {
  .rp-value-grid,
  .rp-use-grid {
    grid-template-columns: 1fr;
  }

  .rp-hero-art {
    object-fit: contain;
    object-position: center 48%;
  }

  /* Hero: stack brand → devices → dashboards (mobile-first composition) */
  .rp-hero {
    height: auto;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: visible;
  }

  .rp-hero-stage {
    position: relative;
    inset: auto;
    min-height: calc(100svh - 0px);
    min-height: calc(100dvh - 0px);
    padding:
      calc(var(--header-h) + 1rem)
      clamp(1rem, 4vw, 1.5rem)
      3.25rem;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: visible;
  }

  .hero-ref {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 520px;
    height: auto;
    max-height: none;
    gap: 1.15rem;
    padding: 0;
    margin: 0 auto;
  }

  .hero-devices {
    order: 2;
    grid-column: auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    gap: 0.65rem;
    padding: 0;
  }

  .hero-devices-img {
    max-width: min(46%, 180px);
    max-height: 130px;
    width: auto;
    height: auto;
  }

  .hero-brand {
    order: 1;
    grid-column: auto;
    height: auto;
    padding: 0.25rem 0 0.15rem;
    width: 100%;
  }

  .hero-lungs {
    max-width: 112px;
    margin-bottom: 0.35rem;
  }

  .hero-brand-main {
    font-size: 1.25rem;
  }

  .hero-brand-research {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
  }

  .hero-tagline {
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 34ch;
    margin: 0 auto;
  }

  .hero-dashboards {
    order: 3;
    grid-column: auto;
    width: 100%;
    height: auto;
    max-height: none;
    align-items: stretch;
    gap: 0.65rem;
  }

  .hero-image-card {
    width: 100%;
    max-width: 100%;
  }

  .hero-image-card img {
    max-height: 148px;
    width: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .hero-image-title {
    font-size: 0.72rem;
    padding: 0.35rem 0.55rem;
  }

  /* Particle paths assume desktop layout — hide on stacked mobile */
  .hero-flow-canvas {
    display: none;
  }

  .rp-scroll-hint {
    bottom: 0.75rem;
  }

  .rp-section-title {
    font-size: clamp(1.55rem, 6vw, 2.15rem);
  }

  .rp-section-lead {
    font-size: 0.95rem;
  }
}

@media (max-width: 720px) {
  .rp-hero {
    min-height: 100svh;
  }

  .rp-hero-stage {
    padding-bottom: 3.5rem;
  }

  .rp-scroll-hint {
    bottom: 0.75rem;
    width: 26px;
    height: 38px;
  }

  .rp-value-cta .btn {
    width: 100%;
  }

  .rp-collect,
  .rp-trust,
  .rp-capabilities {
    padding-left: clamp(1rem, 4vw, 1.25rem);
    padding-right: clamp(1rem, 4vw, 1.25rem);
  }

  .rp-collect-title,
  .rp-trust .rp-section-title,
  .rp-collect-lead {
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }

  .rp-collect-title {
    font-size: clamp(1.5rem, 6.5vw, 2.1rem);
  }

  .rp-collect-devices {
    justify-content: center;
  }

  .rp-platform-caps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rp-usecases--light {
    grid-template-columns: 1fr;
  }

  /* Lighter mobile hero: two product cards */
  .hero-dashboards .hero-image-card:nth-child(n + 3) {
    display: none;
  }
}

/* Ultra-wide: fill width more aggressively while avoiding crop of side panels */
@media (min-aspect-ratio: 2 / 1) {
  .rp-hero-art {
    object-fit: cover;
    object-position: center center;
  }
}

@media (max-width: 560px) {
  .rp-cap-card,
  .rp-use-card,
  .rp-value-card {
    border-radius: 16px;
  }

  .rp-hero-stage {
    padding:
      calc(var(--header-h) + 0.75rem)
      0.9rem
      3.1rem;
  }

  .hero-ref {
    gap: 0.95rem;
  }

  .hero-devices-img {
    max-width: min(48%, 150px);
    max-height: 100px;
  }

  .hero-lungs {
    max-width: 96px;
  }

  .hero-brand-main {
    font-size: 1.1rem;
  }

  .hero-tagline {
    font-size: 0.84rem;
    max-width: 32ch;
  }

  .hero-image-card img {
    max-height: 118px;
  }

  .hero-image-title {
    font-size: 0.68rem;
  }

  /* Keep mobile hero lighter: show first two product cards */
  .hero-dashboards .hero-image-card:nth-child(n + 3) {
    display: none;
  }

  .rp-platform-caps {
    grid-template-columns: 1fr;
  }

  .rp-collect-bar-items {
    grid-template-columns: 1fr;
  }

  .rp-ehr-note strong {
    font-size: 0.86rem;
  }

  .rp-ehr-note p {
    font-size: 0.78rem;
  }
}

/* Reduce motion: pause decorative motion */
@media (prefers-reduced-motion: reduce) {
  .rp-scroll-hint-dot {
    animation: none;
    transform: none;
    opacity: 0.7;
  }

  .rp-preview-video {
    display: none;
  }

  .rp-preview {
    background:
      #000
      url("images/research-hero.jpg") center / cover no-repeat;
  }

  .rp-cap-card,
  .rp-value-card {
    transition: none;
  }

  .rp-cap-card:hover {
    transform: none;
  }
}
