@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@500;600;700;800&family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  --bg: #08090f;
  --panel: #10121b;
  --panel-2: #151826;
  --cyan: #00e5ff;
  --pink: #ff4fcb;
  --violet: #9b6fff;
  --text: #eef1f8;
  --soft: #a8aec2;
  --muted: #7d849b;
  --line: rgba(155, 111, 255, 0.24);
  --head: "Orbitron", ui-monospace, monospace;
  --body: "Space Grotesk", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
}
::selection {
  color: #08090f;
  background: var(--cyan);
}

main {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(0, 229, 255, 0.055),
      transparent 26%
    ),
    radial-gradient(
      circle at 87% 35%,
      rgba(255, 79, 203, 0.045),
      transparent 25%
    ),
    #08090f;
}
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 0 clamp(24px, 5vw, 80px);
  background: rgba(8, 9, 15, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(155, 111, 255, 0.18);
}
.brand {
  display: inline-flex;
  gap: 0.38em;
  align-items: center;
  font-family: var(--head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #fff;
  white-space: nowrap;
}
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}
.glitch::before {
  color: var(--white);
  animation: glitch-top 3s infinite linear;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
}
.glitch::after {
  color: var(--white);
  animation: glitch-bottom 3s infinite linear;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}
.brand-bracket {
  color: var(--cyan);
  margin-left: 0.12em;
}
.brand-pixel {
  margin: 0 -0.38em;
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  background-clip: text;
}
.brand-end {
  color: var(--pink);
}
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.4vw, 40px);
}
.nav-menu a {
  position: relative;
  color: #8b91a5;
  font-family: var(--head);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  transition: right 0.25s;
}
.nav-menu a:hover {
  color: #fff;
}
.nav-menu a:hover::after {
  right: 0;
}
.nav-status {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  border: 1px solid rgba(0, 229, 255, 0.22);
  background: rgba(0, 229, 255, 0.04);
  border-radius: 999px;
  color: #b9f8ff;
  font-family: var(--head);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1px;
  margin: 7px 0;
  background: #fff;
  transition: transform 0.2s;
}

.hero {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
  padding: 82px 24px 150px;
  background-image: url("../images/ui/hero.webp");
  background-size: cover;
  background-position: center bottom;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 18, 0.82) 0%,
    rgba(13, 13, 18, 0.5) 35%,
    rgba(13, 13, 18, 0.27) 68%,
    rgba(13, 13, 18, 0.22) 100%
  );
  z-index: 0;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center bottom,
    rgba(155, 111, 255, 0.12) 0%,
    transparent 70%
  );
}
.hero-edge-light {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  height: 1px;
  background: rgba(0, 229, 255, 0.42);
  box-shadow: 0 2px 14px rgba(0, 229, 255, 0.18);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(900px, 100%);
  text-align: center;
}
.hero-logo {
  width: clamp(230px, 25vw, 308px);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto -18px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}
.hero h1 .brand {
  font-size: inherit;
  letter-spacing: 0.08em;
}
.hero-tagline {
  margin: 18px 0 34px;
  color: #cbd0dd;
  font-family: var(--head);
  font-size: clamp(9px, 1vw, 12px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
}
.hero-tagline em {
  color: var(--cyan);
  font-style: normal;
}
.hero-tagline strong {
  color: var(--pink);
  font-weight: 600;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.latest-signal {
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 28px auto 0;
  padding: 8px 20px;
  border: 1px solid rgba(155, 111, 255, 0.52);
  border-radius: 999px;
  background: rgba(13, 13, 18, 0.72);
  color: var(--cyan);
  font-family: var(--head);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}
.latest-signal-dot {
  color: var(--pink);
  animation: pulse 1.6s ease-in-out infinite;
}
.latest-signal-label {
  color: rgba(255, 255, 255, 0.55);
}
.latest-signal a:hover {
  color: #fff;
}
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 24px;
  border: 1px solid rgba(155, 111, 255, 0.42);
  color: #fff;
  font-family: var(--head);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.button:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 12px 30px rgba(0, 229, 255, 0.12);
}
.button-primary {
  color: #07090e;
  border: 0;
  background: linear-gradient(105deg, var(--cyan), #55c8ff 48%, var(--violet));
  font-weight: 800;
}
.button-ghost {
  background: rgba(8, 9, 15, 0.58);
  backdrop-filter: blur(10px);
}
.hero-telemetry {
  position: absolute;
  bottom: 88px;
  z-index: 2;
  display: grid;
  gap: 3px;
  padding-left: 14px;
  border-left: 1px solid var(--cyan);
  font-family: var(--head);
  letter-spacing: 0.16em;
}
.hero-telemetry span,
.hero-telemetry i {
  color: #7d849b;
  font-size: 8px;
  font-style: normal;
}
.hero-telemetry b {
  color: #dce1ed;
  font-size: 11px;
}
.telemetry-left {
  left: clamp(24px, 5vw, 80px);
}
.telemetry-right {
  right: clamp(24px, 5vw, 80px);
  text-align: right;
  padding: 0 14px 0 0;
  border-left: 0;
  border-right: 1px solid var(--pink);
}
.scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #9299ac;
  font-family: var(--head);
  font-size: 8px;
  letter-spacing: 0.24em;
}
.scroll-cue i {
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--cyan), transparent);
  animation: scrollLine 1.8s infinite;
}
.hero-ambient {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  opacity: 0;
  animation: particleDrift linear infinite;
}
.p1 { background: var(--cyan); left: 8%; top: 60%; animation-duration: 14s; }
.p2 { background: var(--pink); left: 15%; top: 50%; animation-duration: 18s; }
.p3 { background: var(--violet); left: 23%; top: 70%; animation-duration: 12s; }
.p4 { background: var(--cyan); left: 34%; top: 55%; animation-duration: 20s; }
.p5 { background: #fff; left: 42%; top: 65%; animation-duration: 16s; }
.p6 { background: var(--pink); left: 51%; top: 45%; animation-duration: 13s; }
.p7 { background: var(--cyan); left: 60%; top: 60%; animation-duration: 19s; }
.p8 { background: var(--violet); left: 68%; top: 50%; animation-duration: 15s; }
.p9 { background: var(--pink); left: 75%; top: 70%; animation-duration: 17s; }
.p10 { background: var(--cyan); left: 82%; top: 55%; animation-duration: 11s; }
.p11 { background: #fff; left: 90%; top: 65%; animation-duration: 14s; }
.p12 { background: var(--violet); left: 47%; top: 40%; animation-duration: 22s; }
.p13 { background: var(--pink); left: 29%; top: 58%; animation-duration: 25s; animation-delay: 5s; }
.p14 { background: var(--cyan); left: 57%; top: 72%; animation-duration: 28s; animation-delay: 9s; }
.p15 { background: #fff; left: 73%; top: 48%; animation-duration: 30s; animation-delay: 3s; }
.shooting-star {
  position: absolute;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #fff, transparent);
}
.ss1 {
  width: 60px;
  top: 12%;
  left: 60%;
  transform: rotate(-25deg);
  animation: shootStar1 18s 6s infinite;
}
.ss2 {
  width: 45px;
  top: 8%;
  left: 20%;
  transform: rotate(20deg);
  animation: shootStar2 22s 2s infinite;
}
.ss3 {
  width: 70px;
  top: 18%;
  left: 40%;
  transform: rotate(-40deg);
  animation: shootStar3 25s 14s infinite;
}
.hovercar {
  position: absolute;
  left: -10px;
  bottom: 48%;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 4px var(--cyan);
  opacity: 0.5;
  animation: hovercar 22s linear infinite 3s;
}

.pulse-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 0.8fr repeat(3, 0.7fr) 2.1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 17, 27, 0.92);
}
.pulse-strip > div {
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 14px clamp(18px, 2vw, 34px);
  border-right: 1px solid rgba(155, 111, 255, 0.14);
}
.pulse-strip b {
  color: #fff;
  font-family: var(--head);
  font-size: 15px;
  letter-spacing: 0.12em;
}
.pulse-strip small {
  color: var(--muted);
  font-size: 11px;
}
.pulse-strip > div:first-child {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.pulse-message {
  border-right: 0 !important;
}
.pulse-message span {
  color: var(--pink);
  font-family: var(--head);
  font-size: 8px;
  letter-spacing: 0.2em;
}
.pulse-message a {
  color: #cbd1e2;
  font-size: 12px;
}

.section-shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(82px, 9vw, 140px) 0;
}
.section-heading {
  margin-bottom: 44px;
}
.split-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
}
.split-heading > p {
  max-width: 500px;
  margin: 0;
  color: var(--soft);
}
.eyebrow {
  display: block;
  margin-bottom: 13px;
  color: var(--cyan);
  font-family: var(--head);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.section-heading h2,
.manifesto h2,
.signal-header h2,
.reality-copy h2,
.final-cta h2 {
  margin: 0;
  color: #fff;
  font-family: var(--head);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.02em;
}
.section-heading h2 span,
.manifesto h2 span,
.signal-header h2 span,
.reality-copy h2 span,
.final-cta h2 span {
  color: transparent;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--pink));
  background-clip: text;
}
.section-link {
  color: #b8bfd2;
  font-family: var(--head);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.city-console {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) 2fr;
  min-height: 580px;
  overflow: visible;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
}
.city-corner-art {
  position: absolute;
  right: clamp(-26px, -1.7vw, -16px);
  bottom: clamp(-24px, -1.6vw, -15px);
  z-index: 2;
  width: clamp(115px, 12vw, 165px);
  max-width: none;
  pointer-events: none;
  user-select: none;
  opacity: 0.94;
  filter: drop-shadow(0 0 24px rgba(155, 111, 255, 0.26));
}
.district-rail {
  display: flex;
  flex-direction: column;
  background: #0c0e16;
  border-right: 1px solid var(--line);
}
.district-button {
  flex: 1;
  display: grid;
  grid-template-columns: 28px 46px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 15px 20px;
  border: 0;
  border-bottom: 1px solid rgba(155, 111, 255, 0.12);
  color: #777f95;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    padding 0.2s;
}
.district-emblem {
  width: 46px;
  height: 46px;
  object-fit: contain;
  opacity: 0.66;
  filter: saturate(0.78) drop-shadow(0 0 0 transparent);
  transition:
    opacity 0.25s,
    filter 0.25s,
    transform 0.25s;
}
.district-button span,
.district-button i {
  font-family: var(--head);
  font-size: 9px;
  font-style: normal;
}
.district-button b {
  font-family: var(--head);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.district-button:hover,
.district-button.active {
  color: #fff;
  padding-left: 26px;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.09), transparent);
}
.district-button:hover .district-emblem,
.district-button.active .district-emblem {
  opacity: 1;
  filter: saturate(1.12) drop-shadow(0 0 10px rgba(0, 229, 255, 0.26));
  transform: scale(1.08) rotate(-2deg);
}
.district-button.active span {
  color: var(--cyan);
}
.district-button.active i {
  color: var(--pink);
}
.district-display {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.22s ease;
}
.district-display > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: revealDistrict 0.45s ease both;
  transition: filter 0.22s ease;
}
.district-display:hover {
  box-shadow: inset 0 0 0 1px rgba(32, 233, 255, 0.65), inset 0 0 42px rgba(32, 233, 255, 0.08);
}
.district-display:hover > img {
  filter: brightness(1.12) saturate(1.08);
}
.district-display:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -4px;
}
.district-display.district-link-disabled {
  cursor: default;
}
.district-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(8, 9, 15, 0.88),
      rgba(8, 9, 15, 0.52) 55%,
      rgba(8, 9, 15, 0.2)
    ),
    linear-gradient(to top, rgba(8, 9, 15, 0.9), transparent 65%);
}
.district-gridlines {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.35) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to right, #000, transparent 82%);
}
.district-display-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  padding: 22px 26px;
  font-family: var(--head);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #c2c8d9;
}
.district-display-top span:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.district-display-top .pulse-dot {
  width: 5px;
  height: 5px;
}
.district-copy {
  position: absolute;
  z-index: 3;
  left: clamp(28px, 5vw, 70px);
  bottom: clamp(35px, 6vw, 72px);
  width: min(540px, calc(100% - 56px));
}
.district-copy h3 {
  margin: 0 0 16px;
  color: #fff;
  font-family: var(--head);
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.04;
}
.district-copy p {
  max-width: 520px;
  margin: 0 0 25px;
  color: #d0d5e2;
  font-size: 16px;
}
.district-entry-cta {
  color: var(--cyan);
  font-family: var(--head);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.district-link-disabled .district-entry-cta {
  color: #7c849a;
  opacity: 0.78;
}
.district-pink .district-entry-cta {
  color: var(--pink);
}
.district-violet .district-entry-cta {
  color: #c4aaff;
}

.manifesto {
  display: grid;
  grid-template-columns: 0.45fr 1.25fr 1fr;
  gap: clamp(30px, 5vw, 90px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manifesto-marker {
  color: #52596d;
  font-family: var(--head);
  font-size: 9px;
  letter-spacing: 0.2em;
}
.manifesto h2 {
  font-size: clamp(28px, 3.8vw, 48px);
}
.manifesto-copy p {
  color: var(--soft);
  margin: 0 0 18px;
}
.manifesto-copy a {
  display: inline-block;
  margin-top: 14px;
  color: var(--cyan);
  font-family: var(--head);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.residents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.resident-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.resident-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 229, 255, 0.46);
}
.resident-glitch:hover {
  animation: residentFloat 2s ease-in-out infinite;
}
.resident-pixel:hover {
  transform: none;
  animation: haloPulse 2s ease-in-out infinite;
}
.resident-zombie:hover {
  transform: none;
  animation: monitorFlicker 3s infinite;
}
.resident-number {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--head);
  font-size: 9px;
  letter-spacing: 0.16em;
}
.resident-image {
  position: relative;
  aspect-ratio: 1.2;
  overflow: hidden;
}
.resident-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, var(--panel));
}
.resident-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.resident-card:hover img {
  transform: scale(1.04);
}
.resident-copy {
  position: relative;
  margin-top: -20px;
  padding: 0 25px 27px;
}
.resident-copy > span {
  color: var(--cyan);
  font-family: var(--head);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.resident-copy h3 {
  margin: 7px 0 12px;
  font-family: var(--head);
  font-size: 22px;
  letter-spacing: 0.06em;
}
.resident-copy p {
  min-height: 102px;
  margin: 0;
  color: var(--soft);
  font-size: 13px;
}
.resident-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid rgba(155, 111, 255, 0.16);
  color: #8d94a9;
  font-size: 11px;
}
.resident-status .pulse-dot {
  width: 5px;
  height: 5px;
}
.resident-copy > a {
  display: inline-block;
  margin-top: 15px;
  color: var(--pink);
  font-family: var(--head);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.projects-section {
  padding-top: 40px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 15px;
}
.project-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #151825, #0d0f17);
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.5);
}
.project-card > img {
  position: absolute;
  right: -4%;
  top: 4%;
  width: 145px;
  height: 110px;
  object-fit: contain;
  opacity: 0.65;
  filter: saturate(0.9);
  transition:
    transform 0.4s,
    opacity 0.4s;
}
.project-card:hover > img {
  transform: scale(1.07) rotate(-2deg);
  opacity: 1;
}
.project-glow {
  position: absolute;
  right: -70px;
  top: -70px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(155, 111, 255, 0.14);
  filter: blur(35px);
}
.project-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 23px;
}
.project-copy > span {
  color: var(--pink);
  font-family: var(--head);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.project-copy h3 {
  margin: 7px 0 8px;
  font-family: var(--head);
  font-size: 18px;
}
.project-copy p {
  max-width: 440px;
  margin: 0 0 12px;
  color: var(--soft);
  font-size: 12px;
}
.project-copy small {
  color: #727a90;
  font-family: var(--head);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.project-arrow {
  position: absolute;
  top: 21px;
  left: 22px;
  color: var(--cyan);
  font-style: normal;
  font-size: 14px;
}
.project-featured {
  grid-column: span 2;
  grid-row: span 2;
}
.project-featured > img {
  right: 1%;
  top: 10%;
  width: 330px;
  height: 270px;
  opacity: 0.8;
}
.project-featured .project-copy h3 {
  font-size: 32px;
}
.project-featured .project-copy p {
  font-size: 15px;
}
.project-wide {
  grid-column: span 2;
}
.project-wide > img {
  right: 2%;
  top: 4%;
  width: 210px;
  height: 180px;
}

.signal-section {
  border-top: 1px solid var(--line);
}
.signal-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 45px;
}
.broadcast-indicator {
  display: flex;
  align-items: end;
  gap: 14px;
  color: #798196;
  font-family: var(--head);
  font-size: 8px;
  letter-spacing: 0.18em;
}
.signal-bars {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 22px;
}
.signal-bars i {
  display: block;
  width: 3px;
  background: var(--cyan);
  animation: bars 1.2s ease-in-out infinite;
}
.signal-bars i:nth-child(1) {
  height: 25%;
}
.signal-bars i:nth-child(2) {
  height: 60%;
  animation-delay: 0.2s;
}
.signal-bars i:nth-child(3) {
  height: 100%;
  animation-delay: 0.35s;
}
.signal-bars i:nth-child(4) {
  height: 45%;
  animation-delay: 0.5s;
}
.signal-list {
  border-top: 1px solid var(--line);
}
.signal-row {
  display: grid;
  grid-template-columns: 60px 170px 1fr 70px;
  gap: 25px;
  align-items: center;
  padding: 28px 18px;
  border-bottom: 1px solid var(--line);
  transition:
    background 0.2s,
    padding 0.2s;
}
.signal-row:hover {
  padding-left: 27px;
  background: rgba(155, 111, 255, 0.055);
}
.signal-index {
  color: #575f73;
  font-family: var(--head);
  font-size: 10px;
}
.signal-meta {
  display: grid;
  gap: 5px;
}
.signal-meta b {
  color: var(--violet);
  font-family: var(--head);
  font-size: 8px;
  letter-spacing: 0.15em;
}
.signal-meta span {
  color: #6f778c;
  font-size: 10px;
}
.signal-copy h3 {
  margin: 0 0 5px;
  font-family: var(--head);
  font-size: 14px;
  letter-spacing: 0.02em;
}
.signal-copy p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
}
.signal-row > i {
  justify-self: end;
  color: var(--cyan);
  font-family: var(--head);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.15em;
}
.signal-all {
  margin-top: 30px;
}

.reality-section {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  min-height: 680px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0d0f17;
}
.reality-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(45px, 8vw, 120px);
}
.reality-copy p {
  max-width: 470px;
  color: var(--soft);
}
.reality-copy > a {
  margin-top: 24px;
  color: var(--cyan);
  font-family: var(--head);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.reality-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}
.reality-gallery img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05);
  transition: filter 0.3s;
}
.reality-gallery img:hover {
  filter: saturate(1) contrast(1.05);
}

.final-cta {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  padding-top: 70px;
  padding-bottom: 70px;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 12% 0;
  background: radial-gradient(
    circle at 25% 50%,
    rgba(155, 111, 255, 0.18),
    transparent 35%
  );
  border: 1px solid var(--line);
  z-index: -1;
}
.final-cta > img {
  max-height: 520px;
  justify-self: center;
  filter: drop-shadow(0 0 35px rgba(155, 111, 255, 0.25));
}
.final-cta p {
  max-width: 540px;
  color: var(--soft);
}
.final-cta .hero-actions {
  justify-content: flex-start;
  margin-top: 28px;
}
footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 32px clamp(24px, 5vw, 80px);
  border-top: 1px solid var(--line);
  background: #0e1018;
  color: #777f93;
}
footer .brand {
  font-size: 11px;
}
footer p {
  justify-self: center;
  margin: 0;
  font-size: 12px;
}
footer p span {
  color: var(--pink);
}
footer > div {
  justify-self: end;
}
footer a {
  font-family: var(--head);
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.76);
  }
}
@keyframes glitch-top {
  0%   { transform: translate(0); opacity: 1; }
  2%   { transform: translate(-3px, -1px); opacity: 0.8; }
  4%   { transform: translate(3px, 1px); opacity: 1; }
  6%   { transform: translate(0); }
  92%  { transform: translate(0); }
  94%  { transform: translate(2px, -2px); opacity: 0.8; }
  96%  { transform: translate(-2px, 1px); }
  98%  { transform: translate(0); }
  100% { transform: translate(0); }
}
@keyframes glitch-bottom {
  0%   { transform: translate(0); opacity: 1; }
  2%   { transform: translate(3px, 1px); opacity: 0.8; }
  4%   { transform: translate(-3px, -1px); opacity: 1; }
  6%   { transform: translate(0); }
  88%  { transform: translate(0); }
  90%  { transform: translate(-2px, 2px); opacity: 0.8; }
  92%  { transform: translate(2px, -1px); }
  94%  { transform: translate(0); }
  100% { transform: translate(0); }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
@keyframes residentFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes haloPulse {
  0%, 100% {
    box-shadow: 0 0 6px rgba(155, 111, 255, 0.15);
    border-color: rgba(155, 111, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 16px rgba(155, 111, 255, 0.45);
    border-color: rgba(155, 111, 255, 0.8);
  }
}
@keyframes monitorFlicker {
  0%, 100% { filter: brightness(1); }
  5% { filter: brightness(0.55); }
  7% { filter: brightness(1.05); }
  9% { filter: brightness(0.75); }
  11%, 60% { filter: brightness(1); }
  62% { filter: brightness(0.65); }
  63% { filter: brightness(1); }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes particleDrift {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.4; }
  100% { transform: translate(12px, -200px); opacity: 0; }
}
@keyframes hovercar {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  7%,
  92% {
    opacity: 0.55;
  }
  100% {
    transform: translateX(120vw);
    opacity: 0;
  }
}
@keyframes shootStar1 {
  0%, 85%, 100% { opacity: 0; transform: rotate(-25deg) translateX(0); }
  87% { opacity: 0.8; transform: rotate(-25deg) translateX(40px); }
  90% { opacity: 0; transform: rotate(-25deg) translateX(100px); }
}
@keyframes shootStar2 {
  0%, 80%, 100% { opacity: 0; transform: rotate(20deg) translateX(0); }
  82% { opacity: 0.7; transform: rotate(20deg) translateX(35px); }
  85% { opacity: 0; transform: rotate(20deg) translateX(90px); }
}
@keyframes shootStar3 {
  0%, 88%, 100% { opacity: 0; transform: rotate(-40deg) translateX(0); }
  90% { opacity: 0.9; transform: rotate(-40deg) translateX(50px); }
  93% { opacity: 0; transform: rotate(-40deg) translateX(120px); }
}
@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}
@keyframes revealDistrict {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes bars {
  0%,
  100% {
    transform: scaleY(0.55);
    transform-origin: bottom;
  }
  50% {
    transform: scaleY(1);
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }
  .nav-menu {
    position: fixed;
    inset: 74px 0 auto;
    display: grid;
    gap: 0;
    transform: translateY(-130%);
    opacity: 0;
    background: rgba(8, 9, 15, 0.97);
    border-bottom: 1px solid var(--line);
    transition:
      transform 0.25s,
      opacity 0.25s;
  }
  .nav-menu-open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-menu a {
    padding: 18px 28px;
    border-bottom: 1px solid rgba(155, 111, 255, 0.12);
    font-size: 11px;
  }
  .nav-status {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }
  .hero-telemetry {
    display: none;
  }
  .pulse-strip {
    grid-template-columns: repeat(4, 1fr);
  }
  .pulse-message {
    grid-column: 1/-1;
    border-top: 1px solid var(--line);
  }
  .city-console {
    grid-template-columns: 1fr;
    min-height: 700px;
  }
  .district-rail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .district-button {
    min-height: 68px;
    grid-template-columns: 22px 38px 1fr auto;
    gap: 9px;
    padding: 11px 12px;
  }
  .district-button:hover,
  .district-button.active {
    padding-left: 16px;
  }
  .district-emblem {
    width: 38px;
    height: 38px;
  }
  .district-display {
    min-height: 520px;
  }
  .city-corner-art {
    right: -18px;
    bottom: -18px;
    width: min(130px, 14vw);
  }
  .manifesto {
    grid-template-columns: 0.25fr 1fr;
  }
  .manifesto-copy {
    grid-column: 2;
  }
  .residents-grid {
    grid-template-columns: 1fr 1fr;
  }
  .resident-card:last-child {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 0.7fr 1fr;
  }
  .resident-card:last-child .resident-image {
    aspect-ratio: auto;
  }
  .resident-card:last-child .resident-copy {
    margin: 0;
    padding: 40px;
  }
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-featured {
    grid-column: span 2;
  }
  .project-wide {
    grid-column: span 2;
  }
  .reality-section {
    grid-template-columns: 1fr;
  }
  .reality-copy {
    padding: 80px 7vw;
  }
  .reality-gallery {
    min-height: 620px;
  }
  .final-cta {
    grid-template-columns: 1fr 1.2fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }
  .topbar {
    height: 64px;
    padding: 0 20px;
  }
  .nav-menu {
    top: 64px;
  }
  .nav-brand .brand {
    font-size: 11px;
  }
  .section-shell {
    width: min(100% - 32px, 1240px);
    padding: 78px 0;
  }
  .hero {
    padding: 76px 18px 110px;
    min-height: 680px;
    background-position: 62% bottom;
  }
  .hero-logo {
    width: min(240px, 70vw);
    margin-bottom: -18px;
  }
  .hero h1 .brand {
    font-size: clamp(28px, 9vw, 42px);
    letter-spacing: 0.01em;
  }
  .hero-tagline {
    letter-spacing: 0.22em;
    line-height: 2;
  }
  .hero-actions {
    display: grid;
    width: 100%;
  }
  .button {
    width: 100%;
  }
  .latest-signal {
    border-radius: 12px;
    flex-wrap: wrap;
    line-height: 1.7;
  }
  .split-heading {
    display: block;
  }
  .split-heading > p {
    margin-top: 22px;
  }
  .section-heading {
    margin-bottom: 32px;
  }
  .city-console {
    min-height: 780px;
  }
  .city-corner-art {
    right: -16px;
    bottom: -14px;
    width: 100px;
    opacity: 0.78;
  }
  .district-rail {
    grid-template-columns: 1fr 1fr;
  }
  .district-button {
    grid-template-columns: 34px 1fr;
    gap: 8px;
    padding: 11px 10px;
  }
  .district-button:hover,
  .district-button.active {
    padding-left: 12px;
  }
  .district-button > span {
    display: none;
  }
  .district-emblem {
    width: 34px;
    height: 34px;
  }
  .district-button i {
    display: none;
  }
  .district-display {
    min-height: 500px;
  }
  .district-display-top {
    padding: 16px;
  }
  .district-copy {
    left: 23px;
    bottom: 30px;
    width: calc(100% - 46px);
  }
  .district-copy h3 {
    font-size: 36px;
  }
  .district-copy p {
    font-size: 14px;
  }
  .manifesto {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .manifesto-marker {
    display: none;
  }
  .manifesto-copy {
    grid-column: auto;
  }
  .residents-grid {
    grid-template-columns: 1fr;
  }
  .resident-card:last-child {
    grid-column: auto;
    display: block;
  }
  .resident-card:last-child .resident-image {
    aspect-ratio: 1.2;
  }
  .resident-card:last-child .resident-copy {
    margin-top: -20px;
    padding: 0 25px 27px;
  }
  .resident-copy p {
    min-height: 0;
  }
  .project-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .project-featured,
  .project-wide {
    grid-column: auto;
    grid-row: auto;
  }
  .project-featured > img,
  .project-wide > img {
    right: -4%;
    top: 4%;
    width: 180px;
    height: 150px;
  }
  .project-featured .project-copy h3 {
    font-size: 22px;
  }
  .project-featured .project-copy p {
    font-size: 13px;
  }
  .signal-header {
    display: block;
  }
  .broadcast-indicator {
    margin-top: 22px;
  }
  .signal-row {
    grid-template-columns: 30px 1fr 42px;
    gap: 12px;
    padding: 22px 5px;
  }
  .signal-meta {
    grid-column: 2;
  }
  .signal-copy {
    grid-column: 2;
  }
  .signal-row > i {
    grid-column: 3;
    grid-row: 1/3;
  }
  .signal-copy p {
    display: none;
  }
  .reality-gallery {
    min-height: 500px;
  }
  .reality-copy {
    padding: 70px 22px;
  }
  .final-cta {
    display: block;
    text-align: center;
    padding-top: 40px;
  }
  .final-cta > img {
    max-height: 360px;
    margin: 0 auto -35px;
  }
  .final-cta .hero-actions {
    justify-content: center;
  }
  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    text-align: center;
  }
  footer p,
  footer > div {
    justify-self: center;
  }
}
