/* Ordo Primus — site styles. Layout after the classic game landing page: fixed nav, full-screen hero, about,
   tabbed key features, news cards, media wall, community, footer. Colours from the game's factions. */

@font-face {
  font-family: "Cinzel Decorative";
  src: url("../assets/fonts/CinzelDecorative-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --akronian: #3380ff;
  --ryessa: #ff4d40;
  --seddak: #4de666;
  --ettarn: #ffcc33;
  --mannebor: #ff8c26;
  --privateer: #b08a5c;
  --red: #e0362c;
  --red-deep: #9e1e17;
  --ink: #e6ebf5;
  --muted: #9aa3b5;
  --steel: #c4cbd6;
  --line: rgba(160, 180, 220, 0.35);
  --bg: #080b13;
  --panel: #0c111c;
  --max: 1240px;
  --serif: "Roboto Slab", Georgia, serif;
  --display: "Cinzel", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 16px/1.75 var(--serif);
  /* A faint scratched-metal grain over deep space. */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.65 0 0 0 0 0.8 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 20% 30%, rgba(60, 40, 110, 0.18), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(20, 70, 110, 0.16), transparent 60%);
}
/* Width and height in the HTML reserve each image's shape while it loads; the CSS decides its size. */
img { max-width: 100%; width: auto; height: auto; display: block; }
a { color: inherit; }

/* ---------- Buttons ---------- */

.btn {
  --edge: rgba(200, 215, 245, 0.55);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-width: 170px; padding: 0.85em 2.2em;
  font: 700 0.95rem/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  color: #fff;
  /* The game's pointed button: ends sweep in to a point at the middle of each side. */
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
  transition: filter 0.15s, transform 0.15s;
  cursor: pointer; border: 0;
}
.btn:hover { filter: brightness(1.2); transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn--red { background: linear-gradient(#e8473b, var(--red-deep)); box-shadow: inset 0 0 0 1px rgba(255, 160, 150, 0.4); }
.btn--steel { background: linear-gradient(#2b3550, #121a2c); box-shadow: inset 0 0 0 1px var(--edge); color: var(--ink); }
.btn--ghost { background: rgba(10, 14, 24, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); color: var(--ink); }
.btn--small { min-width: 0; padding: 0.7em 1.8em; font-size: 0.8rem; }

/* ---------- Navigation ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 0 3vw; height: 72px;
  background: linear-gradient(rgba(5, 7, 12, 0.9), rgba(5, 7, 12, 0.55));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(160, 180, 220, 0.12);
}
.nav__mark {
  align-self: flex-start; display: grid; place-items: center;
  width: 52px; height: 86px; text-decoration: none;
  background: linear-gradient(#e9edf3, #8d96a6);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}
.nav__mark span { font: 700 1.05rem var(--display); color: #10151f; letter-spacing: 0.04em; margin-bottom: 14px; }
.nav__links { display: flex; gap: clamp(0.9rem, 1.4vw, 1.8rem); margin-left: auto; white-space: nowrap; }
.nav__links a, .nav__social a { text-decoration: none; }
.nav__links a { font: 600 0.82rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: #dfe5f1; }
.nav__links a:hover { color: #fff; text-shadow: 0 0 12px rgba(120, 170, 255, 0.8); }
.nav__social { display: flex; gap: 0.9rem; }
.nav__social svg { width: 20px; height: 20px; fill: #cfd6e4; }
.nav__social a:hover svg { fill: #fff; }
.nav__cta { min-width: 0; padding: 0.75em 1.8em; font-size: 0.82rem; white-space: nowrap; }
/* The theme music: a speaker, off (crossed) until clicked; waves while it plays. */
.nav__music { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; cursor: pointer;
  background: rgba(20, 26, 40, 0.6); border: 1px solid rgba(160, 180, 220, 0.28); transition: border-color 0.2s, box-shadow 0.2s; }
.nav__music svg { width: 24px; height: 24px; }
.nav__music-speaker { fill: #cfd6e4; }
.nav__music-waves, .nav__music-off { fill: none; stroke: #cfd6e4; stroke-width: 1.8; stroke-linecap: round; }
.nav__music-waves { display: none; }
.nav__music.is-playing .nav__music-waves { display: inline; stroke: #9fc2ff; }
.nav__music.is-playing .nav__music-off { display: none; }
.nav__music.is-playing { border-color: rgba(140, 180, 255, 0.7); box-shadow: 0 0 12px rgba(120, 170, 255, 0.45); }
.nav__music:hover { border-color: rgba(200, 215, 240, 0.7); }
.nav__music:hover .nav__music-speaker { fill: #fff; }
.nav__music:focus-visible { outline: 2px solid #9fc2ff; outline-offset: 2px; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: #dfe5f1; }

/* ---------- Ornamental divider ---------- */

.divider {
  width: min(var(--max), 90vw); height: 26px; margin: 0 auto;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='26' viewBox='0 0 88 26'%3E%3Cg fill='none' stroke='%23c9d3e6' stroke-width='1.4'%3E%3Cpath d='M44 2 55 13 44 24 33 13Z'/%3E%3Cpath d='M44 7 50 13 44 19 38 13Z'/%3E%3Cpath d='M30 13h-10M58 13h10'/%3E%3Ccircle cx='17' cy='13' r='2.5'/%3E%3Ccircle cx='71' cy='13' r='2.5'/%3E%3C/g%3E%3C/svg%3E") center / 88px 26px no-repeat,
    linear-gradient(90deg, transparent, rgba(201, 211, 230, 0.55) 15%, rgba(201, 211, 230, 0.55) 85%, transparent) center / 100% 1px no-repeat;
}

/* ---------- Hero ---------- */

.hero { position: relative; min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 110px 0 70px; }
.hero__art {
  position: absolute; inset: 0;
  background: url("../assets/img/hero.jpg") center 35% / cover no-repeat;
  animation: drift 40s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 40%, rgba(8, 11, 19, 0.55) 80%),
              linear-gradient(transparent 70%, var(--bg));
}
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.08) translate(-1.2%, -0.8%); } }
.hero__content { position: relative; z-index: 1; text-align: center; padding: 0 5vw; }
.hero .divider--hero { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1; }

/* The title, in worn ship steel, as on the game's title screen. */
.logo { margin: 0; font: 700 clamp(3rem, 9vw, 8.2rem)/1 "Cinzel Decorative", var(--display); letter-spacing: 0.02em; }
.logo span {
  background: linear-gradient(#ffffff 0%, #dbe1ea 20%, #f4f7fb 47%, #bfc6d1 50%, #a9b1bd 62%, #8a929c 80%, #7d7f84 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 2px #11141b) drop-shadow(0 0 1px #11141b) drop-shadow(5px 6px 6px rgba(0, 0, 0, 0.7));
}
.faction-bars { display: flex; gap: 6px; justify-content: center; margin: 0.6rem auto 1.4rem; }
.faction-bars i { width: clamp(46px, 7vw, 92px); height: 5px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.hero__tagline { margin: 0 0 0.9rem; font: 400 clamp(1rem, 1.6vw, 1.35rem) var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: #dfe5f1; text-shadow: 0 2px 8px #000; }
.hero__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__status { margin: 0 0 2.2rem; font: 300 1rem var(--serif); color: #c9d3e6; text-shadow: 0 2px 8px #000; }
.hero__status a { color: #fff; }
.hero__modes { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; justify-content: center; align-items: center; list-style: none; padding: 0; margin: 2.2rem 0 0; font: 600 0.78rem var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hero__modes li + li::before { content: "◆"; margin-right: 1.6rem; font-size: 0.55em; color: #5c6a85; vertical-align: middle; }
.hero__platform svg { width: 18px; height: 18px; fill: var(--muted); vertical-align: middle; }

/* ---------- Shared headings ---------- */

.eyebrow {
  display: flex; align-items: center; gap: 0.8rem; margin: 2.2rem 0 0.4rem;
  font: 700 0.72rem var(--display); letter-spacing: 0.32em; text-transform: uppercase; color: #dfe5f1;
}
.eyebrow::after { content: ""; flex: 0 0 140px; height: 1px; background: linear-gradient(90deg, rgba(201, 211, 230, 0.6), transparent); }
.title { margin: 0 0 1rem; font: 400 clamp(2.6rem, 5vw, 4.4rem)/1.02 var(--display); text-transform: uppercase; letter-spacing: 0.02em; color: #f2f5fa; }
.heading { display: flex; align-items: center; gap: 1.6rem; width: min(var(--max), 90vw); margin: 0 auto 2.4rem; font: 400 clamp(1.6rem, 3vw, 2.4rem) var(--display); letter-spacing: 0.4em; text-transform: uppercase; color: #f2f5fa; }
.heading::before, .heading::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.heading::after { background: linear-gradient(90deg, var(--line), transparent); }
.heading span { white-space: nowrap; }

/* ---------- About ---------- */

.about { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4vw; align-items: center; width: min(var(--max), 90vw); margin: 0 auto; padding: 4rem 0 6rem; }
.about__text p { color: #b9c1d0; max-width: 34em; }
.about__art { position: relative; min-height: 460px; }
.about__planet { position: absolute; right: -4%; top: 0; width: 72%; opacity: 0.95; filter: drop-shadow(0 0 40px rgba(40, 90, 200, 0.35)); }
.about__ship { position: absolute; left: 0; bottom: 0; width: 82%; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.7)); animation: hover 6s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-12px) rotate(-0.6deg); } }

/* The story: the art on the left (the Verlonian Brood Mother, a raider below it), the text on the right. */
.story { padding-top: 2rem; }
.story strong { color: #e4e9f2; font-weight: 600; }
.story__mother { position: absolute; left: -6%; top: 0; width: 100%; filter: drop-shadow(0 0 46px rgba(150, 110, 255, 0.35)); animation: hover 7s ease-in-out infinite; }
.story__raider { position: absolute; right: -6%; bottom: -6%; width: 46%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.7)); animation: hover 5s ease-in-out infinite reverse; }

/* ---------- Features ---------- */

.features { width: min(var(--max), 90vw); margin: 0 auto; padding: 3.5rem 0 6rem; }
.tabs { display: flex; justify-content: center; align-items: center; gap: 0.4rem; margin: 0 auto 3.5rem; padding: 0.6rem 1.5rem; width: fit-content; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; cursor: pointer; padding: 0.4rem 1.2rem; font: 400 1.25rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: #5f6a80; transition: color 0.2s; }
.tabs button:hover { color: #c9d3e6; }
.tabs button.is-active { color: #fff; text-shadow: 0 0 14px rgba(140, 180, 255, 0.6); }
.tabs .tabs__arrow { color: #dfe5f1; font-size: 1rem; }
.feature { display: none; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4vw; align-items: center; }
.feature.is-active { display: grid; animation: fade 0.45s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.feature__text p { color: #b9c1d0; }
.feature__nav { display: flex; gap: 0.6rem; margin-top: 1.6rem; }
.feature__nav button { width: 52px; height: 40px; border: 0; cursor: pointer; color: #dfe5f1; background: linear-gradient(#2b3550, #121a2c); box-shadow: inset 0 0 0 1px var(--line); }
.feature__nav button:hover { filter: brightness(1.25); }

/* The framed picture: deep space with the subject over it, edged like an armour plate. */
.feature__frame {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: url("../assets/img/stars.jpg") center / cover;
  box-shadow: 0 0 0 1px rgba(201, 211, 230, 0.35), 0 0 0 6px rgba(8, 11, 19, 0.9), 0 0 0 7px rgba(201, 211, 230, 0.18), 0 30px 60px rgba(0, 0, 0, 0.6);
  clip-path: polygon(0 18px, 18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px));
}
.feature__frame::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 50%, rgba(5, 7, 12, 0.6)); pointer-events: none; }
.frame--explore { background-position: 30% 40%; }
.frame--expand { background-position: 70% 20%; }
.frame--command { background-position: 10% 80%; }
.frame--battle { background-position: 50% 50%; }
.frame--ally { background-position: 90% 10%; }
.frame--contract { background-position: 60% 30%; }
.feature__frame img { position: absolute; }
.f-planet--a { width: 34%; right: 6%; top: 6%; }
.f-planet--b { width: 22%; left: 8%; top: 14%; }
.f-ship { width: 62%; left: 18%; bottom: 2%; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.7)); }
.f-planet--big { width: 82%; right: -14%; bottom: -26%; }
.f-planet--c { width: 26%; left: 8%; top: 10%; }
.f-fleet { filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.7)); }
.f-fleet--1 { width: 64%; left: 18%; top: 26%; }
.f-fleet--2 { width: 36%; left: 2%; top: 4%; }
.f-fleet--3 { width: 26%; right: 4%; top: 6%; }
.f-chart { width: 60%; left: 3%; top: 6%; transform: rotate(-3deg); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.7); }
.f-screen { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.f-ship--station { width: 50%; left: 6%; bottom: 6%; }
.f-ship--battle { width: 56%; right: 0; left: auto; bottom: 4%; }
.f-planet--d { width: 40%; left: -8%; top: -12%; }
.f-convoy { filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.7)); }
.f-convoy--transport { width: 48%; left: 2%; bottom: 6%; }
.f-convoy--guard { width: 24%; left: 30%; top: 26%; }
/* The game's hex panel over the scene, in the game's armour-plate frame. */
.f-gamepanel { position: absolute; width: 47%; right: 3%; top: 5%; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.75)); }
.f-ally--l { width: 56%; left: -2%; bottom: 8%; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.7)); }
.f-ally--r { width: 56%; right: -2%; top: 6%; transform: scaleX(-1); filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.7)); }

/* ---------- Factions ---------- */

.factions { padding: 4rem 0 5rem; }
.factions__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.2rem; width: min(var(--max), 90vw); margin: 0 auto; }
.faction {
  position: relative; padding: 1rem 1.2rem 1.4rem; text-align: center;
  background: linear-gradient(rgba(12, 17, 28, 0.6), rgba(5, 7, 12, 0.95));
  border-top: 3px solid var(--c);
  box-shadow: 0 0 0 1px rgba(201, 211, 230, 0.12), 0 -12px 30px -18px var(--c) inset;
  transition: transform 0.2s;
}
.faction:hover { transform: translateY(-6px); }
.faction img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.8)); }
.faction h3 { margin: 0.4rem 0 0; font: 700 1.3rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c); }
.faction__weapon { margin: 0.1rem 0 0.6rem; font: 700 0.7rem var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.faction p:last-child { margin: 0; font-size: 0.88rem; line-height: 1.6; color: #b0b8c8; }
.factions__more { width: min(var(--max), 90vw); margin: 2rem auto 0; text-align: center; font: 400 1.05rem var(--display); letter-spacing: 0.08em; color: var(--muted); }
.factions__more a { color: var(--privateer); text-decoration: none; border-bottom: 1px solid currentColor; }
.factions__more a:hover { color: #e3bd8a; }

/* ---------- Privateers ---------- */

.privateers { padding: 4rem 0 5rem; }
.privateers__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4vw; align-items: center; width: min(var(--max), 90vw); margin: 0 auto; }
.privateers__text p { color: #b9c1d0; max-width: 34em; }
.privateers__text strong { color: #e3bd8a; font-weight: 600; }
.privateers__text .title { color: #f0dcc0; }
.privateers__art { position: relative; min-height: 420px; }
.privateers__planet { position: absolute; right: -2%; top: 0; width: 58%; opacity: 0.9; filter: drop-shadow(0 0 40px rgba(176, 138, 92, 0.3)); }
.privateers__ship { position: absolute; left: 0; bottom: 0; width: 88%; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.8)); animation: hover 6.5s ease-in-out infinite; }
.dossier { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; width: min(var(--max), 90vw); margin: 3rem auto 0; }
.dossier__card {
  padding: 1.3rem 1.5rem 1.5rem;
  background: linear-gradient(rgba(24, 19, 14, 0.7), rgba(5, 7, 12, 0.95));
  border-top: 3px solid var(--privateer);
  box-shadow: 0 0 0 1px rgba(201, 211, 230, 0.1), 0 -12px 30px -18px var(--privateer) inset;
}
.dossier__card--mauler { border-top-color: #ff8a2e; box-shadow: 0 0 0 1px rgba(201, 211, 230, 0.1), 0 -12px 30px -16px #ff8a2e inset; }
.dossier__card--soon { border-top-style: dashed; }
.dossier__label { margin: 0; font: 700 0.66rem var(--display); letter-spacing: 0.28em; text-transform: uppercase; color: var(--privateer); }
.dossier__card h4 { margin: 0.3rem 0 0.6rem; font: 400 1.3rem var(--display); text-transform: uppercase; letter-spacing: 0.04em; color: #f2f5fa; }
.dossier__card p:last-child { margin: 0; font-size: 0.9rem; line-height: 1.65; color: #b0b8c8; }
.dossier__card b { color: #e3bd8a; font-weight: 600; }
.haulers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; width: min(var(--max), 90vw); margin: 2.4rem auto 0; }
.haulers figure { margin: 0; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; }
.haulers img { width: var(--s, 100%); margin: 0 auto; aspect-ratio: 3 / 2; object-fit: contain; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.8)); }
.haulers figcaption { font: 700 0.72rem var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }

/* ---------- News ---------- */

.news { padding: 4rem 0 3rem; }
.news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; width: min(var(--max), 90vw); margin: 0 auto; }
.card__label { margin: 0 0 0.3rem; font: 700 0.62rem var(--display); letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }
.card { display: flex; flex-direction: column; }
.card__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: url("../assets/img/stars.jpg") center / cover; }
.card__img img { position: absolute; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.7)); transition: transform 0.4s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__img--a { background-position: 80% 20%; }
.card__img--a img:first-child { width: 60%; right: 0; top: 4%; }
.card__img--a img:last-child { width: 58%; left: 0; bottom: 0; }
.card__img--b { background-position: 20% 50%; }
.card__img--b img { width: 75%; left: 12%; top: -4%; }
.card__img--v { background-position: 60% 40%; }
.card__img--v img { width: 70%; left: 15%; top: 6%; filter: drop-shadow(0 0 26px rgba(150, 110, 255, 0.4)); }
.card__img--c { background-position: 50% 70%; }
.card__img--c img { width: 80%; left: 10%; top: 8%; }
.card__img--d { background-position: 30% 30%; }
.card__img--d img { width: 84%; left: 8%; top: 10%; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.7); transform: rotate(-3deg); }
.card:hover .card__img--d img { transform: rotate(-3deg) scale(1.05); }
.card__img--e { background-position: 60% 40%; }
.card__img--e img:first-child { width: 62%; left: 2%; bottom: 0; }
.card__img--e img:last-child { width: 38%; right: 4%; top: 6%; }
.card__body { flex: 1; display: flex; flex-direction: column; padding: 1.6rem 1.8rem 1.8rem; background: rgba(0, 0, 0, 0.82); }
.card h3 { margin: 0; font: 400 1.45rem var(--display); text-transform: uppercase; letter-spacing: 0.04em; }
.card__date { margin: 0.2rem 0 0.9rem; font: 700 0.72rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.card__body p:not(.card__date) { flex: 1; margin: 0; font-size: 0.92rem; color: #b0b8c8; }
.more, .rule-link a { font: 700 0.75rem var(--display); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: #fff; }
.more { display: flex; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.more::before { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.more:hover, .rule-link a:hover { color: #9cc0ff; }
.rule-link { display: flex; align-items: center; gap: 1.2rem; width: min(var(--max), 90vw); margin: 2.4rem auto 0; }
.rule-link::before { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }

/* ---------- Media ---------- */

.media { padding: 4rem 0 4rem; }
.media__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tile { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(ellipse at center, #182238, #070a11 75%); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s, filter 0.4s; filter: brightness(0.82); }
.tile--ship img, .tile--planet img { object-fit: contain; padding: 6%; }
.tile--chart img { object-fit: contain; padding: 3%; }
.tile:hover img { transform: scale(1.06); filter: brightness(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(201, 211, 230, 0.08); pointer-events: none; }

/* ---------- Community ---------- */

.community { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4vw; width: min(var(--max), 90vw); margin: 0 auto; padding: 2rem 0 6rem; align-items: center; }
.community__text > p:not(.eyebrow) { color: #b9c1d0; max-width: 32em; }
.community__icons { display: flex; gap: 1.1rem; margin: 1.2rem 0 0.4rem; }
.community__icons svg { width: 28px; height: 28px; fill: #e6ebf5; }
.community__icons a:hover svg { fill: #9cc0ff; }
.newsletter input[type=email] { width: min(100%, 360px); padding: 0.75rem 0.9rem; border: 1px solid var(--line); background: rgba(3, 6, 12, 0.85); color: var(--ink); font: 400 0.9rem var(--serif); }
.newsletter__row { display: flex; gap: 1rem; align-items: center; margin-top: 0.8rem; font-size: 0.85rem; color: var(--muted); }
.newsletter__row label { display: flex; gap: 0.5rem; align-items: center; }
.newsletter__note { color: #8fe3a2; }
.community__art { position: relative; min-height: 560px; }
.community__planet { position: absolute; right: -10%; top: -4%; width: 100%; opacity: 0.95; }
.community__ship { position: absolute; left: -6%; bottom: 0; width: 78%; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.8)); animation: hover 7s ease-in-out infinite; }

/* ---------- Footer ---------- */

.footer { padding: 1rem 0 3rem; text-align: center; }
.footer__logo { margin: 2rem 0 0.4rem; font: 700 1.6rem "Cinzel Decorative", var(--display); letter-spacing: 0.04em; color: var(--steel); }
.footer__links { margin: 0; font: 600 0.78rem var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: #fff; }
.footer__legal { margin: 0.8rem 0 0; font-size: 0.78rem; color: #6c768a; }

/* ---------- Lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(2, 4, 8, 0.92); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; box-shadow: 0 30px 80px #000; }
.lightbox button { position: absolute; top: 18px; right: 26px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; }

/* ---------- Pages of their own (privacy, not found) ---------- */

.page { width: min(760px, 90vw); margin: 0 auto; padding: 4rem 0 2rem; }
.page__mark { display: inline-block; margin-bottom: 2.5rem; font: 700 1.4rem "Cinzel Decorative", var(--display); color: var(--steel); text-decoration: none; }
.page h1 { margin: 0 0 0.4rem; font: 400 clamp(1.8rem, 4vw, 2.6rem) var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: #f2f5fa; }
.page h2 { margin: 2.2rem 0 0.4rem; font: 600 1.1rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.page p, .page li { color: #c9d0dc; }
.page .eyebrow { margin-bottom: 0.4rem; }
.page--centred { text-align: center; padding-top: 18vh; }
.page--centred .btn { margin-top: 1.5rem; }

/* ---------- Smaller screens ---------- */

@media (max-width: 1200px) {
  /* Too narrow for every link and the button in one bar: the links fold into the menu button. */
  .nav { gap: 1rem; }
  .nav__toggle { display: block; }
  .nav__links, .nav__social { display: none; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; padding: 1.2rem 6vw; background: rgba(5, 7, 12, 0.97); gap: 1rem; }
}
@media (max-width: 1100px) {
  .factions__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .media__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav__cta { display: none; }
  .about, .feature.is-active, .community, .privateers__intro { grid-template-columns: 1fr; }
  .dossier { grid-template-columns: 1fr; }
  .haulers { grid-template-columns: 1fr 1fr; }
  .privateers__art { min-height: 300px; }
  .about__art { min-height: 300px; }
  .community__art { min-height: 340px; }
  .news__grid { grid-template-columns: 1fr; }
  .tabs { gap: 0; padding: 0.4rem 0.4rem; flex-wrap: wrap; width: auto; max-width: 100%; }
  .tabs .tabs__arrow { display: none; }
  .tabs button { font-size: 0.9rem; padding: 0.4rem 0.5rem; }
  .heading { letter-spacing: 0.2em; }
}
@media (max-width: 560px) {
  .factions__grid { grid-template-columns: 1fr 1fr; }
  .media__grid { grid-template-columns: 1fr 1fr; }
  .hero__modes li + li::before { margin-right: 0.8rem; }
  .heading { gap: 0.8rem; letter-spacing: 0.12em; }
  .heading span { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__art, .about__ship, .community__ship, .privateers__ship, .story__mother, .story__raider { animation: none; }
}
