*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #08080a;
}

body {
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #ece8e1;
  -webkit-font-smoothing: antialiased;
}

/* ── Stage ───────────────────────────────────────────────────────── */
.sm-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* z0 — the film, edge vignette */
.sm-film,
.sm-vignette,
.sm-scrim-a,
.sm-scrim-b,
.sm-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Full-bleed ride, black and white. The still shows until the film plays
   (and stays for anyone who prefers reduced motion). */
.sm-film {
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #08080a url("assets/ride-wide.jpg") center / cover no-repeat;
  filter: grayscale(1) brightness(.62) contrast(1.05);
}

@media (max-aspect-ratio: 1/1) {
  .sm-film { background-image: url("assets/ride-tall.jpg"); }
}

.sm-vignette {
  z-index: 0;
  background: radial-gradient(140% 110% at 50% 44%, transparent 55%, rgba(6, 6, 8, .55) 100%);
}

/* z1 — cinematic scrims */
.sm-scrim-a {
  z-index: 1;
  background: radial-gradient(120% 95% at 50% 44%, rgba(8, 8, 10, 0) 0%, rgba(8, 8, 10, .18) 55%, rgba(6, 6, 8, .55) 100%);
}

.sm-scrim-b {
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 8, 10, .7) 0%, rgba(8, 8, 10, 0) 24%, rgba(8, 8, 10, 0) 66%, rgba(6, 6, 8, .8) 100%);
}

/* z3 — scanlines */
.sm-scanlines {
  z-index: 3;
  opacity: .5;
  background: repeating-linear-gradient(
    180deg,
    rgba(255, 255, 255, .028) 0px,
    rgba(255, 255, 255, .028) 1px,
    transparent 1px,
    transparent 4px
  );
  animation: sm-scan 6s linear infinite;
}

/* ── Foreground (z5) ─────────────────────────────────────────────── */
.sm-topbar,
.sm-center,
.sm-bottombar {
  position: absolute;
  z-index: 5;
}

.sm-topbar {
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 40px;
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(236, 232, 225, .62);
}

.sm-topbar__left { animation: sm-rise .9s .1s both; }

.sm-topbar__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  animation: sm-rise .9s .2s both;
}

.sm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ece8e1;
  box-shadow: 0 0 10px #ece8e1;
  animation: sm-pulse 2.4s ease-in-out infinite;
}

.sm-center {
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}

.sm-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 0 34px;
  animation: sm-rise .9s .25s both;
}

.sm-rule {
  height: 1px;
  width: 44px;
  animation: sm-line 1.1s .5s both;
}

.sm-rule--l {
  background: linear-gradient(90deg, transparent, #ece8e1);
  transform-origin: right;
}

.sm-rule--r {
  background: linear-gradient(90deg, #ece8e1, transparent);
  transform-origin: left;
}

.sm-eyebrow__label {
  font-size: 12px;
  letter-spacing: .5em;
  text-indent: .5em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ece8e1;
}

.sm-logo {
  width: min(760px, 84vw);
  height: auto;
  filter: brightness(1.35) drop-shadow(0 0 42px rgba(255, 255, 255, .35));
  animation: sm-rise 1.2s .35s both;
}

.sm-tagline {
  margin: 30px 0 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 300;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.05;
  letter-spacing: .01em;
  color: #efece5;
  animation: sm-rise 1.2s .6s both;
}

.sm-tagline em {
  font-style: italic;
  color: #fff;
}

.sm-copy {
  margin: 22px 0 0;
  max-width: 540px;
  font-size: 14.5px;
  line-height: 1.7;
  letter-spacing: .02em;
  color: rgba(236, 232, 225, .66);
  text-wrap: pretty;
  animation: sm-rise 1.2s .75s both;
}

.sm-bottombar {
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(236, 232, 225, .5);
  animation: sm-rise 1.2s 1s both;
}

/* ── Motion ──────────────────────────────────────────────────────── */
@keyframes sm-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes sm-line {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes sm-pulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

@keyframes sm-scan {
  from { background-position: 0 0; }
  to   { background-position: 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .sm-scanlines,
  .sm-dot { animation: none; }

  .sm-topbar__left,
  .sm-topbar__right,
  .sm-eyebrow,
  .sm-rule,
  .sm-logo,
  .sm-tagline,
  .sm-copy,
  .sm-bottombar {
    animation-duration: .01ms;
    animation-delay: 0s;
  }
}
