/* 404-EVER: the deliberately misplaced media archive. */
body.inner.page-404-ever {
  background-color: #020204;
}

body.page-404-ever .forever-bg-video {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100vw;
  height: 100vh;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  background: #020204;
  filter: saturate(1.04) contrast(1.03);
}

body.inner.page-404-ever::before {
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 4, 12, .28), rgba(0, 2, 8, .46));
  clip-path: none;
  filter: none;
}

body.inner.page-404-ever::after {
  inset: 0;
  height: auto;
  clip-path: none;
  opacity: .42;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(70,90,130,.025) 0 1px, transparent 1px 7px);
}

@keyframes foreverColorSweep {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

body.page-404-ever .page-heading--forever {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 4vw, 54px);
  padding-bottom: clamp(25px, 5vw, 60px);
}

body.page-404-ever .page-heading--forever h1 {
  margin: 0;
}

body.page-404-ever .neon-warning {
  justify-self: end;
  max-width: 390px;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 0 !important;
  color: transparent !important;
  background:
    linear-gradient(
      90deg,
      #69f7ff 0%,
      #ffd76b 18%,
      #ffffff 35%,
      #090909 51%,
      #ff3b3b 68%,
      #53e66b 84%,
      #69f7ff 100%
    ) !important;
  background-size: 420% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  box-shadow: none !important;
  font-family: "MS DOT Gothic 16", "DotGothic16", "MS Gothic", monospace !important;
  font-size: clamp(18px, 2.5vw, 34px) !important;
  font-style: normal !important;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: .075em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: none !important;
  filter: drop-shadow(0 1px 1px rgba(255,255,255,.25)) drop-shadow(0 2px 4px rgba(0,0,0,.78));
  transform: rotate(-1deg);
  animation: foreverColorSweep 24s linear infinite;
}

body.page-404-ever .forever-section {
  margin-top: 28px;
}

body.page-404-ever .forever-section > h2 {
  margin: 0 0 14px;
  padding: 6px 9px;
  color: #fff;
  background: linear-gradient(90deg, #000080, #1084d0);
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  font-family: var(--chicago);
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: -.04em;
  text-shadow: 1px 1px 0 #000;
}

body.page-404-ever .forever-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body.page-404-ever .forever-card {
  margin: 0;
  padding: 7px;
  overflow: hidden;
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  background: rgba(192,192,192,.82);
  box-shadow: 2px 2px 0 rgba(0,0,0,.68);
}

body.page-404-ever .forever-card img,
body.page-404-ever .forever-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

body.page-404-ever .forever-card--trex video {
  object-position: center center;
}

body.page-404-ever .forever-card figcaption,
body.page-404-ever .forever-copy {
  padding: 10px 7px 6px;
  color: #000 !important;
  text-shadow: 1px 1px 0 rgba(255,255,255,.76) !important;
}

body.page-404-ever .forever-card strong,
body.page-404-ever .forever-copy h3 {
  display: block;
  margin: 0 0 4px;
  font-family: var(--chicago);
  font-size: 18px;
  letter-spacing: -.025em;
}

body.page-404-ever .forever-copy p {
  margin: 0;
  font-size: 12px;
}

body.page-404-ever .forever-card--wide {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  body.page-404-ever .page-heading--forever {
    grid-template-columns: 1fr;
  }

  body.page-404-ever .neon-warning {
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }

  body.page-404-ever .forever-grid {
    grid-template-columns: 1fr;
  }

  body.page-404-ever .forever-card--wide {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-404-ever .neon-warning {
    background-position: 50% 50% !important;
    animation: none;
  }
}
