:root {
  color-scheme: dark;
  --paper: #f7efe4;
  --paper-soft: rgba(247, 239, 228, 0.76);
  --paper-faint: rgba(247, 239, 228, 0.56);
  --charcoal: #050505;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--charcoal);
  color: var(--paper);
  font-family: Optima, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}

.teaser,
.hero {
  min-height: 100svh;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  padding: clamp(24px, 4vw, 56px);
}

.film {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #090807;
}

.film-video,
.film-still {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
}

.film-video {
  display: none;
}

body.has-video .film-video {
  display: block;
}

.film-still {
  background-image: url("assets/hero-cinematic-bg.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  animation: slowPush 5s ease-in-out infinite;
}

.film::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), transparent 34%, rgba(0, 0, 0, 0.68)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.72));
}

.film-grain {
  position: absolute;
  inset: 0;
  z-index: 6;
  opacity: 0.12;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  mix-blend-mode: overlay;
}

.steam-layer {
  position: absolute;
  z-index: 3;
  inset: 12% 18%;
  filter: blur(20px);
  opacity: 0.42;
  transform-origin: center bottom;
  background:
    radial-gradient(ellipse at 42% 54%, rgba(255, 250, 235, 0.24), transparent 22%),
    radial-gradient(ellipse at 56% 44%, rgba(255, 250, 235, 0.16), transparent 26%),
    radial-gradient(ellipse at 36% 36%, rgba(255, 250, 235, 0.12), transparent 24%);
  animation: steamDrift 5s ease-in-out infinite;
}

.steam-b {
  inset: 8% 10% 18%;
  opacity: 0.28;
  filter: blur(28px);
  animation-delay: -1.4s;
}

.oil-burst {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 52%;
  width: min(48vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.55);
  opacity: 0;
  background:
    radial-gradient(circle, rgba(255, 214, 127, 0.5) 0 7%, transparent 8%),
    radial-gradient(circle, rgba(206, 72, 30, 0.46) 0 18%, transparent 37%),
    conic-gradient(from 26deg, transparent 0 12%, rgba(255, 139, 56, 0.4) 13% 17%, transparent 18% 100%);
  filter: blur(2px);
  mix-blend-mode: screen;
  animation: oilBloom 5s ease-in-out infinite;
}

.fire-flash {
  position: absolute;
  z-index: 4;
  inset: 0;
  opacity: 0;
  background:
    linear-gradient(74deg, transparent 0 58%, rgba(255, 123, 38, 0.32) 59% 64%, transparent 75%),
    radial-gradient(circle at 70% 47%, rgba(255, 176, 78, 0.28), transparent 18%);
  mix-blend-mode: screen;
  animation: fireCut 5s ease-in-out infinite;
}

.film-vignette {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: radial-gradient(ellipse at center, transparent 0 44%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.brand-lockup {
  width: min(1120px, 100%);
  text-align: center;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.62);
  opacity: 0;
  transform: translateY(8px);
  animation: titleIn 900ms ease 180ms forwards;
}

.brand-en,
.brand-cn,
.tagline,
.coming-soon,
.location {
  margin: 0;
  font-weight: 400;
}

.brand-en {
  font-size: clamp(1.55rem, 4.1vw, 4.45rem);
  letter-spacing: clamp(0.14em, 0.9vw, 0.27em);
  line-height: 1;
  text-transform: uppercase;
}

.brand-cn {
  margin-top: clamp(16px, 2.2vw, 28px);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(2.65rem, 6.2vw, 6.4rem);
  letter-spacing: clamp(0.1em, 0.9vw, 0.18em);
  line-height: 1;
}

.tagline {
  margin-top: clamp(22px, 3vw, 34px);
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  font-size: clamp(0.95rem, 1.45vw, 1.34rem);
  letter-spacing: 0.1em;
  color: var(--paper-soft);
}

.coming-soon {
  margin-top: clamp(22px, 3vw, 34px);
  font-size: clamp(0.74rem, 1vw, 0.9rem);
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(247, 239, 228, 0.7);
}

.location {
  margin-top: 12px;
  font-size: clamp(0.72rem, 0.9vw, 0.84rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--paper-faint);
}

.hero-footer {
  position: absolute;
  left: clamp(22px, 4vw, 56px);
  right: clamp(22px, 4vw, 56px);
  bottom: clamp(18px, 3vw, 38px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(247, 239, 228, 0.54);
  text-transform: uppercase;
}

.hero-footer span:last-child {
  text-align: right;
}

@keyframes slowPush {
  0%,
  100% {
    transform: scale(1.02) translate3d(0, 0, 0);
    filter: saturate(0.9) brightness(0.86);
  }
  48% {
    transform: scale(1.075) translate3d(-0.6%, -0.2%, 0);
    filter: saturate(0.98) brightness(0.92);
  }
  70% {
    transform: scale(1.055) translate3d(0.35%, 0, 0);
  }
}

@keyframes steamDrift {
  0%,
  100% {
    transform: translate3d(-1%, 2%, 0) scale(0.94);
    opacity: 0.34;
  }
  38% {
    transform: translate3d(1%, -3%, 0) scale(1.08);
    opacity: 0.7;
  }
  64% {
    transform: translate3d(2%, -7%, 0) scale(1.14);
    opacity: 0.44;
  }
}

@keyframes oilBloom {
  0%,
  25%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
  33% {
    opacity: 0.85;
    transform: translate(-50%, -50%) scale(0.9);
  }
  43% {
    opacity: 0.16;
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@keyframes fireCut {
  0%,
  58%,
  100% {
    opacity: 0;
  }
  68% {
    opacity: 0.78;
  }
  76% {
    opacity: 0.12;
  }
}

@keyframes titleIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .hero {
    padding: 28px 20px;
  }

  .film-still {
    background-image: url("assets/hero-mobile-cinematic-bg.png");
    background-position: center;
    transform: scale(1.01);
  }

  .film::before {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.44), transparent 34%, rgba(0, 0, 0, 0.48)),
      linear-gradient(to bottom, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.78));
  }

  .film-vignette {
    background: radial-gradient(ellipse at center, transparent 0 52%, rgba(0, 0, 0, 0.66) 100%);
  }

  .brand-lockup {
    margin-top: -8svh;
    transform: translateY(0);
  }

  .brand-en {
    font-size: clamp(1.35rem, 6.2vw, 1.72rem);
    letter-spacing: 0.14em;
  }

  .brand-cn {
    font-size: clamp(2.4rem, 10vw, 3.15rem);
    letter-spacing: 0.08em;
  }

  .tagline {
    max-width: 15em;
    margin-inline: auto;
    line-height: 1.8;
  }

  .coming-soon {
    margin-top: 20px;
  }

  .steam-layer {
    inset: 4% 6% 18%;
    opacity: 0.34;
  }

  .steam-b {
    opacity: 0.22;
  }

  .oil-burst {
    top: 58%;
    width: 88vw;
  }

  .hero-footer {
    justify-content: center;
    text-align: center;
  }

  .hero-footer span:first-child {
    display: none;
  }

  .hero-footer span:last-child {
    text-align: center;
  }
}

@media (max-width: 380px) {
  .brand-en {
    letter-spacing: 0.11em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
