/* Owner-approved homepage hero refresh. The shared backdrop is behind both
   the hero and the first section; foreground styling remains hero-scoped. */

body.home-v2 #smooth-content.home-hero-backdrop {
  --home-hero-image-x: 0px;
  --home-hero-image-y: 0px;
  --home-hero-image-width: 0px;
  --home-hero-image-height: 0px;
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background: var(--white);
}

.home-hero-refresh.hero-section.hero-1 {
  position: relative;
  overflow: visible;
  padding: 76px 0 42px;
  background: transparent;
}

/* Let the rear page decoration show through the foreground sections.
   Legacy homepage rules paint these surfaces white with !important. */
body.home-v2 #smooth-content.home-hero-backdrop .home-hero-refresh,
body.home-v2 #smooth-content.home-hero-backdrop #bare-test-track-wrap {
  background: transparent !important;
}

body.home-v2 #smooth-content.home-hero-backdrop > .about-section {
  background: linear-gradient(to bottom, transparent 70%, var(--gray-white) 90%) !important;
}

body.home-v2 #smooth-content.home-hero-backdrop::before {
  position: absolute;
  z-index: -1;
  content: "";
  --home-circle-scale: 0.9;
  --home-circle-image-ratio: 2.4;
  --home-circle-diameter: calc(var(--home-hero-image-width) * var(--home-circle-image-ratio) * var(--home-circle-scale));
  width: var(--home-circle-diameter);
  aspect-ratio: 1;
  /* Anchor the circle's left edge and vertical center to the stable image
     canvas, not the animated, persona-specific frames. */
  left: calc(var(--home-hero-image-x) - 30px);
  top: calc(var(--home-hero-image-y) - var(--home-hero-image-height) * 0.15 - var(--home-circle-diameter) / 2 + 30px);
  right: auto;
  /* A restrained asymmetric oval: smooth left edge and a broader lower curve. */
  border-radius: 48% 52% 42% 58% / 50% 46% 54% 50%;
  transform: none;
  /* Keep the curved edge pure cyan; localize purple to the visible top right. */
  background: var(--cyan);
  background-image: radial-gradient(ellipse 55% 48% at right top, color-mix(in srgb, var(--purple) 55%, transparent) 0%, transparent 100%);
  /* Paint within the visible right-hand area, not the oversized circle's
     off-screen upper-right corner. Keep the circle's geometry unchanged. */
  background-color: var(--cyan);
  background-size: min(100%, calc(100vw - var(--home-hero-image-x) + 30px)) calc(var(--home-circle-diameter) / 2 + var(--home-hero-image-y) - var(--home-hero-image-height) * 0.15 + 30px);
  background-position: left bottom;
  background-repeat: no-repeat;
  pointer-events: none;
}

.home-hero-refresh.hero-section.hero-1 > .container.custom-container {
  position: relative;
  z-index: 1;
}

.home-hero-refresh.hero-section.hero-1 .row.g-4 {
  align-items: center;
  --bs-gutter-x: clamp(2rem, 5vw, 5.25rem);
}

.home-hero-refresh.hero-section.hero-1 .hero-content {
  max-width: 560px;
  padding: 18px 0 28px;
}

.home-hero-refresh.hero-section.hero-1 .hero-content > h6,
.home-hero-refresh.hero-section.hero-1 .hero-content .renatus-eyebrow-stars {
  display: none !important;
}

.home-hero-refresh.hero-section.hero-1 .home-hero-rotator {
  margin: 0;
}

.home-hero-refresh.hero-section.hero-1 .hero-content h1 {
  max-width: 570px;
  margin: 0 0 20px;
  color: var(--navy, #0f1e41);
  font-size: clamp(3.15rem, 5.25vw, 5.1rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.99;
  white-space: pre-line;
}

.home-hero-refresh.hero-section.hero-1 .hero-content h1 .home-hero-title-emphasis {
  font-weight: 800;
}

.home-hero-refresh.hero-section.hero-1 .hero-content p.hero-subhead {
  max-width: 520px;
  margin: 0;
  color: var(--navy, #0f1e41);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-weight: 400;
  line-height: 1.5;
  white-space: pre-line;
}

.home-hero-refresh .home-hero-products-heading {
  display: none;
}

.home-hero-refresh .home-hero-entry-card {
  display: contents;
}

.home-hero-refresh .home-hero-persona-mobile-text {
  display: none;
}

.home-hero-refresh .home-hero-mobile-watch,
.home-hero-refresh .home-hero-program-actions {
  display: none;
}

.home-hero-mobile-video {
  width: min(92vw, 760px);
  max-height: 90dvh;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: var(--navy);
  color: var(--white);
}

.home-hero-mobile-video::backdrop {
  background: rgba(15, 30, 65, 0.85);
}

.home-hero-mobile-video-close {
  display: block;
  min-height: 44px;
  margin-inline-start: auto;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: var(--white);
}

.home-hero-refresh .home-hero-mobile-video .home-hero-intro {
  margin: 16px 0 0;
  width: 100%;
}

body.home-hero-video-open {
  overflow: hidden;
}

.home-hero-refresh.hero-section.hero-1 .hero-btn {
  position: relative;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
}

.home-hero-refresh.hero-section.hero-1 .hero-btn .theme-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 25px;
  border: 1px solid var(--pink, #ff2cd7);
  border-radius: 999px;
  background: var(--pink, #ff2cd7);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
  box-shadow: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.home-hero-refresh.hero-section.hero-1 .hero-btn .theme-btn:hover {
  transform: none;
  background: var(--navy, #0f1e41);
  border-color: transparent;
}

.home-hero-refresh.hero-section.hero-1 .hero-btn .theme-btn.style-2 {
  min-height: 44px;
  padding: 0 4px;
  border-color: transparent;
  background: transparent;
  color: var(--navy, #0f1e41);
}

/* The legacy theme's CTA fills and borders are !important. Override only
   this approved hero; keep the shared site-wide buttons unchanged. */
body.home-v2 .home-hero-refresh.hero-1 .hero-btn .theme-btn:not(.style-2) {
  background: var(--pink) !important;
  color: var(--white) !important;
}
body.home-v2 .home-hero-refresh.hero-1 .hero-btn .theme-btn:not(.style-2):hover {
  transform: none !important;
  background: var(--navy) !important;
  border-color: transparent !important;
}
body.home-v2 .home-hero-refresh.hero-1 .hero-btn .theme-btn.style-2,
body.home-v2 .home-hero-refresh.hero-1 .hero-btn .theme-btn.style-2:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--navy) !important;
}
body.home-v2 .home-hero-refresh.hero-1 .hero-btn .theme-btn.style-2:hover {
  color: var(--pink) !important;
}
body.home-v2 .home-hero-refresh.hero-1 .hero-btn .theme-btn::before,
body.home-v2 .home-hero-refresh.hero-1 .hero-btn .theme-btn::after {
  display: none !important;
}

.home-hero-refresh.hero-section.hero-1 .hero-btn .theme-btn.style-2:hover {
  transform: translateY(-1px);
  background: transparent;
  border-color: transparent;
  color: var(--pink, #ff2cd7);
}

.home-hero-refresh.hero-section.hero-1 .hero-btn .home-icon {
  width: 15px;
  height: 15px;
}

.home-hero-refresh.hero-section.hero-1 .renatus-rating-block {
  display: none !important;
}

.home-hero-refresh.hero-section.hero-1 .hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

body.home-v2 .home-hero-refresh .home-hero-persona[data-persona="researchers"] img,
body.home-v2 .home-hero-refresh .home-hero-persona[data-persona="training"] img {
  filter: brightness(1.1);
}

body.home-v2 #bare-test-track-wrap[hidden],
body.home-v2 #mob-track-wrap[hidden] {
  display: none !important;
}

.home-hero-refresh .home-hero-products {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin: -2px auto 0;
  overflow: visible;
  border: 1px solid rgba(15, 30, 65, 0.08);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(15, 30, 65, 0.12);
}

.home-hero-refresh .home-hero-products a {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 98px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px clamp(14px, 2.5vw, 28px);
  color: var(--navy, #0f1e41);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.home-hero-refresh .home-hero-products a:first-child {
  border-radius: 19px 0 0 19px;
}

.home-hero-refresh .home-hero-products a:last-child {
  border-radius: 0 19px 19px 0;
}

.home-hero-refresh .home-hero-products a + a::before {
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 0;
  width: 1px;
  background: rgba(15, 30, 65, 0.12);
  content: "";
}

.home-hero-refresh .home-hero-products a[href="/research"] {
  --home-product-accent: var(--cyan);
}

.home-hero-refresh .home-hero-products a[href="/planning"] {
  --home-product-accent: var(--purple);
}

.home-hero-refresh .home-hero-products a[href="/assessments"] {
  --home-product-accent: var(--kicker16);
}

.home-hero-refresh .home-hero-products a[href="/simulations"] {
  --home-product-accent: var(--pink);
}

.home-hero-refresh .home-hero-products a:is(:hover, :focus-visible) {
  z-index: 1;
  color: var(--home-product-accent);
  background: var(--white);
  box-shadow: 0 6px 24px rgba(15, 30, 65, 0.12);
}

.home-hero-refresh .home-hero-products a:focus-visible {
  /* Override the vendor theme's important outline reset on links. */
  outline: 2px solid var(--navy, #0f1e41) !important;
  outline-offset: -3px;
}

.home-hero-refresh .home-hero-products a span {
  min-width: 0;
}

.home-hero-refresh .home-hero-product-description {
  display: block;
  color: var(--navy, #0f1e41);
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.home-hero-refresh .home-hero-products a > svg {
  flex-shrink: 0;
}

.home-hero-refresh .home-hero-intro {
  position: relative;
  container-type: inline-size;
  width: min(100%, 960px);
  margin: clamp(56px, 8vw, 104px) auto 32px;
  overflow: hidden;
  border: 1px solid var(--gray-light);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(15, 30, 65, 0.08);
}

.home-hero-refresh .home-hero-intro-player {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: inherit;
}

.home-hero-refresh .home-hero-intro-play {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  /* The supplied cover has transparent rounded corners: keep native video
     controls from showing through them before playback. */
  background: var(--yellow);
  overflow: hidden;
  cursor: pointer;
}

.home-hero-refresh .home-hero-intro-play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-hero-refresh .home-hero-intro-play-icon {
  position: absolute;
  top: 62.4%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 10.8%;
  aspect-ratio: 1;
  border: 0.45cqw solid var(--white);
  border-radius: 50%;
  background: var(--navy, #0f1e41);
  color: var(--white);
  box-shadow: 0 0.8cqw 2cqw rgba(15, 30, 65, 0.18);
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, box-shadow 180ms ease;
  pointer-events: none;
}

.home-hero-refresh .home-hero-intro-play-icon svg {
  width: 44%;
  height: auto;
}

@media (hover: hover) {
  .home-hero-refresh .home-hero-intro-play:hover .home-hero-intro-play-icon {
    transform: translate(-50%, calc(-50% - 3px)) scale(1.08);
    box-shadow: 0 1.2cqw 2.8cqw rgba(15, 30, 65, 0.28);
  }
}

.home-hero-refresh .home-hero-intro-play:focus-visible .home-hero-intro-play-icon {
  transform: translate(-50%, calc(-50% - 3px)) scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-refresh .home-hero-intro-play-icon {
    transition: none;
  }
  .home-hero-refresh .home-hero-intro-play:hover .home-hero-intro-play-icon,
  .home-hero-refresh .home-hero-intro-play:focus-visible .home-hero-intro-play-icon {
    transform: translate(-50%, -50%);
  }
}

.home-hero-refresh .home-hero-intro-play:focus-visible {
  outline: 3px solid var(--navy) !important;
  outline-offset: -4px;
}

.home-hero-refresh .home-hero-intro [hidden] {
  display: none !important;
}

.home-hero-refresh .home-hero-intro-error {
  margin: 0;
  padding: 12px 16px;
  color: var(--navy);
  background: var(--white);
}

.home-hero-refresh .home-hero-products a svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease, color 180ms ease;
}

.home-hero-refresh .home-hero-products a:is(:hover, :focus-visible) svg {
  color: var(--home-product-accent);
  transform: translate(2px, -2px);
}

.home-hero-refresh.hero-section.hero-1 .hero-btn .theme-btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--cyan, #00c3ff) 55%, transparent);
  outline-offset: 3px;
}

@media (max-width: 991.98px) {
  .home-hero-refresh.hero-section.hero-1 {
    padding: 45px 0 32px;
  }

  .home-hero-refresh.hero-section.hero-1 .row.g-4 {
    --bs-gutter-x: 1.5rem;
  }

  .home-hero-refresh.hero-section.hero-1 .hero-content {
    max-width: 590px;
    padding: 20px 0 4px;
  }

  .home-hero-refresh.hero-section.hero-1 .hero-content h1 {
    max-width: 540px;
    font-size: clamp(3.2rem, 8vw, 5rem);
  }

  .home-hero-refresh .home-hero-products {
    margin-top: 12px;
  }
}

@media (max-width: 1199.98px), (hover: none) and (pointer: coarse) and (max-width: 1400px) {
  body.home-v2 #smooth-content.home-hero-backdrop::before {
    width: 100%;
    height: var(--home-hero-image-height);
    aspect-ratio: auto;
    left: 0;
    top: var(--home-hero-image-y);
    border-radius: 0;
    background-image: linear-gradient(to bottom left, var(--purple) 12%, var(--cyan) 70%);
    background-size: auto;
    background-position: 0 0;
  }

  .home-hero-refresh.hero-section.hero-1 .row.g-4 > .col-lg-6 {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .home-hero-refresh.hero-section.hero-1 .hero-content {
    margin-inline: auto;
    text-align: center;
  }

  .home-hero-refresh.hero-section.hero-1 .hero-content h1,
  .home-hero-refresh.hero-section.hero-1 .hero-content p.hero-subhead {
    margin-inline: auto;
  }

  .home-hero-refresh.hero-section.hero-1 .hero-btn {
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .home-hero-refresh.hero-section.hero-1 {
    padding: 34px 0 28px;
  }

  .home-hero-refresh.hero-section.hero-1 .hero-content {
    padding: 14px 0 0;
  }

  .home-hero-refresh.hero-section.hero-1 .hero-content h1 {
    margin-bottom: 16px;
    font-size: clamp(2.7rem, 12vw, 3.6rem);
    letter-spacing: -0.06em;
    line-height: 1;
  }

  .home-hero-refresh.hero-section.hero-1 .hero-content p.hero-subhead {
    font-size: 1rem;
    line-height: 1.48;
  }

  .home-hero-refresh.hero-section.hero-1 .hero-btn {
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 26px;
  }

  .home-hero-refresh.hero-section.hero-1 .hero-btn .theme-btn {
    min-height: 46px;
    padding: 0 21px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .home-hero-refresh .home-hero-products a,
  .home-hero-refresh .home-hero-products a svg,
  .home-hero-refresh.hero-section.hero-1 .hero-btn .theme-btn {
    transition: none;
  }
}

.home-hero-refresh .home-trial-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 36px 28px 28px;
  border: 0;
  border-radius: 20px;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 20px 70px color-mix(in srgb, var(--navy) 25%, transparent);
}
.home-hero-refresh .home-trial-dialog::backdrop {
  background: color-mix(in srgb, var(--navy) 55%, transparent);
}
.home-hero-refresh .home-trial-dialog h2 {
  margin: 0 28px 24px 0;
  font-size: 28px;
}
.home-hero-refresh .home-trial-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 16px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 26px;
}
.home-hero-refresh .home-trial-choices {
  display: grid;
  gap: 12px;
}
.home-hero-refresh .home-trial-dialog [hidden] { display: none !important; }
.home-hero-refresh .home-trial-choices button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--gray-light);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  text-align: start;
  font-size: 16px;
}
.home-hero-refresh .home-trial-choices button:hover {
  border-color: var(--pink);
}
.home-hero-refresh .home-trial-selected { font-weight: 600; }
.home-hero-refresh .home-trial-form label { display: block; margin: 18px 0 8px; }
.home-hero-refresh .home-trial-form input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  color: var(--navy);
  background: var(--white);
  font-size: 16px;
}
.home-hero-refresh .home-trial-error { color: var(--red); font-size: 14px; margin: 10px 0; }
.home-hero-refresh .home-trial-submit {
  width: 100%;
  padding: 14px 20px;
  border: 0;
  border-radius: 24px;
  color: var(--white);
  background: var(--pink);
  font-weight: 600;
}
.home-hero-refresh .home-trial-submit:disabled { opacity: .6; cursor: wait; }
.home-hero-refresh .home-trial-dialog :focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

/* Owner-specified persona artwork: one bottom-anchored, uncropped 5:4 frame. */
body.home-v2 .home-hero-refresh.hero-1 .home-hero-visual-column {
  display: flex;
  align-self: stretch;
  align-items: flex-end;
}

body.home-v2 .home-hero-refresh.hero-1 .hero-image.home-hero-video-surface {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  max-width: 640px;
  aspect-ratio: 5 / 4;
  margin: 0 0 -2px auto;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-people {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  isolation: isolate;
  container-type: inline-size;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona.is-active {
  z-index: 2;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-frame {
  position: absolute;
  bottom: 0;
  left: 7.5%;
  width: 85%;
  height: 85%;
  overflow: visible;
  transform: none;
  animation: none;
}

/* Balance the shorter visible cutouts against the full-height portraits.
   Resize the shared frame so each photo and its label remain locked together. */
body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona[data-persona="teams"] .home-hero-persona-frame,
body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona[data-persona="training"] .home-hero-persona-frame {
  left: 0;
  width: 100%;
  height: 100%;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona[data-persona="researchers"] .home-hero-persona-frame {
  left: -7.5%;
  width: 115%;
  height: 115%;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona:is([data-persona="teams"], [data-persona="training"]) :is(.home-hero-persona-frame, picture, img) {
  overflow: visible;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-frame picture,
body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-frame img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-frame picture {
  opacity: 0;
  transition: opacity 700ms ease;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona.is-active .home-hero-persona-frame picture {
  opacity: 1;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-frame img {
  max-width: none;
  border-radius: 0;
  object-fit: contain;
  object-position: center bottom;
  /* Photos stay still on pointer movement as well as between slides. */
  transform: none !important;
  animation: none;
  transition: none;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-label {
  position: absolute;
  z-index: 2;
  top: 8%;
  right: 4%;
  display: flex;
  max-width: 65%;
  flex-direction: column;
  gap: 0.53125cqw;
  color: #fff;
  pointer-events: auto;
  user-select: text;
  text-align: right;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona:not(.is-active) .home-hero-persona-label {
  display: none;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-label[data-persona="leaders"] {
  top: calc(18% + 9.296875cqw);
  right: auto;
  left: 17%;
  text-align: left;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-label[data-persona="training"] {
  top: calc(8% + 14.609375cqw);
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-label[data-persona="founders"] {
  top: calc(8% + 6.640625cqw);
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-label[data-persona="researchers"] {
  top: 28%;
  right: auto;
  left: calc(17% - 5.390625cqw);
  text-align: left;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-label[data-persona="teams"] {
  gap: 0.625cqw;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-label[data-persona="researchers"] {
  gap: 0.71875cqw;
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-name {
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 1.859375cqw;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(15, 30, 65, 0.6);
}

body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-outcome {
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 3.984375cqw;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-shadow: 0 1px 2px rgba(15, 30, 65, 0.45);
}

@media (max-width: 1199.98px), (hover: none) and (pointer: coarse) and (max-width: 1400px) {
  body.home-v2 .home-hero-refresh.hero-1 .home-hero-visual-column {
    display: block;
  }

  body.home-v2 .home-hero-refresh.hero-1 .hero-image.home-hero-video-surface {
    width: 100%;
    max-width: 640px;
    margin: 0 auto -2px;
  }

  .home-hero-refresh .home-hero-products {
    margin-top: -2px;
  }
}

@media (max-width: 575.98px) {
  body.home-v2 .home-hero-refresh.hero-1 .hero-image.home-hero-video-surface {
    width: 100%;
    margin-top: 8px;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-frame,
  body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-frame picture {
    transition: none;
  }

  body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona:not(.is-active) {
    display: none;
  }

  body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-frame,
  body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona.is-active .home-hero-persona-frame {
    transform: none;
    animation: none;
  }
}

body.home-v2 .project-section {
  background: var(--gray-white) !important;
}

/* Standards cards have a plain top edge, without an accent strip. */
body.home-v2 .project-section .project-card-items[data-panel] {
  border-top: 0;
}

/* Identical, token-styled 5:4 frames for the three supplied feature animations.
   Keep the existing mobile visibility rule; these selectors never override display. */
body.home-v2 .project-section .project-card-items .project-thumb.home-feature-media {
  position: relative;
  height: auto;
  aspect-ratio: 5 / 4;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

body.home-v2 .home-feature-media .home-feature-poster,
body.home-v2 .home-feature-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  pointer-events: none;
}

body.home-v2 .home-feature-media video {
  opacity: 0;
}

body.home-v2 .home-feature-media video[data-playing] {
  opacity: 1;
}

@media (min-width: 768px) and (max-width: 1366px) {
  body.home-v2 .project-section .project-card-items .project-thumb.home-feature-media {
    height: auto !important; /* Supersede the legacy square iPad frame. */
  }
}

/* Simple branded covers; the actual tutorial appears only during playback. */
body.home-v2 .news-section .news-card-items .news-content h3 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

body.home-v2 .news-section .news-card-items .news-content > span {
  font-weight: 400;
}

body.home-v2 .home-facilitator-media[data-preview-color="cyan"] {
  --home-facilitator-color: var(--cyan);
}

body.home-v2 .home-facilitator-media[data-preview-color="yellow"] {
  --home-facilitator-color: var(--yellow);
}

body.home-v2 .home-facilitator-media[data-preview-color="purple"] {
  --home-facilitator-color: var(--purple);
}

body.home-v2 .news-section .news-card-items .home-facilitator-media {
  position: relative;
  box-sizing: content-box;
  height: auto;
  min-height: 200px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--gray-light);
}

body.home-v2 .home-facilitator-media > iframe,
body.home-v2 .home-facilitator-media > .home-facilitator-player,
body.home-v2 .home-facilitator-media > .home-facilitator-native-player,
body.home-v2 .home-facilitator-media > .home-facilitator-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  transform: none !important;
}

body.home-v2 .home-facilitator-media > iframe {
  /* Keep YouTube's top/bottom chrome outside the silent preview window.
     The video itself stays centred at its original 16:9 size; only the
     player's letterboxed margins extend outside the cover. Full-player
     iframes are deliberately excluded so their controls remain usable. */
  top: -100%;
  height: 300%;
  visibility: hidden;
  pointer-events: none;
}

body.home-v2 .home-facilitator-native-player {
  visibility: hidden;
  object-fit: contain;
  pointer-events: none;
}

body.home-v2 .home-facilitator-poster {
  overflow: hidden;
  background-color: var(--home-facilitator-color);
  background-image: radial-gradient(circle, color-mix(in srgb, var(--navy) 10%, transparent) 1.2px, transparent 1.6px);
  background-size: 18px 18px;
}

body.home-v2 .home-facilitator-poster::after {
  content: "";
  position: absolute;
  top: -24%;
  right: -5%;
  width: 45%;
  aspect-ratio: 16.36 / 17.35;
  background: color-mix(in srgb, var(--white) 45%, transparent);
  mask: url("/static/images/brand/ren-stars.svg") center / contain no-repeat;
  pointer-events: none;
}

body.home-v2 .home-facilitator-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(15, 30, 65, 0.25);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

body.home-v2 .home-facilitator-play svg {
  width: 24px;
  height: 24px;
}

body.home-v2 .home-facilitator-open {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

body.home-v2 .home-facilitator-open:focus-visible {
  outline: 3px solid var(--white) !important;
  outline-offset: -5px;
}

.home-facilitator-full-player iframe,
.home-facilitator-full-player video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

body.home-v2 .home-facilitator-media[data-player-ready] .home-facilitator-play {
  visibility: hidden;
}

body.home-v2 .home-facilitator-media[data-player-ready] > iframe {
  visibility: visible;
}

body.home-v2 .home-facilitator-media[data-player-ready] > .home-facilitator-native-player {
  visibility: visible;
}

body.home-v2 .home-facilitator-media[data-player-ready] > .home-facilitator-poster {
  visibility: hidden;
}

/* One catalogue link in the section header, separate from each card's video. */
body.home-v2 .service-section .home-program-all {
  display: inline-flex;
  flex-shrink: 0;
  align-self: end;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

body.home-v2 .service-section .home-program-all:is(:hover, :focus-visible) {
  background: transparent;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.home-v2 .service-section .home-program-all:focus-visible {
  outline: 2px solid var(--cyan) !important;
  outline-offset: 3px;
}

body.home-v2 .home-program-all .home-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Category titles browse templates; the single bottom action watches a video. */
body.home-v2 .service-section .service-box-item > .icon,
body.home-v2 .service-section .service-box-item > .content {
  position: relative;
  z-index: 1;
}

body.home-v2 .service-section .service-box-item::before {
  pointer-events: none;
}

body.home-v2 .service-section .service-box-item .content .theme-btn:is(:hover, :focus-visible) {
  color: var(--navy, #0f1e41) !important;
}

body.home-v2 .service-box-item .content .home-program-watch-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 52px;
  padding: 10px 14px;
  border: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  text-transform: none;
  cursor: pointer;
}

body.home-v2 .home-program-watch-button > span:first-of-type {
  white-space: nowrap;
}

body.home-v2 .home-program-watch-button svg {
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
  flex: none;
}

body.home-v2 .home-program-watch-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  margin-inline-start: auto;
  padding-inline-start: 10px;
  border-inline-start: 1px solid currentColor;
  font-size: 13px;
  font-weight: 500;
}

body.home-v2 .home-program-watch-button:focus-visible {
  outline: 3px solid var(--navy) !important;
  outline-offset: 3px;
}

body.home-v2 .home-program-watch-unavailable {
  display: inline-block;
  padding: 12px 0;
  font-size: 14px;
}

.home-program-video-dialog {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 16px;
  border: 0;
  border-radius: 20px;
  background: var(--white);
  color: var(--navy);
}

.home-program-video-dialog::backdrop {
  background: rgba(15, 30, 65, 0.75);
}

.home-program-video-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.home-program-video-dialog h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 28px);
}

.home-program-video-dialog [data-home-program-close] {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

.home-program-video-dialog video {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 140px);
  aspect-ratio: 16 / 9;
  background: var(--navy);
  border-radius: 12px;
}

.home-program-video-dialog [hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  body.home-v2 .home-program-watch-button {
    transition: none;
  }
  body.home-v2 .home-program-watch-button:hover {
    transform: none;
  }
}

/* Wide desktops use the available space rather than a fixed laptop container.
   Keep the shared navigation, mobile layout and other pages untouched. */
@media (min-width: 1440px) {
  body.home-v2 #smooth-content.home-hero-backdrop > section > .container {
    width: calc(100% - clamp(96px, 8vw, 192px));
    max-width: 1920px;
  }

  .home-hero-refresh.hero-section.hero-1 .hero-content {
    max-width: clamp(560px, 38.9vw, 800px);
  }

  .home-hero-refresh.hero-section.hero-1 .hero-content h1 {
    max-width: none;
    font-size: clamp(3.15rem, 5.25vw, 7rem);
  }

  .home-hero-refresh.hero-section.hero-1 .hero-content p.hero-subhead {
    max-width: clamp(520px, 36.1vw, 720px);
    font-size: clamp(1.22rem, 1.3556vw, 1.625rem);
  }

  body.home-v2 .home-hero-refresh.hero-1 .hero-image.home-hero-video-surface {
    width: min(100%, clamp(640px, 44.4444vw, 900px));
    max-width: 900px;
  }

  .home-hero-refresh .home-hero-intro {
    width: min(100%, clamp(960px, 66.6667vw, 1440px));
  }
}

/* Mobile keeps the message and actions, then moves straight to products/video. */
@media (max-width: 767.98px) {
  body.home-v2 section.renatus-pricing-mobile-section {
    padding-top: 0;
  }

  body.home-v2 .renatus-pricing-mobile-section::before {
    content: "";
    display: block;
    height: 1px;
    /* Plus the pricing row's existing 8px gap: 40px on each side. */
    margin: 0 20px 32px;
    background: var(--gray-light);
  }

  body.home-v2 .service-section {
    background: var(--white) !important;
  }

  body.home-v2 .service-section .home-program-all {
    align-self: flex-start;
  }

  body.home-v2 .service-section .section-title-area {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  body.home-v2 #smooth-content.home-hero-backdrop::before {
    display: none;
  }

  .home-hero-refresh.hero-section.hero-1 .row.g-4 {
    position: relative;
    isolation: isolate;
    --bs-gutter-y: 0;
    cursor: pointer;
  }

  .home-hero-refresh.hero-section.hero-1 .row.g-4::before {
    position: absolute;
    z-index: -1;
    content: "";
    inset-block: -34px 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--cyan) 0%, var(--kicker07) 100%);
    pointer-events: auto;
  }

  .home-hero-refresh.hero-section.hero-1 .hero-content {
    padding-bottom: 0;
  }

  body.home-v2 .home-hero-refresh.hero-1 .hero-content h1 {
    /* Preserve the owner's white mobile heading. */
    color: var(--white) !important;
    font-size: clamp(2.65rem, 11vw, 4rem);
    transform: translateY(-15px);
  }

  body.home-v2 .home-hero-refresh.hero-1 .hero-content h1 .home-hero-title-emphasis {
    color: var(--yellow) !important;
  }

  body.home-v2 .home-hero-refresh.hero-1 .home-hero-visual-column {
    --home-hero-mobile-trim: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -50px;
  }

  body.home-v2 .home-hero-refresh.hero-1 .hero-image.home-hero-video-surface {
    width: 100%;
    max-width: 440px;
    /* Shorten the gradient without moving or resizing the artwork. */
    margin: 0 auto calc(-1 * var(--home-hero-mobile-trim));
  }

  body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-frame picture {
    inset: auto;
    right: -4%;
    bottom: var(--home-hero-mobile-trim);
    width: 108%;
    height: 108%;
    /* Mirror only the artwork, with its crop reflected onto the right edge. */
    transform: translateX(50px) scaleX(-1);
  }

  body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona:is(
    [data-persona="training"],
    [data-persona="consultants"],
    [data-persona="founders"],
    [data-persona="researchers"],
    [data-persona="leaders"]
  ) .home-hero-persona-frame picture {
    right: -10%;
    width: 120%;
    height: 120%;
  }

  body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona[data-persona="researchers"] .home-hero-persona-frame picture {
    transform: translateX(80px) scaleX(-1);
  }

  body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona:is(
    [data-persona="teams"],
    [data-persona="consultants"],
    [data-persona="founders"],
    [data-persona="leaders"]
  ) .home-hero-persona-frame picture {
    /* Reverse these photos without changing their right-side placement. */
    transform: translateX(50px);
  }

  body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona[data-persona="teams"] .home-hero-persona-frame picture {
    transform: translateX(100px);
  }

  body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona[data-persona="training"] .home-hero-persona-frame picture {
    transform: translateX(15px) scaleX(-1);
  }

  body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona[data-persona="leaders"] .home-hero-persona-frame picture {
    transform: translateX(35px);
  }

  body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona .home-hero-persona-label {
    /* Every photo frame shares the canvas center and bottom edge. */
    top: auto;
    right: auto;
    bottom: var(--home-hero-mobile-trim);
    left: 50%;
    width: 100vw;
    max-width: none;
    min-height: 38px;
    transform: translateX(-50%);
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px 12px;
    background: color-mix(in srgb, var(--navy) 50%, transparent);
    text-align: center;
  }

  body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-name {
    display: none;
  }

  body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-outcome {
    display: none;
  }

  body.home-v2 .home-hero-refresh.hero-1 .home-hero-persona-mobile-text {
    display: block;
    color: var(--white);
    font-size: clamp(13px, 3.6vw, 16px);
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
  }

  .home-hero-refresh .home-hero-mobile-watch {
    position: relative;
    z-index: 3;
    transform: translate(max(-120px, calc(64px - 50vw)), 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    width: fit-content;
    max-width: 100%;
    margin: 16px auto 8px;
    padding: 2px 8px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--white);
    font-size: 14px;
    line-height: 1.4;
  }

  .home-hero-refresh .home-hero-mobile-watch svg {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    padding: 12px;
    border: 5px solid var(--white);
    border-radius: 50%;
    background: var(--navy);
  }

  .home-hero-refresh .home-hero-mobile-watch:focus-visible {
    outline: 2px solid var(--white) !important;
    outline-offset: 4px;
  }

  .home-hero-mobile-video {
    /* Fit the portrait clip plus close control inside the phone viewport. */
    width: min(92vw, calc((90dvh - 96px) * 0.562963 + 32px));
  }

  .home-hero-refresh .home-hero-mobile-video .home-hero-intro-player {
    aspect-ratio: 608 / 1080;
  }

  .home-hero-refresh .home-hero-mobile-video .home-hero-intro-play-icon {
    /* The replay cover already includes a play symbol. In portrait, a second
       HTML icon no longer aligns with it. Keep the full cover button usable. */
    display: none;
  }

  .home-hero-refresh.hero-section.hero-1 .hero-content .hero-btn {
    display: none;
  }

  body.home-v2 .home-hero-refresh.hero-1 .hero-btn .theme-btn.style-2 {
    /* Override the vendor CTA display rule on mobile only. */
    display: none !important;
  }

  .home-hero-refresh > .container > .home-hero-intro {
    display: none;
  }

  .home-hero-refresh .home-hero-entry-card {
    display: block;
    margin-top: 22px;
    padding: 20px 18px 18px;
    border: 1px solid rgba(15, 30, 65, 0.08);
    border-radius: 18px;
    background: var(--gray-white);
  }

  .home-hero-refresh .home-hero-products-heading {
    display: block;
    margin: 0 0 18px;
    color: var(--navy, #0f1e41);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
  }

  .home-hero-refresh .home-hero-program-actions {
    display: flex;
    margin: 16px 0 0;
  }

  .home-hero-refresh.hero-section.hero-1 .home-hero-program-actions a {
    display: inline-flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--navy);
    border-radius: 10px;
    background: var(--navy);
    color: var(--white);
    font-size: 14px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    text-transform: none;
    box-shadow: none;
  }

  .home-hero-refresh.hero-section.hero-1 .home-hero-program-actions a:is(:hover, :focus-visible) {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--white);
  }

  .home-hero-refresh .home-hero-program-actions a:focus-visible {
    outline: 2px solid var(--navy) !important;
    outline-offset: 3px;
  }

  .home-hero-refresh .home-hero-products {
    margin-top: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .home-hero-refresh .home-hero-products a {
    min-height: 54px;
    gap: 6px;
    padding: 12px 10px;
    border: 1px solid rgba(15, 30, 65, 0.07);
    border-radius: 9px;
    background: var(--white);
    font-size: 14px;
    letter-spacing: 0;
    text-transform: none;
  }

  .home-hero-refresh .home-hero-products a:first-child {
    border-radius: 9px;
  }

  .home-hero-refresh .home-hero-products a:last-child {
    border-radius: 9px;
  }

  .home-hero-refresh .home-hero-products a + a {
    border-top: 1px solid rgba(15, 30, 65, 0.07);
  }

  .home-hero-refresh .home-hero-products a .home-icon {
    color: var(--pink);
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
  }

  .home-hero-refresh .home-hero-products a + a::before {
    display: none;
  }

  .home-hero-refresh .home-hero-product-description {
    display: none;
  }

  .home-hero-refresh .home-hero-products a:is(:hover, :focus-visible) {
    box-shadow: none;
  }

  .home-hero-refresh .hero-content > .home-hero-intro {
    margin: 26px auto 0;
  }

  .home-hero-refresh.hero-section.hero-1 .hero-content p.hero-subhead {
    display: none;
  }

  body.home-v2 .home-hero-refresh.hero-1 .hero-btn .theme-btn.style-2,
  body.home-v2 .home-hero-refresh.hero-1 .hero-btn .theme-btn.style-2:hover {
    border: 1px solid var(--navy) !important;
    background: var(--white) !important;
  }
}

@media (max-width: 350px) {
  .home-hero-refresh .home-hero-entry-card {
    padding: 18px 12px 12px;
  }

  .home-hero-refresh .home-hero-products a {
    padding-inline: 7px;
    font-size: 13px;
  }
}
