body.premium {
  isolation: isolate;
}

.cinematic-atmosphere {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}

.cinematic-atmosphere::after,
.cinematic-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #9ac5fa1b 1px, transparent 1px),
    linear-gradient(#9ac5fa1b 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 65% 49%, #000 10%, transparent 84%);
}

.cinematic-atmosphere::after { z-index: 0; }

.cinematic-aurora {
  position: absolute;
  inset: -30% -28%;
  background:
    radial-gradient(ellipse at 68% 43%, #376fba64, transparent 39%),
    radial-gradient(ellipse at 35% 62%, #20477f4e, transparent 41%),
    radial-gradient(ellipse at 60% 77%, #dba15a2b, transparent 31%);
}

.premium .cinematic-footer {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background:
    radial-gradient(ellipse at 73% 60%, #32588d88, transparent 70%),
    #0e1727;
}

.cinematic-footer::before {
  background-size: 54px 54px;
  mask-image: linear-gradient(0deg, #000, transparent 90%);
}

.cinematic-wordmark {
  position: absolute;
  z-index: -1;
  inset: auto 0 -.13em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  font: 400 clamp(4.5rem, 19vw, 19rem) / .82 var(--display);
  letter-spacing: -.025em;
  color: transparent;
  -webkit-text-stroke: 1px #9bc4f13c;
  background: linear-gradient(#bdd5fa23, transparent 92%);
  background-clip: text;
}

.cinematic-band {
  width: 104%;
  margin-inline: -2%;
  margin-top: .95rem;
  overflow: hidden;
  border-block: 1px solid #9bc4f148;
  background: #13243cdb;
  transform: rotate(-1.1deg);
  pointer-events: none;
  user-select: none;
}

.cinematic-band-text {
  display: flex;
  width: max-content;
  padding-block: .6rem;
  color: #c2d9f5;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cinematic-band-text span { padding-inline: .7rem; }

.premium .cinematic-footer .footer-end > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem .85rem;
  border: 1px solid #9bc4f14d;
  border-radius: 999px;
  background: linear-gradient(145deg, #98c4ff19, #8eb8f508);
  box-shadow: inset 0 1px #c3deff1a;
}

@media (prefers-reduced-motion: no-preference) {
  .cinematic-aurora {
    translate: var(--aurora-slide, -5vw) var(--aurora-drift, -10vh);
    animation: cinematic-breathe 6.5s ease-in-out 2 alternate both;
  }

  .cinematic-wordmark { translate: 0 var(--wordmark-drift, 0px); }
  .cinematic-band-text { translate: var(--band-drift, 0px) 0; }

  [data-cinematic-enter] {
    animation: cinematic-enter 740ms cubic-bezier(.24, .75, .23, 1) both;
  }

  .cinematic-footer .footer-grid > [data-cinematic-enter]:nth-child(2) { animation-delay: 55ms; }
  .cinematic-footer .footer-grid > [data-cinematic-enter]:nth-child(3) { animation-delay: 110ms; }
  .cinematic-footer .footer-grid > [data-cinematic-enter]:nth-child(4) { animation-delay: 165ms; }

  @keyframes cinematic-breathe {
    from { opacity: .72; scale: .97; }
    to { opacity: 1; scale: 1.12; }
  }

  @keyframes cinematic-enter {
    from { opacity: .44; translate: 0 var(--cinematic-enter-offset, 36px); }
    to { opacity: 1; translate: 0 0; }
  }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .premium .cinematic-magnetic {
    translate: var(--magnet-x, 0px) var(--magnet-y, 0px);
    transition: translate 180ms var(--ease), transform 135ms var(--ease),
      background-color 150ms, border-color 150ms, color 150ms;
  }
}

@media (max-width: 600px) {
  .cinematic-atmosphere::after { background-size: 48px 48px; }
  .cinematic-band-text { font-size: .62rem; letter-spacing: .1em; }
  [data-cinematic-enter] { --cinematic-enter-offset: 26px; }
}
.cinematic-atmosphere .silk-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 300ms var(--ease);
}

.cinematic-atmosphere[data-silk-ready] .silk-canvas { opacity: .61; }
.cinematic-atmosphere[data-silk-ready]::after { opacity: .25; }

.premium .premium-hero {
  background: radial-gradient(ellipse at 79% 42%, #192f5788, transparent 57%), linear-gradient(90deg, #080d18f2, #080d18c9);
}

@media (prefers-reduced-motion: no-preference) {
  .cinematic-atmosphere[data-silk-pointer]:not([data-silk-ready])::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle 17rem at var(--silk-fallback-x) var(--silk-fallback-y), #6daafe29, transparent);
  }
}

@media (max-width: 740px) {
  .cinematic-atmosphere[data-silk-ready] .silk-canvas { opacity: .47; }
}

@media (prefers-reduced-motion: reduce) {
  .cinematic-atmosphere .silk-canvas { transition: none; }
}
