/* R32: compact method/resource bridge, explicit homepage media paths, case-explainer priority. */
:root {
  --r32-ink: #071c39;
  --r32-muted: #48617c;
  --r32-blue: #075cff;
  --r32-cyan: #1fc8d6;
  --r32-line: #c9d9ea;
  --r32-pale: #eef6ff;
}

.r32-anchor {
  display: block;
  inline-size: 1px;
  block-size: 1px;
  scroll-margin-block-start: 104px;
  pointer-events: none;
}

/* One compact three-column line replaces the previous two repeated networks. */
.r32-growth-network {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 7vw, 104px) clamp(22px, 4vw, 64px);
  color: var(--r32-ink);
  background:
    radial-gradient(circle at 88% 10%, rgba(31, 200, 214, .16), transparent 25%),
    linear-gradient(145deg, #f8fbff 0%, #eaf4ff 58%, #f7fcff 100%);
  border-block: 1px solid #c5d9ed;
}

.r32-growth-network::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: -40%;
  width: 34%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--r32-cyan), var(--r32-blue), transparent);
  opacity: 0;
}

.r32-growth-network[data-r30-playing]::after {
  opacity: .75;
  animation: r32-signal 8s linear infinite;
}

@keyframes r32-signal {
  to { transform: translateX(420%); }
}

.r32-growth-head {
  display: grid;
  grid-template-columns: minmax(330px, 1.05fr) minmax(280px, .9fr) minmax(250px, .72fr);
  align-items: end;
  gap: 22px clamp(24px, 3vw, 48px);
  max-width: 1420px;
  margin: 0 auto 38px;
}

.r32-growth-head > div:first-child { grid-row: span 2; }
.r32-growth-head .eyebrow { margin-bottom: 13px; }
.r32-growth-head h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
}

.r32-growth-head > p {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--r32-muted);
}

.r32-growth-head > .text-link { justify-self: start; }
.r32-growth-head > .r30-motion-toggle { justify-self: end; align-self: center; }

.r32-resource-count {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.r32-resource-count strong {
  display: grid;
  grid-template-columns: auto minmax(82px, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 11px 13px;
  color: #fff;
  font-size: clamp(24px, 2.1vw, 35px);
  line-height: 1;
  background: var(--r32-ink);
  border-radius: 14px;
}

.r32-resource-count strong:last-child { background: var(--r32-blue); }
.r32-resource-count small { font-size: 12px; line-height: 1.35; letter-spacing: .02em; }

.r32-three-stage {
  position: relative;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  max-width: 1420px;
  margin: 0 auto;
  overflow: hidden;
  border-block: 1px solid #b8cee4;
  background: rgba(255, 255, 255, .42);
}

.r32-three-stage > article {
  min-width: 0;
  min-height: 330px;
  padding: clamp(25px, 3vw, 42px) !important;
  border: 0 !important;
  border-inline-start: 1px solid #b8cee4 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.r32-three-stage > article:first-of-type { border-inline-start: 0 !important; }
.r32-three-stage h3 { margin: 22px 0 9px; font-size: clamp(25px, 2vw, 32px); }
.r32-three-stage p { margin: 0; color: #37536f; font-size: 16px; line-height: 1.68; }
.r32-three-stage small { display: block; margin-top: 15px; color: #5c7290; font-size: 14px; line-height: 1.55; }

.r32-three-stage .flow-number {
  color: var(--r32-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .1em;
}

.r32-three-stage .flow-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 88px;
  margin-top: 24px;
  border-radius: 18px;
  color: var(--r32-ink);
  background: rgba(255, 255, 255, .8);
  border: 1px solid #c7daec;
}

.r32-understand-visual i {
  padding: 10px 12px;
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
  background: #e8f1ff;
  border-radius: 10px;
}

.r32-understand-visual b { color: var(--r32-blue); }
.r32-review-visual { align-items: end !important; padding: 18px 24px; }
.r32-review-visual i {
  width: 15%;
  height: var(--h);
  min-height: 20px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, var(--r32-cyan), var(--r32-blue));
}
.r32-review-visual b { align-self: center; font-size: 26px; color: var(--r32-blue); }
.r32-distribute-visual { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
.r32-distribute-visual i {
  padding: 7px;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  border-radius: 9px;
  color: #fff;
  background: var(--r32-ink);
}
.r32-distribute-visual i:nth-child(2), .r32-distribute-visual i:nth-child(4) { background: var(--r32-blue); }

.r32-reach-board {
  max-width: 1420px;
  margin: 26px auto 0;
  padding: clamp(24px, 3vw, 42px);
  color: #f5f9ff;
  background:
    linear-gradient(120deg, rgba(7, 92, 255, .18), transparent 40%),
    #071c39;
  border-radius: 28px;
  box-shadow: 0 24px 54px rgba(7, 28, 57, .17);
}

.r32-reach-board > header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, .9fr);
  gap: 6px 40px;
  align-items: end;
  padding-bottom: 21px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.r32-reach-board > header .eyebrow { grid-column: 1 / -1; color: #63e3ef; }
.r32-reach-board > header h3 { margin: 0; font-size: clamp(27px, 3vw, 43px); line-height: 1.08; letter-spacing: -.035em; }
.r32-reach-board > header > p:last-child { margin: 0; color: #c1d2e8; font-size: 15px; line-height: 1.65; }

.r32-reach-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.r32-reach-row > strong { display: flex; flex-direction: column; gap: 5px; }
.r32-reach-row > strong span { color: #fff; font-size: 17px; }
.r32-reach-row > strong small { color: #7fd8e1; font-size: 12px; line-height: 1.4; }

.r32-logo-group {
  display: grid;
  grid-template-columns: repeat(10, minmax(58px, 1fr));
  gap: 8px;
}

.r32-logo {
  display: grid;
  grid-template-rows: 34px auto;
  align-items: center;
  min-width: 0;
  padding: 7px 5px 6px;
  overflow: hidden;
  color: #1a3554;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 9px;
}
.r32-logo.is-dark { color: #fff; background: #122d4b; }
.r32-logo img { display: block; max-width: 84%; max-height: 28px; width: auto; height: auto; margin: auto; object-fit: contain; }
.r32-logo small { overflow: hidden; font-size: 10px; line-height: 1.2; text-align: center; white-space: nowrap; text-overflow: ellipsis; }

.r32-execution-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  padding-top: 20px;
  font-size: 14px;
}
.r32-execution-line b { margin-right: auto; color: #fff; font-size: 16px; }
.r32-execution-line span { padding: 7px 10px; color: #dbe8f8; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; }
.r32-execution-line i { color: #63e3ef; font-style: normal; }
.r32-resource-boundary { max-width: 1420px; margin: 15px auto 0; color: #5a6f86; font-size: 13px; line-height: 1.55; }

/* Homepage: direct video and graphic paths before the mixed library. */
.r32-home-showcase {
  display: grid;
  gap: 34px;
  min-width: 0;
  max-width: 100%;
  margin: 34px 0 46px;
  overflow-x: clip;
}
.r32-showcase-band { min-width: 0; max-width: 100%; padding-block: 3px 30px; border-bottom: 1px solid #cbd9e8; }
.r32-showcase-band > header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
}
.r32-showcase-band > header h3 { margin: 4px 0 0; font-size: clamp(25px, 2.4vw, 36px); letter-spacing: -.03em; }
.r32-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 17px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  background: var(--r32-blue);
  border-radius: 12px;
  box-shadow: 0 11px 25px rgba(7, 92, 255, .2);
}
.r32-more-link:hover { transform: translateY(-2px); }

.r32-video-grid, .r32-graphic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.r32-video-grid > article {
  display: grid;
  grid-template-columns: minmax(118px, .88fr) minmax(0, 1.12fr);
  min-width: 0;
  overflow: hidden;
  background: #071525;
  border-radius: 18px;
}
.r32-video-grid .folio-media {
  position: relative;
  display: block;
  width: 100%;
  min-height: 250px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #091728;
  cursor: pointer;
}
.r32-video-grid .folio-media img { width: 100%; height: 100%; object-fit: cover; }
.r32-video-grid .folio-media small { position: absolute; left: 11px; bottom: 10px; color: #fff; font-size: 12px; }
.r32-video-grid article > div { padding: 24px 18px; color: #e8f2ff; }
.r32-video-grid article > div > span { color: #5fe1ec; font-size: 12px; font-weight: 800; }
.r32-video-grid h4 { margin: 9px 0; color: #fff; font-size: 21px; line-height: 1.25; }
.r32-video-grid p { margin: 0 0 15px; color: #bfcfe1; font-size: 15px; line-height: 1.62; }
.r32-video-grid article > div > a { color: #7eb1ff; font-size: 14px; font-weight: 750; text-decoration: none; }

.r32-graphic-grid > a {
  position: relative;
  display: block;
  min-height: 250px;
  overflow: hidden;
  color: #fff;
  background: #172947;
  border-radius: 18px;
}
.r32-graphic-grid img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; transition: transform .45s ease; }
.r32-graphic-grid > a:hover img { transform: scale(1.025); }
.r32-graphic-grid span { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: 15px; align-items: end; padding: 30px 18px 16px; background: linear-gradient(transparent, rgba(5,18,37,.92)); }
.r32-graphic-grid b { font-size: 19px; }
.r32-graphic-grid small { font-size: 13px; color: #cce7ef; }

/* The featured matrix now contains two videos only, separated by two graphic works. */
.r32-matrix-mix { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.r32-matrix-graphic .folio-media { display: block; position: relative; background: #081729; }
.r32-matrix-graphic .folio-media img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.r32-matrix-graphic .folio-media small { position: absolute; left: 12px; bottom: 12px; color: #fff; }
.r32-matrix-actions { display: flex !important; justify-content: flex-end; align-items: center; gap: 18px; }
.r32-matrix-actions > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

/* Works page: make the requested case explainer group the first browsable collection. */
.r32-case-hero-wall { position: relative; padding-top: 74px; }
.r32-case-hero-title {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  padding: 0 4px 14px;
  color: var(--r32-ink);
}
.r32-case-hero-title strong { font-size: 22px; }
.r32-case-hero-title span { color: var(--r32-muted); font-size: 14px; }
.r32-case-first-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid #cbd8e7;
}
.r32-case-first-heading h2, .r32-all-work-heading h2 { margin: 5px 0 0; font-size: clamp(28px, 3vw, 42px); }
.r32-case-first-heading > p, .r32-all-work-heading > p { color: var(--r32-muted); font-size: 16px; }
.r32-case-explainer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0 54px;
}
.r32-case-explainer-grid > article { min-width: 0; }
.r32-all-work-heading { margin: 0 0 20px; }

@media (max-width: 1100px) {
  .r32-growth-head { grid-template-columns: minmax(280px, 1fr) minmax(250px, 1fr); }
  .r32-growth-head > div:first-child { grid-row: auto; }
  .r32-growth-head > .r30-motion-toggle { justify-self: start; }
  .r32-logo-group { grid-template-columns: repeat(7, minmax(58px, 1fr)); }
  .r32-video-grid > article { grid-template-columns: 1fr; }
  .r32-video-grid .folio-media { min-height: 220px; }
}

@media (max-width: 780px) {
  .r32-growth-network { padding-inline: 20px; }
  .r32-growth-head { grid-template-columns: 1fr; align-items: start; }
  .r32-growth-head h2 { font-size: clamp(39px, 8vw, 55px); }
  .r32-growth-head > .r30-motion-toggle { justify-self: start; }
  .r32-three-stage { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .r32-three-stage > article { min-height: 360px; padding: 24px 18px !important; }
  .r32-three-stage p { font-size: 15px; }
  .r32-reach-board > header { grid-template-columns: 1fr; }
  .r32-reach-row { grid-template-columns: 1fr; }
  .r32-logo-group { grid-template-columns: repeat(6, minmax(54px, 1fr)); }
  .r32-video-grid, .r32-graphic-grid, .r32-case-explainer-grid, .r32-matrix-mix {
    grid-template-columns: repeat(3, minmax(260px, 78vw)) !important;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 9px;
  }
  .r32-video-grid > *, .r32-graphic-grid > *, .r32-case-explainer-grid > *, .r32-matrix-mix > * { scroll-snap-align: start; }
  .r32-matrix-mix { grid-template-columns: repeat(4, minmax(260px, 78vw)) !important; }
  .r32-showcase-band > header, .r32-case-first-heading, .r32-matrix-actions { align-items: flex-start; flex-direction: column; }
  .r32-matrix-actions > div { justify-content: flex-start; }
  .r32-case-hero-wall { padding-top: 96px; }
  .r32-case-hero-title { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  .r32-growth-network { padding-block: 58px; }
  .r32-growth-head { margin-bottom: 28px; }
  .r32-resource-count { width: 100%; }
  .r32-resource-count strong { flex: 1; }
  .r32-three-stage {
    grid-template-columns: 1fr !important;
    border-block: 0;
    border-inline-start: 2px solid #8fb7e0;
  }
  .r32-three-stage > article {
    min-height: 0;
    padding: 24px !important;
    border-inline-start: 0 !important;
    border-block-start: 1px solid #bfd2e5 !important;
  }
  .r32-three-stage > article:first-of-type { border-block-start: 0 !important; }
  .r32-three-stage p { font-size: 16px; }
  .r32-reach-board { margin-inline: -4px; padding: 22px 18px; border-radius: 22px; }
  .r32-reach-board > header h3 { font-size: 29px; }
  .r32-logo-group {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }
  .r32-logo { flex: 0 0 82px; scroll-snap-align: start; }
  .r32-execution-line { align-items: flex-start; }
  .r32-execution-line b { flex-basis: 100%; }
  .r32-execution-line i { display: none; }
  .r32-resource-boundary { font-size: 13px; }
  .r32-home-showcase { margin-top: 24px; }
  .r32-showcase-band > header { margin-bottom: 14px; }
  .r32-more-link { width: 100%; }
  .r32-video-grid > article { grid-template-columns: minmax(112px, .82fr) minmax(0, 1.18fr); }
  .r32-video-grid .folio-media { min-height: 252px; }
  .r32-video-grid article > div { padding: 22px 16px; }
  .r32-video-grid h4 { font-size: 19px; }
  .r32-video-grid p { font-size: 14px; }
  .r32-case-hero-wall { padding-top: 106px; }
  .r32-case-hero-title strong { font-size: 20px; }
  .r32-case-hero-title span { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .r32-growth-network::after, .r32-graphic-grid img { animation: none !important; transition: none !important; }
}
