@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-900.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/space-mono-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/space-mono-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #0b0b0c;
  --surface: #16161a;
  --panel: #0e0e10;
  --paper: #f2f1ec;
  --mist: #8a8b93;
  --molten: #ec4a24;
  --page-x: clamp(1.4rem, 4vw, 4.75rem);
  --page-y: clamp(1.25rem, 3vw, 2.75rem);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
  color: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 48%, rgba(236, 74, 36, 0.055), transparent 29%),
    linear-gradient(145deg, #0b0b0c 0%, #0d0d0f 54%, #09090a 100%);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

.signal-field,
.ambient-field,
.scanlines {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.signal-field {
  z-index: 0;
  opacity: 0.9;
}

.ambient-field {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 11, 12, 0.95) 0%, rgba(11, 11, 12, 0.62) 37%, transparent 68%),
    radial-gradient(circle at 71% 50%, transparent 0%, rgba(11, 11, 12, 0.08) 34%, rgba(11, 11, 12, 0.62) 83%);
}

.scanlines {
  z-index: 2;
  opacity: 0.14;
  background-image: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 3px,
    rgba(242, 241, 236, 0.025) 3px,
    rgba(242, 241, 236, 0.025) 4px
  );
  mix-blend-mode: soft-light;
}

.page-shell {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--page-y) var(--page-x);
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar {
  min-height: 3.25rem;
}

.brand {
  display: inline-flex;
  width: clamp(9.75rem, 14vw, 12.75rem);
  transition: opacity 180ms ease;
}

.brand:hover {
  opacity: 0.72;
}

.brand:focus-visible {
  outline: 1px solid var(--molten);
  outline-offset: 0.55rem;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.protocol,
.footer p {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: clamp(0.58rem, 0.7vw, 0.68rem);
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.protocol {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  color: var(--mist);
}

.protocol-index {
  color: var(--paper);
}

.pulse-dot {
  position: relative;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--molten);
  box-shadow: 0 0 1.1rem rgba(236, 74, 36, 0.7);
}

.pulse-dot::after {
  position: absolute;
  inset: -0.35rem;
  border: 1px solid rgba(236, 74, 36, 0.42);
  border-radius: inherit;
  content: "";
  animation: beacon 2.8s ease-out infinite;
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.92fr);
  align-items: center;
}

.hero {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 64rem;
  padding: clamp(2rem, 6vh, 5.5rem) 0;
}

h1 {
  max-width: 11ch;
  margin: 0;
  color: var(--paper);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(3.3rem, 7.25vw, 8.75rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

h1 span {
  display: block;
}

h1 span:last-child {
  position: relative;
  margin-top: 0.12em;
}

h1 span:last-child::after {
  display: inline-block;
  width: 0.13em;
  height: 0.13em;
  margin-left: 0.07em;
  border-radius: 50%;
  background: var(--molten);
  box-shadow: 0 0 0.55em rgba(236, 74, 36, 0.55);
  content: "";
  vertical-align: baseline;
}

.intro {
  max-width: 30rem;
  margin: clamp(1.8rem, 4vh, 3.25rem) 0 0;
  color: rgba(242, 241, 236, 0.78);
  font-size: clamp(1rem, 1.35vw, 1.24rem);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

.emblem {
  position: absolute;
  top: 50%;
  right: clamp(-8rem, -2vw, -1rem);
  display: grid;
  width: min(48vw, 51rem);
  aspect-ratio: 1;
  place-items: center;
  pointer-events: none;
  transform: translateY(-50%);
}

.emblem img {
  display: block;
  width: 58%;
  height: auto;
  opacity: 0.12;
}

.footer {
  min-height: 2rem;
  color: var(--paper);
}

.footer p {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0;
}

.footer-label {
  color: var(--mist);
}

.coordinates {
  color: rgba(138, 139, 147, 0.55);
}

.coordinates span {
  color: var(--molten);
}

.status::after {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--molten);
  content: "";
}

.noscript {
  position: fixed;
  right: 1rem;
  bottom: 0.75rem;
  z-index: 5;
  color: var(--mist);
  font: 0.6rem/1.4 "Space Mono", monospace;
  letter-spacing: 0.12em;
}

@keyframes beacon {
  0% {
    opacity: 0.7;
    transform: scale(0.55);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.75);
  }
}

@media (min-width: 801px) {
  h1 span {
    white-space: nowrap;
  }
}

@media (max-width: 800px) {
  .page-shell {
    padding-top: 1.4rem;
    padding-bottom: 1.25rem;
  }

  .stage {
    grid-template-columns: 1fr;
  }

  .hero {
    align-self: end;
    padding-bottom: clamp(3rem, 9vh, 6rem);
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3.45rem, 15vw, 6.8rem);
  }

  .emblem {
    top: 41%;
    right: -28vw;
    width: min(92vw, 35rem);
  }

  .emblem img {
    width: 60%;
    opacity: 0.1;
  }

  .coordinates {
    display: none !important;
  }
}

@media (max-width: 520px) {
  .brand {
    width: 8.8rem;
  }

  .protocol {
    gap: 0.5rem;
  }

  .protocol-index {
    display: none;
  }

  .intro {
    max-width: 21rem;
    font-size: 0.98rem;
  }

  .footer p {
    gap: 0.55rem;
    font-size: 0.52rem;
    letter-spacing: 0.12em;
  }
}

@media (max-height: 650px) and (min-width: 801px) {
  h1 {
    font-size: clamp(3.2rem, 6.4vw, 6.7rem);
  }

  .intro {
    margin-top: 1.35rem;
  }

  .hero {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

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