.home-hero {
  --hero-shadow: #12211a;
  --studio-frame-line: #dcc49d58;
}

.home-hero::before {
  filter: blur(2.6rem) saturate(.53) sepia(.12) brightness(.52);
}

.home-hero::after {
  background:
    linear-gradient(var(--hero-shade-direction), var(--hero-shadow) 8%, #12211af5 29%, #12211a9c 49%, transparent 79%),
    linear-gradient(0deg, var(--hero-shadow), transparent 24%, transparent 84%, #12211a88),
    radial-gradient(ellipse at 50% 8%, #b3956655, transparent 64%);
}

.home-hero .hero-contours {
  inset-block-end: -26%;
  background: linear-gradient(140deg, #b796604d 12%, #e4caa05e 48%, transparent 80%);
}

.home-hero .hero-visual::after {
  content: "";
  position: absolute;
  inset-block: clamp(1.35rem, 4vh, 3.15rem) clamp(2.7rem, 7vh, 5.2rem);
  inset-inline: max(7%, calc((100% - 42rem) / 2));
  pointer-events: none;
  background:
    linear-gradient(var(--studio-frame-line), var(--studio-frame-line)) left top / 24% 1px no-repeat,
    linear-gradient(var(--studio-frame-line), var(--studio-frame-line)) left top / 1px 14% no-repeat,
    linear-gradient(var(--studio-frame-line), var(--studio-frame-line)) right bottom / 24% 1px no-repeat,
    linear-gradient(var(--studio-frame-line), var(--studio-frame-line)) right bottom / 1px 14% no-repeat;
}

.home-hero .hero-photo picture {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.home-hero .hero-photo img {
  filter: contrast(1.07) saturate(.77) sepia(.08) brightness(.99);
}

.home-hero .hero-visual figcaption {
  z-index: 1;
  padding: .23rem .65rem;
  border-block-end: 1px solid #dcca9b4d;
  background: #15251dd9;
  text-shadow: none;
}

.home-hero .hero-visual figcaption span {
  inline-size: 1.9rem;
}

.home-hero .hero-actions .button-sand {
  border-color: #ecd4a9;
  background: linear-gradient(116deg, #e7d2aa, #caab7b);
}

.home-hero .hero-actions .button-sand:hover {
  background: #efe0bc;
}

html:is([data-a11y-color="contrast"], [data-a11y-color="yellow"]) .home-hero::before,
html:is([data-a11y-color="contrast"], [data-a11y-color="yellow"]) .home-hero::after,
html:is([data-a11y-color="contrast"], [data-a11y-color="yellow"]) .home-hero .hero-visual::after {
  content: none;
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.motion-reduced, [data-a11y-color="contrast"], [data-a11y-color="yellow"]) .home-hero .hero-visual::before {
    inset: -4% -6%;
    background: radial-gradient(ellipse at 45% 35%, #e2c18b61, #ab815c33 38%, transparent 71%);
    translate: calc(var(--hero-pointer-x, 0px) * -2.8) calc(var(--hero-pointer-y, 0px) * -2 - var(--hero-scroll-shift, 0px) * .35);
  }

  html:not(.motion-reduced) .home-hero .hero-visual::after {
    translate: calc(var(--hero-pointer-x, 0px) * -.65) calc(var(--hero-pointer-y, 0px) * -.55 + var(--hero-scroll-shift, 0px) * .23);
    transition: translate .6s var(--ease);
  }

  html:not(.motion-reduced, [data-a11y-color="contrast"], [data-a11y-color="yellow"]) .home-hero .hero-photo picture::after {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    background: linear-gradient(116deg, transparent 28%, #d9a96b28 40%, #ffdc9a85 48%, #ffe4ae20 57%, transparent 69%);
    mix-blend-mode: soft-light;
    translate: calc(var(--hero-pointer-x, 0px) * 3.65) calc(var(--hero-pointer-y, 0px) * 2 - var(--hero-scroll-shift, 0px) * .55);
    transition: translate .62s var(--ease);
  }

  html:not(.motion-reduced) .home-hero.hero-intro-playing .hero-photo picture::after {
    animation: studio-light-pass 1.24s var(--ease) both;
  }

  html:not(.motion-reduced) .home-hero.hero-intro-playing .hero-visual::after {
    animation: studio-framing 1.18s var(--ease) both;
  }
}

@keyframes studio-light-pass {
  from { transform: translateX(-45%); opacity: 0; }
  35% { opacity: .75; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes studio-framing {
  from { opacity: 0; scale: .97; }
  to { opacity: 1; scale: 1; }
}

@media (max-width: 760px) {
  .home-hero::after {
    background: linear-gradient(0deg, var(--hero-shadow) 23%, #12211fae 58%, #12211a0d);
  }

  .home-hero .hero-contours { inset-block-end: -15%; }

  .home-hero .hero-visual::after {
    inset-block: .85rem 2.1rem;
    inset-inline: max(.85rem, calc((100% - 29rem) / 2));
  }

  .home-hero .hero-visual figcaption { font-size: .76rem; }
  .home-hero .hero-visual figcaption span { inline-size: 1.3rem; }
}
