/*
Theme Name: Stuntman Show USA — Coming Soon
Theme URI: https://stuntmanshow-usa.com/
Description: Full-screen cinematic launch landing page for Stuntman Show USA.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Author: Stuntman Show USA
Text Domain: st-usa-coming-soon
License: GPL-2.0-or-later
*/
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #05090e; }
body { color: #fff; font-family: system-ui, sans-serif; }
.landing {
  --bar: 0px;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: calc(100vh - var(--bar));
  height: calc(100dvh - var(--bar));
  overflow: hidden;
  background: #05090e;
}
body.admin-bar .landing { --bar: 32px; }
@media (max-width: 782px) {
  body.admin-bar .landing { --bar: 46px; }
}
.scene-frame, .scene-picture, .scene, .fog {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scene-frame { overflow: hidden; }
.scene-picture { display: block; }
.scene {
  display: block;
  object-fit: cover;
  object-position: 60% center;
}
/* Preserve the complete original subject on unusually wide displays. */
@media (min-aspect-ratio: 12/5) {
  .scene-frame { background: #05090e url("assets/scene-v14-wide-720.jpg") center / cover no-repeat; }
  .scene-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #05090e40;
    -webkit-backdrop-filter: blur(28px);
    backdrop-filter: blur(28px);
  }
  .scene { object-fit: contain; object-position: center; }
}
/* Portrait artwork extends the original photo into a full-height cinematic scene. */
@media (max-aspect-ratio: 17/20) {
  .scene { object-position: 58% 48%; }
}
@media (max-aspect-ratio: 2/5) {
  .scene { object-position: 65% 48%; }
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.fog { overflow: hidden; pointer-events: none; }
.fog-zone {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}
.fog-zone i {
  display: block;
  position: absolute;
  inset: -28% -40%;
  background: url("assets/fog-v12.png") center / 100% 100% no-repeat;
  opacity: .65;
  transform: translate3d(-20%, 5%, 0);
  -webkit-animation: visible-mist 8s ease-in-out infinite alternate;
  animation: visible-mist 8s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
.fog-zone i + i {
  opacity: .48;
  -webkit-animation: visible-mist-back 13s ease-in-out infinite alternate;
  animation: visible-mist-back 13s ease-in-out infinite alternate;
}
.fog-floor {
  left: 0; right: 0; top: 80%; bottom: 0;
  -webkit-mask-image: linear-gradient(transparent, #000 58%, #000);
  mask-image: linear-gradient(transparent, #000 58%, #000);
}
.fog-left {
  left: 0; width: 25%; top: 28%; bottom: 8%;
  -webkit-mask-image: radial-gradient(ellipse 100% 50% at 0% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 50% at 0% 50%, #000 20%, transparent 100%);
}
.fog-right {
  right: 0; width: 18%; top: 22%; bottom: 7%;
  -webkit-mask-image: radial-gradient(ellipse 100% 50% at 100% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 50% at 100% 50%, #000 20%, transparent 100%);
}
.fog-top {
  top: 0; left: 53%; right: 0; height: 18%;
  -webkit-mask-image: radial-gradient(ellipse 50% 100% at 50% 0%, #000 25%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 100% at 50% 0%, #000 25%, transparent 100%);
}
.fog-left i { animation-duration: 9s; animation-delay: -2s; }
.fog-right i { animation-duration: 7s; animation-delay: -4s; }
.fog-top i { animation-duration: 11s; animation-delay: -5s; }
@keyframes visible-mist {
  0% { transform: translate3d(-27%, 7%, 0) scale(1.02); opacity: .48; }
  50% { opacity: .88; }
  100% { transform: translate3d(25%, -9%, 0) scale(1.16); opacity: .65; }
}
@keyframes visible-mist-back {
  0% { transform: translate3d(27%, -8%, 0) scale(1.08); opacity: .38; }
  50% { opacity: .66; }
  100% { transform: translate3d(-26%, 7%, 0) scale(1.19); opacity: .52; }
}
/* Wider atmospheric regions on vertical devices; the tablet stays unobscured. */
@media (max-aspect-ratio: 17/20) {
  .fog-floor { top: 64%; }
  .fog-top { left: 0; right: 0; height: 33%; }
  .fog-left { width: 22%; top: 31%; bottom: 34%; }
  .fog-right { width: 15%; top: 32%; bottom: 31%; }
  .fog-floor i { animation-duration: 6s; }
  .fog-floor i + i { animation-duration: 10s; }
  .fog-top i { animation-duration: 9s; }
  .fog-top i + i { animation-duration: 12s; }
}
/* Respect the system-level accessibility setting without adding controls to the design. */
@media (prefers-reduced-motion: reduce) {
  .fog-zone i { -webkit-animation: none; animation: none; }
}
@media (min-aspect-ratio: 3/5) and (max-aspect-ratio: 17/20) {
  .scene { object-position: 50% 7%; }
}
@media (max-aspect-ratio: 8/5) and (min-aspect-ratio: 17/20) {
  .scene { object-position: center; }
  .fog-floor { top: 76%; }
  .fog-top { height: 23%; }
}
@media (max-aspect-ratio: 17/20) {
  /* Keep the drivers' faces and branded tablet crisp, with mist at their feet. */
  .fog-top {
    top: 19%; height: 21%;
    opacity: .65;
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 15%, transparent 100%);
    mask-image: radial-gradient(ellipse 50% 50% at center, #000 15%, transparent 100%);
  }
  .fog-floor { opacity: .72; }
  .fog-left, .fog-right { opacity: .72; }
}

@media (min-aspect-ratio: 6/5) {
  .fog-right { top: 42%; bottom: 5%; width: 25%; opacity: .65; }
  .fog-top { left: 45%; height: 23%; opacity: .78; }
}
@media (min-aspect-ratio: 17/20) and (max-aspect-ratio: 6/5) {
  .scene { object-position: center 4%; }
  .fog-floor { top: 83%; }
  .fog-top { left: 0; top: 35%; height: 14%; opacity: .65; }
  .fog-left, .fog-right { top: 50%; bottom: 5%; width: 16%; opacity: .7; }
}

@media (min-aspect-ratio: 2/1) and (max-aspect-ratio: 12/5) { .scene { object-position: center 45%; } }
