:root {
  color-scheme: dark;
  background: #05070a;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: #05070a;
}

body {
  font-family: "Times New Roman", Times, serif;
}

.hero {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #05070a url("purecap-poster.jpg") center center / cover no-repeat;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.mobile-brand {
  display: none;
}

.edge-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.10), transparent 18%, transparent 82%, rgba(0,0,0,.15)),
    linear-gradient(to right, rgba(0,0,0,.05), transparent 14%, transparent 86%, rgba(0,0,0,.05));
}

@media (prefers-reduced-motion: reduce) {
  .hero-video {
    display: none;
  }
}

/* Mobile is intentionally composed as a separate experience.
   The source videos are 16:9 and contain a wide baked-in wordmark.
   Instead of shrinking that landscape frame into a phone, mobile uses
   the architectural edge of the footage full-screen and restores the
   PURECAP identity as a crisp responsive overlay. */
@media (max-width: 767px), (max-aspect-ratio: 4/5) {
  html,
  body {
    background: #020304;
  }

  .hero {
    min-height: 100svh;
    height: 100svh;
    height: 100dvh;
    background-position: left center;
    background-size: cover;
  }

  .hero-video {
    top: 50%;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translateY(-50%);
    object-fit: cover;
    object-position: 0% 50%;
    filter: brightness(.68) contrast(1.06) saturate(.92);
  }

  .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
      linear-gradient(to bottom,
        rgba(0,0,0,.20) 0%,
        rgba(0,0,0,.06) 24%,
        rgba(0,0,0,.03) 46%,
        rgba(0,0,0,.22) 72%,
        rgba(0,0,0,.58) 100%),
      linear-gradient(to right,
        rgba(0,0,0,.04) 0%,
        rgba(0,0,0,.05) 55%,
        rgba(0,0,0,.24) 100%);
  }

  .mobile-brand {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: flex;
    width: min(82vw, 420px);
    transform: translate(-50%, -50%);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 14px 20px;
    text-align: center;
    filter: drop-shadow(0 3px 18px rgba(0,0,0,.65));
  }

  .mobile-brand::before {
    content: "";
    position: absolute;
    inset: -22% -8%;
    z-index: -1;
    background: radial-gradient(
      ellipse at center,
      rgba(2,3,4,.58) 0%,
      rgba(2,3,4,.33) 42%,
      rgba(2,3,4,.08) 70%,
      transparent 100%
    );
  }

  .mobile-wordmark {
    display: block;
    width: 100%;
    height: auto;
    max-height: 88px;
    object-fit: contain;
  }

  .mobile-rule {
    width: 93%;
    height: 1px;
    margin-top: 7px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,.82) 12%, rgba(255,255,255,.82) 88%, transparent);
  }

  .mobile-subtitle {
    width: 100%;
    margin-top: 13px;
    color: rgba(255,255,255,.93);
    font-family: "Times New Roman", Times, serif;
    font-size: clamp(10px, 2.7vw, 13px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: clamp(3px, 1.45vw, 6px);
    white-space: nowrap;
  }

  .edge-vignette {
    z-index: 4;
    background:
      linear-gradient(to bottom, rgba(0,0,0,.30), transparent 20%, transparent 74%, rgba(0,0,0,.44)),
      linear-gradient(to right, rgba(0,0,0,.12), transparent 22%, transparent 78%, rgba(0,0,0,.18));
  }
}

@media (max-width: 430px) {
  .mobile-brand {
    width: 86vw;
  }

  .mobile-subtitle {
    letter-spacing: 3.3px;
  }
}

@media (max-width: 360px) {
  .mobile-brand {
    width: 88vw;
  }

  .mobile-subtitle {
    font-size: 9px;
    letter-spacing: 2.7px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .mobile-brand {
    display: none;
  }

  .hero-video {
    left: 50%;
    transform: translate(-50%, -50%);
    object-position: center center;
    filter: none;
  }
}
