/* RSA Hero block — full-bleed photo hero with bubbles, headline, CTAs and metrics strip */
.rsa-hero {
  position: relative; overflow: hidden; display: flex; align-items: center;
  min-height: calc(100vh - var(--wp--custom--header-height) - 38px);
  padding: var(--wp--preset--spacing--80) 0 var(--wp--preset--spacing--60);
  background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast);
}
.rsa-hero.alignfull { margin-top: 0; margin-bottom: 0; }
.rsa-hero__bg { position: absolute; inset: 0; z-index: 0; background: var(--wp--preset--color--base-2); }
.rsa-hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: rsa-hero-drift 24s ease-in-out infinite alternate; }
@keyframes rsa-hero-drift { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.rsa-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--base) 96%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--base) 82%, transparent) 42%, color-mix(in srgb, var(--wp--preset--color--base) 35%, transparent) 100%),
    linear-gradient(0deg, var(--wp--preset--color--base) 0%, transparent 35%);
}

.rsa-hero__bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.rsa-hero__bubbles span {
  position: absolute; bottom: -20px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .7), rgba(147, 197, 253, .15));
  border: 1px solid rgba(255, 255, 255, .25); animation: rsa-rise linear infinite;
}
@keyframes rsa-rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .8; } 100% { transform: translate(30px, -110vh); opacity: 0; } }

.rsa-hero__container {
  position: relative; z-index: 2; width: 100%; max-width: var(--wp--style--global--wide-size); margin: 0 auto;
  padding: 0 var(--wp--style--root--padding-right) 0 var(--wp--style--root--padding-left);
}
.rsa-hero__content { max-width: 720px; }
.rsa-hero .rsa-pill { margin-bottom: 24px; }
.rsa-hero__title {
  margin: 0; font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--xxx-large);
  font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: var(--wp--preset--color--heading);
}
.rsa-hero__lead { margin: 22px 0 32px; max-width: 640px; font-size: var(--wp--preset--font-size--large); color: #cbd5e1; line-height: 1.6; }
.rsa-hero__lead p { margin: 0 0 .6em; }
.rsa-hero__lead p:last-child { margin-bottom: 0; }
.rsa-hero__lead strong { color: var(--wp--preset--color--heading); }
.rsa-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.rsa-hero__metrics {
  margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px;
  background: var(--wp--custom--line-soft); border: 1px solid var(--wp--custom--line-soft);
  border-radius: var(--wp--custom--radius); overflow: hidden;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.rsa-hero__metric { background: color-mix(in srgb, var(--wp--preset--color--base-2) 78%, transparent); padding: 22px 20px; }
.rsa-hero__metric b { display: block; font-family: var(--wp--preset--font-family--display); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; color: var(--wp--preset--color--heading); }
.rsa-hero__metric--cyan b { color: var(--wp--preset--color--cyan); }
.rsa-hero__metric--green b { color: var(--wp--preset--color--green); }
.rsa-hero__metric small { display: block; margin-top: 2px; color: var(--wp--preset--color--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 1100px) {
  .rsa-hero__metrics { grid-template-columns: repeat(3, 1fr); }
  .rsa-hero__metric:nth-child(3n+2):last-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .rsa-hero { padding-top: 56px; }
  .rsa-hero__ctas .rsa-btn { width: 100%; }
  .rsa-hero__metrics { grid-template-columns: repeat(2, 1fr); }
  .rsa-hero__metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rsa-hero__metric b { font-size: 1.5rem; }
}

/* Editor: keep the preview a sensible height and stop animations stealing focus */
.editor-styles-wrapper .rsa-hero { min-height: 640px; }
