:root {
  --ink: #07090a;
  --paper: #ece9e1;
  --muted: #a9ada9;
  --line: rgba(236, 233, 225, 0.22);
  --signal: #a44632;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Bahnschrift", "Arial Narrow", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body,
a {
  color: inherit;
}

img {
  display: block;
  width: 100%;
}

a {
  text-decoration: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(5, 7, 8, 0.94), rgba(5, 7, 8, 0.18));
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--paper);
  -webkit-text-fill-color: var(--paper);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.35em;
}

.brand-symbol {
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.4vw, 52px);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
}

.site-nav a {
  position: relative;
  padding: 28px 0 26px;
  color: rgba(236, 233, 225, 0.72);
  -webkit-text-fill-color: rgba(236, 233, 225, 0.72);
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 20px;
  left: 0;
  height: 1px;
  background: var(--paper);
  transition: right 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--paper);
  -webkit-text-fill-color: var(--paper);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  right: 0;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #050607;
}

.hero-art,
.story-panel > img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero-art {
  object-position: center center;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 8, 0.22) 0%, transparent 34%, rgba(5, 7, 8, 0.08) 70%, #07090a 100%);
}

.hero-content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: clamp(72px, 9vh, 116px);
  left: 0;
  width: min(var(--max), calc(100% - 44px));
  margin: auto;
}

.hero-content-minimal {
  bottom: clamp(38px, 6vh, 72px);
}

.overline,
.section-code {
  margin: 0 0 18px;
  color: rgba(236, 233, 225, 0.64);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.36em;
}

.hero h1 {
  max-width: 100%;
  margin: 0;
  color: var(--paper);
  -webkit-text-fill-color: var(--paper);
  font-family: "Arial Narrow", "Bahnschrift Condensed", "Bahnschrift", sans-serif;
  font-size: clamp(4rem, 13vw, 10.5rem);
  font-stretch: condensed;
  font-weight: 300;
  line-height: 0.82;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-line {
  max-width: 560px;
  margin: 28px 0 34px;
  color: rgba(236, 233, 225, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.primary-link {
  display: inline-flex;
  min-width: 190px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid rgba(236, 233, 225, 0.52);
  color: var(--paper);
  -webkit-text-fill-color: var(--paper);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  right: clamp(22px, 4vw, 64px);
  bottom: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(236, 233, 225, 0.58);
  font-size: 0.56rem;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
}

.scroll-cue i {
  width: 1px;
  height: 52px;
  background: linear-gradient(var(--paper), transparent);
}

.manifesto {
  min-height: 86svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 120px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(98, 109, 111, 0.12), transparent 34%),
    var(--ink);
}

.manifesto h2,
.panel-copy h2,
.contact h2 {
  margin: 0;
  font-family: "Arial Narrow", "Bahnschrift Condensed", "Bahnschrift", sans-serif;
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: 0.035em;
}

.manifesto h2 {
  font-size: clamp(3.6rem, 9.5vw, 8.6rem);
}

.manifesto > p:last-child {
  max-width: 620px;
  margin: 46px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.26rem);
  font-weight: 300;
  line-height: 1.9;
}

.story-panel {
  position: relative;
  min-height: 94svh;
  overflow: hidden;
  isolation: isolate;
}

.story-panel > img {
  z-index: -2;
  transition: transform 1.2s ease;
}

.story-panel:hover > img {
  transform: scale(1.015);
}

.orbital-panel > img {
  object-position: 50% 36%;
}

.surface-panel > img {
  object-position: center;
}

.panel-shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 6, 0.86) 0%, rgba(3, 5, 6, 0.43) 42%, rgba(3, 5, 6, 0.06) 72%),
    linear-gradient(180deg, rgba(3, 5, 6, 0.08), rgba(3, 5, 6, 0.72));
}

.surface-panel .panel-shade {
  background:
    linear-gradient(90deg, rgba(3, 5, 6, 0.2), rgba(3, 5, 6, 0.82) 74%),
    linear-gradient(180deg, rgba(3, 5, 6, 0.08), rgba(3, 5, 6, 0.76));
}

.panel-copy {
  position: absolute;
  bottom: clamp(60px, 10vh, 112px);
  left: max(22px, calc((100% - var(--max)) / 2));
  width: min(620px, calc(100% - 44px));
}

.surface-panel .panel-copy {
  right: max(22px, calc((100% - var(--max)) / 2));
  left: auto;
  text-align: right;
}

.panel-copy h2 {
  font-size: clamp(3.2rem, 7vw, 7.2rem);
}

.panel-copy > p:last-child {
  max-width: 460px;
  margin: 28px 0 0;
  color: rgba(236, 233, 225, 0.72);
  font-size: clamp(0.95rem, 1.5vw, 1.18rem);
  letter-spacing: 0.06em;
  line-height: 1.75;
}

.surface-panel .panel-copy > p:last-child {
  margin-left: auto;
}

.contact {
  min-height: 72svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 120px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(99, 117, 120, 0.15), transparent 33%),
    var(--ink);
}

.contact h2 {
  margin-bottom: 46px;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
}

.primary-link.light {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}

.primary-link.light:hover,
.primary-link.light:focus-visible {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--paper);
  -webkit-text-fill-color: var(--paper);
}

.site-footer {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(22px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: rgba(236, 233, 225, 0.48);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
}

.wiki-page {
  overflow: hidden;
  background: #090b0c;
}

.wiki-header {
  background: rgba(5, 7, 8, 0.82);
}

.wiki-hero {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 140px max(22px, calc((100% - var(--max)) / 2)) 90px;
}

.wiki-hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.wiki-hero-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 6, 7, 0.88), rgba(4, 6, 7, 0.22) 70%),
    linear-gradient(180deg, rgba(4, 6, 7, 0.2), rgba(4, 6, 7, 0.94));
}

.wiki-hero-copy {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
}

.wiki-hero h1 {
  margin: 0;
  color: var(--paper);
  -webkit-text-fill-color: var(--paper);
  font-family: "Arial Narrow", "Bahnschrift Condensed", "Bahnschrift", sans-serif;
  font-size: clamp(4.2rem, 10vw, 9rem);
  font-stretch: condensed;
  font-weight: 300;
  line-height: 0.84;
  letter-spacing: 0.06em;
}

.wiki-hero h1 span {
  display: block;
  margin-top: 26px;
  color: rgba(236, 233, 225, 0.7);
  -webkit-text-fill-color: rgba(236, 233, 225, 0.7);
  font-size: 0.18em;
  font-weight: 500;
  letter-spacing: 0.5em;
  line-height: 1.2;
}

.wiki-hero-copy > p:last-child {
  max-width: 520px;
  margin: 34px 0 0;
  color: rgba(236, 233, 225, 0.72);
  font-size: clamp(0.92rem, 1.5vw, 1.1rem);
  font-weight: 300;
  line-height: 1.85;
}

.wiki-revision {
  position: absolute;
  z-index: 2;
  right: clamp(22px, 4vw, 64px);
  bottom: 90px;
  margin: 0;
  color: rgba(236, 233, 225, 0.45);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
}

.wiki-intro,
.wiki-loop,
.wiki-world,
.wiki-status {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
}

.wiki-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(50px, 9vw, 130px);
  padding-block: clamp(110px, 15vw, 190px);
  border-bottom: 1px solid var(--line);
}

.wiki-intro h2,
.wiki-section-heading h2,
.wiki-systems h2,
.wiki-status h2 {
  margin: 0;
  font-family: "Arial Narrow", "Bahnschrift Condensed", "Bahnschrift", sans-serif;
  font-weight: 300;
  line-height: 0.98;
}

.wiki-intro h2 {
  max-width: 670px;
  font-size: clamp(2.7rem, 5.3vw, 5.7rem);
}

.wiki-intro-copy {
  align-self: end;
}

.wiki-intro-copy p,
.wiki-section-heading > p:last-child,
.wiki-status > p:last-of-type {
  color: var(--muted);
  font-size: clamp(0.96rem, 1.35vw, 1.12rem);
  font-weight: 300;
  line-height: 1.9;
}

.wiki-intro-copy p + p {
  margin-top: 24px;
}

.wiki-loop,
.wiki-world {
  padding-block: clamp(100px, 13vw, 160px);
}

.wiki-section-heading {
  max-width: 760px;
}

.wiki-section-heading h2 {
  font-size: clamp(3.2rem, 7.5vw, 7.5rem);
}

.wiki-loop-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 80px 0 0;
  padding: 0;
  border-block: 1px solid var(--line);
}

.wiki-loop-list li {
  min-height: 270px;
  display: grid;
  align-content: space-between;
  padding: 28px clamp(22px, 3vw, 42px) 36px;
  border-right: 1px solid var(--line);
}

.wiki-loop-list li:last-child {
  border-right: 0;
}

.wiki-loop-list li > span {
  color: rgba(236, 233, 225, 0.38);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
}

.wiki-loop-list h3 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  font-weight: 300;
  letter-spacing: 0.08em;
}

.wiki-loop-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.wiki-world {
  border-top: 1px solid var(--line);
}

.wiki-world .wiki-section-heading > p:last-child {
  max-width: 620px;
  margin-top: 30px;
}

.wiki-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2.5vw, 34px);
  margin-top: 80px;
}

.wiki-gallery figure {
  margin: 0;
}

.wiki-gallery figure:nth-child(even) {
  transform: translateY(72px);
}

.wiki-gallery img {
  aspect-ratio: 1;
  object-fit: cover;
  background: #111516;
}

.wiki-gallery figcaption {
  padding-top: 14px;
  color: rgba(236, 233, 225, 0.42);
  font-size: 0.58rem;
  letter-spacing: 0.25em;
}

.wiki-systems {
  min-height: 88svh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  margin-top: 80px;
  background: #111415;
}

.wiki-system-image {
  min-height: 620px;
}

.wiki-system-image img {
  height: 100%;
  object-fit: cover;
}

.wiki-systems-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 7vw, 100px);
}

.wiki-systems h2 {
  font-size: clamp(3rem, 5.8vw, 6rem);
}

.wiki-systems dl {
  margin: 60px 0 0;
}

.wiki-systems dl > div {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.wiki-systems dt {
  margin-bottom: 9px;
  font-size: 0.7rem;
  letter-spacing: 0.23em;
}

.wiki-systems dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.wiki-status {
  min-height: 72svh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding-block: 120px;
  text-align: center;
}

.wiki-status h2 {
  font-size: clamp(3.4rem, 8vw, 7.5rem);
}

.wiki-status > p:last-of-type {
  max-width: 620px;
  margin: 34px auto 0;
}

.wiki-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
}

@media (max-width: 760px) {
  .site-header {
    height: 64px;
  }

  .brand {
    font-size: 0.72rem;
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav a {
    padding-block: 23px;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .hero-art {
    object-position: 56% center;
  }

  .hero-content {
    bottom: 84px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 18vw, 5.2rem);
    letter-spacing: 0.09em;
  }

  .hero-line {
    max-width: 330px;
    margin-block: 22px 28px;
    line-height: 1.65;
  }

  .scroll-cue {
    display: none;
  }

  .manifesto,
  .contact {
    min-height: 74svh;
  }

  .story-panel {
    min-height: 82svh;
  }

  .orbital-panel > img {
    object-position: 55% 34%;
  }

  .surface-panel > img {
    object-position: 42% center;
  }

  .panel-shade,
  .surface-panel .panel-shade {
    background: linear-gradient(180deg, rgba(3, 5, 6, 0.08), rgba(3, 5, 6, 0.9) 86%);
  }

  .surface-panel .panel-copy {
    right: auto;
    left: 22px;
    text-align: left;
  }

  .surface-panel .panel-copy > p:last-child {
    margin-left: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .wiki-header .site-nav a:nth-child(2),
  .wiki-header .site-nav a:nth-child(3) {
    display: none;
  }

  .wiki-hero {
    min-height: 80svh;
    padding-bottom: 64px;
  }

  .wiki-hero-art {
    object-position: 58% center;
  }

  .wiki-hero h1 {
    font-size: clamp(3.4rem, 18vw, 5.5rem);
  }

  .wiki-revision {
    display: none;
  }

  .wiki-intro {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .wiki-loop-list {
    grid-template-columns: 1fr;
    margin-top: 50px;
  }

  .wiki-loop-list li {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .wiki-loop-list li:last-child {
    border-bottom: 0;
  }

  .wiki-gallery {
    grid-template-columns: 1fr;
    margin-top: 52px;
  }

  .wiki-gallery figure:nth-child(even) {
    transform: none;
  }

  .wiki-systems {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .wiki-system-image {
    min-height: 62svh;
  }

  .wiki-systems-copy {
    padding: 64px 22px 78px;
  }
}

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

  .story-panel > img,
  .primary-link,
  .site-nav a,
  .site-nav a::after {
    transition: none;
  }
}
