:root {
  color-scheme: dark;
  --bg: #02050a;
  --bg-deep: #000104;
  --panel: #07101a;
  --panel-soft: #0a1824;
  --text: #eef7ff;
  --muted: #9db6c8;
  --accent: #04c8ff;
  --accent-strong: #1477ff;
  --accent-soft: rgba(4, 200, 255, .22);
  --violet: #7357ff;
  --ice: #f8fbff;
  --line: rgba(143, 222, 255, .28);
  --shadow-blue: 0 0 24px rgba(4, 200, 255, .52), 0 0 80px rgba(20, 119, 255, .26);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 50% 0, rgba(4, 200, 255, .08), transparent 32rem),
    linear-gradient(180deg, #000104 0%, #02050a 48%, #000104 100%);
  color: var(--text);
  font-family: "Arial Narrow", "Agency FB", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  text-rendering: geometricPrecision;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 80px 80px;
  content: "";
  inset: 0;
  mix-blend-mode: screen;
  opacity: .18;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.laser-canvas {
  height: 100vh;
  inset: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  position: fixed;
  width: 100vw;
  z-index: 55;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-header {
  backdrop-filter: blur(6px);
  background: rgba(0, 6, 12, .72);
  border-bottom: 1px solid rgba(4, 200, 255, .12);
  box-shadow: 0 0 18px rgba(0, 0, 0, .72);
  color: var(--ice);
  left: 0;
  min-height: 40px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 30;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 22px;
  height: 40px;
  justify-content: flex-end;
  padding: 0 70px;
}

.header-links {
  display: flex;
  gap: 2px;
}

.header-links a,
.footer-links a,
.language button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--text);
  display: inline-block;
  font-size: .86rem;
  font-weight: 700;
  padding: 3px 8px;
  text-transform: uppercase;
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}

.header-links a:hover,
.footer-links a:hover,
.language button:hover,
.language .active,
.header-links a[aria-current="page"] {
  background: rgba(4, 200, 255, .12);
  border-color: var(--line);
  box-shadow: var(--shadow-blue);
  color: var(--ice);
}

.progress-line {
  background: rgba(255, 255, 255, .05);
  height: 1px;
  overflow: hidden;
}

.progress-line span {
  animation: progressSweep 8s ease-in-out infinite;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-strong), transparent);
  display: block;
  height: 100%;
  width: 45%;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

main:focus {
  outline: none;
}

.hero {
  min-height: 100vh;
  overflow: hidden;
  padding-top: 40px;
  position: relative;
}

.hero-plane {
  margin: -38px 0 0;
  transform: skewY(-2deg);
}

.stage {
  background: var(--bg-deep);
  border-radius: 3px;
  box-shadow: inset 0 0 130px rgba(0, 0, 0, .92);
  min-height: 82vh;
  overflow: hidden;
  position: relative;
  transform: skewY(2deg);
  width: 100%;
}

.ratio-16x9 {
  aspect-ratio: 16 / 9;
}

.stage-image {
  filter: brightness(.42) saturate(1.22) contrast(1.1);
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: .74;
  position: absolute;
  width: 100%;
}

.hero-backdrop {
  filter: brightness(.68) saturate(1.25) contrast(1.08);
  opacity: .9;
}

.stage-wash {
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 10, 23, .08), rgba(0, 1, 4, .42) 58%, rgba(0, 1, 4, .78)),
    linear-gradient(90deg, rgba(0, 1, 4, .7), rgba(0, 6, 15, .18) 44%, rgba(0, 1, 4, .7)),
    linear-gradient(180deg, rgba(0, 0, 0, .58), transparent 34%, rgba(0, 0, 0, .62));
  inset: 0;
  position: absolute;
}

.stage-grid {
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 23px, rgba(4, 200, 255, .04) 24px),
    repeating-linear-gradient(90deg, transparent 0, transparent 23px, rgba(4, 200, 255, .04) 24px);
  inset: 0;
  mix-blend-mode: screen;
  opacity: .35;
  position: absolute;
}

.stage-grid::after {
  animation: scanline 7s linear infinite;
  background: linear-gradient(180deg, transparent, rgba(4, 200, 255, .26), transparent);
  content: "";
  height: 18%;
  left: 0;
  position: absolute;
  right: 0;
  top: -20%;
}

.heartbeat {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  pointer-events: none;
  position: absolute;
}

.heartbeat img {
  border-radius: 3px;
  filter: drop-shadow(0 0 18px rgba(4, 200, 255, .82)) drop-shadow(0 0 70px rgba(20, 119, 255, .45));
  max-height: 44rem;
  opacity: .92;
  pointer-events: auto;
  width: 34rem;
}

.heartbeat img:hover {
  animation: heartbeat 1.05s ease-in-out infinite;
}

.edge-ribbons {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  position: absolute;
  right: -14px;
  top: 42px;
  width: 230px;
  z-index: 8;
}

.edge-ribbons span {
  background:
    linear-gradient(90deg, rgba(248, 251, 255, .95), rgba(210, 245, 255, .9) 48%, rgba(4, 200, 255, .85)),
    linear-gradient(135deg, rgba(4, 200, 255, .22), transparent);
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 3px;
  color: #00131e;
  display: inline-block;
  font-size: .74rem;
  font-weight: 900;
  padding: 5px 10px;
  text-transform: uppercase;
  transform: rotate(18deg);
  width: max-content;
}

.edge-ribbons span:nth-child(2n) {
  background:
    linear-gradient(90deg, var(--accent-strong), var(--accent)),
    linear-gradient(135deg, rgba(255, 255, 255, .24), transparent);
  color: var(--ice);
  transform: rotate(-18deg) translateX(-20px);
}

.edge-ribbons span:nth-child(3n) {
  transform: rotate(9deg) translateX(10px);
}

.hex-field {
  bottom: -12rem;
  display: flex;
  gap: 0;
  justify-content: center;
  left: 50%;
  min-width: 1600px;
  position: absolute;
  transform: translateX(-50%);
  z-index: 6;
}

.hex-tile {
  align-items: center;
  aspect-ratio: 1.04;
  background-color: var(--panel);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, .22), rgba(0, 0, 0, .86)),
    url("assets/stranger-logo-hooded.png");
  background-size: cover;
  border: 1px solid rgba(4, 200, 255, .28);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  color: var(--ice);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0 -22px;
  min-height: 330px;
  overflow: hidden;
  padding-top: 92px;
  position: relative;
  text-align: center;
  text-shadow: 0 0 12px #000;
  transition: filter .25s ease, transform .25s ease;
  width: 370px;
}

.hex-tile::before {
  background: radial-gradient(circle at 50% 45%, rgba(4, 200, 255, .26), transparent 45%);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity .25s ease;
}

.hex-tile span,
.hex-tile small {
  position: relative;
  z-index: 1;
}

.hex-tile span {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hex-tile small {
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: .78rem;
  margin-top: 4px;
}

.hex-tile:hover {
  filter: brightness(1.2);
  transform: translateY(-18px) scale(1.02);
}

.hex-tile:hover::before {
  opacity: 1;
}

.hex-one { background-position: 10% 44%; }
.hex-two { background-position: 39% 42%; }
.hex-three { background-position: 52% 56%; }
.hex-four { background-position: 65% 42%; }
.hex-five { background-position: 88% 52%; }

.content-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  margin: 0 auto;
  max-width: 1120px;
  padding: 110px 32px 70px;
}

.copy-panel,
.system-panel {
  background:
    linear-gradient(135deg, rgba(4, 200, 255, .09), transparent 45%),
    rgba(0, 5, 12, .72);
  border: 1px solid rgba(4, 200, 255, .18);
  border-radius: 3px;
  box-shadow: 0 0 36px rgba(0, 0, 0, .4);
  min-width: 0;
  padding: 28px;
}

.eyebrow {
  color: var(--accent);
  font-size: .85rem;
  font-weight: 900;
  margin: 0 0 10px;
}

.copy-panel h1 {
  font-size: 2.15rem;
  line-height: 1;
  margin: 0 0 16px;
  max-width: 680px;
  text-transform: uppercase;
}

.copy-panel p {
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  max-width: 720px;
}

.system-panel {
  align-content: center;
  display: grid;
  gap: 10px;
}

.system-row {
  align-items: center;
  border-bottom: 1px solid rgba(4, 200, 255, .15);
  display: grid;
  gap: 12px;
  grid-template-columns: 44px 1fr auto;
  padding: 13px 0;
}

.system-row:last-child {
  border-bottom: 0;
}

.system-row span {
  color: var(--accent);
  font-weight: 900;
}

.system-row strong {
  font-size: 1.15rem;
  text-transform: uppercase;
}

.system-row em {
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: .8rem;
  font-style: normal;
}

.site-footer {
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  margin: 0 auto;
  max-width: 1120px;
  padding: 42px 32px 70px;
}

.footer-links {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-brand h2 {
  color: var(--ice);
  font-size: 2.7rem;
  line-height: 1;
  margin: 8px 0 16px;
  text-shadow: var(--shadow-blue);
}

.language {
  display: flex;
  gap: 4px;
  margin: 0;
}

.language button {
  cursor: pointer;
}

.footer-copy,
.footer-note {
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0 0 12px;
}

.footer-note {
  opacity: .58;
}

.landing-main {
  min-height: 100vh;
  padding-top: 40px;
}

.landing-hero {
  align-items: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(0, 10, 23, .05), rgba(0, 1, 4, .36) 58%, rgba(0, 1, 4, .78)),
    linear-gradient(90deg, rgba(0, 1, 4, .72), rgba(0, 7, 16, .2) 46%, rgba(0, 1, 4, .72)),
    linear-gradient(180deg, rgba(0, 0, 0, .56), transparent 38%, rgba(0, 0, 0, .72)),
    url("assets/tech-circuit-stripes-animated.webp") center / cover;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 72vh;
  overflow: hidden;
  padding: 76px 7vw 84px;
  position: relative;
}

.landing-hero::before {
  background-image:
    repeating-linear-gradient(0deg, rgba(4, 200, 255, .08) 0 1px, transparent 1px 70px),
    repeating-linear-gradient(90deg, rgba(4, 200, 255, .08) 0 1px, transparent 1px 70px);
  content: "";
  inset: 0;
  mix-blend-mode: screen;
  opacity: .48;
  position: absolute;
}

.landing-hero::after {
  background:
    radial-gradient(circle at 50% 42%, rgba(4, 200, 255, .18), transparent 24rem),
    linear-gradient(178deg, transparent 0 72%, rgba(2, 5, 10, .98) 72.4%);
  content: "";
  inset: 0;
  position: absolute;
}

.landing-copy {
  max-width: 760px;
  min-width: 0;
  position: relative;
  text-shadow: 0 0 22px rgba(0, 0, 0, .95);
  width: 100%;
  z-index: 1;
}

.landing-kicker {
  color: var(--accent);
  font-size: .9rem;
  font-weight: 900;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.landing-copy h1 {
  color: var(--ice);
  font-size: 7rem;
  line-height: .82;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.landing-copy p {
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 1.02rem;
  margin: 0;
  max-width: 600px;
  width: 100%;
}

.landing-mark {
  bottom: 20px;
  color: rgba(238, 247, 255, .035);
  font-size: 16rem;
  font-weight: 900;
  left: 5vw;
  line-height: .75;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
}

.landing-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: -58px auto 0;
  max-width: 1120px;
  padding: 0 32px 84px;
  position: relative;
  z-index: 2;
}

.landing-panel,
.landing-status {
  background:
    linear-gradient(135deg, rgba(4, 200, 255, .11), transparent 52%),
    rgba(0, 5, 12, .82);
  border: 1px solid rgba(4, 200, 255, .2);
  border-radius: 3px;
  box-shadow: 0 0 32px rgba(0, 0, 0, .55);
  min-width: 0;
  padding: 24px;
}

.landing-panel h2,
.landing-status h2 {
  font-size: 1.35rem;
  line-height: 1;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.landing-panel p,
.landing-status p,
.landing-panel li {
  color: var(--muted);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: .95rem;
}

.landing-panel p {
  margin: 0;
}

.landing-panel ul,
.landing-status ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-panel li {
  border-bottom: 1px solid rgba(4, 200, 255, .12);
  padding-bottom: 8px;
}

.landing-panel li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.landing-status {
  grid-column: span 3;
}

.status-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-strip span {
  background: rgba(4, 200, 255, .08);
  border: 1px solid rgba(4, 200, 255, .2);
  border-radius: 3px;
  color: var(--ice);
  display: block;
  font-size: .9rem;
  font-weight: 900;
  padding: 12px;
  text-transform: uppercase;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.landing-actions a {
  background: rgba(4, 200, 255, .1);
  border: 1px solid rgba(4, 200, 255, .28);
  border-radius: 3px;
  color: var(--ice);
  font-weight: 900;
  padding: 9px 13px;
  text-transform: uppercase;
  transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.landing-actions a:hover {
  background: rgba(4, 200, 255, .18);
  box-shadow: var(--shadow-blue);
  transform: translateY(-2px);
}

.contact-list a {
  color: var(--ice);
}

.matrix-page .landing-hero {
  background-position: center center;
}

.signal-page .landing-hero {
  background-position: center center;
}

.archive-page .landing-hero {
  background-position: center center;
}

.contact-page .landing-hero {
  background-position: center center;
}

.system-page .landing-hero {
  background-position: center center;
}

.gate {
  align-items: center;
  background:
    linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, .82)),
    repeating-linear-gradient(0deg, rgba(4, 200, 255, .08) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(90deg, rgba(4, 200, 255, .08) 0 1px, transparent 1px 80px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 28px;
  position: fixed;
  transition: opacity .55s ease, visibility .55s ease;
  z-index: 60;
}

.gate.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.gate-trigger {
  background: transparent;
  border: 0;
  color: var(--ice);
  cursor: pointer;
  display: grid;
  gap: 16px;
  justify-items: center;
  max-width: 680px;
  padding: 0;
  width: 100%;
}

.gate-media {
  aspect-ratio: 12 / 5;
  background: #000;
  border: 1px solid rgba(4, 200, 255, .32);
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), var(--shadow-blue), 0 35px 110px rgba(0, 0, 0, .75);
  display: block;
  max-height: 420px;
  overflow: hidden;
  position: relative;
  width: min(100%, 860px);
}

.gate-media img {
  filter: contrast(1.08) saturate(1.18);
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  width: 100%;
}

.gate-sequence {
  opacity: 0;
  transition: opacity 1.05s ease;
}

.gate-sequence.is-active {
  opacity: 1;
}

.gate-sequence.is-retired {
  visibility: hidden;
}

.gate-label {
  color: var(--ice);
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  text-shadow: var(--shadow-blue);
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  45% {
    transform: scale(.985);
  }
  55% {
    transform: scale(1.015);
  }
}

@keyframes scanline {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(720%);
  }
}

@keyframes progressSweep {
  0%, 100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(220%);
  }
}

@media (max-width: 900px) {
  .header-inner {
    padding: 0 18px;
  }

  .header-links {
    display: none;
  }

  .stage {
    min-height: 74vh;
  }

  .heartbeat img {
    width: 25rem;
  }

  .edge-ribbons {
    right: -70px;
    transform: scale(.82);
    transform-origin: top right;
  }

  .hex-field {
    bottom: -8rem;
    min-width: 880px;
  }

  .hex-tile {
    min-height: 210px;
    padding-top: 56px;
    width: 242px;
  }

  .hex-tile span {
    font-size: 1.45rem;
  }

  .content-grid,
  .site-footer {
    grid-template-columns: 1fr;
    padding-left: 18px;
    padding-right: 18px;
  }

  .landing-copy h1 {
    font-size: 5.4rem;
  }

  .landing-mark {
    font-size: 11rem;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .hero-plane {
    margin-top: -24px;
  }

  .stage {
    min-height: 62vh;
  }

  .heartbeat img {
    width: 19rem;
  }

  .edge-ribbons {
    right: -98px;
    top: 44px;
    transform: scale(.62);
  }

  .hex-field {
    bottom: -6.7rem;
    min-width: 690px;
  }

  .hex-tile {
    margin: 0 -15px;
    min-height: 170px;
    padding-top: 45px;
    width: 190px;
  }

  .hex-tile span {
    font-size: 1.1rem;
  }

  .hex-tile small {
    display: none;
  }

  .content-grid {
    padding-top: 78px;
  }

  .copy-panel,
  .system-panel {
    padding: 22px;
  }

  .copy-panel h1 {
    font-size: 1.75rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    min-height: 68vh;
    padding: 68px 18px 92px;
  }

  .landing-copy h1 {
    font-size: 3.1rem;
  }

  .landing-copy {
    max-width: calc(100vw - 36px);
  }

  .landing-copy p {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .landing-grid {
    grid-template-columns: 1fr;
    margin-top: -42px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .landing-status {
    grid-column: auto;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .footer-brand h2 {
    font-size: 2rem;
  }

  .gate {
    align-items: start;
    padding-top: 238px;
  }

  .gate-media img {
    object-fit: contain;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
