@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-condensed-600-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-condensed-700-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-600-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --sky: #06090c;
  --panel: #0c1216;
  --panel-hover: #101820;
  --edge: rgba(230, 237, 232, .12);
  --text: #e6ede8;
  --secondary: #b7c2ba;
  --muted: #89968d;
  --hud: #8fd6a3;
  --hud-hi: #c8f5b0;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --ease: cubic-bezier(.22, .75, .18, 1);
}

* { box-sizing: border-box; }

/* Skip link: visually hidden until keyboard focus (WCAG 2.4.1). Styled as an
   operational label in the site idiom; no glow, no radius. */
.skip-link {
  position: absolute;
  z-index: 10;
  top: -100px;
  left: 24px;
  padding: 10px 16px;
  border: 1px solid var(--hud);
  background: var(--sky);
  color: var(--hud);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 24px;
  outline: none;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--sky);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--sky);
  font-family: var(--mono);
  line-height: 1.65;
}

a { color: inherit; }
img { max-width: 100%; }

.site-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 30px;
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid transparent;
  background: var(--panel);
  isolation: isolate;
}

.hero::after {
  position: absolute;
  z-index: 4;
  inset: -1px;
  border: 1px solid var(--edge);
  clip-path: inset(0 100% 100% 0);
  pointer-events: none;
  content: "";
  animation: hairline-draw 820ms var(--ease) 40ms both;
}

.hero-media,
.hero-scrim {
  position: absolute;
  inset: 0;
}

.hero-media {
  inset: 0;
}

.hero-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 64% 38%;
  filter: saturate(.78) brightness(.78) contrast(1.04);
}

.hero-scrim {
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(6, 9, 12, .98) 0%,
      rgba(6, 9, 12, .92) 31%,
      rgba(6, 9, 12, .58) 49%,
      rgba(6, 9, 12, .12) 76%,
      rgba(6, 9, 12, .03) 100%),
    linear-gradient(0deg, rgba(6, 9, 12, .34) 0%, rgba(6, 9, 12, 0) 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(700px, 60%);
  min-height: 558px;
  padding: clamp(34px, 4.2vw, 64px);
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .24em;
  text-decoration: none;
  text-transform: uppercase;
  animation: step-in 560ms var(--ease) 80ms both;
}

.brand-lockup img {
  width: 50px;
  height: 50px;
}

.brand-lockup:focus-visible {
  outline: 1px solid var(--hud);
  outline-offset: 4px;
}

.visual-exif b { color: var(--secondary); font-weight: 500; }

.section-label,
.card-number,
.status,
.visual-exif,
.mission,
.action,
.copyright,
.site-footer nav {
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  max-width: 700px;
  margin: auto 0 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(58px, 6.6vw, 100px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
  animation: step-in 660ms var(--ease) 170ms both;
}

h1 span { color: var(--hud); }

.intro {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--secondary);
  font-size: 14.5px;
  line-height: 1.75;
  animation: step-in 620ms var(--ease) 280ms both;
}

.intro a,
.section-heading > p a {
  border-bottom: 1px solid var(--edge);
  padding-bottom: 1px;
  text-decoration: none;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}

.intro a:hover,
.intro a:focus-visible,
.section-heading > p a:hover,
.section-heading > p a:focus-visible {
  border-color: var(--hud);
  color: var(--hud);
}

.hero-actions {
  width: 100%;
  max-width: 560px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 225px;
  gap: 10px;
}

.hero-action {
  min-width: 0;
  min-height: 50px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--hud);
  color: #06100a;
  background: var(--hud);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
  animation: step-in 600ms var(--ease) 370ms both;
}

.hero-action-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.35;
}

.hero-action-expectation {
  display: none;
  color: rgba(6, 16, 10, .7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
}

.hero-action-secondary {
  border-color: rgba(230, 237, 232, .34);
  background: rgba(6, 9, 12, .72);
  color: var(--text);
}

@keyframes hairline-draw {
  0% { clip-path: inset(0 100% 100% 0); }
  55% { clip-path: inset(0 0 100% 0); }
  100% { clip-path: inset(0); }
}

@keyframes step-in {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-action:hover,
.hero-action:focus-visible {
  border-color: var(--hud-hi);
  background: var(--hud-hi);
}

.hero-action-secondary:hover,
.hero-action-secondary:focus-visible {
  border-color: var(--hud);
  background: rgba(6, 9, 12, .9);
  color: var(--hud);
}

/* Keyboard focus stays on-palette: HUD hairline instead of the UA blue ring. */
.hero-action:focus-visible,
.intro a:focus-visible,
.section-heading > p a:focus-visible,
.site-footer a:focus-visible {
  outline: 1px solid var(--hud);
  outline-offset: 3px;
}

main {
  padding: 86px 0 78px;
  outline: none;
}

.section-heading {
  margin-bottom: 25px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: 52px;
  align-items: end;
}

.section-label {
  margin: 0 0 9px;
  color: var(--hud);
  font-size: 10px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.section-heading > p {
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.7;
}

.first-flight-route {
  min-height: 58px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: minmax(190px, .72fr) minmax(300px, 1.5fr) auto;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--edge);
  border-left: 3px solid var(--hud);
  border-bottom: 0;
  background: rgba(143, 214, 163, .045);
  color: var(--secondary);
  font-size: 10px;
  letter-spacing: .07em;
  line-height: 1.45;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease);
}

.first-flight-expectation { display: none; }
.first-flight-route b { color: var(--hud); font-weight: 700; }
.first-flight-action { color: var(--hud); font-weight: 600; white-space: nowrap; }
.first-flight-route:hover,
.first-flight-route:focus-visible { border-color: var(--edge); border-left-color: var(--hud); background: rgba(143, 214, 163, .08); }
.first-flight-route:focus-visible { outline: 1px solid var(--hud); outline-offset: 3px; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--edge);
  border-left: 1px solid var(--edge);
}

.game-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  background: var(--panel);
  transition: background-color 200ms var(--ease);
}

.game-card:hover,
.game-card:focus-within {
  background: var(--panel-hover);
}

.card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.card-link:focus-visible {
  outline: 1px solid var(--hud);
  outline-offset: -1px;
}

.game-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--edge);
  background: var(--sky);
}

.game-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(.8) brightness(.86);
  transition: filter 240ms var(--ease);
}

.game-card:hover .game-visual img,
.game-card:focus-within .game-visual img {
  filter: saturate(.94) brightness(1);
}

.visual-exif {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 2px 11px;
  align-items: center;
  padding: 5px 11px;
  border-top: 1px solid var(--edge);
  /* Scrim strengthened .66 -> .82 (WEB-05 / RA-DES-003), then .82 -> .87 after
     the 2026-07-20 audit measured muted setting tokens at ~4.83:1 on the
     card's brightened hover state over the maritime image, close to the 4.5:1
     floor. Raising the scrim keeps the RA-DES-003 essential/subordinate colour
     tiering untouched; height unchanged, so the bar stays subordinate to the
     photograph; scrims over photography are sanctioned. */
  background: rgba(6, 9, 12, .87);
  color: var(--muted);
  /* Top of the sanctioned 9–9.5px EXIF band (DESIGN.md) — evidence styling
     retained, legibility taken where the spec already allows it. */
  font-size: 9.5px;
  letter-spacing: .16em;
}

.gameplay-frame {
  width: 88px !important;
  height: 50px !important;
  grid-row: 1 / -1;
  border: 1px solid rgba(230, 237, 232, .22);
  object-fit: cover;
  filter: none !important;
}

.gameplay-label {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text);
  white-space: nowrap;
}

.gameplay-label b { color: var(--hud); font-weight: 600; }

.exif-meta {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
}

/* Mission number is essential evidence (WEB-05) and the one token still shown
   at phone width, so it is lifted clear of the muted setting tokens: the label
   to --secondary and the number itself to bone --text. Setting tokens stay
   muted and subordinate. No size change — within the 9.5px EXIF band. */
.exif-meta span:first-child { color: var(--secondary); }
.exif-meta b { color: var(--text); font-weight: 600; }

.card-body {
  min-height: 294px;
  padding: 24px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card-topline {
  margin-bottom: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.roster-cue {
  max-width: 210px;
  padding: 4px 8px 3px;
  border: 1px solid var(--edge);
  color: var(--muted);
  /* Decision-relevant routing label — 11px per the 2026-07-17 legibility
     decision (DESIGN.md), same tier as .status and .card-number. */
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.35;
  text-align: right;
  text-transform: uppercase;
}

.roster-cue-start { color: var(--hud); }

.card-number { color: var(--secondary); font-size: 11px; }

.status {
  padding: 4px 8px 3px;
  border: 1px solid var(--hud);
  color: var(--hud);
  font-size: 11px;
  font-weight: 500;
}

.status::before {
  width: 5px;
  height: 5px;
  margin: 0 7px 1px 0;
  display: inline-block;
  border-radius: 50%;
  background: var(--hud);
  content: "";
}

.game-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.mission {
  margin: 9px 0 15px;
  color: var(--secondary);
  font-size: 11px;
}

.card-controls {
  margin: -7px 0 15px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.55;
  text-transform: uppercase;
}

.compatibility {
  display: none;
  margin: -7px 0 15px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.55;
  text-transform: uppercase;
}

.description {
  margin: 0 0 28px;
  color: var(--secondary);
  font-size: 13.5px;
  line-height: 1.7;
}

.action {
  min-height: 48px;
  margin-top: auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--edge);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  transition: border-color 200ms var(--ease), color 200ms var(--ease), padding-left 200ms var(--ease);
}

.action span[aria-hidden] { color: var(--hud); }

.game-card:hover .action,
.game-card:focus-within .action {
  padding-left: 22px;
  border-color: var(--hud);
  color: var(--hud);
}

/* Roster band: next mission, deliberately outside the playable grid so it
   never claims parity with live cards (no image, no action, no hover). */
.dev-card {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--edge);
  border-top: 0;
}

.dev-topline {
  margin-bottom: 0;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

.status-dev {
  border-color: var(--edge);
  color: var(--muted);
}

.status-dev::before { background: var(--muted); }

.dev-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.dev-card .description { max-width: 620px; margin-bottom: 0; }

.site-footer {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto auto;
  gap: 42px;
  align-items: center;
  padding: 25px 0 4px;
  border-top: 1px solid var(--edge);
  color: var(--secondary);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.footer-brand img { width: 36px; height: 36px; }
.footer-brand p { margin: 0; font-size: 10px; line-height: 1.65; text-transform: uppercase; letter-spacing: .1em; }
.footer-brand strong { color: var(--text); font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .2em; }

/* wrap so all six links stay inside the shell at 320px and 400% zoom; the
   20px gap already gives wrapped rows their vertical rhythm. */
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 10px; }
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--edge);
}
.site-footer a:hover, .site-footer a:focus-visible { color: var(--hud); }
.copyright { margin: 0; color: var(--muted); font-size: 9px; }

@media (max-width: 1100px) {
  .hero-frame img { object-position: 63% center; }
  .hero-scrim {
    background:
      linear-gradient(90deg,
        rgba(6, 9, 12, .92) 0%,
        rgba(6, 9, 12, .64) 42%,
        rgba(6, 9, 12, .18) 74%,
        rgba(6, 9, 12, 0) 94%),
      linear-gradient(0deg,
        rgba(6, 9, 12, .84) 0%,
        rgba(6, 9, 12, .3) 34%,
        rgba(6, 9, 12, .04) 56%,
        rgba(6, 9, 12, 0) 70%);
  }
  .hero-content { width: min(720px, 78%); }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card:last-child { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: minmax(280px, 1fr) auto; }
  .copyright { grid-column: 1 / -1; }
}

/* Caption bars: below 800px the two-column cards are too narrow for the last
   setting token, so it goes rather than clipping mid-word. */
@media (max-width: 799px) {
  .exif-meta span:last-child { display: none; }
}

@media (max-width: 720px) {
  .site-shell { width: calc(100% - 24px); padding-top: 12px; }
  .hero { min-height: 548px; }
  .hero-frame img { object-position: 58% center; }
  .hero-scrim {
    background:
      linear-gradient(to bottom,
        rgba(6, 9, 12, .78) 0%,
        rgba(6, 9, 12, .42) 9%,
        rgba(6, 9, 12, .14) 25%,
        rgba(6, 9, 12, .1) 42%,
        rgba(6, 9, 12, .28) 55%,
        rgba(6, 9, 12, .62) 74%,
        rgba(6, 9, 12, .86) 90%,
        rgba(6, 9, 12, .93) 100%);
  }
  .hero-content { width: 100%; min-height: 546px; padding: 24px 20px; }
  .brand-lockup { font-size: 15px; letter-spacing: .12em; }
  .brand-lockup img { width: 46px; height: 46px; }
  h1 { font-size: clamp(44px, 13vw, 60px); }
  .intro { margin-top: 17px; font-size: 14px; line-height: 1.58; }
  .hero { min-height: 650px; }
  .hero-content { min-height: 648px; }
  .hero-actions { margin-top: 22px; grid-template-columns: 1fr; }
  .hero-action { width: 100%; min-width: 0; min-height: 48px; }
  .hero-action-primary { min-height: 58px; }
  .hero-action-expectation { display: block; }
  main { padding: 60px 0 56px; }
  .section-heading { grid-template-columns: 1fr; gap: 15px; }
  .section-heading > p { font-size: 13px; }
  .first-flight-route {
    margin-bottom: 24px;
    grid-template-columns: 1fr auto;
    gap: 5px 14px;
    padding: 13px 14px;
    border-bottom: 1px solid var(--edge);
  }
  .first-flight-destination { grid-column: 1; grid-row: 1; }
  .first-flight-summary { grid-column: 1 / -1; grid-row: 2; }
  .first-flight-action { grid-column: 2; grid-row: 1; }
  .first-flight-expectation {
    grid-column: 1 / -1;
    grid-row: 3;
    display: block;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .1em;
  }
  .game-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    border-top: 0;
    border-left: 0;
  }
  .game-card {
    border-top: 1px solid var(--edge);
    border-left: 1px solid var(--edge);
  }
  .game-card:last-child { grid-column: auto; }
  .dev-card { grid-template-columns: 1fr; gap: 14px; padding: 21px; }
  .card-body { min-height: 270px; padding: 21px; }
  /* At phone width the Ropes Out routing cue is decision-critical, not a
     decorative badge. Tighten only this topline's structural gap and hold the
     already approved short cue together, keeping both Mission 01 and the
     route warning on one calm baseline at 390px. */
  .game-card:first-child .card-topline { gap: 8px; }
  .roster-cue-advanced { white-space: nowrap; letter-spacing: .06em; }
  .card-number, .mission { font-size: 11px; }
  .compatibility { display: block; }
  .exif-meta span:not(:first-child) { display: none; }
  .site-footer { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .copyright { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-action, .first-flight-route, .game-card, .game-visual img, .action, .site-footer a { transition: none; }
  .hero::after, .brand-lockup, h1, .intro, .hero-action { animation: none; }
}
