@import url("/studio-credit.css");

/* Landing page. Pictures come from the published game build through
   release-art.css; this file never names a build. */
:root {
  --ink: #050d1a;
  --navy: #091324;
  --line: rgba(231, 238, 248, 0.16);
  --text: #e7eef8;
  --soft: #cbd7e8;
  --glow: rgba(244, 189, 105, 0.22);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(20px, 6vw, 96px);
}
body {
  font-size: 17px;
  background: var(--ink);
}
p {
  text-wrap: pretty;
}
h1,
h2 {
  text-wrap: balance;
  margin: 0;
}
em {
  font-style: normal;
  color: var(--amber);
}
.skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 40;
  padding: 10px 14px;
  background: var(--amber);
  color: var(--navy);
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

.site-footer {
  max-width: none;
  margin: 0;
  padding: 44px var(--gutter) 56px;
  border: 0;
  background: var(--ink);
  font-size: 0.9rem;
}
.footer-line {
  margin: 0 0 18px;
  color: var(--soft);
}
.footer-line strong {
  color: var(--text);
}
.footer-main,
.footer-quiet {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.footer-quiet {
  margin-top: 16px;
  font-size: 0.82rem;
}
.footer-main a {
  color: var(--text);
}
.footer-quiet a {
  color: var(--muted);
}

main.home {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* A stage is one picture with its words: the first screen and the close. Its
   size is fixed so the picture can cover it exactly: art width = max(stage
   width, stage height x 16:9). The picture is never scaled up past that, so it
   stays as sharp as the published painting. */
.stage {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  container-type: size;
  isolation: isolate;
}
.stage--hero {
  height: max(620px, 100svh);
}
.stage--close {
  height: max(640px, 100svh);
}
.stage-art {
  --ax: 18%;
  position: absolute;
  left: var(--ax);
  top: 50%;
  width: max(100cqw, calc(100cqh * 1.7767));
  aspect-ratio: 1672 / 941;
  translate: calc(var(--ax) * -1) -50%;
  background: center / cover no-repeat;
  animation: art-in 1.4s var(--ease-out) both;
}
@keyframes art-in {
  from {
    opacity: 0;
  }
}

/* The loop sits over the still painting and fades in once it is drawing. */
.art-live {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}
.art-live.is-on {
  opacity: 1;
}

/* Words sit on the sky the picture leaves empty, with a soft shade for
   contrast instead of a box. */
.stage-copy,
.hero-copy {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  top: clamp(84px, 12svh, 132px);
  width: min(640px, 100% - 2 * var(--gutter));
  text-shadow: 0 1px 14px rgba(5, 13, 26, 0.55);
}
.stage-copy {
  top: clamp(72px, 10svh, 120px);
}
.stage::before,
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.stage--hero::before {
  background:
    radial-gradient(
      ellipse 58% 64% at 26% 40%,
      rgba(5, 13, 26, 0.66),
      transparent 72%
    ),
    linear-gradient(180deg, rgba(5, 13, 26, 0.5), transparent 22%);
}
/* The first picture melts into the page below it. */
.stage--hero::after {
  background: linear-gradient(0deg, var(--ink), transparent 24%);
}
/* The close fades up out of the page and back down into the footer. */
.stage--close::before {
  background:
    radial-gradient(
      ellipse 58% 64% at 26% 40%,
      rgba(5, 13, 26, 0.66),
      transparent 72%
    ),
    linear-gradient(180deg, var(--ink), transparent 30%);
}
.stage--close::after {
  background: linear-gradient(0deg, var(--ink), transparent 26%);
}
.hero-logo {
  display: none;
  width: clamp(240px, 41svh, 410px);
  aspect-ratio: 2020 / 779;
  background: center / contain no-repeat;
  margin: 0 0 clamp(8px, 2svh, 20px) -3%;
  filter: drop-shadow(0 6px 24px rgba(5, 13, 26, 0.45));
}
.hero-title-text {
  display: block;
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero-line {
  margin: 0;
  color: var(--text);
  font-size: clamp(22px, 2.6svh + 0.7vw, 34px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 17em;
}
.hero-sub {
  margin: 10px 0 0;
  color: #e6eefa;
  font-size: clamp(16px, 1.7svh + 0.4vw, 21px);
  line-height: 1.45;
}
.stage--close h2 {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  max-width: 11em;
}
.stage-copy .actions,
.hero-copy .actions,
.how .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: clamp(20px, 3.4svh, 34px) 0 0;
  gap: 18px 30px;
}

/* Play: a cut-corner plate with a steel rim, shaped like the game's own start
   button and drawn in CSS so it stays sharp at any size. The rim and the fill
   are clipped layers under the words, so the glow follows the cut corners. */
.button {
  --cut: 13px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 66px;
  padding: 0 38px 0 32px;
  border-radius: 0;
  background: none;
  color: #1b1305;
  font-family: "Sunward Display", Inter, system-ui, sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 238, 206, 0.55);
  filter: drop-shadow(0 0 22px rgba(244, 189, 105, 0.42))
    drop-shadow(0 12px 18px rgba(5, 13, 26, 0.55));
  transition:
    transform 0.25s var(--ease-out),
    filter 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
}
.button::before,
.button::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: polygon(
    var(--cut) 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut)),
    0 var(--cut)
  );
}
/* The rim: bright steel above, shadowed steel below. */
.button::before {
  inset: 0;
  background: linear-gradient(
    180deg,
    #fff6e2,
    #c9d3e0 42%,
    #6c7a8f 58%,
    #dfe6ef
  );
}
/* The fill, with a band of light that crosses it once on arrival and on hover. */
.button::after {
  --cut: 11px;
  inset: 3px;
  background:
    linear-gradient(
      105deg,
      transparent 38%,
      rgba(255, 255, 255, 0.6) 50%,
      transparent 62%
    )
    -150% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, #ffe4ad 0%, #f7c46f 47%, #e9993a 53%, #f3b45a 100%);
  transition: background-position 0.8s var(--ease-out);
  animation: sheen 1.5s var(--ease-io) 1.4s;
}
@keyframes sheen {
  to {
    background-position:
      150% 0,
      0 0;
  }
}
.button-icon {
  flex: none;
  width: 15px;
  height: 17px;
  background: currentcolor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transition: transform 0.25s var(--ease-out);
}
.button:hover {
  color: #1b1305;
  background: none;
  transform: translateY(-2px);
  filter: drop-shadow(0 0 32px rgba(244, 189, 105, 0.7))
    drop-shadow(0 16px 22px rgba(5, 13, 26, 0.55));
}
.button:hover::after {
  background-position:
    150% 0,
    0 0;
}
.button:hover .button-icon {
  transform: translateX(3px);
}
.button:active {
  transform: translateY(1px);
  filter: drop-shadow(0 0 12px rgba(244, 189, 105, 0.4))
    drop-shadow(0 4px 8px rgba(5, 13, 26, 0.6));
}
.button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}
/* A second path: the same plate in the ship's navy, so Play stays the brightest. */
.button--outline {
  --cut: 11px;
  min-height: 56px;
  padding: 0 30px;
  color: var(--text);
  font-size: 17px;
  text-shadow: none;
  filter: drop-shadow(0 10px 16px rgba(5, 13, 26, 0.5));
}
.button--outline::after {
  --cut: 9px;
  inset: 2px;
  background:
    linear-gradient(
      105deg,
      transparent 38%,
      rgba(159, 208, 255, 0.22) 50%,
      transparent 62%
    )
    -150% 0 / 250% 100% no-repeat,
    linear-gradient(180deg, #1a3157 0%, #0e1d37 52%, #132748 100%);
  animation: none;
}
.button--outline:hover {
  color: var(--amber);
  filter: drop-shadow(0 0 20px rgba(120, 190, 255, 0.32))
    drop-shadow(0 12px 18px rgba(5, 13, 26, 0.5));
}
.quiet {
  color: var(--text);
  font-weight: 600;
  text-decoration-color: rgba(231, 238, 248, 0.4);
}
.quiet:hover {
  color: var(--amber);
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: clamp(18px, 2.8svh, 28px) 0 0;
  padding: 0;
  list-style: none;
  color: #e6eefa;
  font-size: 15px;
}
.facts li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--amber);
  vertical-align: 2px;
}

/* Story: three short chapters, each with its own picture beside its words.
   They scroll like the rest of the page and fade up once as they arrive. */
.story {
  display: grid;
  gap: clamp(96px, 13vw, 180px);
  max-width: calc(1240px + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(40px, 6vw, 96px) var(--gutter) 0;
}
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
}
.chapter:nth-child(even) .chapter-copy {
  order: 2;
}
.chapter-no {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--text);
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.chapter-no b {
  color: var(--amber);
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.chapter-no::after {
  content: "";
  width: clamp(32px, 4vw, 64px);
  height: 1px;
  background: rgba(244, 189, 105, 0.7);
}
.chapter h2 {
  max-width: 8.5em;
  font-size: clamp(40px, 5.4vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.chapter-copy > p:not(.chapter-no) {
  max-width: 27em;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: clamp(17px, 1.5vw, 21px);
}

/* Chapter one: real gameplay from the first frame. The spear section's still
   sits behind its battle loop, which plays over it once it starts. */
.war {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--navy);
  box-shadow: 0 40px 120px -48px rgba(70, 130, 220, 0.55);
}
.war-shot {
  position: absolute;
  inset: 0;
  background:
    var(--shot-m1-spear, var(--art-mission-1, none)) center / cover no-repeat;
}
.war-clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Chapter two: Mission 1 in seven real stills, in the order you fly them. The
   pictures grow as the mission does: four small, two half width, then the boss
   across the whole width. Each one fades up as it scrolls in. */
.chapter--mission {
  grid-template-columns: 1fr;
}
.chapter.chapter--mission .chapter-copy {
  order: 0;
}
.reel {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.shot {
  position: relative;
  grid-column: span 3;
  aspect-ratio: 16 / 9;
  content-visibility: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #081428;
}
.shot--run,
.shot--minefield {
  grid-column: span 6;
}
.shot--pike {
  grid-column: 1 / -1;
  aspect-ratio: 2 / 1;
  border-color: rgba(255, 110, 88, 0.7);
  box-shadow: 0 30px 90px -40px rgba(255, 90, 60, 0.6);
}
.shot-art {
  position: absolute;
  inset: 0;
  background: center / cover no-repeat;
  transform: scale(1.06);
  transition: transform 1.6s var(--ease-out);
}
.shot.is-in .shot-art {
  transform: scale(1);
}
.shot--launch .shot-art {
  background-image: var(--shot-m1-launch, none);
}
.shot--first-contact .shot-art {
  background-image: var(--shot-m1-first-contact, none);
}
.shot--spear .shot-art {
  background-image: var(--shot-m1-spear, none);
}
.shot--lantern .shot-art {
  background-image: var(--shot-m1-lantern, none);
}
.shot--run .shot-art {
  background-image: var(--shot-m1-run, none);
}
.shot--minefield .shot-art {
  background-image: var(--shot-m1-minefield, none);
}
.shot--pike .shot-art {
  background-image: var(--shot-m1-pike, none);
}
.shot p {
  position: absolute;
  inset: auto 0 0;
  margin: 0;
  padding: clamp(28px, 4vw, 56px) clamp(12px, 1.4vw, 22px)
    clamp(10px, 1.2vw, 18px);
  background: linear-gradient(transparent, rgba(3, 8, 18, 0.92));
  color: var(--text);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.35;
}
.shot b {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 2px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.shot-no {
  font-size: 15px;
  letter-spacing: 0;
}
.shot--run p,
.shot--minefield p {
  font-size: clamp(15px, 1.3vw, 19px);
}
.shot--pike p {
  padding-top: clamp(60px, 9vw, 140px);
  background: linear-gradient(transparent, rgba(3, 8, 18, 0.96) 70%);
  font-size: clamp(17px, 1.7vw, 24px);
}
.shot--pike b {
  color: #ff9d83;
  font-size: 14px;
}
/* Small cards carry their name only; the line returns once they are wide. */
.shot:not(.shot--run, .shot--minefield, .shot--pike) p {
  font-size: 0;
}
.shot:not(.shot--run, .shot--minefield, .shot--pike) p b {
  margin: 0;
}

/* Chapter three, with the loadout loop: the clip, then the six upgrades Mission
   1 allows, each lighting as it lands in the clip. */
.loadout {
  margin: 0;
}
.loadout[hidden] {
  display: none;
}
.loadout-screen {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(120, 190, 255, 0.45);
  border-radius: 12px;
  background: #08142a;
}
.loadout-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.loadout-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.loadout-steps li {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(231, 238, 248, 0.14);
  border-radius: 8px;
  background: rgba(5, 13, 26, 0.7);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  transition:
    border-color 0.25s,
    background-color 0.25s,
    color 0.25s;
}
.loadout-steps b {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.loadout-steps li.is-on {
  border-color: rgba(244, 189, 105, 0.8);
  background: rgba(244, 189, 105, 0.14);
  color: var(--text);
}
.loadout-steps li.is-on b {
  color: var(--amber);
}
.loadout figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* Chapter three: the ship you fly, drawn as a spec sheet with side and top views. */
.spec {
  padding: 24px 26px 22px;
  border: 1px solid rgba(120, 190, 255, 0.45);
  border-radius: 12px;
  background:
    linear-gradient(rgba(120, 190, 255, 0.07) 1px, transparent 1px) 0 0 / 24px
    24px,
    linear-gradient(90deg, rgba(120, 190, 255, 0.07) 1px, transparent 1px) 0 0 /
    24px 24px,
    #08142a;
  box-shadow: 0 40px 120px -48px rgba(70, 130, 220, 0.55);
}
.spec-title {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  margin: 0 0 18px;
}
.spec-title b {
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.spec-title span {
  color: #9fd0ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.spec-views {
  display: grid;
  grid-template-columns: 1fr clamp(80px, 10vw, 140px);
  gap: 24px;
  align-items: center;
}
.spec-side {
  position: relative;
  margin: 34px 0 40px;
}
/* The Flight Deck render fills its frame, so it is shown whole. */
.side {
  display: block;
  aspect-ratio: 2 / 1;
  background: var(--art-ship-asterion, none) center / contain no-repeat;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5));
}
.spec-top {
  display: grid;
  gap: 8px;
  justify-items: center;
  color: #9fd0ff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.top {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  background: var(--art-ship-blueprint, none) center / contain no-repeat;
  mix-blend-mode: screen;
}
/* Each tag points at one part of the side view with a line and a dot. */
.tag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(5, 13, 26, 0.9);
  opacity: 0;
  transition: opacity 0.8s var(--ease-out) var(--d, 0s);
}
.chapter.is-in .tag {
  opacity: 1;
}
.tag::before,
.tag::after {
  content: "";
  position: absolute;
  left: 50%;
}
.tag::before {
  width: 1px;
  height: var(--len, 34px);
  background: rgba(244, 189, 105, 0.8);
}
.tag::after {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(244, 189, 105, 0.25);
}
.tag--up {
  translate: -50% calc(-100% - var(--len, 34px));
}
.tag--up::before {
  top: 100%;
}
.tag--up::after {
  top: calc(100% + var(--len, 34px));
  translate: -50% -50%;
}
.tag--down {
  translate: -50% var(--len, 34px);
}
.tag--down::before {
  bottom: 100%;
}
.tag--down::after {
  bottom: calc(100% + var(--len, 34px));
  translate: -50% 50%;
}
.tag--wings {
  --x: 21%;
  --y: 14%;
}
.tag--canopy {
  --x: 67%;
  --y: 37%;
  --d: 0.6s;
}
.tag--engine {
  --x: 8%;
  --y: 62%;
  --len: 64px;
  --d: 1.1s;
}

/* Sections below the story: big headings, plenty of room, each fading up as it
   arrives. */
.how,
.road,
.beta,
.bible,
.cloud,
.faq {
  padding: clamp(88px, 14vw, 190px) var(--gutter) 0;
  max-width: calc(1240px + 2 * var(--gutter));
  margin: 0 auto;
}
.bible {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
}
.bible-study {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 740px) {
  .bible {
    grid-template-columns: 1fr;
  }
  .bible-study {
    width: min(80%, 360px);
    justify-self: center;
  }
}
.kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 clamp(16px, 2vw, 26px);
  color: var(--amber);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: clamp(32px, 4vw, 64px);
  height: 1px;
  background: currentcolor;
}
.how h2,
.road h2,
.beta h2,
.bible h2,
.cloud h2,
.faq h2 {
  font-size: clamp(42px, 6.8vw, 100px);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 0.98;
  max-width: 11em;
}
.lede {
  max-width: 34em;
  margin: clamp(18px, 2vw, 28px) 0 0;
  color: var(--soft);
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.5;
}
body[data-reveal] [data-reveal]:not(.is-in) {
  opacity: 0;
  translate: 0 36px;
}
[data-reveal] {
  transition:
    opacity 1s var(--ease-out),
    translate 1.2s var(--ease-out);
}

.road-shot {
  margin: clamp(32px, 4vw, 56px) 0 0;
}
.road-shot[hidden] {
  display: none;
}
.road-shot-art {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--shot, none) center / cover no-repeat;
  background-color: var(--navy);
  animation: shot-in 0.7s var(--ease-out) both;
}
@keyframes shot-in {
  from {
    opacity: 0;
    scale: 1.03;
  }
}
.road-shot figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  padding: 20px 2px 0;
}
.road-no {
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.2em;
  font-size: 14px;
}
.road-name {
  font-size: clamp(26px, 3.6vw, 52px);
  letter-spacing: -0.03em;
}
.chip {
  margin-left: auto;
  padding: 5px 12px;
  border: 1px solid rgba(244, 189, 105, 0.6);
  border-radius: 999px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chip[data-status="live"] {
  background: var(--amber);
  color: var(--navy);
}
.chip[data-status="planned"] {
  border-color: var(--line);
  color: var(--muted);
}
/* One card per mission: a real gameplay frame, then the number and name. */
.road-line {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(150px, 15vw, 200px);
  gap: 14px;
  margin: 22px 0 0;
  padding: 0 0 14px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.road-line li {
  scroll-snap-align: start;
}
.road-line button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--navy);
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}
.road-line .thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0a1730;
  opacity: 0.72;
  transition: opacity 0.25s var(--ease-out);
}
.road-line button span {
  display: block;
  padding: 10px 12px 0;
  font-size: 12px;
  letter-spacing: 0.16em;
}
.road-line li[data-status="live"] button span {
  color: var(--amber);
}
.road-line button b {
  display: block;
  padding: 3px 12px 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}
.road-line button:hover,
.road-line button[aria-pressed="true"] {
  color: var(--text);
  border-color: var(--amber);
}
.road-line button:hover .thumb,
.road-line button[aria-pressed="true"] .thumb {
  opacity: 1;
}
.road-line button[aria-pressed="true"] {
  box-shadow: 0 0 0 4px var(--glow);
}

/* How it plays: the real game, then three short lines about what you do. */
.screen {
  margin: clamp(32px, 4vw, 56px) 0 0;
}
.screen[hidden] {
  display: none;
}
.screen-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #06101f;
  box-shadow: 0 40px 120px -48px rgba(70, 130, 220, 0.55);
}
.screen-media video,
.screen-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.screen figcaption {
  padding: 14px 2px 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.moves {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px clamp(24px, 3vw, 48px);
  margin: clamp(28px, 3vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}
.moves li {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 18px;
  line-height: 1.6;
}
.moves strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.02em;
}
.moves kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 2px 6px;
  margin: 0 3px 0 0;
  border: 1px solid #506480;
  border-bottom-width: 2px;
  border-radius: 4px;
  background: #0d1c33;
  color: var(--text);
  font: 600 13px / 1.5 inherit;
  text-align: center;
}
.fit {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0;
  margin: clamp(32px, 4vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  border-top: 1px solid var(--line);
}
.steps li {
  position: relative;
  padding: 24px 32px 8px 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.55;
  counter-increment: step;
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 12px;
  color: var(--amber);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.steps strong {
  color: var(--text);
}
.beta .actions,
.bible .actions,
.cloud .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin: 30px 0 0;
}

/* Built in public: the yard painting, with the heading on its dark left side.
   Only light the painting already has moves: a welding flicker, the crane's
   lamps and the tester's screen. */
.yard {
  position: relative;
  display: grid;
  align-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #050d1a;
}
.yard-art {
  position: absolute;
  inset: 0;
  background: var(--art-yard, none) center / cover no-repeat;
}
.yard-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 13, 26, 0.9) 0%,
    rgba(5, 13, 26, 0.55) 30%,
    transparent 48%
  );
}
.yard-copy {
  position: relative;
  z-index: 1;
  max-width: min(36%, 30em);
  padding: 0 0 0 clamp(24px, 4vw, 64px);
}
.yard-copy h2 {
  font-size: clamp(36px, 4.6vw, 72px);
}
.yard-copy .lede {
  font-size: clamp(16px, 1.3vw, 19px);
}
.yard-light {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--r);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, transparent 65%);
  mix-blend-mode: screen;
  opacity: 0;
}
.yard-light--weld {
  --x: 54.5%;
  --y: 54%;
  --r: 7%;
  --c: rgba(190, 230, 255, 0.95);
}
.yard-light--deck {
  --x: 56%;
  --y: 17%;
  --r: 14%;
  --c: rgba(255, 196, 110, 0.55);
}
.yard-light--screen {
  --x: 89%;
  --y: 76%;
  --r: 22%;
  --c: rgba(110, 170, 255, 0.35);
}
.beta.is-in .yard-light--weld {
  animation: weld 2.6s steps(1) infinite;
}
.beta.is-in .yard-light--deck {
  animation: lamp 6s ease-in-out infinite alternate;
}
.beta.is-in .yard-light--screen {
  animation: lamp 3.4s ease-in-out 1s infinite alternate;
}
@keyframes weld {
  0%,
  40% {
    opacity: 0;
  }
  42% {
    opacity: 1;
  }
  46% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.9;
  }
  56% {
    opacity: 0.5;
  }
  62% {
    opacity: 1;
  }
  70%,
  100% {
    opacity: 0;
  }
}
@keyframes lamp {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 0.85;
  }
}
.beta > .steps {
  max-width: 60em;
}

/* Your service record: the game's Sunburst medals hang from their ribbons and
   swing to rest as the section arrives; the deed ribbons sit on a bar below.
   Every piece opens its card with the fleet's words, as it does in the game. */
.cloud {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.cloud h2 {
  font-size: clamp(40px, 5.4vw, 80px);
}
.cloud-copy {
  grid-column: 1;
}
.record {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.cloud-steps {
  grid-column: 1;
  align-self: start;
}
.cloud .steps {
  grid-template-columns: 1fr;
  gap: 18px;
}
.record {
  position: relative;
  padding: clamp(24px, 3vw, 40px) clamp(16px, 2.4vw, 36px)
    clamp(20px, 2.4vw, 32px);
  border: 1px solid rgba(244, 189, 105, 0.35);
  border-radius: 14px;
  background:
    radial-gradient(
      ellipse at 50% 30%,
      rgba(37, 74, 120, 0.45),
      transparent 70%
    ),
    #07111f;
}
.medals,
.ribbons {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.medals {
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: clamp(6px, 1.2vw, 18px);
  align-items: start;
}
.ribbons {
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 28px);
  margin-top: clamp(18px, 2.4vw, 30px);
  padding-top: clamp(16px, 2vw, 26px);
  border-top: 1px solid rgba(244, 189, 105, 0.25);
}
.award {
  position: relative;
}
.award-piece {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--soft);
  font: inherit;
  cursor: help;
}
.award-art {
  display: block;
  width: 100%;
  aspect-ratio: 593 / 972;
  background: center / contain no-repeat;
  transform-origin: 50% 2%;
}
.medals .award:not(.award--gold) {
  margin-top: 12%;
}
.award--bronze .award-art {
  background-image: var(--art-sunburst-bronze, none);
}
.award--silver .award-art {
  background-image: var(--art-sunburst-silver, none);
}
.award--gold .award-art {
  position: relative;
  background-image: var(--art-sunburst-gold, none);
}
.ribbons .award-art {
  aspect-ratio: 494 / 169;
  max-width: 260px;
  transform-origin: 50% 50%;
}
.award--no-life-lost .award-art {
  background-image: var(--art-ribbon-no-life-lost, none);
}
.award--restraint .award-art {
  background-image: var(--art-ribbon-restraint, none);
}
.award-name {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.award--gold .award-name {
  color: var(--amber);
}
/* The glint: a band of light crossing the gold, cut to the medal's shape. */
.award--gold .award-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      transparent 40%,
      rgba(255, 248, 225, 0.85) 50%,
      transparent 60%
    )
    -150% 0 / 250% 100% no-repeat;
  mask: var(--art-sunburst-gold, none) center / contain no-repeat;
  mix-blend-mode: overlay;
  opacity: 0;
}
.cloud.is-in .medals .award-art {
  animation: hang 2.4s var(--ease-out) both;
}
.cloud.is-in .award--bronze .award-art {
  animation-delay: 0.1s;
}
.cloud.is-in .award--silver .award-art {
  animation-delay: 0.35s;
}
.cloud.is-in .award--gold .award-art {
  animation-delay: 0.6s;
}
.cloud.is-in .award--gold .award-art::after {
  animation: glint 1.4s ease-in-out 2.4s both;
}
.cloud.is-in .ribbons .award-art {
  animation: pin 0.7s var(--ease-out) both;
}
.cloud.is-in .award--no-life-lost .award-art {
  animation-delay: 1.6s;
}
.cloud.is-in .award--restraint .award-art {
  animation-delay: 1.85s;
}
@keyframes hang {
  0% {
    opacity: 0;
    transform: translateY(-14%) rotate(9deg);
  }
  25% {
    opacity: 1;
    transform: translateY(0) rotate(-6deg);
  }
  45% {
    transform: rotate(3.5deg);
  }
  65% {
    transform: rotate(-1.6deg);
  }
  82% {
    transform: rotate(0.6deg);
  }
  100% {
    transform: none;
  }
}
@keyframes glint {
  0% {
    opacity: 1;
    background-position: -150% 0;
  }
  100% {
    opacity: 1;
    background-position: 250% 0;
  }
}
@keyframes pin {
  from {
    opacity: 0;
    transform: scale(1.12);
  }
}
/* The card: what the piece is, what earns it, and the fleet's words. */
.lore {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 5;
  display: grid;
  gap: 6px;
  width: min(300px, 80vw);
  padding: 14px 16px;
  border: 1px solid rgba(244, 189, 105, 0.5);
  border-radius: 10px;
  background: rgba(5, 13, 26, 0.97);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  color: var(--soft);
  font-size: 15px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  translate: -50% 6px;
  transition:
    opacity 0.2s,
    translate 0.2s;
}
.medals .lore {
  top: 40%;
  bottom: auto;
}
.lore small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lore b {
  color: var(--text);
  font-size: 17px;
}
.award--gold .lore b {
  color: var(--amber);
}
.award--silver .lore b {
  color: #dfe7f2;
}
.award--bronze .lore b {
  color: #d99a62;
}
.lore q {
  color: var(--text);
  font-style: italic;
}
.award:hover .lore,
.award-piece:focus-visible + .lore,
.award.is-open .lore {
  opacity: 1;
  translate: -50% 0;
}
.award:first-child .lore {
  left: 0;
  translate: 0 6px;
}
.award:last-child .lore {
  left: auto;
  right: 0;
  translate: 0 6px;
}
.award:first-child:hover .lore,
.award:first-child .award-piece:focus-visible + .lore,
.award:first-child.is-open .lore,
.award:last-child:hover .lore,
.award:last-child .award-piece:focus-visible + .lore,
.award:last-child.is-open .lore {
  translate: 0 0;
}

.faq details {
  border-bottom: 1px solid var(--line);
  max-width: 48em;
}
.faq h2 {
  margin-bottom: clamp(20px, 3vw, 40px);
}
.faq summary {
  padding: 22px 0;
  min-height: 44px;
  font-weight: 600;
  font-size: clamp(19px, 1.8vw, 24px);
  cursor: pointer;
  list-style-position: outside;
}
.faq summary:hover {
  color: var(--amber);
}
.faq details p {
  margin: 0 0 24px;
  color: var(--soft);
  font-size: 18px;
}

@media (max-width: 900px) {
  .chapter,
  .cloud {
    grid-template-columns: 1fr;
  }
  .cloud-copy,
  .record,
  .cloud-steps {
    grid-column: 1;
    grid-row: auto;
  }
  .yard {
    aspect-ratio: auto;
    align-items: end;
  }
  .yard-art {
    position: relative;
    aspect-ratio: 16 / 9;
  }
  .yard-art::after {
    background: linear-gradient(transparent 60%, rgba(5, 13, 26, 0.8));
  }
  .yard-copy {
    max-width: none;
    padding: 22px clamp(18px, 4vw, 32px) 26px;
  }
  .chapter:nth-child(even) .chapter-copy {
    order: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --hero-art-height: max(clamp(320px, 56svh, 90vw), calc(100vw * 941 / 1672));
  }
  /* Phones: the picture sits above the words so nothing covers the ship. */
  .stage .stage-art {
    --ax: 8%;
    top: 0;
    width: calc(62cqh * 1.7767);
    translate: calc(var(--ax) * -1) 0;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
    mask-image: linear-gradient(180deg, #000 70%, transparent);
  }
  .stage--close .stage-art {
    width: calc(56cqh * 1.7767);
  }
  .stage--hero::before,
  .stage--close::before {
    background: linear-gradient(180deg, rgba(5, 13, 26, 0.5), transparent 18%);
  }
  .stage--hero::after {
    background: linear-gradient(0deg, var(--ink), transparent 60%);
  }
  .stage--close .stage-copy {
    top: auto;
    bottom: 28px;
  }
  .stage--hero {
    height: auto;
    container-type: inline-size;
  }
  .stage--hero .stage-art {
    --ax: 22%;
    width: calc(var(--hero-art-height) * 1672 / 941);
  }
  .hero-copy {
    position: relative;
    inset: auto;
    margin-inline: auto;
    padding-bottom: 28px;
  }
  /* The title shares the painting's height. The pitch flows below the ship. */
  .hero-copy h1 {
    min-height: var(--hero-art-height);
    padding-top: clamp(72px, 10svh, 96px);
    text-align: center;
  }
  .hero-logo {
    width: min(300px, 78%);
    margin: 0 auto;
  }
  .hero-copy .actions .button,
  .stage-copy .actions .button,
  .how .actions .button {
    flex: 1 1 100%;
  }
  .button {
    min-height: 60px;
    font-size: 19px;
  }
  .road-line {
    grid-auto-columns: 44vw;
  }
  .shot {
    grid-column: span 6;
  }
  .loadout-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .shot--run,
  .shot--minefield,
  .shot--pike {
    grid-column: 1 / -1;
  }
  .spec {
    padding: 14px 16px 12px;
  }
  .spec-views {
    grid-template-columns: 1fr 56px;
    gap: 12px;
  }
  .spec-side {
    margin: 30px 0 34px;
  }
  .tag {
    font-size: 11px;
  }
}

@media (max-width: 359px) {
  /* Allow for the Menu button wrapping onto a second row. */
  .hero-copy h1 {
    padding-top: 110px;
  }
  .hero-logo {
    width: 62%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .beta.is-in .yard-light,
  .cloud.is-in .medals .award-art,
  .cloud.is-in .ribbons .award-art,
  .cloud.is-in .award--gold .award-art::after {
    animation: none;
  }
  .stage-art,
  .road-shot-art,
  .button::after {
    animation: none;
  }
  .shot-art,
  .tag,
  [data-reveal],
  .button,
  .button::after,
  .button-icon {
    transition: none;
  }
  .button:hover,
  .button:active {
    transform: none;
  }
  body[data-reveal] [data-reveal]:not(.is-in) {
    opacity: 1;
    translate: none;
  }
  .tag {
    opacity: 1;
    translate: none;
  }
}

/* Play click: the landing picture settles into the game frame, then leaves. */
.handoff {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.handoff-art {
  position: fixed;
  transform-origin: 0 0;
  overflow: hidden;
  background: var(--art-key, none) center / cover no-repeat;
}
.handoff-art .art-live {
  transition: none;
}
.handoff-copy {
  position: fixed;
}
.handoff-status {
  position: fixed;
  margin: 0;
  text-align: center;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(5, 13, 26, 0.8);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.handoff-status.is-shown {
  opacity: 1;
}
.handoff-status::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  animation: sweep 1.4s ease-in-out infinite alternate;
}
@keyframes sweep {
  from {
    transform: translateX(-60px);
    opacity: 0.25;
  }
  to {
    transform: translateX(60px);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .handoff-status::after {
    animation: none;
  }
}
