/* Brand lighting for the local review: keep text readable and the logo fixed. */
:root {
  --brand-title-gradient: linear-gradient(105deg, #79e7ff 0%, #b5adff 43%, #ffa4dc 73%, #ffd699 100%);
}

:is(.audience-item h3, .service-title h3, .business-result h4, .howsoon-services h4, .case-copy h3, .portfolio-group-heading h3) {
  color: #cde8ff;
}
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  :is(.audience-item h3, .service-title h3, .business-result h4, .howsoon-services h4, .case-copy h3, .portfolio-group-heading h3) {
    width: fit-content;
    max-width: 100%;
    background: var(--brand-title-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}
#founders-heading { font-size: clamp(1.65rem, 3vw, 2.8rem); line-height: 1.6; }

.cases-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(ellipse at 0% 10%, #00d1ff0b, transparent 36%),
    radial-gradient(ellipse at 100% 32%, #7663ff0d, transparent 40%),
    #091121;
}
.cases-section > .content-section { position: relative; z-index: 1; }
.case-atmosphere { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.case-aurora { position: absolute; border-radius: 50%; filter: blur(34px); animation: aurora-drift 20s ease-in-out infinite alternate; }
.aurora-cyan { width: 80%; height: 42rem; top: 1%; left: -27%; background: radial-gradient(ellipse, #00d1ff29, transparent 68%); }
.aurora-violet { width: 85%; height: 54rem; top: 24%; right: -29%; background: radial-gradient(ellipse, #8d67ff29, transparent 68%); animation-delay: -9s; animation-duration: 24s; }
.aurora-gold { width: 66%; height: 46rem; top: 57%; left: -28%; background: radial-gradient(ellipse, #ffd6991a, #ff6ec70d 30%, transparent 68%); animation-delay: -14s; animation-duration: 27s; }
.case-light-ray { position: absolute; height: 1px; width: 78%; opacity: .45; transform-origin: center; }
.ray-cyan { top: 16%; left: -30%; transform: rotate(-22deg); background: linear-gradient(90deg, transparent 10%, #65dfff75 52%, transparent 93%); box-shadow: 0 0 16px 3px #00d1ff12; }
.ray-violet { top: 54%; right: -35%; transform: rotate(-27deg); background: linear-gradient(90deg, transparent 10%, #d9b4ff65 50%, transparent 92%); box-shadow: 0 0 16px 3px #b582ff12; }
.case-star { position: absolute; left: var(--x); top: var(--y); width: 2px; height: 2px; border-radius: 50%; background: #d3eeff; box-shadow: 0 0 10px 2px #80ccff70; animation: starlight-breathe 7s ease-in-out infinite; animation-delay: var(--delay); }
.case-star::before, .case-star::after { content: ""; position: absolute; background: linear-gradient(90deg, transparent, #e2f2ffa6, transparent); }
.case-star::before { width: 11px; height: 1px; top: .5px; left: -4.5px; }
.case-star::after { width: 11px; height: 1px; top: .5px; left: -4.5px; transform: rotate(90deg); }

.howsoon-logo-orbit { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1; }
.howsoon-logo-orbit img { position: relative; z-index: 2; }
.orbit-track, .orbit-comet, .orbit-spark { position: absolute; inset: 6%; border-radius: 50%; pointer-events: none; }
.orbit-track { z-index: 1; border: 1px solid #9cd8ed29; box-shadow: 0 0 13px #00d1ff0c, inset 0 0 10px #9267ff0c; }
.orbit-halo { position: absolute; z-index: 0; inset: -15%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #7c91ff1c 25%, #00d1ff16 43%, transparent 70%); animation: halo-breathe 6s ease-in-out infinite alternate; }
.orbit-comet {
  z-index: 3;
  padding: 2px;
  background: conic-gradient(from 0deg, transparent 0deg 265deg, #6c63ff20 282deg, #ff6ec785 310deg, #00d1ffe6 344deg, #e8fbff 358deg, transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: orbit-travel 8s linear infinite;
}
.orbit-spark { z-index: 4; animation: orbit-travel 8s linear infinite; }
.orbit-spark::before { content: ""; position: absolute; top: 0; left: 50%; width: 5px; height: 5px; transform: translate(-50%, -50%); border-radius: 50%; background: #edfcff; box-shadow: 0 0 7px 2px #00d1ffaa, 0 0 17px 5px #936fff45; }

@keyframes aurora-drift { from { transform: translate3d(-1.5%, -14px, 0) rotate(-8deg) scale(.96); opacity: .72; } to { transform: translate3d(5%, 20px, 0) rotate(8deg) scale(1.05); opacity: 1; } }
@keyframes starlight-breathe { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: .72; transform: scale(1.1); } }
@keyframes halo-breathe { from { opacity: .55; transform: scale(.97); } to { opacity: .9; transform: scale(1.06); } }
@keyframes orbit-travel { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.js .case-atmosphere .ambient-animation, .js .howsoon-logo-orbit .ambient-animation { animation-play-state: paused; }
.js .cases-section.is-in-view > .case-atmosphere .ambient-animation, .js .howsoon-logo-orbit.is-in-view .ambient-animation { animation-play-state: running; }
.ambient-paused .ambient-animation { animation-play-state: paused !important; }

@media (max-width: 760px) {
  .case-aurora { filter: blur(24px); }
  .aurora-cyan { width: 115%; height: 30rem; left: -55%; }
  .aurora-violet { width: 120%; height: 35rem; right: -55%; }
  .aurora-gold { width: 100%; height: 32rem; left: -45%; }
  .orbit-comet { padding: 1.5px; }
  .orbit-spark::before { width: 4px; height: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-animation { animation: none !important; }
  .case-star { opacity: .3; }
  .orbit-comet { transform: rotate(35deg); }
  .orbit-spark { transform: rotate(35deg); }
}
@media (forced-colors: active) {
  :is(.audience-item h3, .service-title h3, .business-result h4, .howsoon-services h4, .case-copy h3, .portfolio-group-heading h3) { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
  .case-atmosphere, .orbit-track, .orbit-halo, .orbit-comet, .orbit-spark { display: none; }
}
