:root {
  --bg: #f2f1ee;
  --fg: #0d0d0f;
  --muted: #5f636a;
  --red-1: #c40013;
  --red-2: #8f0010;
  --red-3: #5f000d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

img,
video {
  display: block;
  max-width: 100%;
}

body {
  min-height: 100vh;
  color: var(--fg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 4%, rgba(196, 0, 19, 0.06), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(0, 0, 0, 0.04), transparent 36%),
    var(--bg);
}

body.reveal-open {
  overflow: hidden;
}

.page {
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  align-items: start;
  gap: 20px;
  margin-bottom: 18px;
  max-height: 760px;
  overflow: clip;
  opacity: 1;
  transform: translateY(0);
  transition:
    max-height 720ms cubic-bezier(0.2, 0.8, 0.15, 1),
    opacity 300ms ease,
    transform 420ms ease,
    margin-bottom 420ms ease;
}

.hero.is-collapsing {
  margin-bottom: 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 18px;
  padding-bottom: 10px;
  position: relative;
  z-index: 80;
}

.hero-title {
  margin: 0;
  font-size: clamp(3.5rem, 11.2vw, 9.8rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: #07080a;
  text-wrap: balance;
  transform-origin: 50% 55%;
  transform: perspective(900px) rotateX(0deg);
  opacity: 1;
  will-change: transform, opacity, color;
}

.hero-title.is-flipping {
  animation: titleFlip 460ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tap-reveal {
  appearance: none;
  border: 0;
  border-radius: 999px;
  width: fit-content;
  padding: 14px 22px;
  background: #08090b;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 14px 28px rgba(8, 8, 10, 0.16);
  transform: translateY(0);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}

.tap-reveal:hover {
  transform: translateY(-1px);
  background: #000;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 16px 30px rgba(8, 8, 10, 0.2);
}

.tap-reveal:active {
  transform: translateY(0);
}

.tap-reveal:focus-visible {
  outline: 2px solid var(--red-1);
  outline-offset: 3px;
}

.tap-reveal.is-hidden {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.hero-image-wrap {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: end center;
  align-self: end;
  z-index: 5;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 280ms ease,
    transform 360ms ease;
}

.hero-image-wrap.is-hidden {
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: auto 8% 7% 8%;
  height: 38%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(196, 0, 19, 0.18), rgba(196, 0, 19, 0.04) 60%, transparent 80%);
  filter: blur(18px);
}

.hero-image {
  position: relative;
  width: min(100%, 390px);
  max-height: min(62vh, 700px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.14));
  animation: float 5s ease-in-out infinite;
}

.reveal-section {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: transparent;
  transition:
    opacity 280ms ease,
    visibility 0s linear 280ms;
}

.reveal-section.is-revealed {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 280ms ease,
    visibility 0s linear 0s;
}

.reveal-shell {
  position: relative;
  width: 100vw;
  padding: clamp(12px, 2vw, 22px) 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 120, 120, 0.28), transparent 44%),
    radial-gradient(circle at 86% 80%, rgba(255, 64, 64, 0.22), transparent 52%),
    linear-gradient(180deg, var(--red-1) 0%, var(--red-2) 42%, var(--red-3) 100%);
  overflow: hidden;
  transform-origin: center center;
  transform: scale(0);
  opacity: 0;
  transition:
    transform 560ms cubic-bezier(0.16, 0.9, 0.2, 1),
    opacity 240ms ease;
}

.reveal-section.is-revealed .reveal-shell {
  transform: scaleY(1) scaleX(1);
  opacity: 1;
}

.reveal-shell::before {
  content: "";
  position: absolute;
  inset: -18% -8%;
  background:
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      rgba(255, 255, 255, 0) 1px 18px
    ),
    repeating-linear-gradient(
      -24deg,
      rgba(0, 0, 0, 0.1) 0 2px,
      rgba(0, 0, 0, 0) 2px 26px
    );
  opacity: 0.32;
  animation: driftStripes 12s linear infinite alternate;
}

.reveal-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: clamp(280px, 56vw, 840px);
  overflow: hidden;
  background: #160002;
}

.reveal-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  filter: saturate(1.08) contrast(1.06);
}

.reveal-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.08), transparent 44%),
    radial-gradient(circle at 90% 84%, rgba(255, 28, 28, 0.16), transparent 54%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08) 28%, rgba(0, 0, 0, 0.18));
}

@keyframes titleFlip {
  0% {
    transform: perspective(900px) rotateX(0deg);
    opacity: 1;
    color: #07080a;
  }
  45% {
    transform: perspective(900px) rotateX(-84deg);
    opacity: 0;
    color: #0f1014;
  }
  55% {
    transform: perspective(900px) rotateX(84deg);
    opacity: 0;
    color: #ffffff;
  }
  100% {
    transform: perspective(900px) rotateX(0deg);
    opacity: 1;
    color: #ffffff;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes driftStripes {
  0% {
    transform: translate3d(-3%, -2%, 0);
  }
  100% {
    transform: translate3d(3%, 2%, 0);
  }
}

@media (max-width: 800px) {
  .page {
    width: min(1200px, calc(100% - 16px));
    padding-top: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }

  .hero-copy {
    gap: 10px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-image-wrap {
    min-height: 190px;
    place-items: end start;
  }

  .hero-image {
    width: min(100%, 310px);
    max-height: min(44vh, 420px);
  }

  .tap-reveal {
    padding: 12px 18px;
    font-size: 0.82rem;
  }

  .reveal-shell {
    padding: 8px 0;
  }

  .reveal-video-frame {
    min-height: clamp(230px, 60vw, 460px);
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero-title,
  .hero-image,
  .reveal-section,
  .reveal-shell,
  .reveal-shell::before,
  .tap-reveal {
    animation: none !important;
    transition: none !important;
  }
}
