:root {
  color-scheme: dark;
  --red: #e31319;
  --red-bright: #ff2d32;
  --ink: #050505;
  --paper: #f4f0e8;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--ink);
}

body {
  overflow-x: hidden;
  color: var(--paper);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.crime-scene {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(97, 9, 12, 0.4), transparent 42%),
    linear-gradient(145deg, #111 0%, #030303 76%);
}

.scene-video,
.scene-shade,
.evidence-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene-video {
  z-index: -4;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.7) contrast(1.17) brightness(0.48);
  transform: scale(1.02);
}

.scene-shade {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.82)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 24%, transparent 70%, rgba(0, 0, 0, 0.88)),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0.06) 15%, rgba(0, 0, 0, 0.68) 76%);
}

.scene-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(93deg, transparent 0 17px, rgba(255, 255, 255, 0.035) 18px, transparent 19px),
    repeating-linear-gradient(2deg, transparent 0 11px, rgba(255, 255, 255, 0.025) 12px, transparent 13px);
  mix-blend-mode: overlay;
}

.evidence-lines {
  z-index: -2;
  opacity: 0.46;
  background:
    linear-gradient(24deg, transparent 0 24%, rgba(226, 18, 24, 0.52) 24.15% 24.3%, transparent 24.45%),
    linear-gradient(157deg, transparent 0 76%, rgba(226, 18, 24, 0.44) 76.15% 76.3%, transparent 76.45%);
}

.evidence-lines::before,
.evidence-lines::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 47, 52, 0.75);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(114, 0, 3, 0.3), 0 0 22px rgba(255, 0, 7, 0.55);
}

.evidence-lines::before {
  top: 23.8%;
  left: 23.6%;
}

.evidence-lines::after {
  right: 23.7%;
  bottom: 23.2%;
}

.hero {
  width: min(960px, calc(100% - 42px));
  padding: 72px 0 64px;
  text-align: center;
}

.hero-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(18px, 3.4vw, 38px) clamp(18px, 4vw, 48px) clamp(30px, 4vw, 46px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background:
    linear-gradient(180deg, rgba(22, 22, 22, 0.72), rgba(5, 5, 5, 0.82)),
    radial-gradient(circle at 50% 5%, rgba(224, 26, 32, 0.14), transparent 48%);
  box-shadow:
    0 35px 90px rgba(0, 0, 0, 0.72),
    inset 0 0 80px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(198, 14, 20, 0.1);
  backdrop-filter: blur(8px);
}

.brand-logo {
  display: block;
  width: min(720px, 100%);
  height: auto;
  margin: clamp(-64px, -5vw, -38px) auto -2%;
  filter:
    drop-shadow(0 22px 24px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 20px rgba(230, 21, 27, 0.2));
}

.case-line {
  width: 100%;
  margin: -1% 0 clamp(22px, 4vh, 34px);
  display: grid;
  grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
  align-items: center;
  gap: 15px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.66rem, 1.4vw, 0.86rem);
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.case-line span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 19, 25, 0.85));
}

.case-line span:last-child {
  background: linear-gradient(90deg, rgba(227, 19, 25, 0.85), transparent);
}

.where-button {
  position: relative;
  min-width: min(100%, 330px);
  min-height: 62px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 18px 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: white;
  background:
    linear-gradient(115deg, rgba(176, 7, 12, 0.96), rgba(236, 18, 24, 0.96) 52%, rgba(137, 0, 5, 0.98));
  box-shadow:
    0 13px 32px rgba(152, 0, 5, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.where-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 15%, rgba(255, 255, 255, 0.27) 48%, transparent 74%);
  transform: translateX(-120%);
  transition: transform 520ms ease;
}

.where-button span,
.where-button b {
  position: relative;
  z-index: 1;
}

.where-button b {
  font-size: 1.35rem;
  line-height: 1;
}

.where-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow:
    0 18px 42px rgba(185, 0, 6, 0.52),
    0 0 28px rgba(255, 20, 27, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.where-button:hover::before {
  transform: translateX(120%);
}

.where-button:focus-visible {
  outline: 3px solid white;
  outline-offset: 5px;
}

.frame-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: var(--red-bright);
  filter: drop-shadow(0 0 8px rgba(239, 20, 26, 0.56));
}

.corner-top-left {
  top: -2px;
  left: -2px;
  border-top: 3px solid;
  border-left: 3px solid;
}

.corner-top-right {
  top: -2px;
  right: -2px;
  border-top: 3px solid;
  border-right: 3px solid;
}

.corner-bottom-left {
  bottom: -2px;
  left: -2px;
  border-bottom: 3px solid;
  border-left: 3px solid;
}

.corner-bottom-right {
  right: -2px;
  bottom: -2px;
  border-right: 3px solid;
  border-bottom: 3px solid;
}

.case-stamp {
  position: absolute;
  top: 28px;
  left: 34px;
  display: grid;
  gap: 3px;
  padding-left: 13px;
  border-left: 3px solid var(--red);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.62rem;
  letter-spacing: 0.23em;
}

.case-stamp strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
}

.nexp-signature {
  position: absolute;
  right: 34px;
  bottom: 26px;
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.nexp-signature strong {
  color: rgba(255, 255, 255, 0.9);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .hero {
    width: calc(100% - 24px);
    padding: 72px 0 68px;
  }

  .hero-frame {
    padding: 16px 14px 30px;
    backdrop-filter: blur(5px);
  }

  .brand-logo {
    width: 112%;
    max-width: none;
    margin-top: -30px;
    transform: translateX(-5%);
  }

  .case-line {
    margin-top: -2%;
    gap: 8px;
    font-size: 0.56rem;
    letter-spacing: 0.13em;
  }

  .where-button {
    width: calc(100% - 20px);
    min-width: 0;
    min-height: 58px;
    padding-inline: 17px;
    font-size: 0.76rem;
    letter-spacing: 0.12em;
  }

  .case-stamp {
    top: 20px;
    left: 18px;
  }

  .nexp-signature {
    right: 18px;
    bottom: 18px;
  }

  .evidence-lines::before,
  .evidence-lines::after {
    display: none;
  }
}

@media (max-height: 690px) and (min-width: 641px) {
  .hero {
    padding-block: 42px;
  }

  .brand-logo {
    width: min(620px, 88%);
    margin-top: -48px;
  }

  .hero-frame {
    padding-bottom: 25px;
  }

  .case-line {
    margin-bottom: 18px;
  }

  .where-button {
    min-height: 54px;
    padding-block: 14px;
  }
}

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

  .where-button,
  .where-button::before {
    transition: none;
  }
}
