/* The four showcase backgrounds share the arrival scene's industrial palette.
   Artwork is decorative and stays behind the unchanged content and controls. */
.chapter-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #f7f3e9;
  color-scheme: dark;
  background: #08171e;
  --scene-muted: #bfcece;
  --scene-line: #c5e3dc45;
}
.chapter-scene:focus-visible { outline: none; }
.chapter-backdrop {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.chapter-scene::before,
.chapter-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.chapter-scene::before {
  z-index: -2;
  background: var(--scene-shade);
}
.chapter-scene::after {
  z-index: -1;
  background: linear-gradient(180deg, #08151bbd, transparent 18%, transparent 78%, #08151be6);
}

/* Companions stand in the preparation hangar, with a quiet wall behind copy. */
.crew.chapter-scene {
  --role-color: #ffb274;
  --scene-shade: linear-gradient(90deg, #06131b30 0%, #06131b45 44%, #06131ba8 65%, #06131bc9 100%);
}
.crew.chapter-scene[data-theme="scout"] { --role-color: #88e0d8; }
.crew.chapter-scene[data-theme="engineer"] { --role-color: #9acbfa; }
.crew.chapter-scene[data-theme="medic"] { --role-color: #dcb6fb; }
.crew.chapter-scene .section-heading .eyebrow,
.crew.chapter-scene .section-heading .eyebrow span,
.crew.chapter-scene .section-intro,
.crew.chapter-scene .body-copy { color: var(--scene-muted); }
.crew.chapter-scene .crew-figure::before {
  border-color: #b7d6cd38;
  box-shadow: 0 0 100px #7ad8dd0c, inset 0 0 90px #81ccd008;
}
.crew.chapter-scene .crew-figure::after {
  background: #01080bbd;
  filter: blur(16px);
}
.crew.chapter-scene .crew-figure > img { filter: drop-shadow(0 22px 22px #02090b9c); }
.crew.chapter-scene .figure-word {
  color: #d6e5e90b;
  -webkit-text-stroke: 1px #c8dfde2b;
}
.crew.chapter-scene .crew-figure figcaption { color: #bdd3ce; }
.chapter-scene .round-link { border-color: #c4dcd36b; }
.chapter-scene .round-link span { border-color: #c4dcd36b; }
.chapter-scene .round-link:hover span { background: #e3ae7130; }
.crew.chapter-scene .crew-tabs { border-color: #c5dfd95e; }
.crew.chapter-scene .crew-tabs button {
  color: #c9d8d7;
  background: #07182099;
  backdrop-filter: blur(8px);
}
.crew.chapter-scene .crew-tabs button[aria-selected="true"] {
  color: #fff5e7;
  background: linear-gradient(120deg, #70513aba, #1d3038c9);
  border-bottom-color: var(--role-color);
}
.crew.chapter-scene .crew-tabs button:hover { background: #34505bd9; }
.crew.chapter-scene .crew-tabs button[aria-selected="true"]:hover { background: #4d4c40e6; }

/* A single expedition route runs behind all four steps. */
.journey.chapter-scene {
  --scene-shade: linear-gradient(180deg, #06131b59, #06131b8c 45%, #06131ba8);
}
.journey.chapter-scene .chapter-backdrop { object-position: center 62%; }
.journey.chapter-scene .journey-track {
  background: #06171d85;
  border-color: #b7d6ce66;
  backdrop-filter: blur(3px);
}
.journey.chapter-scene .journey-track li + li { border-color: #b7d6ce38; }
.journey.chapter-scene .journey-track p,
.journey.chapter-scene .journey-head > p:last-child,
.journey.chapter-scene .journey-note { color: #c6d6d4; }
.journey.chapter-scene .step-symbol { color: #f6bb82; }
.journey.chapter-scene .journey-track a { border-color: #b7d6ce66; }

/* The original workshop model stays in front of a separate fabrication hall. */
.outpost.chapter-scene {
  --role-color: #efb27d;
  --scene-shade: linear-gradient(90deg, #06131bbd 0%, #06131b8c 42%, #06131b1f 68%, #06131b47);
}
.outpost.chapter-scene .chapter-backdrop { object-position: 60% center; }
.outpost.chapter-scene .outpost-copy .eyebrow,
.outpost.chapter-scene .outpost-copy .body-copy,
.outpost.chapter-scene .outpost-links small { color: var(--scene-muted); }
.outpost.chapter-scene .outpost-model > img { filter: drop-shadow(0 26px 24px #010a0eae); }
.outpost.chapter-scene .orbital-ring { border-color: #c7e2db38; }
.outpost.chapter-scene .orbital-ring::before { border-color: #c7e2db2e; }
.outpost.chapter-scene .outpost-model figcaption { color: #bdd3ce; }
.outpost.chapter-scene .model-label {
  color: #f4f0e5;
  border-color: #c1d6cd70;
  background: #0b202ae6;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px #0003;
}
.outpost.chapter-scene .model-label span { color: #15242a; background: #e5aa72; }
.outpost.chapter-scene .model-label:hover { background: #29434ded; }
.outpost.chapter-scene .outpost-links {
  border-color: #c1d6cd59;
  background: #0718209c;
  backdrop-filter: blur(8px);
}
.outpost.chapter-scene .outpost-links a + a { border-color: #c1d6cd38; }
.outpost.chapter-scene .outpost-links a:hover > span { color: #ffc794; }

/* Deep-space windows connect the relay to the wider Farstar world. */
.contact.chapter-scene {
  --scene-shade: linear-gradient(90deg, #06131b29 0%, #06131b66 47%, #06131b9c 65%, #06131b8c);
}
.contact.chapter-scene .chapter-backdrop { object-position: 40% center; }
.contact.chapter-scene .signal-ring { border-color: #c2e2e04d; }
.contact.chapter-scene .signal-ring-one { box-shadow: 0 0 65px #86e2df0a; }
.contact.chapter-scene .signal-art > img { filter: drop-shadow(0 25px 28px #0009); }
.contact.chapter-scene .signal-coordinate,
.contact.chapter-scene .contact-copy .eyebrow,
.contact.chapter-scene .contact-copy > p:not(.eyebrow),
.contact.chapter-scene .contact-topics { color: #c4dbd6; }
.contact.chapter-scene .contact-topics { border-color: #bed7d459; }

@media (max-width: 760px) {
  .crew.chapter-scene {
    --scene-shade: linear-gradient(180deg, #06131b8c 0%, #06131b26 36%, #06131bc4 65%, #06131bd9);
  }
  .crew.chapter-scene .chapter-backdrop { object-position: 36% center; }
  .crew.chapter-scene .crew-copy { text-shadow: 0 2px 12px #06131b; }
  .journey.chapter-scene {
    --scene-shade: linear-gradient(180deg, #06131b66, #06131b9c 40%, #06131ba8);
  }
  .journey.chapter-scene .chapter-backdrop { object-position: 55% center; }
  .outpost.chapter-scene {
    --scene-shade: linear-gradient(180deg, #06131bb8 0%, #06131b57 40%, #06131b24 62%, #06131bc9);
  }
  .outpost.chapter-scene .chapter-backdrop { object-position: 67% center; }
  .contact.chapter-scene {
    --scene-shade: linear-gradient(180deg, #06131ba8 0%, #06131b8c 46%, #06131b29 75%, #06131b8c);
  }
  .contact.chapter-scene .chapter-backdrop { object-position: 27% center; }
}
