/* Research Brief — Hero */

.rb-hero {
  position: relative;
  overflow-x: clip;
  background: #fff;
  font-family: var(--rb-font);
  color: var(--rb-body);
}

.rb-hero__pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  aspect-ratio: 1412 / 956;
  background-position: top center;
  background-size: 100% auto;
  background-repeat: no-repeat;
  mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 92%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 92%);
  pointer-events: none;
}

.rb-hero .rb-container {
  position: relative;
}

.rb-hero__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.rb-hero__copy {
  flex: 1 1 440px;
  min-width: 0;
}

/* Eyebrow */

.rb-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rb-blue);
}

.rb-hero__eyebrow-rule {
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--rb-green), #57ea55);
}

/* Headline */

.rb-hero__title {
  margin: 0;
  font-size: clamp(38px, 6.4vw, 60px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -.028em;
  color: var(--rb-navy);
  text-wrap: pretty;
}

/* Second line carries the emphasis through weight rather than a colour shift,
   so it stays on the brand navy like the first line. */
.rb-hero__title-accent {
  font-weight: 600;
  color: var(--rb-navy);
}

/* Body */

.rb-hero__intro {
  margin-top: 30px;
  max-width: 560px;
}

.rb-hero__intro p {
  margin: 0 0 16px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--rb-body-soft);
}

.rb-hero__intro p:last-child {
  margin-bottom: 0;
}

.rb-hero__intro a {
  color: var(--rb-blue);
}

.rb-hero__emphasis {
  margin: 18px 0 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--rb-navy);
}

/* Byline row */

.rb-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--rb-line-strong);
  font-size: 14px;
  font-weight: 700;
  color: var(--rb-muted-soft);
}

.rb-hero__meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c6cbdb;
}

/* Stat dial */

.rb-hero__figure {
  flex: 1 1 380px;
  margin: 0;
  display: flex;
  justify-content: center;
}

.rb-hero__dial {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 1;
}

.rb-hero__dial-disc {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 34px 60px -34px rgba(3, 0, 74, .32), 0 2px 10px rgba(3, 0, 74, .05);
}

.rb-hero__dial-svg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* The two arcs are drawn 180° apart (one spans 190°–250°, the other 10°–70°),
   so they share one animation. Giving the second arc its own keyframes with a
   180° offset would rotate it onto the first and they'd read as a single shine. */
.rb-hero__shine {
  transform-origin: 100px 100px;
  animation: rbShineSpin 30s linear infinite;
}

@keyframes rbShineSpin {
  from { transform: rotate(120deg); }
  to { transform: rotate(480deg); }
}

.rb-hero__dial-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20%;
}

.rb-hero__dial-value {
  font-size: clamp(52px, 12vw, 76px);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--rb-navy);
  /* Reserve the widest glyph width so the count-up never reflows the caption. */
  font-variant-numeric: tabular-nums;
}

.rb-hero__dial-caption {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--rb-muted);
}

/*
 * Dial type scales with the dial, not the viewport — the dial shrinks with its
 * column, so a viewport query would size the text against the wrong thing.
 * At 320px the caption was running to seven lines and filling ~72% of the
 * circle; stepping the type down and easing the side padding pulls it back.
 */
@supports (container-type: inline-size) {
  .rb-hero__dial {
    container-type: inline-size;
    container-name: rbdial;
  }

  @container rbdial (max-width: 400px) {
    .rb-hero__dial-value {
      font-size: 46px;
    }

    .rb-hero__dial-caption {
      margin-top: 10px;
      font-size: 13px;
      line-height: 1.4;
    }

    /* more room for the caption inside the ring */
    .rb-hero__dial-inner {
      padding-inline: 14%;
    }
  }

  @container rbdial (max-width: 330px) {
    .rb-hero__dial-value {
      font-size: 40px;
    }

    .rb-hero__dial-caption {
      font-size: 12px;
    }

    .rb-hero__dial-inner {
      padding-inline: 12%;
    }
  }
}

@media (min-width: 768px) {
  .rb-hero__grid {
    gap: 48px 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rb-hero__shine {
    animation: none;
  }
}
