@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Source+Sans+3:wght@400;600;700;800;900&display=swap");

:root {
  color-scheme: dark;
  --bg: #05070d;
  --ink: #f8fafc;
  --muted: #b6c2d3;
  --soft: #7e8da3;
  --line: rgba(255, 255, 255, 0.13);
  --ice: #bff4ff;
  --blue: #60a5fa;
  --panel: rgba(12, 18, 29, 0.64);
  --display: "Source Sans 3", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui: "Source Sans 3", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --label: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", ui-sans-serif, system-ui, sans-serif;
}

@property --mask-rx {
  syntax: "<length>";
  initial-value: 420px;
  inherits: false;
}

@property --mask-ry {
  syntax: "<length>";
  initial-value: 360px;
  inherits: false;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  margin: 0;
  min-height: 100%;
}

button,
input {
  font: inherit;
}

button {
  appearance: none;
}

img {
  max-width: 100%;
}

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

.title-screen {
  --mouse-x: 50%;
  --mouse-y: 50%;
  --faerie-x: 50%;
  --faerie-y: 50%;
  --mask-rx: 420px;
  --mask-ry: 360px;
  align-items: center;
  display: flex;
  height: 100svh;
  justify-content: center;
  min-height: 620px;
  overflow: hidden;
  position: relative;
}

.title-bg-root,
.title-particles {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
}

.title-bg-root {
  z-index: 0;
}

.title-bg-image {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.title-bg-image:not(.title-bg-revealed-city):not(.title-bg-revealed-destroyed),
.title-bg-duplicate {
  filter: saturate(0.07) brightness(0.48) sepia(0.45) hue-rotate(210deg);
}

.title-bg-duplicate {
  opacity: 1;
}

.title-bg-revealed-city,
.title-bg-revealed-destroyed {
  filter: saturate(1.45) brightness(1.05);
}

.kenburns-bg {
  animation: kenburns-main 28s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}

.title-faerie-reveal,
.title-mouse-reveal {
  inset: 0;
  position: absolute;
}

.title-mouse-ring,
.title-mouse-aura {
  position: absolute;
}

.title-faerie-reveal {
  animation: pulse-mask 6s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse 280px 240px at var(--faerie-x) var(--faerie-y), black 0%, black 16%, rgba(0, 0, 0, 0.5) 46%, rgba(0, 0, 0, 0.06) 74%, transparent 100%);
  mask-image: radial-gradient(ellipse 280px 240px at var(--faerie-x) var(--faerie-y), black 0%, black 16%, rgba(0, 0, 0, 0.5) 46%, rgba(0, 0, 0, 0.06) 74%, transparent 100%);
}

.title-mouse-reveal {
  animation: pulse-mask 6s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse var(--mask-rx) var(--mask-ry) at var(--mouse-x) var(--mouse-y), black 0%, black 16%, rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.08) 74%, transparent 100%);
  mask-image: radial-gradient(ellipse var(--mask-rx) var(--mask-ry) at var(--mouse-x) var(--mouse-y), black 0%, black 16%, rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.08) 74%, transparent 100%);
}

.title-mouse-ring {
  animation: pulse-mask 6s ease-in-out infinite;
  background: radial-gradient(ellipse at center, transparent 34%, rgba(110, 170, 255, 0.07) 54%, rgba(180, 100, 255, 0.05) 75%, transparent 88%);
  filter: blur(16px);
  height: calc(var(--mask-ry) * 1.4);
  left: var(--mouse-x);
  mix-blend-mode: screen;
  top: var(--mouse-y);
  transform: translate(-50%, -50%);
  width: calc(var(--mask-rx) * 1.4);
}

.title-mouse-aura {
  animation: pulse-mask 6s ease-in-out infinite;
  background: radial-gradient(circle, rgba(80, 140, 255, 0.12) 0%, rgba(120, 60, 200, 0.07) 60%, transparent 100%);
  border-radius: 999px;
  filter: blur(140px);
  height: calc(var(--mask-ry) * 1.8);
  left: var(--mouse-x);
  mix-blend-mode: screen;
  top: var(--mouse-y);
  transform: translate(-50%, -50%);
  width: calc(var(--mask-rx) * 1.8);
}

.title-light-beams {
  inset: 0;
  opacity: 0.2;
  position: absolute;
}

.title-light-beams span {
  background: linear-gradient(to bottom, rgba(96, 165, 250, 0), rgba(96, 165, 250, 0.2), rgba(96, 165, 250, 0));
  filter: blur(48px);
  height: 140%;
  position: absolute;
  top: -20%;
  transform: rotate(35deg);
  width: 20%;
}

.title-light-beams span:first-child {
  left: 10%;
}

.title-light-beams span:last-child {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  filter: blur(32px);
  left: 60%;
  width: 15%;
}

.title-bg-root::after {
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%),
    linear-gradient(0deg, #000 0%, transparent 45%, transparent 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.title-fog {
  background: rgba(34, 211, 238, 0.05);
  filter: blur(90px);
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.title-fog-bottom {
  animation: fog-drift-bottom 15s linear infinite alternate;
  bottom: 0;
  height: 50%;
}

.title-fog-top {
  animation: fog-drift-top 20s linear infinite alternate;
  height: 33%;
  top: 0;
}

.title-vignette {
  background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.4) 100%);
  inset: 0;
  position: absolute;
  z-index: 1;
}

.title-particles {
  z-index: 1;
}

.title-particle {
  animation: particle-drift var(--duration) linear var(--delay) infinite;
  background: var(--color);
  border-radius: 999px;
  filter: blur(var(--blur));
  height: var(--size);
  left: var(--left);
  mix-blend-mode: screen;
  opacity: 0;
  position: absolute;
  top: var(--start-y);
  width: var(--size);
}

.faerie-bloom,
.faerie-dot {
  left: var(--faerie-x);
  mix-blend-mode: screen;
  pointer-events: none;
  position: absolute;
  top: var(--faerie-y);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.faerie-bloom {
  animation: faerie-pulse 1.8s ease-in-out infinite;
  background: radial-gradient(circle at center, rgba(255, 100, 120, 0.65) 0%, rgba(255, 70, 90, 0.2) 18%, rgba(220, 45, 65, 0.06) 38%, transparent 58%);
  box-shadow: inset 0 0 20px 2px rgba(255, 120, 140, 0.4);
  filter: blur(8px);
  height: 72px;
  width: 72px;
}

.faerie-dot {
  background: radial-gradient(circle at center, rgba(255, 200, 210, 0.95) 0%, rgba(255, 140, 160, 0.85) 60%, rgba(240, 100, 130, 0.7) 100%);
  border-radius: 999px;
  box-shadow: 0 0 12px 1px rgba(255, 150, 170, 0.9), 0 0 28px 4px rgba(255, 80, 100, 0.5), 0 0 48px 8px rgba(220, 50, 70, 0.25);
  height: 4px;
  width: 4px;
}

.title-stage {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: -7vh;
  max-width: min(92vw, 36rem);
  padding: 0 1rem;
  position: relative;
  width: 100%;
  z-index: 3;
}

.title-logo-reveal {
  animation: do-title-logo-reveal 1.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  margin-bottom: -0.75rem;
  max-width: min(92vw, 34rem);
  pointer-events: none;
  position: relative;
  transform: translateY(-2.5rem);
  width: 100%;
  will-change: filter, opacity, transform;
}

.title-logo {
  display: block;
  filter: drop-shadow(0 20px 42px rgba(6, 182, 212, 0.34));
  margin: 0 auto;
  max-height: 360px;
  object-fit: contain;
  width: 100%;
}

.title-menu {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 auto;
  max-width: 20rem;
  position: relative;
  width: min(20rem, 78vw);
}

.title-menu-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 4px 20px rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: flex;
  font-family: var(--ui);
  font-size: 0.82rem;
  font-weight: 750;
  gap: 1.5rem;
  justify-content: center;
  letter-spacing: 0.04em;
  line-height: 1;
  min-height: 3.52rem;
  overflow: visible;
  padding: 1.25rem 2rem;
  position: relative;
  text-align: center;
  text-rendering: optimizeLegibility;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

.title-menu-button::before {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.05), transparent);
  border-radius: 0.75rem;
  content: "";
  filter: blur(12px);
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: all 0.5s ease;
}

.title-menu-button:hover,
.title-menu-button:focus-visible {
  background: rgba(45, 120, 255, 0.15);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 10px 40px rgba(0, 0, 0, 0.5);
  color: #fff;
  outline: none;
  transform: translateX(16px);
}

.title-menu-button:hover::before,
.title-menu-button:focus-visible::before {
  opacity: 1;
}

.title-menu-button[data-selected="true"] {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(96, 165, 250, 0.8);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    0 0 20px rgba(59, 130, 246, 0.35),
    0 4px 20px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(96, 165, 250, 0.95),
    0 0 0 4px rgba(2, 6, 23, 0.95);
  color: #fff;
}

.title-menu-button span {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.main-menu-footer-info {
  bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--label);
  font-size: 0.63rem;
  font-weight: 700;
  left: 2rem;
  letter-spacing: 0.04em;
  margin: 0;
  position: absolute;
  right: 2rem;
  text-align: center;
  z-index: 3;
}

.content-section,
.made-with {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.content-section {
  background: #05070d;
  isolation: isolate;
  overflow: hidden;
}

.content-section * {
  letter-spacing: 0;
}

.content-section::before {
  background:
    linear-gradient(90deg, transparent, rgba(191, 244, 255, 0.3), transparent),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(191, 244, 255, 0.08) 38px 39px);
  content: "";
  height: 1px;
  left: 0;
  opacity: 0.7;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.section-inner,
.made-with {
  margin: 0 auto;
  max-width: 1220px;
  padding-left: 24px;
  padding-right: 24px;
}

.section-inner {
  padding-bottom: 6rem;
  padding-top: 6rem;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--ice);
  font-family: var(--label);
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0 0 0.85rem;
  text-transform: uppercase;
}

h2,
h3 {
  font-family: var(--display);
}

h2 {
  font-size: 3.15rem;
  font-weight: 900;
  line-height: 1.02;
  margin: 0;
  max-width: 780px;
}

h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1.12;
  margin: 0;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.68;
}

.section-lede {
  color: #dbeafe;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.52;
  max-width: 650px;
}

.section-header {
  margin-bottom: 1.65rem;
  max-width: 760px;
}

.section-header .section-lede {
  margin-top: 0.9rem;
  margin-bottom: 0;
}

.trailer-section {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(7, 12, 22, 0.7)),
    url("./assets/screenshot-citryan-town.webp") center / cover;
}

.trailer-section::after,
.systems-section::after,
.gallery-section::after,
.updates-section::after {
  background:
    linear-gradient(135deg, rgba(191, 244, 255, 0.07), transparent 32%),
    repeating-linear-gradient(135deg, transparent 0 26px, rgba(255, 255, 255, 0.035) 26px 27px);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.trailer-command,
.updates-console {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.76fr) minmax(22rem, 1.24fr);
}

.mission-panel,
.transmission-panel {
  background:
    linear-gradient(120deg, rgba(16, 26, 39, 0.92), rgba(8, 13, 24, 0.78)),
    linear-gradient(180deg, rgba(191, 244, 255, 0.1), transparent);
  border: 1px solid rgba(191, 244, 255, 0.22);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 70px rgba(0, 0, 0, 0.38);
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 34px 100%, 0 calc(100% - 34px));
  min-width: 0;
  padding: 1.5rem;
  position: relative;
}

.mission-panel::before,
.transmission-panel::before {
  background:
    linear-gradient(90deg, rgba(191, 244, 255, 0.55), transparent),
    linear-gradient(90deg, transparent 58%, rgba(239, 68, 68, 0.36));
  content: "";
  height: 3px;
  left: 1.65rem;
  position: absolute;
  right: 1.65rem;
  top: 1rem;
}

.mission-readout {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.5rem 0 0;
}

.mission-readout div,
.signal-log span {
  background: rgba(3, 7, 18, 0.5);
  border: 1px solid rgba(191, 244, 255, 0.18);
  border-radius: 6px;
  min-width: 0;
  padding: 0.72rem 0.8rem;
}

.mission-readout dt {
  color: rgba(191, 244, 255, 0.78);
  font-family: var(--label);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.mission-readout dd {
  color: #ffffff;
  font-weight: 800;
  margin: 0.2rem 0 0;
}

.store-actions,
.media-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.store-actions {
  margin-top: 1.35rem;
}

.steam-link {
  align-items: center;
  background: linear-gradient(90deg, rgba(191, 244, 255, 0.22), rgba(96, 165, 250, 0.12));
  border: 1px solid rgba(191, 244, 255, 0.54);
  border-radius: 6px;
  color: #f0fdff;
  display: inline-flex;
  font-family: var(--label);
  font-size: 0.98rem;
  font-weight: 800;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease, filter 160ms ease;
}

.steam-link:hover,
.steam-link:focus-visible {
  border-color: rgba(255, 255, 255, 0.88);
  color: #ffffff;
  filter: brightness(1.12);
  outline: none;
}

.release-chip {
  background: rgba(3, 7, 18, 0.48);
  border: 1px solid rgba(191, 244, 255, 0.22);
  border-radius: 6px;
  color: rgba(224, 250, 255, 0.86);
  display: inline-flex;
  font-family: var(--label);
  font-size: 0.92rem;
  font-weight: 800;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  text-transform: uppercase;
}

.trailer-stack {
  min-width: 0;
}

.hud-strip {
  align-items: center;
  background: rgba(8, 13, 24, 0.9);
  border: 1px solid rgba(191, 244, 255, 0.22);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  color: rgba(224, 250, 255, 0.8);
  display: flex;
  font-family: var(--label);
  font-size: 0.92rem;
  font-weight: 800;
  gap: 1rem;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0 1rem;
  text-transform: uppercase;
}

.hud-strip strong {
  color: #ffffff;
  font-family: var(--ui);
  letter-spacing: 0;
  text-transform: none;
}

.trailer-console {
  aspect-ratio: 16 / 9;
  background: #020617;
  border: 1px solid rgba(191, 244, 255, 0.24);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.54);
  min-height: 20rem;
  overflow: hidden;
  position: relative;
}

.trailer-console iframe {
  border: 0;
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}

.trailer-link {
  color: rgba(224, 250, 255, 0.82);
  display: inline-flex;
  font-family: var(--label);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, text-shadow 160ms ease;
}

.media-links {
  margin-top: 0.9rem;
}

.trailer-link:hover,
.trailer-link:focus-visible {
  color: #ffffff;
  outline: none;
  text-shadow: 0 0 18px rgba(191, 244, 255, 0.45);
}

.systems-section {
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.82), rgba(5, 7, 13, 0.96)),
    url("./assets/screenshot-tactical-ice-arena.webp") center / cover;
}

.systems-section .section-inner {
  padding-top: 4.25rem;
}

.systems-command {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(21rem, 0.95fr);
}

.systems-screen,
.gallery-card,
.gallery-hero {
  border: 1px solid rgba(191, 244, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  margin: 0;
  overflow: hidden;
  position: relative;
}

.systems-screen {
  min-height: 31rem;
}

.systems-screen img,
.gallery-hero img,
.gallery-card img,
.readout-image img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.systems-screen img {
  filter: saturate(0.96) brightness(0.88);
  inset: 0;
  position: absolute;
}

.systems-screen figcaption,
.gallery-card figcaption {
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.92), rgba(3, 7, 18, 0));
  bottom: 0;
  color: rgba(248, 250, 252, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
  left: 0;
  line-height: 1.45;
  margin: 0;
  padding: 4.2rem 1.1rem 1rem;
  position: absolute;
  right: 0;
}

.systems-screen figcaption span,
.gallery-card figcaption span {
  color: var(--ice);
  display: block;
  font-family: var(--label);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.system-readouts {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.readout-card {
  background:
    linear-gradient(135deg, rgba(191, 244, 255, 0.1), transparent 44%),
    rgba(7, 13, 24, 0.82);
  border: 1px solid rgba(191, 244, 255, 0.17);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  min-height: 11.5rem;
  overflow: hidden;
  padding: 1rem;
  position: relative;
}

.readout-card::after {
  background: linear-gradient(90deg, rgba(191, 244, 255, 0.36), transparent);
  bottom: 0.9rem;
  content: "";
  height: 1px;
  left: 1rem;
  position: absolute;
  right: 1rem;
}

.readout-wide,
.readout-image {
  grid-column: span 2;
}

.readout-code {
  color: rgba(191, 244, 255, 0.78);
  display: block;
  font-family: var(--label);
  font-size: 0.86rem;
  font-weight: 800;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.readout-card p {
  color: #bdc9d7;
  font-size: 0.92rem;
  line-height: 1.48;
  margin-bottom: 0;
}

.readout-image {
  min-height: 18rem;
  padding: 0;
}

.readout-image img {
  filter: saturate(0.9) brightness(0.82);
  inset: 0;
  position: absolute;
}

.readout-image div {
  background: linear-gradient(0deg, rgba(3, 7, 18, 0.95), rgba(3, 7, 18, 0.1));
  bottom: 0;
  left: 0;
  padding: 1rem;
  position: absolute;
  right: 0;
}

.gallery-section {
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.92), rgba(8, 13, 24, 0.97)),
    url("./assets/screenshot-cold-storage-route.webp") center / cover;
}

.gallery-hero {
  min-height: 34rem;
}

.gallery-hero::after {
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.82), transparent 62%),
    linear-gradient(0deg, rgba(3, 7, 18, 0.72), transparent 42%);
  content: "";
  inset: 0;
  position: absolute;
}

.gallery-hero img {
  filter: saturate(0.95) brightness(0.88);
  inset: 0;
  position: absolute;
}

.gallery-hero-copy {
  bottom: 1.3rem;
  left: 1.3rem;
  max-width: 43rem;
  padding: 1.25rem;
  position: absolute;
  right: 1.3rem;
  z-index: 2;
}

.gallery-hero-copy h2 {
  font-size: 2.9rem;
}

.gallery-hero-copy p:last-child {
  color: #dbeafe;
  font-weight: 650;
  max-width: 42rem;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: 1rem;
}

.gallery-card {
  grid-column: span 6;
  min-height: 18rem;
}

.gallery-card-tall {
  grid-row: span 2;
  min-height: 37rem;
}

.gallery-card-wide {
  grid-column: span 12;
  min-height: 30rem;
}

.gallery-card img {
  filter: saturate(0.96) brightness(0.9);
  inset: 0;
  position: absolute;
}

.updates-section {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.76)),
    url("./assets/title-bg-city.webp") center / cover;
}

.signal-log {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.signal-log span {
  color: #dffbff;
  display: block;
  font-family: var(--label);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.waitlist-form {
  background:
    linear-gradient(120deg, rgba(16, 26, 39, 0.94), rgba(8, 13, 24, 0.82)),
    linear-gradient(180deg, rgba(251, 113, 133, 0.11), transparent);
  border: 1px solid rgba(191, 244, 255, 0.2);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 70px rgba(0, 0, 0, 0.4);
  min-width: 0;
  padding: 1.35rem;
}

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

.waitlist-form label {
  color: #ffffff;
  display: block;
  font-family: var(--label);
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) 10.5rem;
}

.waitlist-form input {
  background: rgba(0, 0, 0, 0.44);
  border: 1px solid rgba(191, 244, 255, 0.22);
  border-radius: 6px;
  color: #ffffff;
  font-weight: 760;
  min-height: 3.25rem;
  min-width: 0;
  outline: none;
  padding: 0 0.95rem;
}

.waitlist-form input:focus {
  border-color: rgba(191, 244, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(191, 244, 255, 0.14);
}

.waitlist-form button {
  background: linear-gradient(90deg, rgba(191, 244, 255, 0.2), rgba(251, 113, 133, 0.14));
  border: 1px solid rgba(191, 244, 255, 0.5);
  border-radius: 6px;
  color: #f0fdff;
  cursor: pointer;
  font-family: var(--label);
  font-size: 0.92rem;
  font-weight: 800;
  min-height: 3.25rem;
  text-transform: uppercase;
}

.waitlist-form button:hover,
.waitlist-form button:focus-visible {
  border-color: rgba(255, 255, 255, 0.82);
  outline: none;
}

.waitlist-form button:disabled {
  cursor: progress;
  opacity: 0.65;
}

.form-status {
  color: var(--ice);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 0;
  min-height: 1.3rem;
}

.form-status[data-state="error"] {
  color: #fecdd3;
}

.made-with {
  background: #05070d;
  color: var(--soft);
  font-size: 0.86rem;
  padding-bottom: 1.9rem;
  padding-top: 1.5rem;
  text-align: center;
}

.made-with strong {
  color: var(--ice);
}

@keyframes kenburns-main {
  0% {
    transform: scale(1.12) translate(0, 0);
  }

  33% {
    transform: scale(1.18) translate(-20px, 14px);
  }

  66% {
    transform: scale(1.15) translate(20px, -12px);
  }

  100% {
    transform: scale(1.12) translate(0, 0);
  }
}

@keyframes pulse-mask {
  0% {
    --mask-rx: 420px;
    --mask-ry: 360px;
  }

  25% {
    --mask-rx: 850px;
    --mask-ry: 320px;
  }

  50% {
    --mask-rx: 320px;
    --mask-ry: 800px;
  }

  75% {
    --mask-rx: 650px;
    --mask-ry: 650px;
  }

  100% {
    --mask-rx: 420px;
    --mask-ry: 360px;
  }
}

@keyframes do-title-logo-reveal {
  0% {
    filter: blur(10px) brightness(1.18);
    opacity: 0;
    transform: translateY(-2.5rem) scale(0.985);
  }

  62% {
    filter: blur(2px) brightness(1.08);
    opacity: 0.92;
  }

  100% {
    filter: blur(0) brightness(1);
    opacity: 1;
    transform: translateY(-2.5rem) scale(1);
  }
}

@keyframes faerie-pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1);
  }

  28% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15);
  }

  58% {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(1.05);
  }

  78% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

@keyframes particle-drift {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  20% {
    opacity: 0.8;
  }

  48% {
    opacity: 0.4;
    transform: translate3d(var(--x1), -40vh, 0) rotate(120deg);
  }

  72% {
    opacity: 1;
    transform: translate3d(var(--x2), -72vh, 0) rotate(240deg);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--x3), -140vh, 0) rotate(360deg);
  }
}

@keyframes fog-drift-bottom {
  from {
    transform: translateX(-20%);
  }

  to {
    transform: translateX(20%);
  }
}

@keyframes fog-drift-top {
  from {
    transform: translateX(10%);
  }

  to {
    transform: translateX(-10%);
  }
}

@media (max-width: 980px) {
  h2 {
    font-size: 3.05rem;
  }

  .section-header,
  .trailer-command,
  .systems-command,
  .updates-console {
    grid-template-columns: 1fr;
  }

  .systems-screen {
    min-height: 28rem;
  }

  .gallery-hero-copy h2 {
    font-size: 2.75rem;
  }

  .gallery-card,
  .gallery-card-tall,
  .gallery-card-wide {
    grid-column: span 12;
  }

  .gallery-card-tall,
  .gallery-card-wide {
    min-height: 24rem;
  }

  .trailer-console {
    min-height: 18rem;
  }

  .title-stage {
    margin-top: -4vh;
  }

  .title-logo-reveal {
    max-width: min(92vw, 28rem);
  }
}

@media (max-width: 680px) {
  .title-screen {
    min-height: 560px;
  }

  .title-stage {
    margin-top: -2vh;
  }

  .title-logo-reveal {
    margin-bottom: -0.25rem;
    transform: translateY(-1.5rem);
  }

  .title-logo {
    max-height: 240px;
  }

  .title-menu {
    gap: 0.75rem;
    width: min(19rem, 84vw);
  }

  .title-menu-button {
    min-height: 3.15rem;
    padding: 1rem 1.4rem;
  }

  .title-menu-button:hover,
  .title-menu-button:focus-visible {
    transform: translateX(8px);
  }

  .main-menu-footer-info {
    bottom: 1rem;
  }

  .section-inner,
  .made-with {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-inner {
    padding-bottom: 4.5rem;
    padding-top: 4.5rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .section-lede {
    font-size: 1.05rem;
  }

  .mission-panel,
  .transmission-panel,
  .waitlist-form {
    clip-path: none;
    padding: 1.1rem;
  }

  .mission-readout,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hud-strip {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
    padding: 0.75rem 1rem;
  }

  .trailer-console {
    min-height: 13.5rem;
  }

  .systems-screen,
  .readout-image,
  .gallery-card,
  .gallery-card-tall,
  .gallery-card-wide {
    min-height: 17rem;
  }

  .system-readouts {
    grid-template-columns: 1fr;
  }

  .readout-wide,
  .readout-image {
    grid-column: auto;
  }

  .gallery-hero {
    min-height: 0;
  }

  .gallery-hero::after {
    display: none;
  }

  .gallery-hero img {
    aspect-ratio: 16 / 11;
    position: relative;
  }

  .gallery-hero-copy {
    background: rgba(3, 7, 18, 0.88);
    bottom: auto;
    left: auto;
    padding: 1rem;
    position: relative;
    right: auto;
  }

  .gallery-hero-copy h2 {
    font-size: 2.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
