.hero {
  --ambient-image: none;
  --ambient-opacity: .82;
  --ambient-width: min(1020px, 74vw);
  --ambient-height: 610px;
  --ambient-top: -20px;
  --ambient-right: -58px;
  --ambient-duration: 22s;
  --ambient-animation: ambient-flow-forward;
  --ambient-mask: linear-gradient(90deg, transparent 0%, transparent 12%, rgba(0, 0, 0, .2) 21%, #000 30%, #000 100%);
}

.hero::after,
.main::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 0;
  top: var(--ambient-top);
  right: var(--ambient-right);
  width: var(--ambient-width);
  height: var(--ambient-height);
  pointer-events: none;
  background-image: var(--ambient-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  mix-blend-mode: multiply;
  opacity: var(--ambient-opacity);
  -webkit-mask-image: var(--ambient-mask);
  mask-image: var(--ambient-mask);
  animation: var(--ambient-animation) var(--ambient-duration) ease-in-out infinite alternate;
  will-change: transform;
}

.hero > .hero-grid,
.main > .login-layout {
  position: relative;
  z-index: 1;
}

.hero .hero-visual > img,
.hero .hero-media > img {
  mix-blend-mode: normal;
  filter: drop-shadow(0 16px 26px rgba(28, 72, 128, .045));
}

.hero--arch {
  --ambient-image: url("assets/generated/ones-textin-20260712/ambient-about-certification-v1.png?v=20260713-ai14");
  --ambient-opacity: .86;
  --ambient-animation: ambient-flow-reverse;
  --ambient-duration: 24s;
}


.hero--dialog {
  --ambient-image: url("assets/generated/ones-textin-20260712/ambient-faq-index-v1.png?v=20260713-ai14");
  --ambient-opacity: .9;
  --ambient-width: min(980px, 72vw);
  --ambient-animation: ambient-flow-reverse;
  --ambient-duration: 25s;
}

.hero--advisors {
  --ambient-image: url("assets/generated/ones-textin-20260712/ambient-feedback-handoff-v2.png?v=20260713-ai15");
  --ambient-opacity: .78;
  --ambient-width: min(1080px, 77vw);
  --ambient-height: 620px;
  --ambient-top: -28px;
  --ambient-right: -24px;
}


.hero--editorial {
  --ambient-image: url("assets/generated/ones-textin-20260712/ambient-news-source-v1.png?v=20260713-ai14");
  --ambient-opacity: .8;
  --ambient-width: min(1040px, 75vw);
}

.hero--keyhole {
  --ambient-image: url("assets/generated/ones-textin-20260712/ambient-privacy-boundary-v1.png?v=20260713-ai14");
  --ambient-opacity: .72;
  --ambient-animation: ambient-flow-reverse;
  --ambient-duration: 27s;
}


.hero--balance {
  --ambient-image: url("assets/generated/ones-textin-20260712/ambient-agreement-version-v1.png?v=20260713-ai14");
  --ambient-opacity: .74;
  --ambient-width: min(980px, 72vw);
  --ambient-animation: ambient-flow-reverse;
  --ambient-duration: 26s;
}

.main {
  --ambient-image: url("assets/generated/ones-textin-20260712/ambient-login-access-v2.png?v=20260713-ai15");
  --ambient-opacity: .82;
  --ambient-width: min(1180px, 86vw);
  --ambient-height: 780px;
  --ambient-top: 8px;
  --ambient-right: -90px;
  --ambient-duration: 25s;
  --ambient-animation: ambient-flow-forward;
  --ambient-mask: linear-gradient(90deg, transparent 0%, transparent 5%, rgba(0, 0, 0, .2) 16%, #000 28%, #000 100%);
  isolation: isolate;
}

@keyframes ambient-flow-forward {
  from { transform: translate3d(-6px, 5px, 0) scale(.997); }
  to { transform: translate3d(8px, -5px, 0) scale(1.006); }
}

@keyframes ambient-flow-reverse {
  from { transform: translate3d(7px, -4px, 0) scale(1.004); }
  to { transform: translate3d(-7px, 6px, 0) scale(.998); }
}

@media (max-width: 1279px) {
  .hero {
    --ambient-width: 790px;
    --ambient-height: 540px;
    --ambient-top: 8px;
    --ambient-right: -68px;
  }

  .main {
    --ambient-width: 860px;
    --ambient-height: 700px;
    --ambient-top: 30px;
    --ambient-right: -70px;
  }

  .hero--advisors {
    --ambient-width: 770px;
    --ambient-right: -18px;
  }

  .hero--editorial h1 {
    max-width: none;
    font-size: 46px;
    letter-spacing: -.045em;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .main::after {
    animation: none !important;
    transform: none !important;
  }
}
