/* Reviews strip — sits between the hero and the finder. */

.rrfp,
.rrfp * {
  box-sizing: border-box;
}

section.rrfp {
  --rrfp-gap: 16px;
  margin: 0;
  padding: 42px 28px 34px;
  position: relative;
  background: transparent;
  border-top: 1px solid var(--border, rgba(255, 255, 255, .07));
}

.rrfp-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.rrfp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.rrfp-intro {
  min-width: 0;
}

.rrfp .section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.rrfp .section-label .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--primary-bright, #4a85ff);
  letter-spacing: .12em;
}

.rrfp .section-label .line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--border-strong, rgba(255, 255, 255, .14));
}

.rrfp .section-label .text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted-2, #9fb0c8);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.rrfp-title {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.03em;
  line-height: 1.05;
  color: var(--fg, #f8fafc);
}

.rrfp-nav {
  display: none;
  gap: 8px;
  flex: none;
  padding-bottom: 4px;
}

.rrfp.is-ready:not(.is-static) .rrfp-nav {
  display: flex;
}

.rrfp.is-ready:not(.is-static) .rrfp-dots {
  display: block;
}

.rrfp.is-dragging {
  user-select: none;
}

.rrfp-arrow,
.rrfp-dots button {
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.rrfp-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong, rgba(255, 255, 255, .14));
  background: rgba(255, 255, 255, .02);
  color: var(--fg, #f8fafc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s, background .2s;
}

.rrfp-arrow:hover,
.rrfp-arrow:focus-visible {
  border-color: var(--primary, #2f6bff);
  color: var(--primary-bright, #4a85ff);
  background: var(--primary-dim, rgba(47, 107, 255, .12));
  outline: none;
}

.rrfp-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 8px;
  margin: 0 -2px;
}

.rrfp-viewport::-webkit-scrollbar {
  display: none;
}

.rrfp.is-ready .rrfp-viewport {
  overflow: hidden;
  scroll-snap-type: none;
  touch-action: pan-y;
}

.rrfp-viewport:focus {
  outline: none;
}

.rrfp-viewport:focus-visible {
  outline: 2px solid var(--primary-bright, #4a85ff);
  outline-offset: 4px;
  border-radius: 12px;
}

.rrfp-track {
  display: flex;
  align-items: stretch;
  gap: var(--rrfp-gap);
  width: 100%;
  transition: transform .55s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}

.rrfp.is-dragging .rrfp-track {
  transition: none;
}

.rrfp-card {
  flex: 0 0 100%;
  min-width: 0;
  min-height: 228px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 16px;
  border-radius: 18px;
  border: 1px solid var(--border-strong, rgba(255, 255, 255, .14));
  background: linear-gradient(180deg, rgba(47, 107, 255, .07), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px rgba(0, 0, 0, .18);
  transition: border-color .2s, background .2s;
}

.rrfp-card:hover {
  border-color: rgba(74, 133, 255, .5);
  background: linear-gradient(180deg, rgba(47, 107, 255, .13), rgba(255, 255, 255, .03));
}

.rrfp-mark {
  display: block;
  color: var(--primary-bright, #4a85ff);
  margin-bottom: 10px;
}

.rrfp-quote {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2, #e2e8f0);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rrfp-person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
}

.rrfp-avatar,
.rrfp-initials {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
}

.rrfp-avatar {
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 2px rgba(47, 107, 255, .45);
}

.rrfp-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -.02em;
  color: #fff;
  background: linear-gradient(135deg, var(--primary, #2f6bff), #1e40af);
  box-shadow: 0 4px 14px rgba(47, 107, 255, .35);
}

.rrfp-id {
  min-width: 0;
}

.rrfp-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.02em;
  color: var(--fg, #f8fafc);
  line-height: 1.25;
}

.rrfp-role {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--muted-2, #9fb0c8);
}

.rrfp-at {
  color: var(--fg, #f8fafc);
  font-weight: 600;
}

.rrfp-job + .rrfp-at::before {
  content: "·";
  margin: 0 6px;
  color: var(--primary-bright, #4a85ff);
  font-weight: 400;
}

.rrfp-flag-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border, rgba(255, 255, 255, .08));
}

.rrfp-flag {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35);
  display: block;
}

.rrfp img {
  -webkit-user-drag: none;
  user-select: none;
}

.rrfp-dots {
  display: none;
  position: relative;
  width: 100%;
  height: 14px;
  margin: 22px 0 0;
}

.rrfp-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
  pointer-events: none;
}

.rrfp-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary, #2f6bff), var(--accent, #00d4ff));
  box-shadow: 0 0 12px var(--primary-glow, rgba(47, 107, 255, .35));
  transition: width .45s cubic-bezier(.16, 1, .3, 1), left .45s cubic-bezier(.16, 1, .3, 1);
}

.rrfp .rrfp-dots button,
.rrfp .rrfp-dots button.is-active {
  position: absolute;
  top: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-width: 0;
}

.rrfp-dots button:focus-visible {
  outline: 2px solid var(--primary-bright, #4a85ff);
  outline-offset: 4px;
}

.rrfp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 720px) {
  .rrfp-card {
    flex-basis: calc((100% - var(--rrfp-gap)) / 2);
  }
}

@media (min-width: 1100px) {
  .rrfp-card {
    flex-basis: calc((100% - (var(--rrfp-gap) * 2)) / 3);
  }

  .rrfp[data-count="2"] .rrfp-card {
    flex-basis: calc((100% - var(--rrfp-gap)) / 2);
  }

  .rrfp[data-count="1"] .rrfp-track {
    justify-content: center;
  }

  .rrfp[data-count="1"] .rrfp-card {
    flex-basis: min(520px, 100%);
  }
}

@media (max-width: 720px) {
  section.rrfp {
    padding: 32px 16px 26px;
  }

  .rrfp-head {
    gap: 12px;
  }

  .rrfp-title {
    font-size: 26px;
  }

  .rrfp-arrow {
    width: 38px;
    height: 38px;
  }

  .rrfp-card {
    padding: 18px 16px 14px;
    min-height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rrfp-track,
  .rrfp-card,
  .rrfp-dots button,
  .rrfp-bar-fill,
  .rrfp-arrow {
    transition: none;
  }
}
