@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("assets/fonts/oswald-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("assets/fonts/oswald-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #111215;
  --text-dark: #111619;
  --text-light: #e8ebea;
  --muted: #929c9f;
  --gold: #b7bcc5;
  --gold-bright: #e0e3e9;
  --violet: #a06bdc;
  --blue: #56a9e5;
  --line: rgba(173, 180, 194, 0.25);
  --rail: clamp(132px, 9.7vw, 154px);
  --header: 92px;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--ink);
  scroll-behavior: smooth;
}
body {
  min-width: min(320px, 100%);
  margin: 0;
  overflow-x: hidden;
  color: var(--text-light);
  background: var(--ink);
  font-family: var(--body);
}
body.menu-open {
  overflow: hidden;
}
section[id],
article[id] {
  scroll-margin-top: 90px;
}
button,
a {
  font: inherit;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
}
::selection {
  color: var(--ink);
  background: var(--gold-bright);
}
:where(a, button):focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--gold-bright);
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}

.site-shell {
  min-height: 100vh;
}
.page {
  position: relative;
  min-width: 0;
  margin-left: var(--rail);
}
.page::before,
.page::after {
  content: "";
  position: absolute;
  z-index: 32;
  top: 0;
  pointer-events: none;
}
.page::before {
  left: 0;
  width: 260px;
  height: var(--header);
  background: linear-gradient(
    135deg,
    #d8dad8 0 44%,
    #aeb3b2 44% 64%,
    rgba(216, 218, 216, 0.75) 64%
  );
  clip-path: polygon(42% 0, 100% 0, 74% 100%, 0 100%);
}
.page::after {
  left: 112px;
  width: 110px;
  height: var(--header);
  background: rgba(242, 243, 240, 0.66);
  clip-path: polygon(38% 0, 100% 0, 58% 100%, 0 100%);
}

/* Brand and faction rail */
.faction-rail {
  position: fixed;
  z-index: 90;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--line);
  background: linear-gradient(160deg, #0d1418, #04080a 64%);
}
.faction-rail::before,
.faction-rail::after {
  content: "";
  position: absolute;
  inset: 16% 0 auto;
  height: 1px;
  background: var(--line);
  transform: skewY(44deg);
  transform-origin: left;
}
.faction-rail::after {
  inset: auto 0 8%;
  transform: skewY(-44deg);
}
.brand {
  display: inline-flex;
  color: var(--text-light);
}
.brand--rail {
  position: absolute;
  z-index: 4;
  inset: 0 auto auto 0;
  width: 258px;
  height: var(--header);
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-rows: 45px 12px;
  column-gap: 14px;
  align-content: center;
  align-items: center;
  justify-content: start;
  padding: 7px 34px 8px 28px;
  border: 0;
  background: linear-gradient(105deg, #0b1114 0 76%, #070c0f 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%);
}
.brand__monogram {
  position: relative;
  width: 48px;
  height: 43px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 232, 0.62);
  color: #eef2f1;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.01)
  );
  clip-path: polygon(
    8px 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0 100%,
    0 8px
  );
}
.brand__monogram::before {
  content: "";
  position: absolute;
  inset: 6px 50% 6px auto;
  width: 1px;
  background: linear-gradient(transparent, var(--gold-bright), transparent);
}
.brand__monogram::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--gold-bright);
  border-bottom: 1px solid var(--gold-bright);
}
.brand__monogram i,
.brand__monogram b {
  font: 500 17px/1 var(--display);
  font-style: normal;
  letter-spacing: 0;
}
.brand__monogram b {
  color: var(--gold-bright);
  font-weight: 300;
}
.brand__wordmark {
  color: #edf1f0;
  font: 400 16px/1 var(--display);
  letter-spacing: 0.13em;
  white-space: nowrap;
}
.brand--rail .brand__monogram {
  grid-column: 1;
  grid-row: 1 / 3;
}
.brand--rail .brand__wordmark {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  padding-bottom: 7px;
}
.brand--rail small {
  position: static;
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
  width: auto;
  margin: 0;
  color: rgba(202, 208, 209, 0.52);
  font: 400 6.5px/1 var(--display);
  letter-spacing: 0.22em;
  white-space: nowrap;
}
.brand--mobile {
  display: none;
  align-items: center;
  gap: 10px;
}
.rail-copy {
  position: absolute;
  top: 21%;
  left: 18px;
  color: #9ca3a4;
  font: 400 9px/1 var(--display);
  letter-spacing: 0.23em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.faction-nav {
  display: grid;
  gap: clamp(18px, 3vh, 34px);
  margin: auto 0;
}
.faction-nav__item {
  position: relative;
  width: 82px;
  min-height: 82px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: #90999b;
  background: none;
  cursor: pointer;
  font: 400 11px/1.2 var(--display);
  letter-spacing: 0.09em;
  transition:
    color 0.25s,
    transform 0.25s;
}
.faction-nav__item::before {
  content: "";
  position: absolute;
  left: -24px;
  width: 2px;
  height: 0;
  background: currentColor;
  box-shadow: 0 0 14px currentColor;
  transition: height 0.25s;
}
.faction-nav__item:hover,
.faction-nav__item:focus-visible,
.faction-nav__item.is-active {
  color: var(--text-light);
  transform: translateX(3px);
}
.faction-nav__item.is-active::before {
  height: 42px;
}
.faction-nav__item[data-faction="bellato"].is-active {
  color: var(--blue);
}
.faction-nav__item[data-faction="cora"].is-active {
  color: var(--violet);
}
.faction-nav__item[data-faction="accretia"].is-active {
  color: var(--gold-bright);
}
.race-emblem {
  --race-emblem: url("assets/emblem-accretia.png");
  position: relative;
  width: 58px;
  height: 58px;
  display: block;
  flex: 0 0 auto;
  color: var(--gold-bright);
  background: currentColor;
  opacity: 0.86;
  filter: drop-shadow(0 0 2px currentColor) drop-shadow(0 0 9px currentColor);
  mask: var(--race-emblem) center / contain no-repeat;
  -webkit-mask: var(--race-emblem) center / contain no-repeat;
  transition:
    opacity 0.25s ease,
    filter 0.25s ease,
    transform 0.25s ease;
}
.race-emblem::before,
.race-emblem::after,
.race-emblem i,
.race-emblem b {
  content: none;
  display: none;
}
.race-emblem--bellato {
  --race-emblem: url("assets/emblem-bellato.png");
  color: var(--blue);
}
.race-emblem--cora {
  --race-emblem: url("assets/emblem-cora.png");
  color: var(--violet);
}
.faction-nav__item:hover .race-emblem,
.faction-nav__item:focus-visible .race-emblem,
.faction-nav__item.is-active .race-emblem {
  opacity: 0.88;
  filter: drop-shadow(0 0 3px currentColor) drop-shadow(0 0 8px currentColor);
  transform: translateY(-3px) scale(1.035);
}
.rail-bottom {
  height: 14%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #5e686b;
  font: 400 8px/1 var(--display);
  letter-spacing: 0.18em;
}
.rail-line {
  position: relative;
  width: 1px;
  height: 54px;
  flex-shrink: 0;
  background: #4e575a;
}
.rail-line::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(var(--scroll-progress, 0) * 76%);
  height: 24%;
  background: var(--gold-bright);
}

/* Header */
.header {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: var(--rail);
  height: var(--header);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 0 clamp(24px, 3vw, 46px) 0 clamp(218px, 17vw, 270px);
  color: #252b2e;
  transition:
    color 0.2s,
    background-color 0.2s,
    border-color 0.2s;
}
.header.is-scrolled {
  color: var(--text-light);
  background: rgba(5, 10, 13, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.main-nav {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.1vw, 35px);
  padding: 0 18px 0 clamp(42px, 4vw, 72px);
  background: linear-gradient(
    90deg,
    rgba(238, 238, 233, 0.86),
    rgba(238, 238, 233, 0.64)
  );
  box-shadow: inset 0 -1px rgba(31, 38, 41, 0.08);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.main-nav a {
  position: relative;
  padding: 43px 0 19px;
  color: #20272a;
  font: 500 12px/1 var(--display);
  letter-spacing: 0.035em;
  text-shadow: 0 1px 12px rgba(244, 244, 239, 0.88);
  text-transform: uppercase;
}
.main-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 10px;
  left: 50%;
  height: 1px;
  background: var(--gold);
  transition:
    right 0.2s,
    left 0.2s;
}
.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.is-active::after {
  right: 0;
  left: 0;
}
.main-nav a.is-active {
  color: #a27225;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.social-dock {
  display: flex;
  gap: 6px;
}
.social-dock button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(184, 193, 206, 0.25);
  border-radius: 3px;
  color: #c9ced7;
  background: #20232a;
  cursor: pointer;
  font: 500 12px/1 var(--display);
  letter-spacing: 0.04em;
  transition:
    color 0.2s,
    border-color 0.2s,
    background-color 0.2s;
}
.header.is-scrolled .social-dock button {
  border-color: rgba(184, 193, 206, 0.25);
}
.account-button {
  position: relative;
  min-width: 174px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  color: #9e732c;
  background: rgba(7, 12, 15, 0.18);
  cursor: pointer;
  font: 500 12px/1 var(--display);
  letter-spacing: 0.08em;
  border-radius: 3px;
  clip-path: none;
  transition:
    color 0.2s,
    border-color 0.2s,
    background-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.account-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(183, 138, 57, 0.08),
    rgba(224, 180, 94, 0.24)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.26s cubic-bezier(0.22, 0.8, 0.22, 1);
}
.account-button span,
.account-button svg {
  position: relative;
  z-index: 1;
}
.account-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 0.22s;
}
.account-button:hover,
.account-button:focus-visible {
  color: #f0c66f;
  border-color: rgba(224, 180, 94, 0.78);
  background: rgba(18, 17, 13, 0.72);
  box-shadow: inset 0 0 0 1px rgba(224, 180, 94, 0.16);
  transform: none;
}
.account-button:hover::before,
.account-button:focus-visible::before {
  transform: scaleX(1);
}
.account-button:hover svg,
.account-button:focus-visible svg {
  transform: translateX(2px) scale(1.08);
}
.account-button:active {
  color: #f1ece6;
  transform: translateY(0);
}
.menu-toggle {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  height: max(100vh, 820px);
  height: max(100svh, 820px);
  min-height: 820px;
  overflow: hidden;
  color: var(--text-dark);
  background: #dddeda;
}
.hero__art {
  position: absolute;
  inset: -2%;
  background: #0a1013 url("assets/novus-hero-restored-v44.webp") right 44% / cover
    no-repeat;
  filter: saturate(0.74) contrast(1.045) brightness(0.96);
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0)
    scale(1.025);
}
.hero__atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hero__firelight {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 17% 11% at 64% 13%, rgba(255, 104, 23, 0.65), transparent 100%),
    radial-gradient(ellipse 13% 16% at 94% 18%, rgba(255, 80, 12, 0.5), transparent 100%);
  opacity: 0.14;
  animation: hero-firelight 9.7s ease-in-out infinite;
}
.hero__ember {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 2px;
  height: 3px;
  border-radius: 50%;
  background: #ffc486;
  box-shadow: 0 0 5px 1px rgba(255, 96, 26, 0.45);
  opacity: 0;
  animation: hero-ember-rise var(--life) linear var(--delay) infinite;
}
.hero__ember:nth-child(3n) {
  width: 1px;
  height: 2px;
}
.hero__ember:nth-child(5n) {
  width: 2px;
  height: 4px;
  background: #ffdaa0;
}
@keyframes hero-firelight {
  0%, 100% { opacity: 0.12; }
  23% { opacity: 0.24; }
  39% { opacity: 0.16; }
  68% { opacity: 0.28; }
  84% { opacity: 0.18; }
}
@keyframes hero-ember-rise {
  0% { transform: translate3d(0, 12px, 0); opacity: 0; }
  15% { opacity: 0.65; }
  58% { opacity: 0.4; }
  82%, 100% { transform: translate3d(var(--drift), -105px, 0); opacity: 0; }
}
.hero.is-atmosphere-paused *,
.hero.is-atmosphere-paused *::before,
.hero.is-atmosphere-paused *::after {
  animation-play-state: paused;
}
@media (max-width: 980px), (prefers-reduced-motion: reduce) {
  .hero__atmosphere { display: none; }
}
.hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 66% 38%,
      transparent 0 22%,
      rgba(4, 8, 11, 0.18) 48%,
      rgba(4, 8, 11, 0.5) 100%
    ),
    linear-gradient(
      90deg,
      rgba(24, 25, 29, 0.99) 0%,
      rgba(24, 25, 29, 0.93) 28%,
      rgba(24, 25, 29, 0.38) 47%,
      rgba(7, 12, 15, 0.02) 67%,
      rgba(7, 12, 15, 0.32) 100%
    );
}
.hero__energy {
  position: absolute;
  z-index: 1;
  inset: -2%;
  pointer-events: none;
  opacity: 0.38;
  mix-blend-mode: screen;
  background-image: image-set(
    url("assets/novus-hero-energy.webp") 1x,
    url("assets/novus-hero-energy-hd.webp") 1.6x
  );
  background-position: right 44%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0)
    scale(1.025);
  transform-origin: center;
  animation: hero-energy-breathe 2.4s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes hero-energy-breathe {
  0%,
  100% {
    opacity: 0.38;
  }
  50% {
    opacity: 0.72;
  }
}
.hero__fx {
  position: absolute;
  z-index: 1;
  inset: -2%;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0)
    scale(1.025);
  transform-origin: center;
  transition: opacity 0.18s ease-out;
  will-change: transform, opacity;
}
.hero__fx.is-ready {
  opacity: 0.56;
}
.hero__fx-media {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: right 44%;
}
/* Registered to the restored 1449 x 815 artwork, including its crop. */
.hero .hero__energy,
.hero .hero__fx {
  background-image: none;
}
.hero .hero__fx {
  opacity: 0.48;
}
.hero__weapon-overlay {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero__arrow-current {
  fill: none;
  stroke: #b4dcff;
  stroke-width: 0.85;
  filter: blur(0.45px);
  stroke-linecap: round;
  stroke-dasharray: 14 400;
  animation: arrow-current 3.8s linear infinite;
}
@keyframes arrow-current {
  0% { stroke-dashoffset: 24; opacity: 0; }
  12% { opacity: 0.4; }
  72% { opacity: 0.4; }
  88%, 100% { stroke-dashoffset: -360; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__arrow-current { display: none; }
}
/* Keep the artwork within a readable size on wide desktop displays.
   All three layers share one frame so weapon effects follow the image. */
@media (min-width: 981px) {
  .hero {
    background: linear-gradient(90deg, #18191d 30%, #101115 80%);
  }
  .hero__art,
  .hero__energy,
  .hero__fx {
    inset: calc(var(--header) - 12px) 0 auto auto;
    width: min(100%, 1600px);
    height: auto;
    aspect-ratio: 1449 / 815;
    transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0);
    -webkit-mask-image:
      linear-gradient(90deg, transparent, #000 24%),
      linear-gradient(180deg, transparent, #000 10%, #000 82%, transparent);
    mask-image:
      linear-gradient(90deg, transparent, #000 24%),
      linear-gradient(180deg, transparent, #000 10%, #000 82%, transparent);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
  }
  .hero__art,
  .hero__energy {
    background-size: contain;
  }
  .hero__art {
    background-color: transparent;
  }
  .hero__fx-media {
    object-fit: contain;
  }
}
.hero__grain {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.025) 0 1px,
      transparent 1px 4px
    ),
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.14) 0 1px,
      transparent 1px
    );
  background-size:
    auto,
    6px 6px;
}
.hero__content {
  position: relative;
  z-index: 3;
  width: min(680px, 53vw);
  padding: calc(var(--header) + clamp(56px, 7vh, 88px)) 0 0 clamp(48px, 4.8vw, 76px);
}
.hero__signature {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  color: #6d542e;
  font: 500 12px/1 var(--display);
  letter-spacing: 0.24em;
}
.hero__signature i {
  width: 38px;
  height: 1px;
  background: #a18048;
}
.hero__content > .eyebrow {
  margin-bottom: 20px;
  color: #596063;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.14em;
}
.hero__protocol {
  width: 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  color: #737d7f;
  font: 500 9px/1 var(--display);
  letter-spacing: 0.17em;
}
.hero__protocol i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(64, 72, 75, 0.18));
}
.eyebrow {
  margin: 0 0 22px;
  color: #9a773c;
  font: 500 10px/1.4 var(--display);
  letter-spacing: 0.24em;
}
.hero h1 {
  max-width: 610px;
  display: inline-block;
  margin: 0;
  color: #111619;
  font: 500 clamp(58px, 5.05vw, 82px) / 1.08 var(--display);
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.hero h1 span {
  letter-spacing: 0.035em;
  color: #846330;
}
.hero__lead {
  width: min(400px, 100%);
  margin: 24px 0 28px;
  padding-left: 17px;
  border-left: 2px solid rgba(132, 99, 48, 0.4);
  color: #384044;
  font-size: 16px;
  line-height: 1.65;
}
.hero__actions {
  display: flex;
  align-items: stretch;
  gap: 2px;
}
.button {
  position: relative;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 0 0 28px;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  font: 500 12px/1 var(--display);
  letter-spacing: 0.07em;
}
.button--primary {
  min-width: 232px;
  color: #171b1d;
  background: linear-gradient(120deg, #d3a64d, #f0cc7d);
  box-shadow: 0 14px 36px rgba(178, 130, 43, 0.18);
}
.button--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 25%,
    rgba(255, 255, 255, 0.46) 48%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.55s;
}
.button--primary:hover::before,
.button--primary:focus-visible::before {
  transform: translateX(120%);
}
.button--ghost {
  min-width: 180px;
  border: 1px solid var(--line);
  color: var(--gold-bright);
  background: rgba(184, 135, 52, 0.06);
}
.button > span {
  position: relative;
  z-index: 1;
}
.button__arrow {
  width: 54px;
  align-self: stretch;
  display: grid;
  place-items: center;
  border-left: 1px solid rgba(30, 31, 29, 0.22);
  font-size: 17px;
  transition: transform 0.2s;
}
.button:hover .button__arrow,
.button:focus-visible .button__arrow {
  transform: translate(2px, -2px);
}
.hero__start {
  min-width: 266px;
  min-height: 64px;
  padding-left: 28px;
  border: 1px solid #252b2d;
  color: #f1dfb7;
  background: linear-gradient(120deg, #222a2d, #11181c);
  box-shadow: 0 12px 24px rgba(15, 22, 25, 0.14);
  font-size: 14px;
  letter-spacing: 0.12em;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.hero__start .button__arrow {
  width: 62px;
  margin: 5px;
  border: 0;
  color: #182024;
  background: linear-gradient(135deg, #ddbd79, #b48b43);
  font-size: 22px;
}
.hero__start:hover,
.hero__start:focus-visible {
  border-color: #a17c3c;
  box-shadow: 0 14px 30px rgba(15, 22, 25, 0.2);
}
.manifest-button {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 18px 0 0;
  border: 0;
  color: #353d40;
  background: transparent;
  cursor: pointer;
  font: 500 10px/1 var(--display);
  letter-spacing: 0.04em;
}
.manifest-button__play {
  width: 54px;
  align-self: stretch;
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  background: #0c1215;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}
.hero__meta-divider {
  width: 24px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(61, 70, 73, 0.38),
    rgba(61, 70, 73, 0.08)
  );
}
.hero__location {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #495255;
  font: 500 9px/1 var(--display);
  letter-spacing: 0.2em;
}
.hero__location span {
  font-size: 17px;
}
.server-card {
  position: static;
  width: auto;
  min-width: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(48, 57, 60, 0.18);
  color: #4b5558;
  background: rgba(12, 18, 20, 0.08);
}
.hud-corners {
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
}
.server-card strong {
  margin: 0;
  color: #667051;
  font: 400 9px/1 var(--display);
  letter-spacing: 0.11em;
  white-space: nowrap;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9abe67;
  box-shadow: 0 0 12px #9abe67;
  animation: pulse 2.4s infinite;
}
.server-card .status-dot {
  width: 6px;
  height: 6px;
  background: #769753;
  box-shadow: 0 0 8px rgba(118, 151, 83, 0.72);
}
.hero__index {
  position: absolute;
  z-index: 4;
  right: 35%;
  bottom: 390px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.36);
  opacity: 0.65;
  font: 400 9px/1 var(--display);
}
.hero__index i {
  width: 76px;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--gold-bright) 25%,
    rgba(255, 255, 255, 0.3) 25%
  );
}
.hero__serial {
  position: absolute;
  z-index: 3;
  right: 38px;
  bottom: 388px;
  color: rgba(255, 255, 255, 0.22);
  font: 400 8px/1 var(--display);
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}
.tech-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}
.cross {
  position: absolute;
  color: rgba(49, 57, 60, 0.28);
  font: 300 18px/1 var(--display);
}
.cross--one {
  top: 36%;
  left: 41%;
}
.cross--two {
  top: 63%;
  left: 34%;
}
.coordinate {
  position: absolute;
  color: rgba(40, 47, 50, 0.3);
  font: 400 8px/1 var(--display);
  letter-spacing: 0.14em;
}
.coordinate--one {
  top: 48%;
  left: 42%;
  transform: rotate(-90deg);
}
.coordinate--two {
  top: 14%;
  right: 24%;
  color: rgba(255, 255, 255, 0.2);
}
.orbit-line {
  position: absolute;
  top: 36%;
  left: 34%;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(67, 74, 76, 0.12);
  border-radius: 50%;
}
.scan-line {
  position: absolute;
  top: 0;
  left: 48%;
  width: 1px;
  height: 100%;
  opacity: 0.32;
  background: linear-gradient(
    transparent,
    rgba(218, 178, 96, 0.7),
    transparent
  );
  animation: scan-drift 8s ease-in-out infinite alternate;
}

/* Command deck and news */
.command-deck {
  position: relative;
  z-index: 55;
  width: 100%;
  min-width: 0;
  margin: calc(clamp(-354px, -35vh, -250px) + 70px) 0 0;
  padding: 0 clamp(28px, 2.8vw, 44px) 26px;
  background: linear-gradient(
    180deg,
    transparent 0 8px,
    rgba(5, 10, 13, 0.45) 8px 100%
  );
}
.deck-heading {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font: 400 9px/1 var(--display);
  letter-spacing: 0.14em;
}
.deck-heading i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), rgba(255, 255, 255, 0.06));
}
.deck-heading i:first-child {
  transform: scaleX(-1);
}
.deck-heading span {
  padding: 0 12px;
  white-space: nowrap;
}
.command-grid {
  position: relative;
  z-index: 55;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.hud-panel {
  min-height: 328px;
  padding: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(
    145deg,
    rgba(7, 14, 18, 0.97),
    rgba(4, 9, 12, 0.96)
  );
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
}
.panel-heading {
  margin-bottom: 14px;
}
.panel-heading > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-heading h2,
.panel-heading button {
  margin: 0;
  font: 400 10px/1 var(--display);
  letter-spacing: 0.1em;
}
.panel-heading h2 {
  color: var(--gold-bright);
}
.panel-heading button {
  padding: 4px 0;
  border: 0;
  color: #90999c;
  background: none;
  cursor: pointer;
}
.panel-heading button:hover,
.panel-heading button:focus-visible {
  color: var(--gold-bright);
}
.panel-heading__line {
  display: block;
  height: 1px;
  margin-top: 10px;
  background: linear-gradient(
    90deg,
    var(--gold) 0 42%,
    rgba(255, 255, 255, 0.08) 42%
  );
}
.news-item {
  width: 100%;
  min-height: 83px;
  display: grid;
  grid-template-columns: 82px 1fr 18px;
  gap: 14px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s;
}
.news-item:hover,
.news-item:focus-visible {
  background: rgba(255, 255, 255, 0.025);
}
.news-item:focus-visible {
  outline-offset: -2px;
}
.news-item__thumb {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-image: url("assets/novus-hero-restored-v44.webp");
  background-position: 65% 45%;
  background-size: 330px auto;
  filter: saturate(0.7);
  transition: transform 0.2s;
}
.news-item__thumb--violet,
.news-item__thumb--blue {
  background-color: #dfe0dc;
  background-image:
    linear-gradient(0deg, rgba(6, 11, 14, 0.78), transparent 72%),
    linear-gradient(90deg, rgba(6, 11, 14, 0.48), transparent 42%),
    var(--news-art);
  background-repeat: no-repeat;
  background-position: center;
  background-size:
    100% 100%,
    100% 100%,
    cover;
}
.news-item__thumb--violet {
  --news-art: url("assets/faction-cora-full.webp");
}
.news-item__thumb--blue {
  --news-art: url("assets/faction-bellato-full.webp");
}
.news-item__body {
  min-width: 0;
  align-self: center;
  transition: transform 0.2s;
}
.news-item time,
.news-item small {
  display: block;
  color: #8f999c;
  font-size: 9px;
  line-height: 1.45;
}
.news-item strong {
  display: block;
  margin: 6px 0;
  font: 400 12px/1.15 var(--display);
  letter-spacing: 0.03em;
}
.news-item__arrow {
  align-self: center;
  color: #667174;
  transition:
    color 0.2s,
    transform 0.2s;
}
.news-item:hover :is(.news-item__thumb, .news-item__body),
.news-item:focus-visible :is(.news-item__thumb, .news-item__body) {
  transform: translateX(7px);
}
.news-item:hover .news-item__arrow,
.news-item:focus-visible .news-item__arrow {
  color: var(--gold-bright);
  transform: translate(2px, -2px);
}

/* Faction cards */
.faction-stack {
  min-width: 0;
}
.faction-stack__header {
  min-height: 88px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 18px 20px;
  background: linear-gradient(90deg, rgba(6, 12, 16, 0.88), rgba(6, 12, 16, 0.5));
}
.faction-stack__header > div > span {
  display: block;
  margin-bottom: 9px;
  color: #adb5b9;
  font: 400 10px/1 var(--display);
  letter-spacing: 0.17em;
}
.faction-stack__header h2 {
  margin: 0;
  color: #dde2e1;
  font: 400 clamp(22px, 1.7vw, 28px)/1.15 var(--display);
  letter-spacing: 0.1em;
}
.faction-stack__header p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #adb5b9;
  font: 400 12px/1.5 var(--body);
  letter-spacing: 0.02em;
}
.faction-stack__header p i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #709652;
  box-shadow: 0 0 10px rgba(112, 150, 82, 0.7);
}
.faction-stack__header p b {
  color: var(--gold-bright);
  font-weight: 400;
}
.mobile-faction-tabs {
  display: none;
}
.faction-panel {
  min-height: 386px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #050a0d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
.faction-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  background: #0b1115;
  transition:
    border-color 0.28s,
    box-shadow 0.28s;
}
.faction-card:last-child {
  border-right: 0;
}
.faction-card::before {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0 0 auto;
  height: 2px;
  pointer-events: none;
  opacity: 0.52;
  background: linear-gradient(90deg, currentColor 0 28%, transparent 78%);
  transition: opacity 0.3s;
}
.faction-card::after {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0 auto 0 0;
  width: 1px;
  pointer-events: none;
  opacity: 0.25;
  background: linear-gradient(
    transparent,
    currentColor 16%,
    currentColor 80%,
    transparent
  );
  box-shadow: 0 0 14px currentColor;
  transition: opacity 0.3s;
}
.faction-card:hover::before,
.faction-card:focus-within::before {
  opacity: 1;
}
.faction-card:hover::after,
.faction-card:focus-within::after {
  opacity: 0.9;
}
.faction-panel[data-active="bellato"] .faction-card--blue,
.faction-panel[data-active="cora"] .faction-card--violet,
.faction-panel[data-active="accretia"] .faction-card--gold {
  box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.22);
}
.faction-panel[data-active="bellato"] .faction-card--blue::before,
.faction-panel[data-active="cora"] .faction-card--violet::before,
.faction-panel[data-active="accretia"] .faction-card--gold::before {
  opacity: 0.84;
}
.faction-card--blue {
  --panel-art: url("assets/faction-bellato-alpha-v85.webp");
  --panel-scene: url("assets/faction-bellato-hq-v79.webp");
  --panel-veil: rgba(187, 200, 206, 0.72);
  --panel-paper: #bbc8ce;
  /* Frame the visible silhouettes, not the transparent canvas. No asset edits. */
  --figure-ratio: 1.968326;
  --figure-size: 100% 102.262444%;
  --figure-position: center 80%;
  --accent-rgb: 86, 169, 229;
  color: var(--blue);
}
.faction-card--violet {
  --panel-art: url("assets/faction-cora-alpha-v85.webp");
  --panel-scene: url("assets/faction-cora-hq-v79.webp");
  --panel-veil: rgba(197, 191, 206, 0.72);
  --panel-paper: #c5bfce;
  --figure-ratio: 1.461794;
  --figure-size: 131.893939% 100%;
  --figure-position: 53.206651% top;
  --accent-rgb: 160, 107, 220;
  color: var(--violet);
}
.faction-card--gold {
  --panel-art: url("assets/faction-accretia-alpha-v84.webp");
  --panel-scene: url("assets/faction-accretia-hq-v79.webp");
  --panel-veil: rgba(203, 197, 183, 0.72);
  --panel-paper: #cbc5b7;
  --figure-ratio: 1.267606;
  --figure-size: 161.111111% 106.103286%;
  --figure-position: 96.212121% 15.384615%;
  --accent-rgb: 224, 180, 94;
  color: var(--gold-bright);
}
.faction-card__trigger {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 386px;
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: none;
  cursor: pointer;
}
.faction-card__trigger::after {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  box-shadow:
    inset 0 0 0 1px rgba(var(--accent-rgb), 0.58),
    inset 0 0 24px rgba(var(--accent-rgb), 0.055);
  transition: opacity 0.28s ease;
}
.faction-card__trigger:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -5px;
}
.faction-card__art {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  isolation: isolate;
  container-type: size;
  --figure-floor: 150px;
  --figure-headroom: 32px;
  background: #060b0e;
}
.faction-card__scene {
  position: absolute;
  z-index: -1;
  top: -16px;
  left: 50%;
  /* Keep the previous minimum scene zoom and full coverage on both axes. */
  width: max(104%, 820px, calc(100% + 32px));
  height: calc(100% + 32px);
  pointer-events: none;
  background-image: linear-gradient(rgba(8, 12, 18, 0.48), rgba(8, 12, 18, 0.7)), var(--panel-scene);
  background-size: cover;
  background-position: center, 50% 25%;
  background-repeat: no-repeat;
  transform: translateX(-50%);
}
.art-tone-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}
.faction-card__art::before {
  content: "";
  position: absolute;
  z-index: 0;
  /* Equal visual height, with a width cap that keeps Bellato's spear intact.
     The other frames exclude only empty/near-transparent canvas padding. */
  bottom: var(--figure-floor);
  left: 50%;
  width: min(calc(100cqw - 12px), calc(min(100cqh - var(--figure-floor) - var(--figure-headroom), (100cqw - 12px) / 1.85) * var(--figure-ratio)));
  aspect-ratio: var(--figure-ratio);
  background-image: var(--panel-art);
  background-repeat: no-repeat;
  background-position: var(--figure-position);
  background-size: var(--figure-size);
  /* Real alpha preserves opaque armor; tone adjustment affects characters only. */
  filter: brightness(0.88) saturate(0.96) drop-shadow(0 5px 8px rgba(0, 0, 0, 0.48));
  transform: translateX(-50%);
}
.faction-card:hover .faction-card__trigger::after,
.faction-card:focus-within .faction-card__trigger::after {
  opacity: 1;
}
.faction-card__meta {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px 7px 10px;
  border-left: 1px solid rgba(var(--accent-rgb), 0.72);
  color: rgba(229, 234, 233, 0.72);
  background: rgba(5, 10, 13, 0.62);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(5px);
  font: 400 9px/1 var(--display);
  letter-spacing: 0.12em;
}
.faction-card__meta b {
  color: rgba(var(--accent-rgb), 0.96);
  font-weight: 400;
}
.faction-card__emblem {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  padding: 7px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  background: rgba(5, 10, 13, 0.48);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.18),
    inset 0 0 18px rgba(var(--accent-rgb), 0.06);
  backdrop-filter: blur(5px);
}
.faction-card__emblem .race-emblem {
  width: 48px;
  height: 48px;
}
.faction-card__letter {
  position: absolute;
  right: 13px;
  bottom: 98px;
  color: transparent;
  opacity: 0.58;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.13);
  font: 600 126px/1 var(--display);
}
.faction-card__cta {
  position: absolute;
  z-index: 5;
  inset: 50% auto auto 0;
  transform: translateY(-50%);
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 0;
  color: rgb(var(--accent-rgb));
  font: 500 10px/1 var(--display);
  letter-spacing: 0.13em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.faction-card__cta i {
  color: currentColor;
  font-size: 15px;
  font-style: normal;
}
.faction-card:hover .faction-card__cta,
.faction-card:focus-within .faction-card__cta {
  opacity: 1;
}
.faction-card__copy {
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  min-height: 154px;
  display: block;
  padding: 20px 20px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-light);
  background: linear-gradient(
    0deg,
    #050a0d 0%,
    rgba(5, 10, 13, 0.985) 76%,
    rgba(5, 10, 13, 0.78) 100%
  );
  box-shadow: none;
}
.faction-card__copy::before {
  content: "";
  position: absolute;
  inset: -24px 0 auto;
  height: 24px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 13, 0.78));
}
.faction-card__copy > small {
  display: block;
  margin-bottom: 5px;
  color: rgba(var(--accent-rgb), 0.76);
  font: 400 10px/1 var(--display);
  letter-spacing: 0.18em;
}
.faction-card__copy > strong {
  display: block;
  font: 400 clamp(24px, 1.65vw, 28px) / 1.05 var(--display);
  letter-spacing: 0.12em;
}
.faction-card--blue .faction-card__copy > strong {
  color: #78bcea;
}
.faction-card--violet .faction-card__copy > strong {
  color: #b086e8;
}
.faction-card--gold .faction-card__copy > strong {
  color: var(--gold-bright);
}
.faction-card__copy > span:not(.faction-card__more) {
  max-width: 92%;
  display: block;
  margin-top: 7px;
  color: #aab2b4;
  font: 400 12px/1.4 var(--display);
  letter-spacing: 0.055em;
}
.faction-card__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  color: #737e81;
  font: 400 8px/1 var(--display);
  letter-spacing: 0.12em;
}
.faction-card__more > i {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #849087;
  font-style: normal;
}
.faction-card__dossier-action { position: relative; }
.faction-card__dossier-label { transition: opacity 0.24s ease; }
.faction-card:hover .faction-card__dossier-label,
.faction-card:focus-within .faction-card__dossier-label { opacity: 0; }
.faction-card__more > i::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #709652;
  box-shadow: 0 0 8px rgba(112, 150, 82, 0.7);
}

/* Content below the command deck */
.reveal {
  opacity: 1;
  transform: none;
}
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s,
    transform 0.65s;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
.hero__gem-glint { opacity: 0; }
.hero__purple-pulse { opacity: 0.4; }
.hero__purple-arc { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero__purple-pulse { animation: purple-core-pulse 7.3s ease-in-out infinite; }
  .hero__purple-arc { animation: purple-core-arc 11s ease-in-out infinite; }
}
@keyframes purple-core-pulse {
  0%, 100% { opacity: 0.28; }
  46% { opacity: 0.85; }
  73% { opacity: 0.46; }
}
@keyframes purple-core-arc {
  0%, 64%, 76%, 100% { opacity: 0; }
  67% { opacity: 0.85; }
  70% { opacity: 0.2; }
  72% { opacity: 0.6; }
}
.hero.is-atmosphere-paused .hero__purple-pulse,
.hero.is-atmosphere-paused .hero__purple-arc { animation-play-state: paused; }
.faction-nav__item { isolation: isolate; }
.faction-nav__item[data-faction="bellato"] { --rail-glow: 86, 169, 229; }
.faction-nav__item[data-faction="cora"] { --rail-glow: 160, 107, 220; }
.faction-nav__item[data-faction="accretia"] { --rail-glow: 224, 180, 94; }
.faction-nav__item::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8px -18px;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 42%, rgba(var(--rail-glow), 0.22), transparent 70%);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.faction-nav__item.is-active::after,
.faction-nav__item:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}
.hero__floor-pulse { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero__floor-pulse { animation: floor-circuit-pulse 12s ease-in-out infinite; }
  .hero__floor-pulse--lower { animation-delay: 0.7s; }
}
@keyframes floor-circuit-pulse {
  0%, 54%, 77%, 100% { opacity: 0; }
  63% { opacity: 0.8; }
  68% { opacity: 0.48; }
}
.hero.is-atmosphere-paused .hero__floor-pulse { animation-play-state: paused; }
.hero__staff-fire { opacity: 0.5; }
.hero__staff-spark { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero__staff-fire { animation: staff-fire-flicker 6.8s ease-in-out infinite; }
  .hero__staff-spark { animation: staff-spark-rise var(--duration) ease-out var(--offset) infinite; }
}
@keyframes staff-fire-flicker {
  0%, 100% { opacity: 0.38; }
  18% { opacity: 0.74; }
  32% { opacity: 0.46; }
  57% { opacity: 0.85; }
  71% { opacity: 0.54; }
  86% { opacity: 0.66; }
}
@keyframes staff-spark-rise {
  0% { opacity: 0; transform: translate(0, 0); }
  18% { opacity: 0.95; }
  60% { opacity: 0.5; }
  85%, 100% { opacity: 0; transform: translate(var(--sx), var(--sy)); }
}
.hero.is-atmosphere-paused .hero__staff-fire,
.hero.is-atmosphere-paused .hero__staff-spark { animation-play-state: paused; }
@media (prefers-reduced-motion: no-preference) {
  .hero__gem-glint { animation: shield-facet-glint 10s ease-in-out infinite; }
}
@keyframes shield-facet-glint {
  0%, 79%, 89%, 100% { opacity: 0; }
  83% { opacity: 0.95; }
  86% { opacity: 0.24; }
}
.hero.is-atmosphere-paused .hero__gem-glint {
  animation-play-state: paused;
}
@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  .js .faction-stack.reveal { opacity: 1; transform: none; }
  .js .faction-stack.reveal .faction-card {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.72, 0.18, 1), border-color 0.28s, box-shadow 0.28s;
  }
  .js .faction-stack.reveal .faction-card:nth-child(2) {
    transition-delay: 0.13s, 0.13s, 0s, 0s;
  }
  .js .faction-stack.reveal .faction-card:nth-child(3) {
    transition-delay: 0.26s, 0.26s, 0s, 0s;
  }
  .js .faction-stack.reveal.is-visible .faction-card {
    opacity: 1;
    transform: none;
  }
  .js .faction-stack.reveal:focus-within .faction-card {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faction-card:hover .faction-card__emblem .race-emblem,
  .faction-card:focus-within .faction-card__emblem .race-emblem { transform: none; }
}
/* War for Novus / v98 */
.war-section {
  position: relative;
  padding: clamp(52px, 6vw, 92px) clamp(24px, 3vw, 48px);
  background: #111316;
}
.war-section__inner { max-width: 1440px; margin-inline: auto; }
.war-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.war-section__kicker,
.war-scene__label,
.war-scene__details {
  font: 400 11px/1.5 var(--display);
  letter-spacing: .12em;
}
.war-section__kicker { margin: 0 0 10px; color: #a78e7d; }
.war-section h2 {
  margin: 0;
  color: #e8ebea;
  font: 400 clamp(30px, 3.1vw, 48px)/1.15 var(--display);
  letter-spacing: .04em;
}
.war-section__heading > p {
  max-width: 350px;
  margin: 0 0 2px;
  color: #a4a8af;
  font: 400 13px/1.7 var(--body);
}
.war-scene {
  --scene-accent: #b9977e;
  --war-art-scale: 1.14;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
  overflow: hidden;
  background: transparent;
}
.war-scene + .war-scene { margin-top: 22px; }
.war-scene__media {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 42%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 90%, transparent);
}
.war-scene__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.war-scene__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, #111316, transparent 26%, transparent 74%, #111316);
}
.war-scene--conflict .war-scene__media img { object-fit: cover; object-position: 50% 38%; }
.war-scene:not(.war-scene--conflict) .war-scene__media img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  max-width: 100%;
  /* Fill more of the scene while preserving the restored artwork's proportions. */
  transform: scale(var(--war-art-scale));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(0deg, transparent 8%, #000 32%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent), linear-gradient(0deg, transparent 8%, #000 32%, #000 86%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.war-scene__copy {
  grid-column: 1;
  align-self: center;
  padding: 34px clamp(24px, 3.1vw, 48px);
}
.war-scene__label { margin: 0 0 18px; color: #9ca1ac; }
.war-scene__label > span { margin-right: 15px; color: var(--scene-accent); }
.war-scene h3 {
  margin: 0;
  color: #e0e3e8;
  font: 400 clamp(27px, 2.8vw, 42px)/1.18 var(--display);
  letter-spacing: .025em;
}
.war-scene__copy > p:not([class]) {
  max-width: 440px;
  margin: 18px 0 0;
  color: #a2a8b2;
  font: 400 13px/1.8 var(--body);
}
.war-scene__races { display: flex; align-items: center; gap: 20px; margin-top: 24px; }
.war-scene__races .race-emblem { width: 25px; height: 25px; opacity: .8; }
.war-scene--progression { --scene-accent: #a390c5; }
.war-scene--progression .war-scene__media {
  inset: 0 42% 0 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 76%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 76%, transparent);
}
.war-scene--progression .war-scene__copy { grid-column: 2; }
.war-scene--technology { --scene-accent: #7f9fbf; --war-art-scale: 1.28; }
.war-scene__details { margin: 24px 0 0; color: #9cabbe; font-size: 10px; letter-spacing: .07em; }
.war-scene__details i { padding-inline: 6px; color: #54606e; font-style: normal; }
@media (max-width: 1100px) and (min-width: 701px) {
  .war-scene { min-height: 380px; }
  .war-scene__copy { padding: 28px; }
}
@media (max-width: 700px) {
  .war-section { padding: 44px 20px; }
  .war-section__heading { display: block; margin-bottom: 24px; }
  .war-section__heading > p { margin-top: 16px; }
  .war-scene { display: flex; flex-direction: column; min-height: 0; }
  .war-scene__media,
  .war-scene--progression .war-scene__media {
    position: relative;
    z-index: 0;
    inset: auto;
    width: 100%;
    height: clamp(210px, 60vw, 320px);
    -webkit-mask-image: linear-gradient(0deg, transparent, #000 20%, #000 88%, transparent);
    mask-image: linear-gradient(0deg, transparent, #000 20%, #000 88%, transparent);
  }
  .war-scene__copy { align-self: stretch; padding: 8px 24px 30px; }
  .war-scene__label { margin-bottom: 14px; }
  .war-scene h3 { font-size: clamp(27px, 6vw, 36px); }
}
/* /War for Novus */
.community-section {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  gap: 32px;
  padding: 64px clamp(32px, 4vw, 72px);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(
      circle at 70% 45%,
      rgba(68, 119, 151, 0.16),
      transparent 25%
    ),
    linear-gradient(115deg, #071014, #05090c 60%, #0b1418);
}
.community-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.community-section::after {
  content: "NOVUS";
  position: absolute;
  right: 16px;
  bottom: -40px;
  color: rgba(255, 255, 255, 0.018);
  font: 600 clamp(120px, 13vw, 190px)/1 var(--display);
  letter-spacing: 0.08em;
}
.community-section__copy {
  position: relative;
  z-index: 2;
  max-width: 600px;
  text-align: center;
}
.community-section h2 {
  margin: 0;
  color: #eef1f0;
  font: 400 clamp(40px, 3.7vw, 64px) / 1.06 var(--display);
  letter-spacing: 0.045em;
}
.community-section h2 span {
  color: transparent;
  -webkit-text-stroke: 1px var(--gold-bright);
}
.community-section__copy > p:not(.eyebrow) {
  max-width: 440px;
  margin: 20px auto 0;
  color: #a8aeb8;
  font-size: 14px;
  line-height: 1.65;
}
.community-section__copy > .eyebrow {
  margin-bottom: 18px;
  color: #bd9883;
  letter-spacing: 0.17em;
}
.community-section__actions {
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 26px;
}
.community-terminal {
  position: relative;
  z-index: 2;
  width: min(430px, 100%);
  justify-self: end;
  padding: 26px;
  border: 1px solid var(--line);
  color: var(--text-light);
  background: rgba(5, 12, 16, 0.94);
  clip-path: polygon(
    12px 0,
    100% 0,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%,
    0 12px
  );
}
.community-terminal__head {
  display: flex;
  justify-content: space-between;
  color: #a8b1b3;
  font: 400 10px/1 var(--display);
  letter-spacing: 0.12em;
}
.community-terminal__signal {
  position: relative;
  height: 126px;
  display: grid;
  place-items: center;
  margin: 22px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.community-terminal__signal::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(240, 198, 111, 0.16);
  border-radius: 50%;
}
.community-terminal__signal i,
.community-terminal__signal b {
  position: absolute;
  width: 88px;
  height: 88px;
  border: 1px dashed rgba(240, 198, 111, 0.5);
  border-radius: 50%;
  animation: core-spin 12s linear infinite;
}
.community-terminal__signal b {
  width: 48px;
  height: 48px;
  border-style: solid;
  animation-direction: reverse;
  animation-duration: 7s;
}
.community-terminal__signal span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 28px var(--gold-bright);
}
.community-terminal dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}
.community-terminal dl div {
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
}
.community-terminal dl div:first-child {
  padding-left: 0;
}
.community-terminal dl div:last-child {
  border: 0;
}
.community-terminal dt {
  color: #748185;
  font: 400 9px/1 var(--display);
  letter-spacing: 0.1em;
}
.community-terminal dd {
  margin: 8px 0 0;
  color: #c1c8c9;
  font: 400 11px/1 var(--display);
  letter-spacing: 0.08em;
}
.community-terminal > p {
  margin: 24px 0 0;
  color: #667478;
  font: 400 9px/1.6 var(--display);
  letter-spacing: 0.12em;
}

.footer {
  position: relative;
  z-index: 60;
  width: 100%;
  min-height: 88px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 28px;
  margin-left: 0;
  padding: 22px clamp(32px, 4vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #a8aeb8;
  background: #05090c;
  font: 400 12px/1.5 var(--display);
  letter-spacing: 0.1em;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
}
.footer nav button {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
}
.footer > span:last-child {
  text-align: right;
  color: #89929f;
  font-size: 10px;
  white-space: nowrap;
}
.footer a,
.footer button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.2s;
}
.footer a:hover,
.footer a:focus-visible,
.footer button:hover,
.footer button:focus-visible {
  color: var(--gold-bright);
}

/* Dossiers reuse faction palettes; restored client portraits are isolated here. */
.dossier-modal {
  --accent-rgb: 86, 169, 229;
  --dossier-backdrop: #191529;
  width: min(1100px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #414750;
  border-top-color: rgba(var(--accent-rgb), 0.8);
  border-radius: 4px;
  color: #e8ebef;
  color-scheme: dark;
  background: #15181e;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.65);
}
.dossier-modal[data-race="cora"] { --accent-rgb: 160, 107, 220; --dossier-backdrop: #220f18; }
.dossier-modal[data-race="accretia"] { --accent-rgb: 224, 180, 94; --dossier-backdrop: #231c14; }
.dossier-modal::backdrop { background: rgba(5, 7, 11, 0.86); backdrop-filter: blur(6px); }
.dossier-header { position: sticky; z-index: 5; top: 0; background: #1b1e24; border-bottom: 1px solid #353b44; }
.dossier-heading { padding: 24px 76px 20px 28px; }
.dossier-heading p { margin: 0 0 9px; color: #a1aab7; font: 400 10px/1.5 var(--display); letter-spacing: 0.12em; }
.dossier-heading h2 { margin: 0; font: 400 24px/1.2 var(--display); letter-spacing: 0.08em; }
.dossier-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 28px; }
.dossier-tabs button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 8px; border: 1px solid transparent; border-bottom: 2px solid transparent; color: #a6aebb; background: transparent; font: 400 14px/1.3 var(--display); letter-spacing: 0.08em; cursor: pointer; }
.dossier-tabs button span { color: #788594; font-size: 10px; }
.dossier-tabs button:hover { color: #edf0f4; background: #242830; }
.dossier-tabs button[aria-selected="true"] { color: #edf0f4; border-bottom-color: rgb(var(--accent-rgb)); background: rgba(var(--accent-rgb), 0.08); }
.dossier-tabs button[aria-selected="true"] span { color: rgb(var(--accent-rgb)); }
.dossier-page { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.dossier-page[hidden] { display: none; }
.dossier-page:focus-visible { outline: 1px solid rgb(var(--accent-rgb)); outline-offset: -4px; }
.dossier-visual { position: relative; min-height: 600px; overflow: hidden; isolation: isolate; background: var(--dossier-backdrop); }
.dossier-visual::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 46px; pointer-events: none; background: linear-gradient(0deg, rgba(8, 10, 15, 0.78), transparent); }
/* Fit the element itself to the portrait so the edge fade follows the image,
   not the wider letterboxed panel. The central artwork stays fully opaque. */
.dossier-art {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.dossier-emblem { position: absolute; z-index: 2; top: 24px; left: 24px; display: grid; place-items: center; width: 62px; height: 62px; background: rgba(10, 15, 22, 0.72); border: 1px solid rgba(var(--accent-rgb), 0.35); }
.dossier-emblem .race-emblem { width: 42px; height: 42px; }
.dossier-copy { display: flex; flex-direction: column; padding: 34px 36px; background: linear-gradient(130deg, #1c2027, #14171c); }
.dossier-kicker { margin: 0 0 12px; color: rgb(var(--accent-rgb)); font: 400 11px/1.5 var(--display); letter-spacing: 0.15em; }
.dossier-copy h3 { margin: 0 0 20px; font: 500 clamp(36px, 4vw, 48px)/1.1 var(--display); letter-spacing: 0.06em; }
.dossier-description { margin: 0; color: #b9c1cd; font-size: 14px; line-height: 1.75; }
.dossier-features { display: grid; gap: 0; margin: 24px 0 16px; padding: 0; list-style: none; }
.dossier-features li { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid #333a44; color: #d9dfe7; font: 400 13px/1.5 var(--display); letter-spacing: 0.07em; }
.dossier-features li span { color: rgb(var(--accent-rgb)); font-size: 10px; }
.dossier-features li div { min-width: 0; }
.dossier-features small { display: block; margin-top: 4px; color: #aab4c2; font: 400 12px/1.55 var(--body); letter-spacing: 0; }
.dossier-action { margin-top: auto; }
.dossier-action .button { min-width: min(252px, 100%); min-height: 52px; max-width: 100%; padding: 0 20px; border: 1px solid rgba(var(--accent-rgb), 0.55); border-radius: 3px; color: #f1ece6; background: linear-gradient(120deg, #282a30, #1c1e24); box-shadow: inset 0 1px rgba(255, 255, 255, 0.05); font-size: 14px; }
.dossier-action .button::before { content: none; }
.dossier-action .button .button__arrow { width: auto; align-self: center; border: 0; color: rgb(var(--accent-rgb)); font-size: 20px; }
.dossier-action .button:hover, .dossier-action .button:focus-visible { border-color: rgb(var(--accent-rgb)); background: #292d35; }
@media (prefers-reduced-motion: no-preference) {
  .dossier-page:not([hidden]) { animation: dossier-appear 0.22s ease-out; }
}
@keyframes dossier-appear { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 900px) {
  .dossier-modal { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .dossier-heading { padding: 20px 60px 16px 20px; }
  .dossier-heading p { font-size: 9px; letter-spacing: 0.08em; }
  .dossier-heading h2 { font-size: 21px; }
  .dossier-header .modal-close { top: 10px; right: 8px; }
  .dossier-tabs { padding: 0 12px; gap: 0; }
  .dossier-tabs button { gap: 6px; font-size: 12px; }
  .dossier-tabs button span { font-size: 9px; }
  .dossier-page { grid-template-columns: minmax(0, 1fr); }
  .dossier-visual { min-height: 0; height: clamp(340px, 105vw, 480px); }
  .dossier-emblem { top: 16px; left: 16px; width: 44px; height: 44px; }
  .dossier-emblem .race-emblem { width: 30px; height: 30px; }
  .dossier-copy { padding: 26px 22px; }
  .dossier-copy h3 { font-size: 36px; }
  .dossier-features { margin: 22px 0 16px; }
  .dossier-action .button { width: 100%; }
}

/* Start flow is deliberately an interface preview: no active service actions. */
body:has(.start-modal[open], .dossier-modal[open]) { overflow: hidden; }
.start-modal {
  width: min(760px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 36px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #45444a;
  border-top-color: #aa7963;
  border-radius: 4px;
  color: #e8ebef;
  color-scheme: dark;
  background: linear-gradient(135deg, #202228, #14161b 65%);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6);
}
.start-modal::backdrop { background: rgba(5, 7, 11, 0.86); backdrop-filter: blur(6px); }
.start-modal__header { padding-right: 32px; }
.start-modal__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #d1ab95;
  font: 400 10px/1.5 var(--display);
  letter-spacing: 0.13em;
}
.start-modal__status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.start-modal h2 { margin: 0; font: 500 clamp(30px, 4vw, 40px)/1.15 var(--display); letter-spacing: 0.06em; }
.start-modal__header > p:last-child { margin: 14px 0 26px; color: #acb2be; font-size: 14px; line-height: 1.65; }
.start-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.start-tabs button {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #373b45;
  border-radius: 2px;
  color: #a6aebb;
  background: #1b1e24;
  font: 500 14px/1.4 var(--display);
  letter-spacing: 0.06em;
  cursor: pointer;
}
.start-tabs button span { color: #848c9b; font-size: 11px; }
.start-tabs button:hover { color: #f1ece6; border-color: #806152; }
.start-tabs button[aria-selected="true"] { color: #f1ece6; border-color: #ac7b63; background: #2a282b; box-shadow: inset 0 -2px #ac7b63; }
.start-tabs button[aria-selected="true"] span { color: #d1ab95; }
.start-panel { min-height: 290px; padding: 28px 0 24px; }
.start-panel[hidden] { display: none; }
.start-panel:focus-visible { outline: 1px solid #ac7b63; outline-offset: 5px; }
.start-panel__kicker { margin: 0 0 12px; color: #929aa7; font: 400 10px/1.5 var(--display); letter-spacing: 0.13em; }
.start-panel h3 { margin: 0 0 12px; color: #e8ebef; font: 400 clamp(24px, 3vw, 30px)/1.2 var(--display); letter-spacing: 0.035em; }
.start-panel > p:not(.start-panel__kicker) { max-width: 58ch; margin: 0; color: #b0b7c2; font-size: 14px; line-height: 1.65; }
.start-panel__pending { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0; padding: 14px 16px; border-left: 2px solid #936c58; background: rgba(172, 123, 99, 0.065); }
.start-panel__pending > span { color: #d1ab95; font-size: 20px; line-height: 1; }
.start-panel__pending p { margin: 0; color: #b8b7bb; font-size: 13px; line-height: 1.65; }
.start-service { min-height: 48px; width: min(100%, 310px); display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border: 1px solid #3b3e47; border-radius: 3px; color: #a0a6b0; background: #202229; opacity: 1; cursor: not-allowed; font: 500 12px/1.5 var(--display); letter-spacing: 0.06em; }
.start-service span { font-size: 18px; }
.start-modal__footer { display: flex; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid #343840; }
.start-back, .start-next { min-height: 48px; padding: 12px 18px; border: 1px solid #464952; border-radius: 3px; color: #d9dde5; background: transparent; font: 500 12px/1.5 var(--display); letter-spacing: 0.045em; cursor: pointer; }
.start-next { min-width: 210px; border-color: #9c6b57; color: #f1ece6; background: linear-gradient(120deg, #282a30, #1c1e24); }
.start-back:disabled { opacity: 0.4; cursor: default; }
.start-next:hover, .start-back:not(:disabled):hover { border-color: #d1ab95; background: #2a2c33; }
.start-modal__note { margin: 18px 0 0; color: #969eab; font-size: 12px; line-height: 1.6; }
@media (max-width: 640px) {
  .start-modal { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 24px 20px; }
  .start-modal .modal-close { top: 8px; right: 8px; }
  .start-modal__header { padding-right: 20px; }
  .start-modal__status { max-width: 180px; font-size: 9px; letter-spacing: 0.09em; }
  .start-tabs { gap: 6px; }
  .start-tabs button { min-height: 70px; flex-direction: column; justify-content: center; gap: 4px; padding: 8px 4px; font-size: 12px; }
  .start-panel { padding-top: 24px; }
  .start-panel__pending { padding: 12px; }
  .start-modal__footer { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
  .start-back, .start-next { min-width: 0; padding: 12px 10px; font-size: 11px; }
}

/* Dialogs */
:is(.manifest-modal, .intel-modal) {
  width: min(560px, calc(100% - 32px));
  padding: 42px;
  border: 1px solid var(--line);
  color: var(--text-light);
  background: rgba(7, 12, 15, 0.97);
  box-shadow: 0 40px 120px #000;
  clip-path: polygon(
    14px 0,
    100% 0,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    0 100%,
    0 14px
  );
}
:is(.manifest-modal, .intel-modal)::backdrop {
  background: rgba(2, 5, 7, 0.84);
  backdrop-filter: blur(9px);
}
:is(.manifest-modal, .intel-modal) h2 {
  margin: 0 0 14px;
  font: 400 38px/1 var(--display);
  letter-spacing: 0.11em;
}
:is(.manifest-modal, .intel-modal) p:not(.eyebrow) {
  color: #a7b0b2;
  font-size: 13px;
  line-height: 1.7;
}
:is(.manifest-modal, .intel-modal) .button {
  margin-top: 18px;
}
.modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  color: #a5acae;
  background: none;
  cursor: pointer;
  font-size: 28px;
}
.modal-close:hover,
.modal-close:focus-visible {
  color: var(--gold-bright);
}
.manifest-modal__visual {
  position: relative;
  height: 170px;
  display: grid;
  place-items: center;
  margin: -42px -42px 34px;
  overflow: hidden;
  background: url("assets/novus-hero-restored-v44.webp") 58% 42% / cover;
}
.manifest-modal__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #070c0f, transparent);
}
.manifest-modal__visual span,
.manifest-modal__visual i {
  z-index: 2;
  width: 72px;
  height: 72px;
  border: 1px solid var(--gold-bright);
  border-radius: 50%;
  box-shadow: 0 0 45px rgba(224, 180, 94, 0.35);
}
.manifest-modal__visual i {
  position: absolute;
  width: 105px;
  height: 105px;
  border-color: rgba(224, 180, 94, 0.4);
  border-style: dashed;
  animation: core-spin 7s linear infinite;
}
.intel-modal__code {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 58px 34px 0;
  color: #728084;
  font: 400 9px/1 var(--display);
  letter-spacing: 0.16em;
}
.intel-modal__code i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(255, 255, 255, 0.05));
}

@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
@keyframes core-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes scan-drift {
  from {
    transform: translateX(-90px);
  }
  to {
    transform: translateX(90px);
  }
}

@media (max-width: 1280px) {
  .rail-copy {
    display: none;
  }
  .brand--rail {
    width: 244px;
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 12px;
    padding-right: 31px;
    padding-left: 26px;
  }
  .brand--rail .brand__monogram {
    width: 44px;
    height: 40px;
  }
  .brand--rail .brand__wordmark {
    font-size: 14px;
  }
  .header {
    padding-left: 190px;
  }
  .main-nav a {
    font-size: 11px;
  }
  .header-actions {
    gap: 10px;
  }
  .social-dock button:last-child {
    display: none;
  }
  .command-deck {
    width: 100%;
    margin-left: 0;
  }
  .command-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .news-panel {
    grid-column: 1;
    min-height: 328px;
  }
  .faction-stack {
    grid-column: 1;
  }
  .news-item {
    grid-template-columns: 72px 1fr 16px;
  }
}

@media (max-width: 980px) {
  :root {
    --header: 74px;
  }
  .faction-rail,
  .page::before,
  .page::after {
    display: none;
  }
  .page {
    margin-left: 0;
  }
  .header,
  .header.is-scrolled {
    left: 0;
    height: var(--header);
    grid-template-columns: auto 1fr auto;
    padding: 0 20px;
    color: var(--text-light);
    background: rgba(6, 11, 14, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .brand--mobile {
    display: flex;
  }
  .brand--mobile .brand__monogram {
    width: 38px;
    height: 36px;
  }
  .brand--mobile .brand__monogram i,
  .brand--mobile .brand__monogram b {
    font-size: 14px;
  }
  .brand--mobile .brand__wordmark {
    font-size: 13px;
    letter-spacing: 0.09em;
  }
  .menu-toggle {
    position: relative;
    z-index: 3;
    grid-column: 3;
    width: 44px;
    height: 44px;
    display: grid;
    place-content: center;
    gap: 7px;
    border: 0;
    background: none;
  }
  .menu-toggle span:not(.sr-only) {
    width: 24px;
    height: 1px;
    display: block;
    background: #fff;
    transition: transform 0.2s;
  }
  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }
  .main-nav {
    position: fixed;
    inset: var(--header) 0 auto;
    height: calc(100dvh - var(--header));
    display: grid;
    align-content: start;
    gap: 0;
    padding: 24px;
    overflow-y: auto;
    visibility: hidden;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 11, 14, 0.97);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    clip-path: none;
    transform: translateY(-130%);
    transition:
      opacity 0.25s,
      transform 0.25s,
      visibility 0s linear 0.25s;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }
  .main-nav a,
  .header.is-scrolled .main-nav a {
    padding: 16px 0;
    color: #cbd0d1;
    font-size: 17px;
    line-height: 1.4;
    text-shadow: none;
  }
  .main-nav a::after {
    bottom: 6px;
  }
  .header-actions {
    display: none;
  }
  .hero {
    height: auto;
    min-height: max(720px, 100svh);
  }
  .hero__art {
    background-position: 60% center;
    background-size: cover;
  }
  .hero__energy,
  .hero__fx {
    display: none;
  }
  .hero__art::after {
    background:
      linear-gradient(
        90deg,
        rgba(24, 25, 29, 0.98) 0%,
        rgba(24, 25, 29, 0.91) 44%,
        rgba(7, 12, 15, 0.16) 78%
      ),
      linear-gradient(180deg, transparent 58%, rgba(6, 11, 14, 0.58) 100%);
  }
  .hero__content {
    width: min(650px, 78vw);
    padding-top: calc(var(--header) + 48px);
    padding-left: 7vw;
    padding-bottom: 160px;
  }
  .hero h1 {
    font-size: clamp(56px, 8vw, 78px);
  }
  .hero__meta {
    flex-wrap: wrap;
  }
  .hero__index {
    bottom: 230px;
  }
  .hero__serial {
    display: none;
  }
  .command-deck {
    width: 100%;
    margin: 0;
    padding: 30px 20px;
    background: #071014;
  }
  .command-grid {
    grid-template-columns: 1fr;
  }
  .faction-stack,
  .news-panel {
    grid-column: 1;
  }
  .faction-stack {
    grid-row: 1;
  }
  .news-panel {
    grid-row: 2;
  }
  .faction-stack__header {
    min-height: 46px;
    padding-inline: 2px;
  }
  .mobile-faction-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 8px;
  }
  .mobile-faction-tabs button {
    --tab-accent: var(--gold-bright);
    --tab-bg: rgba(184, 135, 52, 0.08);
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #7f8a8d;
    background: #091216;
    cursor: pointer;
    font: 400 13px/1 var(--display);
    letter-spacing: 0.08em;
  }
  .mobile-faction-tabs button[data-faction="bellato"] {
    --tab-accent: var(--blue);
    --tab-bg: rgba(86, 169, 229, 0.1);
  }
  .mobile-faction-tabs button[data-faction="cora"] {
    --tab-accent: var(--violet);
    --tab-bg: rgba(160, 107, 220, 0.1);
  }
  .mobile-faction-tabs button.is-active {
    color: var(--tab-accent);
    border-color: var(--tab-accent);
    background: var(--tab-bg);
  }
  .faction-panel {
    min-height: 430px;
    grid-template-columns: repeat(3, 86vw);
    column-gap: 10px;
    transition: none;
    overflow-x: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    scrollbar-width: none;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
  }
  .faction-panel::-webkit-scrollbar {
    display: none;
  }
  .faction-card,
  .faction-card:last-child {
    min-height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .faction-card__trigger {
    min-height: 430px;
  }
  .faction-card__art {
    --figure-floor: 182px;
    --figure-headroom: 54px;
  }
  .faction-card__copy {
    min-height: 182px;
    padding-bottom: 66px;
  }
  .faction-card__letter {
    bottom: 132px;
  }
  .faction-card__more {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .faction-card__dossier-action { position: static; }
  .faction-card__dossier-label, .faction-card__more > i { display: none; }
  .faction-card__cta,
  .faction-card:hover .faction-card__cta,
  .faction-card:focus-within .faction-card__cta {
    inset: auto 18px 16px;
    min-width: 0;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(var(--accent-rgb), 0.65);
    background: rgba(5, 10, 13, 0.84);
    justify-content: space-between;
    opacity: 1;
    transform: none;
  }
  .community-section {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .community-terminal {
    justify-self: start;
  }
  .footer {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .hero {
    height: auto;
    min-height: max(680px, 100svh);
  }
  .hero__content {
    width: auto;
    padding: calc(var(--header) + 40px) 20px 120px;
  }
  .hero__protocol {
    margin-bottom: 22px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 0.17em;
  }
  .hero h1 {
    font-size: clamp(42px, 12.7vw, 61px);
    letter-spacing: 0.055em;
  }
  .hero h1 span {
    letter-spacing: 0.035em;
  }
  .hero__lead {
    width: 92%;
    margin-top: 24px;
    font-size: 16px;
  }
  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .button--primary {
    width: 100%;
  }
  .manifest-button {
    min-height: 54px;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e6e9e8;
    background: rgba(7, 12, 15, 0.9);
  }
  .manifest-button__play {
    width: auto;
    align-self: auto;
    color: var(--gold-bright);
    background: transparent;
  }
  .hero__meta {
    display: grid;
    justify-items: start;
    gap: 10px;
    margin-top: 20px;
  }
  .hero__meta-divider {
    display: none;
  }
  .hero__meta .server-card {
    grid-row: 1;
  }
  .hero__meta .hero__location {
    grid-row: 2;
    font-size: 8px;
    letter-spacing: 0.14em;
  }
  .hero__index,
  .tech-overlay {
    display: none;
  }
  .command-deck {
    padding: 18px 14px 28px;
  }
  .hud-panel {
    padding: 14px;
  }
  .news-item {
    grid-template-columns: 72px 1fr 14px;
    gap: 10px;
  }
  .news-item small {
    display: none;
  }
  .faction-stack__header p {
    display: none;
  }
  .faction-panel {
    min-height: 440px;
    grid-template-columns: repeat(3, 86vw);
  }
  .faction-card,
  .faction-card__trigger {
    min-height: 440px;
  }
  .community-section {
    min-height: 0;
    gap: 28px;
    padding: 48px 20px;
  }
  .community-section h2 {
    max-width: 100%;
    font-size: clamp(32px, 9vw, 44px);
    letter-spacing: 0.045em;
  }
  .community-section__actions {
    display: grid;
    gap: 20px;
  }
  .footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 20px;
  }
  .footer nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 20px;
  }
  .footer > span:last-child {
    text-align: left;
  }
  :is(.manifest-modal, .intel-modal) {
    padding: 28px;
  }
  .manifest-modal__visual {
    margin: -28px -28px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__art {
    transform: none !important;
  }
  .hero__energy {
    opacity: 0.52;
    animation: none;
    transform: none !important;
  }
  .hero__fx {
    background-image: image-set(
      url("assets/novus-hero-glow-v10-static.webp") 1x,
      url("assets/novus-hero-glow-v10-static-hd.webp") 1.6x
    );
    background-position: right 44%;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.56;
    transform: none !important;
  }
  .hero__fx-media {
    display: none;
  }
}

/* Graphite / silver interface with copper-red calls to action. */
body { background-color: #111215; }
.hero { background-color: #18191d; }
.faction-rail { background: linear-gradient(160deg, #191b20, #0d0e11 64%); }
.page::before {
  background: linear-gradient(135deg, #393d46 0 44%, #272a32 44% 64%, #444852 64%);
}
.page::after { background: rgba(168, 175, 188, 0.16); }
.main-nav a { color: #c4c8d0; text-shadow: none; }
.main-nav a.is-active,
.main-nav a:hover { color: #f1f2f5; }
.header.is-scrolled { background: rgba(18, 19, 23, 0.97); }
.hero__signature { color: #c1c6cf; }
.hero__signature i { background: #a34f3d; }
.hero__content > .eyebrow { color: #aeb2bb; }
.hero h1 { color: #f0f1f4; }
.hero h1 span { color: #b9bfca; }
.hero__lead { color: #bec2cb; border-left-color: #a34f3d; }
.button--primary,
.hero__start {
  color: #fff4ee;
  background: linear-gradient(120deg, #8e3f32, #b45e45);
  border-color: #ba6c54;
  box-shadow: 0 12px 28px rgba(47, 12, 9, 0.26);
}
.hero__start .button__arrow {
  color: #fff2e9;
  background: rgba(42, 15, 13, 0.3);
}
.hero__start:hover,
.hero__start:focus-visible {
  border-color: #e4a084;
  box-shadow: 0 14px 30px rgba(148, 59, 38, 0.24);
}
.hero .hero__start,
.community-section .community__join {
  min-width: 252px;
  min-height: 60px;
  padding: 0 24px;
  gap: 34px;
  border: 1px solid #9c6b57;
  border-radius: 3px;
  color: #f1ece6;
  background: linear-gradient(120deg, #282a30, #1c1e24);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 8px 18px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  letter-spacing: 0.09em;
  transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.hero .hero__start .button__arrow,
.community-section .community__join .button__arrow {
  width: auto;
  align-self: center;
  margin: 0;
  border: 0;
  color: #d4a58d;
  background: none;
  font-size: 21px;
}
.hero .hero__start:hover,
.hero .hero__start:focus-visible,
.community-section .community__join:hover,
.community-section .community__join:focus-visible {
  border-color: #e0af92;
  background: linear-gradient(120deg, #333139, #22242b);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 8px 24px rgba(0, 0, 0, 0.24);
}
.account-button { color: #c9ced7; }
.account-button::before {
  background: linear-gradient(100deg, rgba(173, 180, 194, 0.05), rgba(173, 180, 194, 0.16));
}
.account-button:hover,
.account-button:focus-visible,
.header .social-dock button:hover,
.header .social-dock button:focus-visible {
  color: #fff0e7;
  border-color: #bc7963;
  background: #292b32;
  box-shadow: inset 0 0 0 1px rgba(188, 121, 99, 0.15);
}
.faction-card--gold { color: #f0c66f; }
.race-emblem--accretia,
.faction-nav__item[data-faction="accretia"].is-active { color: #f0c66f; }
.faction-stack__header { background: linear-gradient(90deg, #191b20, rgba(20, 21, 26, 0.78)); }
.community-section { background-color: #14161a; }
.footer { background-color: #101115; }
@media (min-width: 981px) {
  .page::before,
  .page::after { display: none; }
  .header,
  .header.is-scrolled {
    left: 0;
    padding: 0 clamp(24px, 3vw, 46px) 0 286px;
    gap: 20px;
    background: #17191e;
    border-bottom: 1px solid rgba(184, 193, 206, 0.14);
  }
  .brand--rail {
    background: #17191e;
    clip-path: none;
    border-bottom: 1px solid rgba(184, 193, 206, 0.14);
  }
  .main-nav {
    gap: clamp(22px, 2vw, 34px);
    padding: 0;
    background: transparent;
    box-shadow: none;
    clip-path: none;
  }
  .main-nav a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    color: #c4c8d0;
  }
  .main-nav a::after {
    bottom: 22px;
    background: #bb745c;
  }
  .main-nav a.is-active { color: #f0e3dc; }
  .account-button {
    background: #20232a;
    border-color: rgba(184, 193, 206, 0.25);
  }
}

/* Environmental depth stays inside the registered artwork frame. */
.hero__haze {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.48;
  mix-blend-mode: screen;
}
.hero__armor-reflection { opacity: 0; }
.deck-heading { height: 48px; gap: 18px; }
.deck-heading i {
  background: linear-gradient(90deg, rgba(184, 153, 127, 0.34), rgba(184, 193, 206, 0.06));
}
.deck-heading .section-sigil {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 0 4px;
}
.section-sigil .race-emblem {
  width: 22px;
  height: 22px;
  padding: 0;
  opacity: 0.65;
  filter: none;
}
.community-divider {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100%, 220px);
  margin: 0 0 22px;
  opacity: 0.7;
}
.community-divider i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 153, 127, 0.55));
}
.community-divider i:last-child { transform: scaleX(-1); }
@media (prefers-reduced-motion: no-preference) and (min-width: 981px) {
  .hero__haze-drift { animation: background-haze-drift 26s ease-in-out infinite alternate; }
  .hero__armor-reflection { animation: armor-fire-reflection 13s ease-in-out infinite; }
  .hero__armor-reflection--late { animation-delay: -5.6s; animation-duration: 16s; }
}
@keyframes background-haze-drift {
  from { transform: translate(-17px, 6px); opacity: 0.32; }
  to { transform: translate(20px, -5px); opacity: 0.72; }
}
@keyframes armor-fire-reflection {
  0%, 62%, 82%, 100% { opacity: 0; }
  68% { opacity: 0.35; }
  73% { opacity: 0.16; }
  76% { opacity: 0.27; }
}
.hero.is-atmosphere-paused .hero__haze-drift,
.hero.is-atmosphere-paused .hero__armor-reflection { animation-play-state: paused; }
@media (max-width: 980px), (prefers-reduced-motion: reduce) {
  .hero__haze, .hero__armor-reflection { display: none; }
}

/* Continue the hero's graphite ground into the faction section. */
.command-deck { background: #14161a; }
.command-deck::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -100px 0 auto;
  height: 100px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(20, 22, 26, 0.58) 55%, #14161a);
}
.command-deck::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -68px 0 auto;
  height: 120px;
  pointer-events: none;
  background:
    radial-gradient(ellipse 33% 33% at 62% 52%, rgba(143, 135, 132, 0.07), transparent),
    radial-gradient(ellipse 21% 24% at 84% 34%, rgba(131, 145, 158, 0.045), transparent);
}
.deck-heading { position: relative; z-index: 1; }
.faction-stack__header {
  background: linear-gradient(90deg, rgba(25, 27, 32, 0.55), transparent);
}
/* Community and footer: a compact, continuous page ending / v102. */
.community-section {
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .8fr);
  gap: clamp(28px, 4vw, 56px);
  padding: 44px max(clamp(28px, 3.5vw, 56px), calc((100% - 1080px) / 2)) 48px;
  border-top: 0;
  background:
    radial-gradient(ellipse at 78% 52%, rgba(98, 89, 115, .075), transparent 50%),
    linear-gradient(180deg, #111316, #13151a 52%, #101115);
}
.community-section::before,
.community-section::after,
.community-divider { display: none; }
.community-section__copy {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: 100%;
  max-width: 620px;
  text-align: left;
}
.community-section h2 {
  font-size: clamp(34px, 3.1vw, 48px);
  line-height: 1.12;
  letter-spacing: .025em;
  text-wrap: balance;
}
.community-section__copy > .eyebrow { margin: 0 0 14px; font-size: 10px; }
.community-section__copy > p:not(.eyebrow) { margin: 16px 0 0; max-width: 420px; }
.community-section__actions { display: flex; justify-content: flex-start; margin-top: 22px; }
.community-section .community__join { min-height: 56px; }
.community-section__insignia {
  display: block;
  position: relative;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: min(100%, 296px);
  height: 256px;
  pointer-events: none;
}
.community-section__insignia::before {
  content: "";
  position: absolute;
  inset: 6% -4%;
  background:
    radial-gradient(ellipse at 24% 28%, rgba(86, 169, 229, .08), transparent 48%),
    radial-gradient(ellipse at 78% 45%, rgba(160, 107, 220, .07), transparent 46%),
    radial-gradient(ellipse at 37% 80%, rgba(240, 198, 111, .06), transparent 48%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%);
}
.community-section__insignia .race-emblem {
  position: absolute;
  width: 42%;
  height: auto;
  aspect-ratio: 1;
  opacity: .4;
  filter: none;
  transition: none;
}
.community-section__insignia .race-emblem--bellato { top: 2%; left: 10%; }
.community-section__insignia .race-emblem--cora { top: 30%; right: 0; opacity: .36; }
.community-section__insignia .race-emblem--accretia { bottom: 0; left: 12%; opacity: .34; }
.footer {
  min-height: 80px;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 24px;
  padding: 16px max(clamp(28px, 3.5vw, 56px), calc((100% - 1080px) / 2));
  border-top: 0;
  background: #101115;
  font-size: 12px;
  letter-spacing: .075em;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: max(clamp(28px, 3.5vw, 56px), calc((100% - 1080px) / 2));
  left: max(clamp(28px, 3.5vw, 56px), calc((100% - 1080px) / 2));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(173,180,194,.16) 22%, rgba(173,180,194,.16) 78%, transparent);
  pointer-events: none;
}
.footer nav { justify-content: flex-end; gap: 4px 18px; }
.footer nav > * + * { position: relative; }
.footer nav > * + *::before {
  content: "";
  position: absolute;
  left: -9px;
  top: calc(50% - 5px);
  width: 1px;
  height: 10px;
  background: rgba(173,180,194,.17);
}
.footer > span:first-child { color: #9097a3; }
.footer > span:last-child { display: none; }
@media (max-width: 900px) {
  .community-section { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 36px 24px 40px; }
  .community-section__copy { grid-column: 1; grid-row: 2; justify-self: center; text-align: center; max-width: 560px; }
  .community-section h2 { font-size: clamp(30px, 5.5vw, 40px); }
  .community-section__copy > p:not(.eyebrow) { margin-inline: auto; }
  .community-section__actions { justify-content: center; }
  .community-section__insignia { grid-column: 1; grid-row: 1; display: flex; justify-content: center; gap: 26px; width: auto; height: 40px; }
  .community-section__insignia::before { display: none; }
  .community-section__insignia .race-emblem { position: static; width: 40px; height: 40px; opacity: .65; }
  .footer { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; padding: 18px 24px; text-align: center; }
  .footer nav { justify-content: center; }
}
@media (max-width: 480px) {
  .community-section { padding-inline: 20px; }
  .community-section .community__join { min-width: 0; width: min(100%, 300px); }
  .community-section__actions { width: 100%; }
  .footer { padding-inline: 20px; }
  .footer nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 0 12px; }
  .footer nav > * { justify-content: center; }
  .footer nav > * + *::before { display: none; }
}
/* /Community and footer v102 */
@media (max-width: 980px) {
  .command-deck::before { top: -56px; height: 56px; }
  .command-deck::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .faction-card__art, .faction-card__art::before, .faction-card__scene { transition: none; }
}

/* Native cursor frames retain the client's exact pixels and click hotspot. */
/* Responsive finishing pass: preserve the approved art files and all FX coordinates. */
@media (min-width: 981px) {
  .faction-panel, .faction-card__trigger {
    min-height: clamp(340px, calc(14vw + 180px), 520px);
  }
}
@media (min-width: 981px) and (max-width: 1280px) {
  .header, .header.is-scrolled { padding-left: 252px; gap: 16px; }
  .main-nav { gap: 20px; }
  .hero__content { width: 55%; padding-left: 36px; }
  .hero h1 { font-size: clamp(48px, 4.9vw, 63px); }
}
@media (min-width: 981px) and (max-aspect-ratio: 5/4) {
  /* Tall desktop windows follow the artwork/content, not the viewport height.
     The artwork contributes its real height; absolute weapon FX keep the same frame. */
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: 0;
  }
  .hero__art, .hero__content { grid-area: 1 / 1; align-self: start; }
  .hero__art {
    position: relative;
    inset: auto;
    justify-self: end;
    margin-top: calc(var(--header) - 12px);
  }
  .hero__content { padding-bottom: 64px; }
  .hero__index, .hero__serial { bottom: 22px; }
  .command-deck { margin-top: 0; }
}
@media (max-width: 980px) {
  .faction-panel, .faction-card, .faction-card:last-child, .faction-card__trigger {
    min-height: clamp(392px, calc(46.5vw + 246px), 720px);
  }
  .faction-card__copy { padding-inline: 16px; }
  .faction-card__copy > span:not(.faction-card__more) { font-size: 14px; line-height: 1.45; }
  .main-nav { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}
/* Mobile composition / v103. Desktop artwork and FX retain their own frame. */
@media (min-width: 641px) and (max-width: 980px) {
  .hero { min-height: 640px; }
  .hero__content {
    width: 68%;
    padding: calc(var(--header) + 56px) 0 72px 32px;
  }
  .hero h1 { font-size: clamp(46px, 7.5vw, 68px); }
  .hero__index { bottom: 30px; }
}
@media (max-width: 980px) {
  .mobile-faction-tabs { gap: 6px; margin-bottom: 12px; }
  .mobile-faction-tabs button { min-height: 48px; border-bottom-width: 2px; }
}
@media (max-width: 640px) {
  /* Art first, copy second: faces are no longer behind the mobile headline. */
  .hero { min-height: 0; padding-top: var(--header); background: #18191d; }
  .hero__art {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(220px, 67vw, 340px);
    background-position: 56% top;
    transform: none;
  }
  .hero__art::after {
    background: linear-gradient(180deg, rgba(24, 25, 29, .06) 30%, rgba(24, 25, 29, .3) 64%, #18191d 100%);
  }
  .hero__content { margin-top: -20px; padding: 0 20px 36px; }
  .hero__signature { display: none; }
  .hero__content > .eyebrow { margin-bottom: 14px; font-size: 10px; letter-spacing: .11em; }
  .hero h1 { font-size: clamp(34px, 11.4vw, 61px); letter-spacing: .025em; }
  .hero__lead { width: 100%; max-width: 36ch; margin: 18px 0 22px; font-size: 15px; }
  .hero .hero__start { min-height: 56px; }
  .command-deck { padding: 14px 20px 32px; }
  .deck-heading { height: 28px; }
  .faction-stack__header { min-height: 0; padding: 12px 0 18px; background: none; }
  .faction-panel { grid-template-columns: repeat(3, calc(100% - 16px)); }
  .war-section { padding: 36px 20px; }
  .war-scene__copy { padding: 8px 0 24px; }
  .war-scene + .war-scene { margin-top: 16px; }
  .dossier-modal { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .dossier-heading { padding: 16px 62px 12px 18px; }
  .dossier-heading p { margin-bottom: 6px; }
  .dossier-heading h2 { font-size: 20px; }
  .dossier-tabs button { min-height: 48px; }
  .dossier-visual { height: clamp(220px, 36svh, 320px); }
  .dossier-copy { padding: 22px 20px; }
  .dossier-copy h3 { margin-bottom: 14px; font-size: 32px; }
  .dossier-description { line-height: 1.7; }
}
/* /Mobile composition v103 */
.economy-motion .hero__ember:nth-child(even),
.economy-motion .hero__haze-drift { display: none; }
.economy-motion .hero__fx * { animation: none !important; }

@media (pointer: fine) {
  html.game-cursor,
  html.game-cursor * {
    cursor: var(--game-cursor), auto !important;
  }
  html.game-cursor :is(a[href], button, [role="button"], summary, select, label[for], input[type="button"], input[type="submit"], input[type="checkbox"], input[type="radio"]),
  html.game-cursor :is(a[href], button, [role="button"], summary, label[for]) * {
    cursor: var(--game-cursor-active), pointer !important;
  }
  html.game-cursor :is(input:not([type="button"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]), textarea, [contenteditable="true"]),
  html.game-cursor [contenteditable="true"] * {
    cursor: text !important;
  }
  html.game-cursor :is(:disabled, [aria-disabled="true"]),
  html.game-cursor :is(:disabled, [aria-disabled="true"]) * {
    cursor: not-allowed !important;
  }
}
