:root {
  --ink: #080b09;
  --ink-2: #101410;
  --panel: #151a16;
  --line: rgba(231, 226, 212, 0.16);
  --paper: #f1eadb;
  --muted: #aeb4a8;
  --faint: #6f786f;
  --green: #6f8f67;
  --red: #bd4636;
  --amber: #d2a44f;
  --steel: #9da8a4;
  --shadow: rgba(0, 0, 0, 0.42);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(rgba(241, 234, 219, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 234, 219, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: 44px 44px;
  font-family: Arial, "Helvetica Neue", sans-serif;
  letter-spacing: 0;
}

img,
video,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(241, 234, 219, 0.14);
  background: rgba(8, 11, 9, 0.64);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  font-weight: 800;
  text-transform: uppercase;
}

.brand img {
  width: 38px;
  height: 38px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-copy {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 84px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--paper);
  border: 1px solid rgba(241, 234, 219, 0.24);
  border-radius: 6px;
  background: rgba(241, 234, 219, 0.06);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-size: 14px;
}

.nav-copy svg,
.button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 86svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 118px 28px 76px;
}

.hero-media,
.hero-scrim,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85) contrast(1.08);
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(8, 11, 9, 0.94), rgba(8, 11, 9, 0.72) 36%, rgba(8, 11, 9, 0.2) 78%),
    linear-gradient(0deg, var(--ink), transparent 34%);
}

.hero-grid {
  opacity: 0.2;
  background:
    linear-gradient(rgba(241, 234, 219, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 234, 219, 0.14) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(700px, 100%);
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.feature-band h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 112px;
}

.hero-lead {
  width: min(610px, 100%);
  margin: 22px 0 0;
  color: rgba(241, 234, 219, 0.88);
  font-size: 20px;
  line-height: 1.55;
}

.hero-lead strong {
  color: #fff;
}

.hero-actions,
.console-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  min-width: 172px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible,
.nav-copy:hover,
.nav-copy:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 14px 36px rgba(189, 70, 54, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #cf5140;
}

.button-ghost {
  color: var(--paper);
  border-color: rgba(241, 234, 219, 0.24);
  background: rgba(241, 234, 219, 0.06);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(241, 234, 219, 0.46);
}

.button-discord {
  color: #fff;
  background: #5865F2;
  border-color: #5865F2;
  box-shadow: 0 14px 36px rgba(88, 101, 242, 0.32);
}

.button-discord:hover,
.button-discord:focus-visible {
  background: #4752c4;
  border-color: #4752c4;
}

.launch-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  width: min(var(--max), calc(100% - 56px));
  margin: -34px auto 0;
  position: relative;
  z-index: 4;
  border: 1px solid rgba(241, 234, 219, 0.14);
  background: rgba(241, 234, 219, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.launch-strip div {
  min-height: 94px;
  padding: 20px;
  background: rgba(15, 19, 15, 0.96);
}

.launch-strip span {
  display: block;
  color: var(--faint);
  font-size: 12px;
  text-transform: uppercase;
}

.launch-strip strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
}

.section {
  width: min(var(--max), calc(100% - 56px));
  margin: 110px auto 0;
}

.manifest {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 48px;
  align-items: start;
}

.section-copy {
  position: sticky;
  top: 104px;
}

.section h2,
.feature-band h2 {
  font-size: 56px;
}

.section-copy p:not(.eyebrow),
.section-heading p,
.feature-band p,
.join-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.spec-grid article,
.ops-list article,
.timeline article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(241, 234, 219, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(241, 234, 219, 0.07), rgba(241, 234, 219, 0.025));
}

.spec-grid span,
.ops-list span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.spec-grid h3,
.ops-list h3,
.timeline h3,
.tab-panel h3 {
  margin: 18px 0 10px;
  font-size: 24px;
}

.spec-grid p,
.ops-list p,
.timeline p,
.tab-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.operations {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.territory {
  width: min(var(--max), calc(100% - 56px));
  margin: 110px auto 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: end;
}

.territory-copy p:not(.eyebrow),
.film-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.territory-copy h2,
.film-copy h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.territory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.territory-grid article {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(241, 234, 219, 0.14);
  border-radius: 8px;
  background: #111611;
}

.territory-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.08);
  transition: transform 420ms ease;
}

.territory-grid article:hover img {
  transform: scale(1.04);
}

.territory-grid article::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(8, 11, 9, 0.9), rgba(8, 11, 9, 0.08) 64%);
}

.territory-grid span,
.territory-grid h3 {
  position: absolute;
  left: 20px;
  right: 20px;
  z-index: 1;
}

.territory-grid span {
  bottom: 78px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.territory-grid h3 {
  bottom: 22px;
  margin: 0;
  font-size: 26px;
}

.operations-media {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(241, 234, 219, 0.14);
}

.operations-media img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.map-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(241, 234, 219, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 234, 219, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(8, 11, 9, 0.72), transparent 42%);
  background-size: 66px 66px, 66px 66px, auto;
  mix-blend-mode: multiply;
}

.ops-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.ops-list article {
  min-height: 156px;
}

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

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.timeline article {
  min-height: 246px;
  position: relative;
}

.timeline article::before {
  position: absolute;
  top: 23px;
  right: 23px;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(111, 143, 103, 0.15);
}

.timeline time {
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-band {
  width: min(var(--max), calc(100% - 56px));
  margin: 110px auto 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1px;
  border: 1px solid rgba(241, 234, 219, 0.14);
  background: rgba(241, 234, 219, 0.14);
}

.feature-band img,
.feature-band video {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.signal-film {
  width: min(var(--max), calc(100% - 56px));
  margin: 110px auto 0;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 32px;
  align-items: center;
}

.film-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(241, 234, 219, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(rgba(241, 234, 219, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 234, 219, 0.06) 1px, transparent 1px),
    #050705;
  background-size: 28px 28px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
}

.film-frame::before {
  display: block;
  height: 34px;
  padding: 10px 14px 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  content: "VOSTOK / SIGNAL_FEED / WIDE";
  border-bottom: 1px solid rgba(241, 234, 219, 0.12);
}

.film-frame video {
  width: 100%;
  aspect-ratio: 13 / 5;
  height: auto;
  object-fit: contain;
  background: #050705;
}

.vanilla-plus {
  width: min(var(--max), calc(100% - 56px));
  margin: 110px auto 0;
}

.vanilla-head {
  max-width: 860px;
  margin-bottom: 28px;
}

.vanilla-head h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.vanilla-head p:not(.eyebrow),
.vanilla-note {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.vanilla-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.vanilla-card {
  position: relative;
  min-height: 286px;
  padding: 22px 22px 20px;
  border: 1px solid rgba(241, 234, 219, 0.14);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(241, 234, 219, 0.07), rgba(241, 234, 219, 0.025));
  transition: transform 280ms ease, border-color 280ms ease, background 280ms ease;
}

.vanilla-card:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 234, 219, 0.28);
  background: linear-gradient(180deg, rgba(241, 234, 219, 0.11), rgba(241, 234, 219, 0.04));
}

.vanilla-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(241, 234, 219, 0.2);
  border-radius: 6px;
  color: var(--amber);
  background: rgba(241, 234, 219, 0.04);
}

.vanilla-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.vanilla-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-top: 14px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  border: 1px solid rgba(210, 164, 79, 0.42);
  background: rgba(210, 164, 79, 0.12);
}

.vanilla-tag--green {
  color: var(--green);
  border-color: rgba(111, 143, 103, 0.4);
  background: rgba(111, 143, 103, 0.12);
}

.vanilla-tag--red {
  color: var(--red);
  border-color: rgba(189, 70, 54, 0.42);
  background: rgba(189, 70, 54, 0.12);
}

.vanilla-card h3 {
  margin: 14px 0 10px;
  font-size: 24px;
}

.vanilla-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.vanilla-card li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  line-height: 1.5;
}

.vanilla-card li::before {
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  content: "";
  background: rgba(241, 234, 219, 0.58);
}

.vanilla-note {
  margin: 18px 0 0;
  padding-left: 14px;
  border-left: 2px solid rgba(241, 234, 219, 0.16);
}

.feature-band div {
  display: grid;
  align-content: center;
  padding: 38px;
  background: #121713;
}

.rules {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 42px;
  align-items: start;
}

.tabs {
  border: 1px solid rgba(241, 234, 219, 0.14);
  border-radius: 8px;
  background: rgba(241, 234, 219, 0.045);
}

.tab-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(241, 234, 219, 0.14);
  border-bottom: 1px solid rgba(241, 234, 219, 0.14);
}

.tab-buttons button {
  min-height: 58px;
  color: var(--muted);
  border: 0;
  background: #111611;
  cursor: pointer;
}

.tab-buttons button.is-active {
  color: #fff;
  background: var(--red);
}

.tab-panel {
  display: none;
  min-height: 220px;
  padding: 34px;
}

.tab-panel.is-active {
  display: block;
}

.rules-link {
  grid-column: 1 / -1;
  margin-top: 24px;
}

.gallery {
  width: min(var(--max), calc(100% - 56px));
  margin: 110px auto 0;
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 14px;
}

.gallery img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(241, 234, 219, 0.14);
}

.gallery img:nth-child(2) {
  height: 460px;
  margin-top: -50px;
}

.join {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: center;
  margin-bottom: 96px;
}

.join-console {
  overflow: hidden;
  border: 1px solid rgba(241, 234, 219, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(rgba(111, 143, 103, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 143, 103, 0.1) 1px, transparent 1px),
    #0f140f;
  background-size: 32px 32px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.console-top {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(241, 234, 219, 0.14);
  background: rgba(241, 234, 219, 0.04);
}

.console-top span {
  width: 12px;
  height: 12px;
  background: var(--red);
}

.join-console dl {
  margin: 0;
  padding: 28px 28px 6px;
}

.join-console dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  min-height: 58px;
  align-items: center;
  border-bottom: 1px solid rgba(241, 234, 219, 0.1);
}

.join-console dt {
  color: var(--faint);
  font-size: 12px;
  text-transform: uppercase;
}

.join-console dd {
  margin: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.console-actions {
  padding: 22px 28px 30px;
  margin-top: 0;
}

.site-footer {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(560px, 58vw, 760px);
  margin-top: 90px;
  padding: 360px 28px 38px;
  overflow: hidden;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.6;
  background: #050705;
}

.footer-scene {
  position: absolute;
  inset: 0;
}

.footer-scene::before,
.footer-scene::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
}

.footer-scene::before {
  background:
    linear-gradient(180deg, var(--ink) 0%, rgba(8, 11, 9, 0.72) 12%, rgba(8, 11, 9, 0.12) 38%, rgba(5, 7, 5, 0.38) 70%, #050705 100%),
    linear-gradient(90deg, rgba(5, 7, 5, 0.9) 0%, rgba(5, 7, 5, 0.18) 34%, rgba(5, 7, 5, 0.18) 66%, rgba(5, 7, 5, 0.88) 100%);
}

.footer-scene::after {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(241, 234, 219, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 234, 219, 0.14) 1px, transparent 1px);
  background-size: 64px 64px;
}

.footer-scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.08) brightness(0.9);
}

.footer-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(241, 234, 219, 0.14);
}

.site-footer strong {
  display: block;
  color: var(--paper);
  font-size: 18px;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  min-width: 180px;
  padding: 12px 18px;
  border: 1px solid rgba(241, 234, 219, 0.18);
  border-radius: 6px;
  color: var(--paper);
  background: rgba(15, 20, 15, 0.94);
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 600ms ease, transform 600ms ease;
}

/* === Animation polish === */

#hero-title .char {
  display: inline-block;
  will-change: transform, opacity;
}

.hero-content .eyebrow,
#hero-title,
.hero-lead,
.hero-actions .button {
  will-change: transform, opacity;
}

.site-nav {
  transition: background 280ms ease, border-color 280ms ease, backdrop-filter 280ms ease;
}

.site-nav.is-scrolled {
  background: rgba(8, 11, 9, 0.86);
  border-bottom-color: rgba(241, 234, 219, 0.2);
}

.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.button::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  transform: translateX(-120%);
  transition: transform 600ms ease;
  pointer-events: none;
}

.button:hover::before,
.button:focus-visible::before {
  transform: translateX(120%);
}

.button-primary {
  box-shadow: 0 14px 36px rgba(189, 70, 54, 0.28), 0 0 0 0 rgba(189, 70, 54, 0);
  transition: transform 220ms ease, background 220ms ease, box-shadow 320ms ease;
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 48px rgba(189, 70, 54, 0.42), 0 0 0 6px rgba(189, 70, 54, 0.14);
}

.button-ghost {
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(241, 234, 219, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.territory-grid article {
  transform-style: preserve-3d;
  will-change: transform;
}

.territory-grid img {
  will-change: transform;
}

.territory-grid article::before {
  position: absolute;
  inset: -1px;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, transparent 40%, rgba(189, 70, 54, 0.25) 100%);
  opacity: 0;
  transition: opacity 420ms ease;
  pointer-events: none;
}

.territory-grid article:hover::before {
  opacity: 1;
}

.spec-grid article,
.ops-list article {
  transition: transform 420ms ease, border-color 420ms ease, background 420ms ease;
  will-change: transform;
}

.spec-grid article:hover,
.ops-list article:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 234, 219, 0.28);
  background: linear-gradient(180deg, rgba(241, 234, 219, 0.12), rgba(241, 234, 219, 0.05));
}

.gallery img {
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 600ms ease;
  will-change: transform;
}

.gallery img:hover {
  transform: scale(1.025);
  filter: saturate(1) contrast(1.12);
}

.tab-buttons button {
  position: relative;
  transition: color 240ms ease, background 240ms ease;
}

.tab-buttons button::after {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 320ms cubic-bezier(0.6, 0, 0.2, 1);
}

.tab-buttons button:not(.is-active):hover::after,
.tab-buttons button:not(.is-active):focus-visible::after {
  transform: scaleX(1);
}

.console-top span {
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(189, 70, 54, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(189, 70, 54, 0.18); }
}

/* Film grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  animation: grain-shift 1.6s steps(6) infinite;
}

@keyframes grain-shift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-6%, 4%); }
  40%  { transform: translate(4%, -2%); }
  60%  { transform: translate(-2%, -4%); }
  80%  { transform: translate(3%, 5%); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .console-top span { animation: none; }
}

/* === Rules page === */

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

.nav-links a.is-current {
  color: var(--paper);
}

.nav-links a.is-current::after {
  transform: scaleX(1);
}

.hero--page {
  min-height: 56svh;
  padding: 124px 28px 64px;
  align-items: end;
}

.hero--page .hero-content {
  width: min(820px, 100%);
}

.hero--page h1 {
  font-size: 132px;
}

.hero--page .hero-lead {
  margin-top: 18px;
}

.rules-page {
  width: min(var(--max), calc(100% - 56px));
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}

.rules-toc {
  position: sticky;
  top: 100px;
  padding: 22px 0;
  border-top: 1px solid rgba(241, 234, 219, 0.14);
  border-bottom: 1px solid rgba(241, 234, 219, 0.14);
}

.rules-toc-label {
  margin: 0 0 14px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.rules-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
}

.rules-toc a {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 0;
  color: var(--muted);
  font-size: 14px;
  border-left: 2px solid transparent;
  padding-left: 14px;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease;
}

.rules-toc a em {
  color: var(--faint);
  font-style: normal;
  font-family: Impact, "Arial Narrow Bold", sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  transition: color 220ms ease;
}

.rules-toc a:hover {
  color: var(--paper);
  background: rgba(241, 234, 219, 0.04);
}

.rules-toc a.is-active {
  color: var(--paper);
  border-left-color: var(--red);
  background: rgba(189, 70, 54, 0.06);
}

.rules-toc a.is-active em {
  color: var(--red);
}

.rules-content {
  display: grid;
  gap: 100px;
  min-width: 0;
}

.rules-section {
  scroll-margin-top: 100px;
}

.rules-section-head {
  position: relative;
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(241, 234, 219, 0.14);
}

.rules-section-head .eyebrow {
  margin: 0 0 12px;
}

.rules-section-head h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 64px;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.rules-num {
  position: absolute;
  top: -22px;
  right: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 140px;
  line-height: 1;
  color: rgba(189, 70, 54, 0.16);
  pointer-events: none;
  letter-spacing: -0.02em;
}

.rules-stack {
  display: grid;
  gap: 16px;
}

.rule-card {
  position: relative;
  padding: 26px 28px 26px 32px;
  border: 1px solid rgba(241, 234, 219, 0.13);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(241, 234, 219, 0.06), rgba(241, 234, 219, 0.02));
  overflow: hidden;
  transition: transform 380ms ease, border-color 380ms ease, background 380ms ease;
  will-change: transform;
}

.rule-card::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  content: "";
  background: rgba(241, 234, 219, 0.16);
  transition: background 380ms ease, width 380ms ease;
}

.rule-card:hover {
  border-color: rgba(241, 234, 219, 0.24);
  background: linear-gradient(180deg, rgba(241, 234, 219, 0.09), rgba(241, 234, 219, 0.03));
  transform: translateY(-2px);
}

.rule-card--ban::before { background: var(--red); }
.rule-card--allow::before { background: var(--green); }

.rule-card--ban:hover::before,
.rule-card--allow:hover::before { width: 5px; }

.rule-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.rule-card-head h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.005em;
}

.rule-tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  color: var(--muted);
  background: rgba(241, 234, 219, 0.04);
}

.rule-tag--ban {
  color: var(--red);
  background: rgba(189, 70, 54, 0.1);
}

.rule-tag--allow {
  color: var(--green);
  background: rgba(111, 143, 103, 0.12);
}

.rule-tag--note {
  color: var(--amber);
  background: rgba(210, 164, 79, 0.1);
}

.rule-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.rule-card p:last-child {
  margin-bottom: 0;
}

.rule-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.rule-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.55;
}

.rule-list li::before {
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 2px;
  content: "";
  background: var(--steel);
}

.rule-card--ban .rule-list li::before { background: var(--red); }
.rule-card--allow .rule-list li::before { background: var(--green); }

.rule-side {
  margin: 12px 0 0 !important;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--muted);
  border-left: 2px solid rgba(241, 234, 219, 0.16);
  background: rgba(241, 234, 219, 0.03);
}

.rule-side--warn {
  border-left-color: var(--red);
  background: rgba(189, 70, 54, 0.08);
  color: rgba(241, 234, 219, 0.86);
}

.rule-punishment {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffd6cf;
  background: rgba(189, 70, 54, 0.18);
  border: 1px solid rgba(189, 70, 54, 0.42);
  border-radius: 4px;
}

.rule-punishment--soft {
  color: rgba(241, 234, 219, 0.88);
  background: rgba(241, 234, 219, 0.05);
  border-color: rgba(241, 234, 219, 0.18);
}

.rule-card--time {
  background: linear-gradient(180deg, rgba(111, 143, 103, 0.1), rgba(111, 143, 103, 0.02));
}

.raid-time {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 4px 0 14px;
  background: rgba(241, 234, 219, 0.14);
  border: 1px solid rgba(241, 234, 219, 0.14);
}

.raid-time div {
  padding: 16px 18px;
  background: rgba(15, 19, 15, 0.96);
}

.raid-time span {
  display: block;
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.raid-time strong {
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 26px;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.rules-cta {
  margin-top: 40px;
  padding: 38px;
  border: 1px solid rgba(241, 234, 219, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(rgba(189, 70, 54, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(189, 70, 54, 0.08) 1px, transparent 1px),
    rgba(15, 19, 15, 0.7);
  background-size: 28px 28px;
  text-align: center;
}

.rules-cta h3 {
  margin: 0 0 10px;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 36px;
  text-transform: uppercase;
}

.rules-cta p {
  margin: 0 auto 22px;
  max-width: 540px;
  color: var(--muted);
  line-height: 1.65;
}

.rules-cta .hero-actions {
  justify-content: center;
  margin-top: 0;
}

.site-footer--slim {
  min-height: auto;
  padding: 60px 28px 38px;
  margin-top: 100px;
  background: #050705;
}

.site-footer--slim .footer-inner {
  border-top: 1px solid rgba(241, 234, 219, 0.14);
}

@media (max-width: 1080px) {
  .rules-page {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .rules-toc {
    position: static;
    padding: 16px 0;
  }

  .rules-toc ol {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 6px;
  }

  .rules-toc a {
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 8px 14px;
  }

  .rules-toc a.is-active {
    border-left-color: transparent;
    border-bottom-color: var(--red);
  }

  .hero--page h1 {
    font-size: 96px;
  }

  .rules-num {
    font-size: 110px;
  }

  .rules-section-head h2 {
    font-size: 52px;
  }
}

@media (max-width: 720px) {
  .hero--page {
    padding: 100px 18px 50px;
  }

  .hero--page h1 {
    font-size: 64px;
  }

  .rules-page {
    width: calc(100% - 36px);
    margin-top: 56px;
    gap: 28px;
  }

  .rules-content {
    gap: 72px;
  }

  .rules-section-head h2 {
    font-size: 38px;
  }

  .rules-num {
    font-size: 80px;
    top: -10px;
  }

  .rule-card {
    padding: 22px 20px 22px 24px;
  }

  .rule-card-head h3 {
    font-size: 19px;
  }

  .raid-time {
    grid-template-columns: 1fr;
  }

  .rules-cta {
    padding: 26px 22px;
  }

  .rules-cta h3 {
    font-size: 28px;
  }
}

@media (max-width: 1080px) {
  .site-nav {
    grid-template-columns: 1fr auto auto;
  }

  .nav-toggle {
    justify-self: center;
    display: grid;
    gap: 6px;
    width: 42px;
    height: 40px;
    padding: 10px;
    border: 1px solid rgba(241, 234, 219, 0.2);
    border-radius: 6px;
    background: rgba(241, 234, 219, 0.05);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    height: 2px;
    background: var(--paper);
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 28px 20px;
    background: rgba(8, 11, 9, 0.96);
    border-bottom: 1px solid rgba(241, 234, 219, 0.14);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    min-height: 46px;
    display: flex;
    align-items: center;
  }

  .hero h1 {
    font-size: 82px;
  }

  .launch-strip,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .manifest,
  .operations,
  .rules,
  .join,
  .feature-band,
  .vanilla-grid,
  .territory,
  .signal-film {
    grid-template-columns: 1fr;
  }

  .section-copy {
    position: static;
  }

  .operations-media,
  .operations-media img {
    min-height: 440px;
  }

  .territory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-nav {
    padding: 12px 16px;
    min-height: 66px;
  }

  .brand span {
    font-size: 14px;
  }

  .nav-copy {
    min-width: 54px;
    padding: 0 10px;
    font-size: 12px;
  }

  .nav-copy svg {
    display: none;
  }

  .nav-links {
    top: 66px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero {
    min-height: 88svh;
    padding: 98px 18px 58px;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(8, 11, 9, 0.94), rgba(8, 11, 9, 0.72)),
      linear-gradient(0deg, var(--ink), transparent 34%);
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-lead,
  .section-copy p:not(.eyebrow),
  .section-heading p,
  .feature-band p,
  .join-copy p,
  .vanilla-head p:not(.eyebrow),
  .vanilla-note {
    font-size: 16px;
  }

  .hero-actions,
  .console-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .launch-strip,
  .spec-grid,
  .timeline,
  .tab-buttons,
  .gallery {
    grid-template-columns: 1fr;
  }

  .launch-strip,
  .section,
  .feature-band,
  .gallery,
  .vanilla-plus {
    width: calc(100% - 36px);
  }

  .section,
  .feature-band,
  .gallery,
  .vanilla-plus {
    margin-top: 72px;
  }

  .section h2,
  .feature-band h2,
  .vanilla-head h2,
  .territory-copy h2,
  .film-copy h2 {
    font-size: 38px;
  }

  .operations-media,
  .operations-media img {
    min-height: 330px;
  }

  .feature-band img,
  .feature-band video,
  .film-frame video,
  .gallery img,
  .gallery img:nth-child(2) {
    height: 280px;
    margin-top: 0;
  }

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

  .territory-grid article {
    min-height: 300px;
  }

  .feature-band div,
  .tab-panel,
  .join-console dl,
  .vanilla-card {
    padding: 24px;
  }

  .join-console dl div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }

  .site-footer {
    min-height: 520px;
    margin-top: 76px;
    padding: 300px 18px 34px;
  }

  .footer-scene {
    width: auto;
    margin-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

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