/* R3 HOME VIDEO AREA FILL HOTFIX */
.r3-story-grid {
  align-items: start;
}

.r3-story-copy-panel {
  grid-row: 1 / span 2;
}

.r3-story-extension {
  display: grid;
  gap: 1.35rem;
  margin-top: -0.2rem;
}

.r3-story-value-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.r3-story-value-card,
.r3-story-journey {
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  padding: 1.2rem 1.15rem 1.15rem;
  background:
    linear-gradient(180deg, rgba(9, 17, 34, 0.94), rgba(7, 13, 27, 0.92)),
    radial-gradient(circle at top right, rgba(60, 210, 255, 0.14), transparent 42%),
    radial-gradient(circle at bottom left, rgba(81, 116, 255, 0.16), transparent 46%);
  border: 1px solid rgba(95, 126, 210, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 44px rgba(2, 8, 22, 0.34),
    0 0 0 1px rgba(28, 212, 255, 0.05);
}

.r3-story-value-card::before,
.r3-story-journey::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(57, 227, 216, 0.06) 48%, transparent 100%),
    linear-gradient(180deg, rgba(84, 119, 255, 0.08), transparent 32%);
  pointer-events: none;
}

.r3-story-value-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -38% auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 217, 255, 0.18), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.r3-story-value-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 0.85rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4be8db;
  background: rgba(17, 33, 61, 0.9);
  border: 1px solid rgba(64, 215, 255, 0.22);
  box-shadow: 0 0 18px rgba(36, 169, 255, 0.12);
}

.r3-story-value-card h4,
.r3-story-journey-head h4 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f4f8ff;
}

.r3-story-value-card p,
.r3-story-journey-head p,
.r3-story-journey-step p {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(214, 225, 244, 0.76);
}

.r3-story-journey {
  padding: 1.35rem 1.25rem 1.3rem;
}

.r3-story-journey-head {
  position: relative;
  z-index: 1;
  margin-bottom: 1rem;
}

.r3-story-journey-head .kicker {
  display: inline-flex;
  margin-bottom: 0.55rem;
}

.r3-story-journey-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.r3-story-journey-track::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 1.15rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(88, 115, 255, 0.18), rgba(73, 232, 221, 0.72), rgba(88, 115, 255, 0.18));
  box-shadow: 0 0 20px rgba(55, 213, 255, 0.12);
}

.r3-story-journey-step {
  position: relative;
  padding-top: 2.25rem;
}

.r3-story-journey-node {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(70, 111, 255, 0.96), rgba(41, 223, 216, 0.92));
  box-shadow: 0 0 18px rgba(45, 206, 255, 0.35);
  color: #041426;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.r3-story-journey-step h5 {
  margin: 0;
  font-size: 0.98rem;
  color: #f7fbff;
  letter-spacing: 0.01em;
}

.r3-story-journey-step p {
  font-size: 0.84rem;
  line-height: 1.55;
}

@media (max-width: 1100px) {
  .r3-story-copy-panel {
    grid-row: auto;
  }

  .r3-story-value-cards,
  .r3-story-journey-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .r3-story-journey-track::before {
    display: none;
  }
}

@media (max-width: 767px) {
  .r3-story-extension {
    gap: 1rem;
  }

  .r3-story-value-cards,
  .r3-story-journey-track {
    grid-template-columns: 1fr;
  }

  .r3-story-value-card,
  .r3-story-journey {
    border-radius: 1.1rem;
    padding: 1rem;
  }

  .r3-story-value-card h4,
  .r3-story-journey-head h4 {
    font-size: 1rem;
  }

  .r3-story-value-card p,
  .r3-story-journey-head p,
  .r3-story-journey-step p {
    font-size: 0.88rem;
  }
}
