

.hero {
  --hero-bg: var(--panel-dark);
  
  --hero-video-w: min(calc(100vw / var(--site-scale)), calc(1920px / var(--site-scale)));
  --hero-video-h: calc(var(--hero-video-w) * 1136 / 1920);
  
  --hero-first-screen-gap: 132px;
  --hero-h: max(560px, min(var(--hero-video-h), calc(100svh / var(--site-scale) - var(--hero-first-screen-gap))));
  --hero-media-h: var(--hero-h);
  position: relative;
  isolation: isolate;
  height: var(--hero-h);
  overflow: clip;
  border-radius: 0 0 24px 24px;
  background: var(--hero-bg);
  color: var(--ps-cream);
}


.hero__inner { position: relative; z-index: 2; padding-top: calc(var(--hero-h) * .3124); }   
.hero__content { width: 585px; max-width: 100%; margin-left: 7px; }

.hero__title { margin: 0; font-weight: 600; font-size: 64px; line-height: 62px; letter-spacing: -.04em; color: var(--ps-cream); }
.hero__title-line { display: block; width: fit-content; padding-bottom: 2px; white-space: nowrap; }

.hero__title-line--accent {
  padding-right: .06em;   
  background: linear-gradient(180deg, var(--landing-surface-f5f2ed) 22%, var(--landing-surface-ffd9c2) 78%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}


.hero__lead {
  max-width: 580px;
  margin-top: 14px;
  font-size: 18px; line-height: 27px; font-weight: 400;
  background: linear-gradient(180deg, var(--landing-surface-a8a39e), var(--landing-surface-cccccc));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 37px; }


.hero__media {
  position: absolute; z-index: 0; left: 0; right: 0; top: 0;
  height: var(--hero-media-h);
  pointer-events: none;
}

.hero__media::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 170px; z-index: 2;
  background: linear-gradient(180deg, var(--landing-surface-090a0a) 0%, var(--landing-surface-090a0a-m8) 45%, var(--landing-surface-090a0a-m0) 100%);
}
.hero__layer { position: absolute; inset: 0; will-change: transform; }
.hero__stage {
  
  position: absolute; right: 0; bottom: 0;
  height: var(--hero-h); width: min(100%, calc(var(--hero-h) * 1920 / 1136));
  overflow: hidden; background: var(--landing-surface-000000);
}

.hero__stage::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14%; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--hero-bg) 0%, var(--landing-surface-070708-m6) 40%, var(--landing-surface-070708-m0) 100%);
}
.hero__poster, .hero__poster img, .hero__video {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: 100% 100%;   
}
.hero__video { opacity: 0; transition: opacity 600ms var(--ease-out); }
.hero__video.is-ready { opacity: 1; }


@media (prefers-reduced-motion: no-preference) {
  .hero__title-line, .hero__lead, .hero__actions { animation: hero-rise 1100ms var(--ease-out) both; }
  .hero__title-line:nth-child(2) { animation-delay: 90ms; }
  .hero__lead { animation-delay: 200ms; }
  .hero__actions { animation-delay: 300ms; }
}
@keyframes hero-rise { from { opacity: 0; transform: translate3d(0, 22px, 0); } }


@media (max-width: 1015px) {
  .hero { height: auto; display: flex; flex-direction: column; border-radius: 0 0 var(--panel-radius) var(--panel-radius); }
  .hero__inner { padding-top: 152px; }
  .hero__content { width: auto; margin-left: 0; }
  .hero__title { font-size: 56px; line-height: 56px; }
  .hero__lead { max-width: 560px; margin-top: 20px; }
  .hero__actions { margin-top: 32px; }

  
  .hero__media { position: relative; top: auto; height: auto; aspect-ratio: 768 / 640; margin-top: -48px; }
  .hero__media::after { height: 42%; background: linear-gradient(180deg, var(--hero-bg) 0%, var(--landing-surface-070708-m82) 30%, var(--landing-surface-070708-m4) 64%, var(--landing-surface-070708-m0) 100%); }
  .hero__stage { inset: 0; width: auto; height: auto; }
  .hero__poster, .hero__poster img, .hero__video { object-position: 50% 100%; }   
  .hero__stage::before, .hero__stage::after { content: none; }
}
@media (max-width: 767px) {
  .hero__inner { padding-top: 112px; }
  
  .hero__title { font-size: min(40px, calc((100vw - 2 * var(--gutter)) / 9.3)); line-height: 1.06; }
  .hero__lead { font-size: 16px; line-height: 24px; margin-top: 16px; }
  .hero__actions { flex-direction: column; gap: 10px; margin-top: 28px; }
  .hero__btn { width: 100%; }
  .hero__media { aspect-ratio: 390 / 420; margin-top: -36px; }
}



.hero .l-container { --container: var(--container-text); }
