:root {
  --bg: #03070a;
  --bg-2: #071018;
  --surface: rgba(10, 18, 25, 0.78);
  --surface-strong: rgba(14, 24, 32, 0.94);
  --line: rgba(213, 230, 238, 0.18);
  --line-strong: rgba(247, 183, 49, 0.46);
  --text: #f5f8f8;
  --muted: #aab7bd;
  --soft: rgba(226, 239, 244, 0.72);
  --accent: #f7b731;
  --accent-2: #79cbe7;
  --danger: #c94d3e;
  --shadow: 0 34px 120px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(61, 119, 143, 0.18), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, #071016 46%, #020506 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.no-break {
  white-space: nowrap;
}

.shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.nav {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 50%;
  display: flex;
  width: min(1488px, calc(100% - 32px));
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(214, 231, 237, 0.12);
  padding: 16px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 154px;
  max-height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.5));
}

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  backdrop-filter: blur(18px);
}

.links a {
  position: relative;
  border-radius: 0;
  padding: 10px 2px;
  color: rgba(241, 247, 248, 0.76);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 160ms ease, color 160ms ease;
}

.links a:hover {
  background: transparent;
  color: #fff;
}

.links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transform: scaleX(0.42);
  transition: opacity 160ms ease, transform 160ms ease;
}

.links a:hover::after,
.links a:first-child::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.nav-steam,
.nav-icon {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 183, 49, 0.54);
  border-radius: 6px;
  background: rgba(8, 12, 16, 0.7);
  box-shadow: 0 0 26px rgba(247, 183, 49, 0.08);
  color: rgba(255, 248, 227, 0.94);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.nav-steam {
  padding: 0 18px;
}

.nav-icon {
  width: 38px;
  border-color: rgba(214, 231, 237, 0.22);
  color: rgba(230, 238, 240, 0.74);
  font-size: 9px;
}

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

.hero-bg,
.weather-lines {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  background:
    radial-gradient(circle at 52% 18%, rgba(121, 203, 231, 0.16), transparent 25%),
    linear-gradient(90deg, rgba(3, 7, 10, 0.96) 0%, rgba(3, 7, 10, 0.58) 48%, rgba(3, 7, 10, 0.72) 100%),
    linear-gradient(180deg, rgba(3, 7, 10, 0.08) 0%, rgba(3, 7, 10, 0.42) 58%, rgba(3, 7, 10, 1) 100%),
    url("./assets/library-hero.png") center / cover no-repeat;
}

.weather-lines {
  z-index: -1;
  opacity: 0.52;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(121, 203, 231, 0.22) 28.2%, transparent 28.7% 56%, rgba(247, 183, 49, 0.18) 56.2%, transparent 56.8%),
    repeating-linear-gradient(115deg, transparent 0 95px, rgba(235, 246, 247, 0.09) 96px, transparent 98px);
  mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 78%, transparent 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1488px, calc(100% - 32px));
  min-height: 100svh;
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 112px 0 22px;
}

.hero-command {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(410px, 0.72fr);
  gap: 46px;
  align-items: center;
}

.hero-copy {
  max-width: 650px;
}

.hud-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 10px;
  color: #f8fbfb;
  font-size: clamp(58px, 7vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow:
    0 28px 80px rgba(0, 0, 0, 0.76),
    0 0 2px rgba(255, 255, 255, 0.4);
}

h2 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(244, 249, 249, 0.86);
  font-size: 17px;
  line-height: 1.75;
}

.hero-kicker {
  margin-bottom: 16px;
  color: #f6b93b;
  font-size: 16px;
  font-weight: 840;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.mission-panel {
  display: grid;
  max-width: 640px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  border: 1px solid rgba(247, 183, 49, 0.28);
  background: rgba(247, 183, 49, 0.22);
}

.mission-panel span {
  min-height: 46px;
  background: rgba(3, 8, 12, 0.76);
  padding: 12px 14px;
  color: rgba(242, 248, 248, 0.88);
  font-size: 13px;
  font-weight: 760;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(9, 17, 24, 0.64);
  padding: 0 17px;
  color: #fff;
  font-size: 14px;
  font-weight: 820;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(247, 183, 49, 0.62);
  background: rgba(18, 28, 36, 0.84);
}

.button.primary {
  border-color: rgba(255, 221, 126, 0.64);
  background: linear-gradient(180deg, #ffd46f, #d8911a);
  color: #170e03;
  box-shadow: 0 18px 48px rgba(247, 183, 49, 0.22);
}

.steam-button {
  min-width: 220px;
  gap: 16px;
  justify-content: space-between;
}

.screen-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 232, 238, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.01)),
    rgba(8, 15, 21, 0.82);
  box-shadow: var(--shadow);
}

.screen-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(247, 183, 49, 0.2);
  border-radius: inherit;
  pointer-events: none;
}

.screen-bar {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(247, 183, 49, 0.22);
  background: rgba(4, 9, 13, 0.78);
  padding: 0 13px;
  color: rgba(230, 239, 242, 0.82);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.screen-card img {
  width: 100%;
  object-fit: cover;
}

.chapter-card {
  justify-self: end;
  width: min(100%, 540px);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.chapter-card-body {
  padding: 22px;
}

.chapter-card h2 {
  margin-bottom: 14px;
  font-size: 26px;
  line-height: 1.12;
}

.chapter-card img {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(247, 183, 49, 0.3);
  border-radius: 5px;
}

.chapter-card p:not(.hud-label) {
  margin: 16px 0 0;
  color: rgba(231, 240, 242, 0.78);
  font-size: 14px;
  line-height: 1.62;
}

.chapter-card .button {
  float: right;
  min-height: 42px;
  margin-top: 14px;
}

.command-dashboard,
.telemetry-dashboard {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.command-dashboard {
  grid-template-columns: minmax(280px, 1.06fr) minmax(260px, 0.72fr) minmax(360px, 1.1fr);
}

.telemetry-dashboard {
  grid-template-columns: minmax(260px, 1.15fr) minmax(260px, 0.92fr) minmax(260px, 1fr) minmax(260px, 0.84fr);
}

.dash-panel {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid rgba(217, 232, 238, 0.17);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(121, 203, 231, 0.08), transparent 38%),
    rgba(7, 14, 20, 0.82);
  box-shadow: inset 0 0 0 1px rgba(247, 183, 49, 0.06);
  padding: 24px;
}

.dash-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(121, 203, 231, 0.12), transparent 34%),
    repeating-linear-gradient(90deg, transparent 0 44px, rgba(255, 255, 255, 0.025) 45px, transparent 46px);
  opacity: 0.55;
}

.dash-panel > * {
  position: relative;
  z-index: 1;
}

.story-preview {
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(90deg, rgba(7, 14, 20, 0.94), rgba(7, 14, 20, 0.36)),
    url("./assets/site-base-overview.png") right center / cover no-repeat;
}

.story-preview h3 {
  max-width: 340px;
}

.story-preview p:not(.hud-label),
.radio-preview p {
  max-width: 330px;
  margin-bottom: 18px;
  color: rgba(232, 240, 242, 0.76);
  font-size: 14px;
  line-height: 1.65;
}

.story-preview a {
  color: #83cfff;
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
}

.loop-preview {
  display: grid;
  place-items: center;
  text-align: center;
}

.loop-preview .hud-label {
  justify-self: start;
  align-self: start;
}

.loop-ring {
  position: relative;
  display: grid;
  width: 168px;
  height: 168px;
  place-items: center;
  border: 1px solid rgba(247, 183, 49, 0.44);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(247, 183, 49, 0.16), transparent 38%),
    rgba(2, 7, 10, 0.22);
}

.loop-ring strong {
  color: rgba(244, 249, 249, 0.72);
  font-size: 14px;
  text-transform: uppercase;
}

.loop-ring span {
  position: absolute;
  color: #f6b93b;
  font-size: 10px;
  font-weight: 880;
  text-transform: uppercase;
}

.loop-ring span:nth-child(1) { top: 15px; left: 50%; transform: translateX(-50%); }
.loop-ring span:nth-child(2) { top: 54px; right: -18px; }
.loop-ring span:nth-child(4) { right: 8px; bottom: 29px; }
.loop-ring span:nth-child(5) { bottom: 29px; left: 0; }

.media-preview {
  min-height: 190px;
}

.media-strip {
  display: grid;
  grid-template-columns: 1.08fr 0.95fr 0.95fr;
  gap: 12px;
}

.media-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(214, 231, 237, 0.18);
  border-radius: 5px;
  object-fit: cover;
}

.media-strip img:first-child {
  border-color: rgba(247, 183, 49, 0.72);
  box-shadow: 0 0 26px rgba(247, 183, 49, 0.1);
}

.media-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.media-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(121, 203, 231, 0.2);
}

.media-dots .active {
  background: var(--accent);
  box-shadow: 0 0 18px rgba(247, 183, 49, 0.54);
}

.telemetry-dashboard .dash-panel {
  min-height: 170px;
}

.status-lines {
  display: grid;
  gap: 9px;
}

.status-lines span {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(213, 230, 238, 0.12);
  padding-bottom: 9px;
  color: rgba(235, 244, 246, 0.78);
  font-size: 12px;
  text-transform: uppercase;
}

.status-lines strong {
  color: #bde85e;
}

.weather-days {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.weather-days span {
  display: grid;
  min-height: 94px;
  place-items: center;
  border: 1px solid rgba(214, 231, 237, 0.14);
  border-radius: 5px;
  color: rgba(235, 244, 246, 0.78);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.weather-days b {
  color: #fff;
  font-size: 15px;
}

.weather-days .open {
  border-color: rgba(247, 183, 49, 0.75);
  color: var(--accent);
}

.route-preview {
  background:
    linear-gradient(90deg, rgba(7, 14, 20, 0.86), rgba(7, 14, 20, 0.3)),
    url("./assets/site-route-map.png") center / cover no-repeat;
}

.route-line {
  width: 72%;
  height: 2px;
  margin: 36px 0 26px 28px;
  background: linear-gradient(90deg, var(--accent), #79cbe7);
  transform: rotate(-42deg);
  box-shadow: 0 0 18px rgba(247, 183, 49, 0.35);
}

.route-preview ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-preview li {
  color: rgba(236, 245, 247, 0.84);
  font-size: 12px;
  font-weight: 720;
}

.radio-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.radio-head span {
  color: rgba(234, 242, 244, 0.76);
  font-size: 12px;
  text-transform: uppercase;
}

.radio-wave {
  height: 52px;
  margin: 10px 0 14px;
  background:
    linear-gradient(180deg, transparent 45%, rgba(121, 203, 231, 0.36) 46% 48%, transparent 49%),
    repeating-linear-gradient(90deg, rgba(121, 203, 231, 0.08) 0 3px, rgba(121, 203, 231, 0.8) 4px 5px, transparent 6px 13px);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.mountain-transmission {
  margin: 14px 0 0;
  border-top: 1px solid rgba(121, 203, 231, 0.16);
  padding-top: 12px;
  color: rgba(121, 203, 231, 0.82);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.34em;
  text-align: center;
  text-transform: uppercase;
}

.story-section,
.loop-section,
.screens,
.status {
  padding: 92px 0;
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
}

.section-head p:not(.hud-label),
.status p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 18px;
  align-items: stretch;
}

.story-frame img {
  aspect-ratio: 16 / 9;
}

.story-log {
  display: grid;
  gap: 12px;
}

.story-log article,
.loop-map article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(121, 203, 231, 0.08), transparent 42%),
    var(--surface);
  padding: 22px;
}

.story-log span,
.loop-map span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 860;
}

.story-log p,
.loop-map p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.loop-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: loop;
}

.loop-map article::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(247, 183, 49, 0.14);
  border-radius: 50%;
}

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

figure {
  margin: 0;
}

figure.wide {
  grid-column: span 2;
}

figure img {
  aspect-ratio: 16 / 9;
}

figcaption {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(247, 183, 49, 0.18);
  padding: 13px 14px 15px;
  color: rgba(226, 238, 242, 0.76);
  font-size: 13px;
  font-weight: 720;
}

.status {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-copy .button {
  margin-top: 28px;
}

.scope-list {
  display: grid;
  gap: 12px;
  align-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-list li {
  border-left: 2px solid var(--accent);
  background: rgba(10, 18, 25, 0.58);
  padding: 12px 16px;
  color: rgba(234, 243, 245, 0.8);
  font-size: 14px;
  line-height: 1.65;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.policy-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 520px;
}

.policy-hero .hero-bg {
  opacity: 0.68;
}

.policy-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 148px 0 76px;
}

.policy-hero h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(52px, 7vw, 96px);
}

.policy-date {
  margin: 24px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
  gap: 28px;
  padding: 72px 0 94px;
}

.policy-summary,
.policy-document {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(121, 203, 231, 0.08), transparent 36%),
    var(--surface);
}

.policy-summary {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 24px;
}

.policy-summary ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-summary li {
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  color: rgba(234, 243, 245, 0.82);
  font-size: 14px;
  line-height: 1.55;
}

.policy-document {
  padding: 14px 34px 34px;
}

.policy-document section {
  border-bottom: 1px solid rgba(213, 230, 238, 0.12);
  padding: 27px 0 28px;
}

.policy-document section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.policy-document h2 {
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.2;
}

.policy-document p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.82;
}

.policy-document p:last-child {
  margin-bottom: 0;
}

.policy-document a {
  color: #fff;
  font-weight: 760;
  text-decoration: underline;
  text-decoration-color: rgba(247, 183, 49, 0.58);
  text-underline-offset: 4px;
}

@media (max-width: 980px) {
  .nav {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
  }

  .links {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
  }

  .nav-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-command,
  .command-dashboard,
  .telemetry-dashboard,
  .story-grid,
  .status,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-summary {
    position: static;
  }

  .hero-inner {
    padding-top: 212px;
  }

  .chapter-card {
    justify-self: stretch;
    width: 100%;
    transform: none;
  }

  .mission-panel,
  .loop-map,
  .gallery {
    grid-template-columns: 1fr;
  }

  figure.wide {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .shell,
  .hero-inner,
  .nav {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    width: 138px;
  }

  .links a {
    padding: 7px 0;
    font-size: 11px;
  }

  .nav-steam {
    min-height: 34px;
    padding: 0 12px;
  }

  .nav-icon {
    display: none;
  }

  h1 {
    font-size: clamp(46px, 15vw, 66px);
  }

  h2 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .hero-kicker,
  .mountain-transmission {
    letter-spacing: 0.16em;
  }

  .hero-inner {
    padding-top: 214px;
  }

  .lead {
    font-size: 16px;
  }

  .dash-panel {
    padding: 18px;
  }

  .media-strip,
  .weather-days {
    grid-template-columns: 1fr;
  }

  .story-section,
  .loop-section,
  .screens,
  .status,
  .policy-layout {
    padding: 68px 0;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .policy-document {
    padding: 6px 22px 26px;
  }
}
