@font-face {
  font-family: Barlow;
  src: url("assets/fonts/Barlow-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Barlow;
  src: url("assets/fonts/Barlow-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
/* Exo 2, the typeface of the game's own interface. SIL Open Font License 1.1: assets/fonts/Exo2-OFL.txt */
@font-face {
  font-family: "Exo 2";
  src: url("assets/fonts/Exo2-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Exo 2";
  src: url("assets/fonts/Exo2-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --night: #181b19;
  --sheet: #f1eee3;
  --cream: #fbf4e4;
  --quiet: #c5c7ba;
  /* The game's interface amber and breathable-air green (UI Revision 03). */
  --rust: #e99a46;
  --amber-hover: #f4b06a;
  --good: #94be83;
  --ink: #232820;
  --edge: #555a4f;
  --paper-edge: #b9bbae;
  --panel: #161d1d;
  --panel-edge: #4d5550;
  --label: #aeb2a5;
  --body: Barlow, "Segoe UI", sans-serif;
  --display: "Exo 2", Bahnschrift, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(20px, 6.1vw, 118px);
  font: 100%/1.5 var(--body);
  background: var(--night);
  color: var(--cream);
}
* {
  box-sizing: border-box;
}
body,
figure,
h1,
h2,
h3,
p {
  margin: 0;
}
img {
  display: block;
}
a {
  color: inherit;
  text-underline-offset: 0.24em;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #d77443;
  outline-offset: 5px;
}
/* Keycaps follow the game's input key: a dark glass face with a fine white rim. */
kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.9em;
  padding: 2px 7px;
  border: 1.25px solid #ffffffe6;
  border-radius: 5px;
  background: #02020394;
  color: #fff;
  font: 600 0.8rem/1.2 var(--display);
}
.skip {
  position: fixed;
  top: -6rem;
  left: 12px;
  z-index: 20;
  padding: 12px;
  background: var(--cream);
  color: var(--ink);
}
.skip:focus {
  top: 10px;
}
.sitebar {
  height: 74px;
  position: relative;
  z-index: 5;
  background: #20241f;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
  padding: 0 var(--gutter);
  border-bottom: 1px solid #565a4d;
}
/* On the home page the bar floats over the opening photograph and scrolls away with it. */
.sitebar.over-hero {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 92px;
  background: linear-gradient(#05070699, #05070600);
  border: 0;
}
.over-hero .studio img,
.over-hero .social-link img {
  filter: drop-shadow(0 1px 5px #000000a6);
}
.studio {
  margin-right: auto;
}
.studio img {
  width: 174px;
  height: auto;
}
.studio .studio-mark {
  display: none;
  width: 36px;
}
.sitebar a,
figcaption,
footer a,
.lightbox-controls button {
  font-weight: 600;
}
footer a {
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}
.header-cta {
  padding: 12px 17px;
  background: var(--rust);
  color: #17130e;
  font: 600 0.78rem/1.1 var(--display);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 18px #0000004d;
}
.header-cta:hover {
  background: var(--amber-hover);
}
.social-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.social-link {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 4px;
}
.social-link:hover,
.social-link:focus-visible {
  background: #ffffff1f;
}

/* Opening view. The picture drifts with the mouse (site.js) inside a little overscan. */
.hero {
  height: clamp(620px, 100svh, 1200px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #3b2c22;
}
.hero-image,
.hero-image img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-image {
  z-index: -3;
  transform: scale(1.08);
  transform-origin: 50% 64%;
  will-change: transform;
}
.hero-image img {
  object-fit: cover;
  object-position: 30% 50%;
}
/* A soft pool of shade behind the title keeps the daylight photograph bright everywhere else. */
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(180deg, #07090a4d, transparent 20%),
    radial-gradient(58% 66% at 79% 50%, #0b0e1194, #0b0e1100 74%),
    linear-gradient(0deg, #0b0e1180, transparent 24%);
}
.hero-copy {
  position: absolute;
  left: 57%;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  max-width: 44rem;
  text-shadow: 0 1px 16px #0a0c0e66;
}
.caption,
.hero-strip {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
}
.cap-line {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cap-line:before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--rust);
}
.hero-copy .caption {
  color: #fff3dc;
}
.hero h1 {
  font: 600 clamp(4rem, 7.5vw, 8.8rem) / 0.9 var(--display);
  text-transform: uppercase;
  letter-spacing: 0.012em;
  margin: 18px 0 20px;
  text-shadow: 0 2px 24px #05080d73;
}
.hero h1 span {
  display: block;
}
.hero-deck {
  max-width: 30ch;
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  line-height: 1.3;
  text-wrap: pretty;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 13px 24px;
  min-height: 48px;
  border: 0;
  font: 600 0.86rem/1.2 var(--display);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.filled {
  background: var(--rust);
  color: #17130e;
}
.filled:hover {
  background: var(--amber-hover);
}
.ghost {
  background: transparent;
  color: var(--cream);
  box-shadow: inset 0 0 0 1px #ffffff52;
}
.ghost:hover {
  box-shadow: inset 0 0 0 1px var(--cream);
}
.hero .button {
  margin-top: 28px;
  text-shadow: none;
}
.hero-strip {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #f7eedc;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  border-top: 1px solid #f7eedc66;
  padding-top: 10px;
  text-shadow: 0 1px 6px #0009;
}
.block {
  padding: clamp(58px, 7vw, 112px) var(--gutter);
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
}
h2,
h3 {
  line-height: 1.02;
}
h2 {
  font-size: clamp(2.6rem, 5vw, 5.5rem);
  letter-spacing: -0.015em;
}
h3 {
  font-size: clamp(2rem, 3.1vw, 3.5rem);
  letter-spacing: -0.01em;
}
.chapter-head h2,
.community h2 {
  margin: 0.6rem 0 1rem;
}
.chapter-head > p:nth-of-type(2),
.storm-heading > p:last-child,
.community p:last-child {
  max-width: 57ch;
  font-size: clamp(1.05rem, 1.42vw, 1.3rem);
  line-height: 1.5;
}

/* Tabs echo the game's build catalogue: small capitals, the chosen one filled with amber. */
.tabs {
  display: flex;
  gap: 4px;
}
.tabs button {
  flex: 1;
  min-height: 44px;
  padding: 10px 6px;
  border: 0;
  background: #ffffff0f;
  color: #d6d8cd;
  font: 600 0.78rem/1.2 var(--display);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.tabs button:hover {
  background: #ffffff1f;
  color: var(--cream);
}
.tabs button[aria-pressed="true"] {
  background: var(--rust);
  color: #17130e;
}

/* The storm: heading and film stay pinned together while the three phases scroll past. */
.storm {
  background: #171c1b;
  scroll-margin-top: 0;
}
.storm-heading .caption,
.phase-story .caption,
.community .caption,
.airlock .caption {
  color: var(--rust);
}
.storm-crossing {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.68fr);
  padding: 0 var(--gutter);
  gap: clamp(24px, 5vw, 95px);
  align-items: start;
}
.storm-stage {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(14px, 2.4vh, 28px);
  padding-block: clamp(16px, 3vh, 36px);
}
.storm-heading h2 {
  font-size: clamp(2.4rem, 3.9vw, 4.6rem);
  margin: 0.45rem 0 0.6rem;
}
.storm-heading > p:last-child {
  color: #d9dace;
}
.storm-screen {
  background: #101513;
}
.storm-images {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  max-height: calc(100svh - 19rem);
  width: 100%;
}
.storm-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease-out;
}
.storm-images img.current {
  opacity: 1;
}
.storm-progress,
.life-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #0f131266;
}
.storm-progress span,
.life-progress span {
  display: block;
  height: 100%;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
}
.storm-controls {
  padding: 6px;
}
.storm-stories {
  padding-block: 15vh;
}
.phase-story {
  min-height: 70vh;
  display: flex;
  align-items: center;
  border-top: 1px solid #42473e;
  scroll-margin-block: 15vh;
}
.phase-story:first-child {
  border-top: 0;
}
.phase-story h3 {
  margin: 0.55rem 0 0.85rem;
}
.phase-story div > p:nth-of-type(2) {
  color: #d3d4c9;
  font-size: clamp(1.04rem, 1.4vw, 1.28rem);
  max-width: 33ch;
}
.phase-story a {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--rust);
  font-weight: 600;
  text-underline-offset: 0.25em;
}
.storm-images video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
}
.storm-images video.ready {
  opacity: 1;
}

/* Colony life: the same crossing as the storm, mirrored. The photograph stays pinned on the right. */
.colony {
  background: var(--sheet);
  color: var(--ink);
}
.colony .caption,
.photos .caption {
  color: #75452e;
}
.colony .cap-line:before,
.photos .cap-line:before {
  background: #ac5936;
}
.colony-crossing {
  display: grid;
  grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.5fr);
  gap: clamp(24px, 5vw, 95px);
  align-items: start;
}
.colony-stage {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 0;
  z-index: 1;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding-block: clamp(16px, 3vh, 36px);
}
.colony-stories {
  grid-column: 1;
  grid-row: 1;
  padding-block: 22vh 26vh;
}
.life-story {
  min-height: 70vh;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--paper-edge);
  scroll-margin-block: 15vh;
}
.life-story:first-child {
  border-top: 0;
}
.life-story h3 {
  margin: 0.55rem 0 0.85rem;
}
.life-story div > p:last-child {
  max-width: 32ch;
  color: #3d4238;
  font-size: clamp(1.04rem, 1.4vw, 1.28rem);
}
.life-shots {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  max-height: calc(100svh - 10rem);
  width: 100%;
  background: #b7a48f;
}
.life-shots img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s ease-out;
}
.life-shots img.current {
  opacity: 1;
}
.life-shot figcaption {
  font-size: 0.91rem;
  margin-top: 8px;
  color: #52584d;
}
.colony .tabs button {
  background: #2328200d;
  color: #41463c;
}
.colony .tabs button:hover {
  background: #2328201c;
  color: var(--ink);
}
.colony .tabs button[aria-pressed="true"] {
  background: var(--rust);
  color: #17130e;
}

/* Back inside: hold H, as in the game, and the founder takes the helmet off. */
.airlock {
  background: #141a19;
  color: var(--cream);
}
.airlock-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.62fr) 1.6fr;
  gap: clamp(22px, 5.5vw, 110px);
  align-items: center;
}
.airlock .chapter-head > p:nth-of-type(2) {
  color: #d9dace;
}
.airlock-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #3a2a22;
  -webkit-user-select: none;
  user-select: none;
}
.airlock-still,
.airlock-film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.airlock-film {
  opacity: 0;
  pointer-events: none;
}
.airlock-film.shown {
  opacity: 1;
}
/* Shade for the prompt and the air reading, kept to the edges of the picture. */
.airlock-frame:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(0deg, #0a0c0d99, transparent 32%),
    linear-gradient(180deg, #0a0c0d59, transparent 18%);
}
.airlock-air {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f3f4ef;
  font: 600 0.72rem/1 var(--display);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px #000000cc;
}
.airlock-air span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 10px #94be83b3;
}
.hold-prompt {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(12px, 5%, 34px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 14px 6px 6px;
  border: 0;
  border-radius: 40px;
  background: transparent;
  color: #f3f4ef;
  font: 600 0.82rem/1 var(--display);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  text-shadow:
    0 1px 8px #000000d9,
    0 0 2px #000000a6;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  transition: opacity 0.25s ease-out;
}
.airlock-frame.playing .hold-prompt {
  opacity: 0;
  pointer-events: none;
}
.hold-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
}
.hold-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}
.hold-track {
  fill: #0a0c0d47;
  stroke: #ffffff66;
  stroke-width: 1.5;
  transition: stroke 0.2s;
}
.hold-fill {
  fill: none;
  stroke: var(--rust);
  stroke-width: 2.75;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.hold-ring kbd {
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  font: 600 1rem/1 var(--display);
  letter-spacing: 0;
  text-shadow: none;
  transition: color 0.15s;
}
.hold-prompt:hover .hold-track {
  stroke: #ffffffb3;
}
.hold-prompt.holding kbd {
  color: var(--rust);
}
.hold-verb {
  color: #ffffffb3;
}
/* Touch screens have no H key: the ring itself is the control. */
@media (hover: none) {
  .hold-ring kbd {
    display: none;
  }
  .hold-ring:after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f3f4ef;
    box-shadow: 0 0 6px #0009;
  }
  .hold-prompt.holding .hold-ring:after {
    background: var(--rust);
  }
}

/* Field photography */
.photos {
  background: #e5e2d6;
  color: var(--ink);
}
.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.65vw, 28px);
  margin-top: 35px;
}
.photograph {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #393b31;
  color: white;
}
.photograph img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 0.45s;
}
.photograph:hover img {
  transform: scale(1.025);
}
.photograph span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, #171913d9);
  padding: 42px 16px 11px;
  font-size: 1.02rem;
  font-weight: 600;
}
.community {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  background: #263128;
  color: var(--cream);
}
.community .button {
  flex-shrink: 0;
}
.community-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
#email-updates:not([href]) {
  display: none;
}
.community h2 {
  max-width: 15ch;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px var(--gutter);
  background: #20241f;
  border-top: 1px solid #4f594d;
}
footer img {
  width: 175px;
  height: auto;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 24px;
}
.privacy {
  max-width: 75rem;
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter);
}
.privacy h1 {
  font: 600 clamp(3rem, 7vw, 5.2rem) / 1 var(--display);
}
.privacy h2 {
  margin: 2rem 0 0.6rem;
  font-size: clamp(1.55rem, 3.6vw, 2rem);
}
.privacy p {
  max-width: 66ch;
  margin-block: 0.65rem;
}
.privacy a {
  overflow-wrap: anywhere;
}

/* Dialogs share the research desk's slate panel and hairlines. */
dialog {
  color: var(--cream);
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  max-width: min(92vw, 1400px);
  max-height: 94svh;
  padding: 14px;
}
dialog::backdrop {
  background: #070a09e6;
}
.arrival {
  width: min(880px, 94vw);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.arrival::backdrop {
  background: #05080ac4;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.arrival[open] {
  animation: arrival-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.arrival[open]::backdrop {
  animation: backdrop-in 0.45s ease-out both;
}
@keyframes arrival-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes backdrop-in {
  from {
    opacity: 0;
  }
}
.arrival-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  max-height: 94svh;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  box-shadow: 0 30px 90px #000000a6;
}
.arrival-panel:before,
.arrival-panel:after,
.signup-panel:before,
.signup-panel:after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.arrival-panel:before,
.signup-panel:before {
  top: -5px;
  left: -5px;
  border-top: 2px solid var(--rust);
  border-left: 2px solid var(--rust);
}
.arrival-panel:after,
.signup-panel:after {
  right: -5px;
  bottom: -5px;
  border-right: 2px solid var(--rust);
  border-bottom: 2px solid var(--rust);
}
.arrival-art {
  position: relative;
  overflow: hidden;
  background: #3b3227;
}
.arrival-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 40%;
}
.arrival-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0d121299, transparent 40%), linear-gradient(90deg, transparent 75%, #161d1d66);
}
.arrival-stamp {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 16px;
  display: grid;
  font: 600 0.7rem/1.5 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f4e9d4;
}
.arrival-stamp span {
  color: var(--rust);
}
.arrival-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 410px;
  padding: clamp(30px, 4vw, 54px) clamp(24px, 3.8vw, 50px);
  overflow-y: auto;
}
.arrival h2:focus {
  /* The title takes focus when the invitation opens, so the first Tab reaches the buttons. */
  outline: none;
}
.arrival h2 {
  margin: 0.95rem 0 0;
  font-size: clamp(2.2rem, 3.7vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.arrival h2 span {
  color: var(--rust);
}
.arrival-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--rust);
  font: 600 0.76rem/1.2 var(--display);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rust);
  animation: status-pulse 2.2s ease-out infinite;
}
@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 #e99a4699;
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px #e99a4600;
  }
}
.arrival-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(1.5rem, 2.6vw, 2.1rem);
}
.arrival-actions .button {
  cursor: pointer;
}
.arrival-note {
  margin-top: 1rem;
  color: #b9bcb0;
  font-size: 0.92rem;
}
.arrival-note a {
  margin-left: 0.35em;
  color: #d9dace;
}
.arrival-close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--cream);
  font-size: 1.7rem;
  line-height: 1;
}
.arrival-close:hover {
  background: #ffffff14;
}
/* Signup form: the invitation's panel, the game's amber and the site's type. Our own markup posts
   to the studio's Brevo form, so nothing from Brevo loads until the visitor presses Join. */
.signup {
  width: min(560px, 94vw);
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.signup::backdrop {
  background: #05080ac4;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.signup[open] {
  animation: arrival-rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.signup-panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  box-shadow: 0 30px 90px #000000a6;
}
.signup-body {
  max-height: calc(94svh - 2px);
  overflow-y: auto;
  padding: clamp(28px, 4vw, 46px) clamp(22px, 4vw, 46px) clamp(24px, 3.4vw, 38px);
}
.signup-entry[hidden],
.signup-done[hidden] {
  display: none;
}
.signup h2 {
  margin: 0.9rem 0 0;
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.signup h2:focus {
  outline: none;
}
.signup h2 span {
  color: var(--rust);
}
.signup-intro {
  margin-top: 0.9rem;
  color: #d3d4c9;
  font-size: 1.02rem;
  text-wrap: pretty;
}
.signup-form {
  display: grid;
  margin-top: 1.9rem;
}
.field-label {
  margin-bottom: 8px;
  color: var(--label);
  font: 600 0.74rem/1.2 var(--display);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.field {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid #59625c;
  border-radius: 0;
  background: #0c1212;
  color: var(--cream);
  font: 400 1.06rem/1.2 var(--body);
  transition: border-color 0.15s;
}
.field:hover {
  border-color: #7d8780;
}
.field:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 1px var(--rust);
}
.field[aria-invalid="true"] {
  border-color: #e0745b;
}
.field-error,
.signup-problem {
  margin-top: 7px;
  color: #f29c84;
  font-size: 0.9rem;
}
.field-error:empty,
.signup-problem:empty {
  display: none;
}
.signup-problem a {
  color: var(--cream);
}
.consent {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 20px;
  color: #d9dace;
  font-size: 0.95rem;
  line-height: 1.45;
  cursor: pointer;
}
.consent input {
  position: absolute;
  width: 24px;
  height: 24px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.consent-box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid #9aa094;
  background: #0c1212;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.consent-box:after {
  content: "";
  width: 6px;
  height: 11px;
  margin-top: -3px;
  border: solid #17130e;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  opacity: 0;
}
.consent:hover .consent-box {
  border-color: var(--cream);
}
.consent input:checked + .consent-box {
  border-color: var(--rust);
  background: var(--rust);
}
.consent input:checked + .consent-box:after {
  opacity: 1;
}
.consent input:focus-visible + .consent-box {
  outline: 3px solid #d77443;
  outline-offset: 3px;
}
.consent input[aria-invalid="true"] + .consent-box {
  border-color: #e0745b;
}
.signup-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.signup-submit {
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
}
.signup-submit[aria-disabled="true"] {
  opacity: 0.72;
  cursor: progress;
}
.signup-small {
  margin-top: 18px;
  color: #969b8f;
  font-size: 0.8rem;
  line-height: 1.55;
}
.signup-small a {
  margin-right: 0.9em;
  color: #c9ccbf;
  white-space: nowrap;
}
.signup-sent {
  color: var(--good);
}
.signup-sent .status-dot {
  background: var(--good);
  box-shadow: 0 0 10px #94be83b3;
  animation: none;
}
.signup-finish {
  margin-top: 1.6rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.lightbox-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.lightbox-controls button {
  border: 1px solid #818779;
  background: #242a24;
  padding: 7px 16px;
}
.lightbox-controls button:last-child {
  margin-left: auto;
}
#photo-full {
  max-width: 100%;
  max-height: 73svh;
  object-fit: contain;
  margin: auto;
}
#photo-title {
  padding-top: 8px;
}
@media (max-width: 880px) {
  .hero-copy {
    left: 50%;
  }
  .storm-crossing {
    grid-template-columns: 1.3fr 0.8fr;
    gap: 25px;
  }
  .colony-crossing {
    grid-template-columns: 0.8fr 1.3fr;
    gap: 25px;
  }
  .community {
    align-items: flex-start;
    flex-direction: column;
  }
  .airlock-grid {
    grid-template-columns: 1fr;
  }
  .arrival-panel {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  }
}
@media (max-width: 680px) {
  :root {
    --gutter: 20px;
  }
  .sitebar {
    height: 64px;
    gap: 8px;
  }
  .sitebar.over-hero {
    height: 74px;
  }
  .studio img {
    width: 140px;
  }
  .header-cta {
    padding: 10px 12px;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
  .hero {
    height: clamp(600px, 100svh, 900px);
  }
  .hero-image {
    transform: none;
  }
  .hero-image img {
    object-position: 50% 40%;
  }
  .hero-shade {
    background:
      linear-gradient(180deg, #07090a66, transparent 18%),
      linear-gradient(0deg, #0b0e11eb 0%, #0b0e11b3 30%, #0b0e1140 54%, transparent 68%);
  }
  .hero-copy {
    top: auto;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 62px;
    transform: none;
  }
  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.9rem);
    margin: 10px 0 12px;
    line-height: 0.9;
  }
  .hero-deck {
    font-size: 1.12rem;
    max-width: 28ch;
  }
  .hero .button {
    margin-top: 16px;
  }
  .hero-strip {
    bottom: 10px;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
  }
  .caption {
    font-size: 0.74rem;
    letter-spacing: 0.13em;
  }
  .tabs button {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 8px 2px;
  }
  .storm-crossing {
    display: block;
    padding-bottom: 24px;
  }
  .storm-stage {
    height: auto;
    padding: 14px 0 10px;
    gap: 12px;
    background: #171c1b;
  }
  .storm-heading h2 {
    font-size: clamp(2.2rem, 10vw, 2.7rem);
    margin: 0.3rem 0 0.35rem;
  }
  .storm-heading > p:last-child {
    font-size: 0.98rem;
    line-height: 1.4;
  }
  .storm-images {
    aspect-ratio: 16/9;
    max-height: none;
  }
  .storm-stories {
    padding-block: 0;
  }
  .phase-story,
  .life-story {
    min-height: 49svh;
    align-items: end;
    padding-bottom: 7svh;
    scroll-margin-top: 31vh;
  }
  .storm-controls {
    padding: 4px;
  }
  .phase-story h3,
  .life-story h3 {
    font-size: 2.1rem;
  }
  .storm-images video,
  .storm-images img {
    object-position: 30% center;
  }
  .colony-crossing {
    display: block;
    margin-top: 18px;
  }
  .colony-stage {
    height: auto;
    padding: 12px 0 10px;
    gap: 8px;
    background: var(--sheet);
  }
  /* Text passing under a pinned picture fades out instead of meeting a hard edge. */
  .storm-stage:after,
  .colony-stage:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 26px;
    pointer-events: none;
  }
  .storm-stage:after {
    background: linear-gradient(#171c1b, #171c1b00);
  }
  .colony-stage:after {
    background: linear-gradient(var(--sheet), #f1eee300);
  }
  .colony-stories {
    padding-block: 0;
  }
  .life-shots {
    max-height: none;
  }
  .life-shot figcaption {
    display: none;
  }
  .airlock-air {
    top: 11px;
    left: 12px;
    font-size: 0.62rem;
  }
  .hold-prompt {
    gap: 10px;
    font-size: 0.68rem;
    letter-spacing: 0.13em;
  }
  .hold-ring {
    width: 40px;
    height: 40px;
  }
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .photograph span {
    font-size: 0.95rem;
    padding: 28px 10px 8px;
  }
  .community .button {
    max-width: 100%;
  }
  footer {
    padding-block: 12px;
  }
  footer img {
    width: 143px;
  }
  .arrival {
    width: min(440px, calc(100vw - 24px));
  }
  .arrival-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .arrival-art {
    height: clamp(130px, 26svh, 210px);
  }
  .arrival-art img {
    object-position: 50% 32%;
  }
  .arrival-stamp {
    left: 14px;
    bottom: 10px;
  }
  .arrival-body {
    min-height: 0;
    padding: 22px 20px 20px;
  }
  .arrival h2 {
    font-size: clamp(2rem, 8.6vw, 2.5rem);
    margin-top: 0.7rem;
  }
  .arrival-actions .button {
    flex: 1 1 100%;
  }
  .arrival-close {
    background: #0d1212a6;
    top: 8px;
    right: 8px;
  }
  /* The form has no picture behind its close button, so the button needs no backing. */
  .signup-close {
    background: transparent;
  }
}
/* A phone held sideways has no room to pin a picture above the text, so each crossing reads as one column. */
@media (max-width: 680px) and (orientation: landscape) {
  .storm-stage,
  .colony-stage {
    position: relative;
  }
  .storm-stage:after,
  .colony-stage:after {
    display: none;
  }
}
/* Shorter phones keep the whole invitation on screen without scrolling inside it. */
@media (max-width: 680px) and (max-height: 760px) {
  .arrival-art {
    height: clamp(96px, 16svh, 140px);
  }
  .arrival-body {
    padding-top: 18px;
  }
  .arrival-actions {
    gap: 8px;
    margin-top: 1.2rem;
  }
}
/* Narrow phones: the form fills the width and the header keeps room for the email link. */
@media (max-width: 440px) {
  .signup {
    width: calc(100vw - 20px);
  }
  .signup-intro {
    font-size: 0.98rem;
  }
  .signup-small a {
    display: inline-block;
    margin-top: 2px;
  }
  .sitebar:has(#header-updates:not([hidden])) .studio img:first-child {
    display: none;
  }
  .sitebar:has(#header-updates:not([hidden])) .studio .studio-mark {
    display: block;
  }
}
@media (max-width: 370px) {
  .sitebar {
    padding-inline: 14px;
  }
  .social-link {
    width: 38px;
  }
  .hero-strip {
    font-size: 0.58rem;
    letter-spacing: 0.06em;
  }
  .hero-strip span {
    white-space: nowrap;
  }
  .hero-copy {
    bottom: 56px;
  }
}
@media (max-height: 600px) and (max-width: 680px) {
  .arrival-art {
    display: none;
  }
}
/* Landscape phones: the picture gives way and the buttons share a row. */
@media (max-height: 440px) {
  .arrival-art {
    display: none;
  }
  .arrival-panel {
    grid-template-columns: 1fr;
  }
  .arrival-body {
    min-height: 0;
  }
  .arrival h2 {
    font-size: 2rem;
  }
  .arrival-actions .button {
    flex: 1 1 auto;
  }
  .signup-body {
    padding-top: 22px;
  }
  .signup h2 {
    font-size: 1.9rem;
    margin-top: 0.6rem;
  }
  .signup-form {
    margin-top: 1.2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
  .hero-image,
  .photograph:hover img {
    transform: none;
  }
  .storm-images video,
  .airlock-film {
    display: none;
  }
}
