/* Project Orion public site. Design: Astra (round 1 spec), build: Claude. */

:root {
  --bg: #071622;
  --surface: #102735;
  --text: #F4F8FC;
  --text-secondary: #BDCEDA;
  --muted: #8FA8B8;
  --line: #294351;
  --gold: #FFC65C;
  --gold-hover: #FFD583;
  --cyan: #59E0D5;
  --button-ink: #071622;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

h1, h2, p, figure, dl, dd { margin: 0; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.eyebrow {
  font: 600 14px/1.3 var(--body);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow-gold { color: var(--gold); }
.eyebrow-cyan { color: var(--cyan); }

.art-credit {
  font: 500 13px/1.35 var(--body);
  color: var(--text-secondary);
}

/* Header */

.site-header { background: var(--bg); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font: 700 28px/1 var(--display);
  letter-spacing: .02em;
}
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand .emblem-mark { display: none; border-radius: 8px; }

.nav { display: flex; gap: 32px; }
.nav a {
  font: 500 16px/1.4 var(--body);
  text-decoration: none;
  color: var(--text-secondary);
  padding-block: 10px;
}
.nav a:hover { color: var(--text); }

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 4px;
  background: var(--gold);
  color: var(--button-ink);
  font: 700 16px/1 var(--body);
  text-decoration: none;
  transition: background-color .15s;
}
.button:hover { background: var(--gold-hover); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font: 500 16px/1.4 var(--body);
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}
.text-link span { color: var(--cyan); }

/* Hero */

.hero {
  position: relative;
  height: 640px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-art { position: absolute; inset: 0; }
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #071622 0%, rgba(7, 22, 34, 0) 28%),
    linear-gradient(90deg, rgba(7, 22, 34, .94) 0%, rgba(7, 22, 34, .76) 28%, rgba(7, 22, 34, .18) 58%, rgba(7, 22, 34, 0) 78%);
}

.hero-copy { position: relative; }
.hero-copy > * { max-width: 640px; }

.hero h1 {
  margin-top: 16px;
  font: 800 112px/.9 var(--display);
  letter-spacing: .005em;
}

.hero-headline {
  margin-top: 24px;
  font: 700 36px/1.1 var(--display);
}

.hero-sub {
  margin-top: 8px;
  color: var(--text-secondary);
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}

.hero-credit {
  position: absolute;
  z-index: 1;
  right: max(var(--gutter), (100% - var(--wrap)) / 2);
  bottom: 20px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
  background: rgba(7, 22, 34, .88);
}

/* Gameplay */

.gameplay { padding-top: 64px; }

h2 {
  margin-top: 8px;
  font: 700 48px/1.05 var(--display);
}

.lede {
  margin-top: 8px;
  color: var(--text-secondary);
}

.lead-shot { margin-top: 24px; }

figcaption {
  margin-top: 12px;
  font: 500 16px/1.4 var(--body);
  color: var(--text-secondary);
}

.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.shot img {
  width: 100%;
  transition: transform .18s ease-out;
}
.shot:hover img { transform: scale(1.015); }

.feature .shot img { aspect-ratio: 16 / 9; object-fit: cover; }

/* The co-op capture is mostly empty ground; frame the two engineers. */
.shot[data-full="assets/coop.jpg"] img { transform: scale(1.2); transform-origin: 90% 60%; }
.shot[data-full="assets/coop.jpg"]:hover img { transform: scale(1.22); }

.expand {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(7, 22, 34, .82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4F8FC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-7 7M10 20H4v-6M4 20l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
  margin-top: 40px;
}

.feature figcaption { margin-top: 12px; }
.feature figcaption strong {
  display: block;
  margin-bottom: 4px;
  font: 700 28px/1.1 var(--display);
  color: var(--text);
}

/* Planned */

.future {
  position: relative;
  min-height: 560px;
  margin-top: 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.future-art { position: absolute; inset: 0; }
.future-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.future-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 22, 34, 0) 25%, rgba(7, 22, 34, .35) 48%, rgba(7, 22, 34, .9) 74%, #071622 100%);
}

.future-row {
  position: relative;
  display: flex;
  justify-content: flex-end;
  padding-block: 64px;
}
.future-copy { width: 480px; }

.plans { margin-top: 24px; display: grid; gap: 24px; }
.plans dt { font: 700 28px/1.1 var(--display); }
.plans dd { margin-top: 4px; color: var(--text-secondary); }

.future-credit {
  position: absolute;
  z-index: 1;
  left: max(var(--gutter), (100% - var(--wrap)) / 2);
  bottom: 20px;
}

/* Contact */

.contact {
  padding-block: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact h2 { margin-top: 0; }
.contact .button { margin-top: 24px; }
.email {
  margin-top: 16px;
  color: var(--cyan);
  font-weight: 500;
  text-decoration: none;
  padding-block: 8px;
}
.email:hover { text-decoration: underline; }

/* Footer */

.site-footer .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.brand-small { font-size: 22px; gap: 10px; }
.brand-small img { width: 32px; height: 32px; }
.site-footer p { font: 500 14px/1.4 var(--body); color: var(--muted); }

/* Lightbox */

body:has(.lightbox[open]) { overflow: hidden; }

.lightbox {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.lightbox::backdrop { background: rgba(7, 22, 34, .96); }
.lightbox[open] {
  display: flex;
  flex-direction: column;
}

.lb-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 72px 88px 0;
}
.lb-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lb-bar {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 24px;
  padding: 16px 24px 28px;
  font: 500 16px/1.4 var(--body);
}
.lb-caption { color: var(--text); }
.lb-count { color: var(--muted); font-variant-numeric: tabular-nums; }

.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(16, 39, 53, .9);
  color: var(--text);
  cursor: pointer;
}
.lb-btn:hover { border-color: var(--text-secondary); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
.lb-close { right: 16px; top: 16px; }

/* Motion */

@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.hero-copy { animation: rise .3s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy { animation: none; }
  .shot img { transition: none; }
  .shot:hover img { transform: none; }
  .shot[data-full="assets/coop.jpg"]:hover img { transform: scale(1.2); }
}

/* Wide screens: pull the first gameplay capture into the first viewport. */

@media (min-width: 1100px) {
  .hero { height: 560px; }
  .hero h1 { font-size: 104px; }
  .gameplay { padding-top: 40px; }
}

@media (min-width: 700px) {
  .future-art img { object-position: center top; }
}

/* Two columns */

@media (max-width: 1099px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 96px; }
}

/* Phones */

@media (max-width: 699px) {
  body { font-size: 17px; }

  .header-row {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }
  .brand { height: 56px; }
  .brand img { width: 36px; height: 36px; }
  .brand .emblem-full { display: none; }
  .brand .emblem-mark { display: block; }
  .nav {
    height: 44px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
  }

  .hero {
    height: auto;
    display: block;
  }
  .hero-art { position: relative; height: 180px; }
  .hero-art img { object-position: 75% center; }
  .hero-art::after { background: linear-gradient(0deg, rgba(7, 22, 34, .55) 0%, rgba(7, 22, 34, 0) 40%); }
  .hero-credit {
    position: static;
    width: min(var(--wrap), 100% - 2 * var(--gutter));
    margin: 8px auto 0;
    padding: 0;
    font-size: 13px;
    background: none;
  }
  .hero-copy { padding: 20px 0; }
  .hero h1 { margin-top: 12px; font-size: 68px; }
  .hero-headline { margin-top: 20px; font-size: 30px; }
  .actions { gap: 12px; margin-top: 20px; }
  .actions .button { flex: 1; justify-content: center; padding-inline: 16px; font-size: 15px; }
  .actions .text-link { flex: none; font-size: 15px; }

  .gameplay { padding-top: 32px; }
  .lead-shot .shot img { aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 55%; }
  h2 { font-size: 38px; }

  .features { grid-template-columns: 1fr; gap: 32px; }

  .future {
    display: block;
    min-height: 0;
  }
  .future-art { position: relative; height: 220px; }
  .future-art::after { background: linear-gradient(0deg, #071622 0%, rgba(7, 22, 34, 0) 45%); }
  .future-credit {
    left: auto;
    right: var(--gutter);
    top: 190px;
    bottom: auto;
  }
  .future-row { display: block; padding-block: 24px 0; }
  .future-copy { width: auto; }

  .contact { padding-block: 48px; }
  .contact h2 { font-size: 34px; }
  .contact .button { align-self: stretch; justify-content: center; }

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

  .lb-stage { margin: 72px 12px 0; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; }
  .lb-bar { flex-direction: column; align-items: center; gap: 4px; padding: 12px 72px 24px; text-align: center; }
}
