/* Layout: a starry sky with a live 3D Tiny Human standing on a planet, then the page
   digs underground. Scrolling is drilling: strata markers, a depth meter, and the
   background heats up toward the core. One deliberate deep-space look, same as the banners. */
:root {
  color-scheme: dark;
  --space: #0B1630;
  --space-deep: #081127;
  --planet: #10234B;
  --planet-hi: #1C3A70;
  --mantle: #1B0F1C;
  --core-outer: #3A1209;
  --core: #5C1D07;
  --ink: #F3F5FA;
  --muted: #A9B4CF;
  --orange: #FF6B1A;
  --orange-soft: #FF9A5C;
  --on-orange: #1A0B03;
  --cyan: #7FD8FF;
  --rim: rgba(127, 216, 255, 0.55);
  --glow: rgba(127, 216, 255, 0.16);
  --heat-glow: rgba(255, 107, 26, 0.32);
  --line: rgba(169, 180, 207, 0.18);
  --line-strong: rgba(169, 180, 207, 0.38);
  --chip: rgba(255, 107, 26, 0.14);
  --card: rgba(255, 255, 255, 0.04);
  --row-hover: rgba(127, 216, 255, 0.1);
  --row-hover-line: rgba(127, 216, 255, 0.34);
  --glare: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.45);
  --star: #FFFFFF;
  --star-cyan: #7FD8FF;
  --hud-cold: #12224A;
  --hud-hot: #B8360A;
  --font-display: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-data: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--space);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Sky ---------- */
.sky { position: relative; background: var(--space); }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px;
}
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wm-name { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: 0.02em; }
.wm-tag { font-weight: 700; font-size: 14px; color: var(--orange); margin-top: 4px; }
.top nav { display: flex; gap: 20px; font-weight: 600; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

.hero {
  --horizon: 76px;
  --planet-x: 74%;
  --fig-h: clamp(290px, 38vw, 460px);
  --mx: 0;
  --my: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding-bottom: var(--horizon);
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 32px;
  padding-top: 32px;
  pointer-events: none;
}
.hero-grid > * { pointer-events: auto; }
.hero-copy { min-width: 0; padding-bottom: 56px; }
.kicker {
  margin: 0 0 14px;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 5.2vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--orange); }
.lede { margin: 22px 0 0; max-width: 34em; color: var(--muted); font-size: 18px; }
.follow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.62em 1.1em;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s, translate 0.15s;
}
.btn:hover { border-color: var(--ink); translate: 0 -2px; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.btn.primary:hover { background: var(--orange-soft); border-color: var(--orange-soft); }
.dig {
  display: inline-flex;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--font-data);
  font-size: 13px;
  color: var(--cyan);
  text-decoration: none;
}
.dig:hover { color: var(--ink); }
.dig span { display: inline-block; animation: dig 1.6s ease-in-out infinite; }
@keyframes dig { 0%, 100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(3px) rotate(-18deg) } }

/* The 3D stage */
.hero-figure { margin: 0; justify-self: center; display: flex; align-items: flex-end; gap: 14px; }
.ruler {
  position: relative;
  flex: none;
  width: 12px;
  height: calc(var(--fig-h) * 0.735);
  margin-bottom: calc(var(--fig-h) * 0.027);
  border-right: 2px solid var(--cyan);
  background: repeating-linear-gradient(to top, var(--cyan) 0 1.5px, transparent 1.5px 10%) right / 8px 100% no-repeat;
}
.ruler::before, .ruler::after {
  content: "";
  position: absolute;
  right: -2px;
  width: 16px;
  height: 2px;
  background: var(--cyan);
}
.ruler::before { top: 0; }
.ruler::after { bottom: 0; }
.ruler-label {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 13px;
  color: var(--cyan);
  white-space: nowrap;
}
.stage {
  position: relative;
  width: calc(var(--fig-h) * 0.62);
  max-width: 70vw;
  height: var(--fig-h);
  touch-action: pan-y;
}
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage-fallback { position: absolute; left: 50%; bottom: 3%; height: 86%; width: auto; translate: -50% 0; }
.ground-shadow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46%;
  height: 16px;
  translate: -50% 50%;
  background: radial-gradient(ellipse at center, var(--shadow) 0, transparent 70%);
  scale: var(--s, 1);
  pointer-events: none;
}
.stage-hint {
  position: absolute;
  left: var(--planet-x);
  bottom: 26px;
  translate: -50% 0;
  margin: 0;
  font-family: var(--font-data);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  z-index: 3;
}

/* Speech bubbles */
.bubble {
  position: absolute;
  z-index: 4;
  max-width: 230px;
  width: max-content;
  padding: 8px 13px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--space);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: 0 8px 24px var(--shadow);
  pointer-events: none;
}
.bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  border: 8px solid transparent;
  border-top-color: var(--ink);
}
.hero-bubble { left: -14%; top: 4%; transform-origin: 100% 100%; }
.hero-bubble::after { right: 18px; }
.hero-bubble.pop { animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes pop { from { scale: 0.6; opacity: 0.4 } to { scale: 1; opacity: 1 } }

.crew {
  position: absolute;
  z-index: 3;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.crew img { display: block; width: 100%; height: auto; }
.crew .bubble {
  bottom: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  max-width: none;
  scale: 0;
  transform-origin: 50% 100%;
  transition: scale 0.28s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.crew .bubble::after { left: calc(50% - 8px); }
.crew:hover .bubble, .crew:focus-visible .bubble, .crew.talk .bubble { scale: 1; }

/* Floating emojis at different depths */
.emoji-layer { position: absolute; inset: 0; z-index: 0; }
.emo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 4px;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 1;
  font-size: calc(16px + var(--d) * 30px);
  opacity: calc(0.5 + var(--d) * 0.5);
  filter: blur(calc((1 - var(--d)) * 1.4px));
  transform: translate3d(calc(var(--mx) * var(--d) * 40px), calc(var(--my) * var(--d) * 26px), 0);
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), scale 0.2s, filter 0.2s;
}
.emo span { display: inline-block; animation: bob var(--dur, 6s) ease-in-out infinite alternate; }
.emo:hover, .emo:focus-visible { scale: 1.35; filter: none; opacity: 1; }
.emo.pop { animation: emopop 0.6s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes bob { from { transform: translateY(-7px) rotate(-7deg) } to { transform: translateY(7px) rotate(7deg) } }
@keyframes emopop { 0% { scale: 1 } 40% { scale: 1.8 } 100% { scale: 1 } }

.drifter {
  position: absolute;
  z-index: 0;
  top: 3%;
  left: 0;
  width: 54px;
  animation: drift 52s linear infinite;
}
.drifter img { animation: tumble 9s ease-in-out infinite alternate; }
@keyframes drift {
  0% { transform: translate3d(-90px, 12px, 0) }
  50% { transform: translate3d(48vw, -4px, 0) }
  100% { transform: translate3d(calc(100vw + 90px), 10px, 0) }
}
@keyframes tumble { from { transform: rotate(-14deg) } to { transform: rotate(16deg) } }

.planet {
  position: absolute;
  z-index: 1;
  left: var(--planet-x);
  top: calc(100% - var(--horizon));
  width: 3600px;
  height: 3600px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0, var(--planet-hi) 0, var(--planet) 4%, var(--space-deep) 14%);
  box-shadow: 0 0 0 2px var(--rim), 0 -26px 90px var(--glow);
  pointer-events: none;
}

/* ---------- Underground ---------- */
.underground {
  position: relative;
  background: linear-gradient(180deg, var(--space-deep) 0%, var(--space-deep) 28%, var(--mantle) 58%, var(--core-outer) 86%, var(--core) 100%);
}
section { padding-block: 64px; }
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.1;
  text-wrap: balance;
}
.section-lede { margin: 14px 0 0; max-width: 40em; color: var(--muted); }

.stratum {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 8px;
  font-family: var(--font-data);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.stratum::before, .stratum::after {
  content: "";
  flex: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.stratum b { color: var(--orange-soft); font-weight: 700; }

/* Missions */
.missions-head { position: relative; padding-right: 90px; }
.crew-peek { right: 0; top: -30px; width: 66px; }
.crew-peek img { animation: peek 3.2s ease-in-out infinite; }
@keyframes peek { 0%, 100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-6px) rotate(-5deg) } }

.scale { margin-top: 40px; display: grid; gap: 2px; }
.row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr) minmax(0, 10rem);
  align-items: center;
  gap: 20px;
  padding-inline: 18px;
}
/* Dividers are inset lines, so a highlighted row reads as one clean rounded box */
.row::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: var(--line);
  transition: opacity 0.2s;
}
.mission {
  padding-block: 28px 20px;
  border: 1px solid transparent;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.mission:is(:hover, .go) { background: var(--row-hover); border-color: var(--row-hover-line); }
.mission:focus-visible { outline: none; border-color: var(--cyan); }
.mission:is(:hover, .go, :focus-visible)::before,
.mission:is(:hover, .go, :focus-visible) + .row::before { opacity: 0; }
.m-name { min-width: 0; display: flex; gap: 12px; align-items: flex-start; }
.m-emoji { font-size: 26px; line-height: 1.1; transition: scale 0.2s; }
.mission:hover .m-emoji, .mission.go .m-emoji { scale: 1.25; }
.m-name h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; }
.m-stat { display: block; font-family: var(--font-data); font-size: 13px; color: var(--muted); }
.chip {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--orange-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.bar { position: relative; height: 12px; border-radius: 999px; background: var(--line); }
.bar .fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft));
  overflow: hidden;
}
.bar .fill::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, var(--glare), transparent);
  animation: shimmer 3.4s ease-in-out infinite;
}
@keyframes shimmer { from { translate: -100% 0 } to { translate: 400% 0 } }
.runner {
  position: absolute;
  left: 0;
  bottom: 8px;
  height: 32px;
  width: auto;
  translate: -50% 0;
  transition: left 1.4s cubic-bezier(0.3, 0.9, 0.3, 1);
  pointer-events: none;
}
.mission.go .runner { left: var(--w); animation: hop 0.22s ease-in-out 6 alternate; }
@keyframes hop { from { transform: translateY(0) } to { transform: translateY(-6px) } }
.m-count { font-family: var(--font-data); font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.m-count strong { display: block; font-size: 17px; color: var(--ink); }
.axis { padding-top: 8px; }
.ticks { position: relative; height: 34px; }
.ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-family: var(--font-data);
  font-size: 11px;
  color: var(--muted);
  padding-top: 8px;
}
.ticks span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 6px;
  background: var(--line-strong);
}
.ticks span:first-child { transform: none; }
.ticks span:first-child::before { left: 0; }
.ticks span:last-child { transform: translateX(-100%); }
.ticks span:last-child::before { left: auto; right: 0; }
.axis-note { font-family: var(--font-data); font-size: 12px; color: var(--muted); text-align: right; }

.sun {
  margin-top: 36px;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.sun-dot {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--orange-soft), var(--orange) 60%);
  box-shadow: 0 0 26px var(--heat-glow);
  animation: flare 2.8s ease-in-out infinite alternate;
}
@keyframes flare { from { box-shadow: 0 0 16px var(--heat-glow) } to { box-shadow: 0 0 40px var(--heat-glow) } }
.sun p { margin: 0; min-width: 0; color: var(--muted); }
.sun strong { color: var(--ink); }

/* Promise cards with a 3D tilt */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  position: relative;
  padding: 28px 24px 26px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), var(--glare), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card-emoji { font-size: 38px; line-height: 1; transform: translateZ(40px); display: inline-block; }
.card h3 { margin: 16px 0 8px; font-size: 20px; font-weight: 800; line-height: 1.25; transform: translateZ(24px); }
.card p { margin: 0; color: var(--muted); transform: translateZ(12px); }

/* Brands */
.brands-inner { display: grid; gap: 16px; }
.brands-inner p { margin: 0; max-width: 42em; color: var(--muted); }
.brand-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; margin-top: 44px; }
.crew-brand { position: relative; width: 58px; }

/* Core / footer */
.core-zone { background: radial-gradient(ellipse 70% 60% at 50% 115%, var(--heat-glow), transparent 70%); }
.core-msg { display: flex; align-items: flex-end; gap: 20px; padding-block: 40px 28px; }
.core-msg p { margin: 0; max-width: 36em; color: var(--muted); }
.core-msg strong { color: var(--ink); }
.crew-bye { position: relative; flex: none; width: 70px; }
.crew-bye img { animation: tumble 4s ease-in-out infinite alternate; }
.site-foot { padding-block: 8px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 15px; color: var(--muted); }
.page-home .site-foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }  /* room for the depth meter */
.site-foot .wrap > * { border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding-top: 32px; }
.foot-brand p { margin: 12px 0 0; max-width: 24em; }
.foot-grid nav { display: grid; gap: 8px; align-content: start; }
.foot-h { margin: 0 0 2px; font: 700 12px var(--font-data); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 28px; padding-top: 16px; font-size: 14px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}

/* Depth meter */
.hud {
  position: fixed;
  z-index: 20;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: color-mix(in srgb, var(--hud-hot) var(--heat, 0%), var(--hud-cold));
  box-shadow: 0 8px 24px var(--shadow);
  font-family: var(--font-data);
  font-size: 13px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.hud-arrow { color: var(--orange); }
.hud-depth { font-weight: 700; min-width: 7ch; text-align: right; }
.hud-sep { color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The Blorps stand next to Tiny Human in the hero, knee-high, for scale */
.crew-blorps { left: -58%; bottom: 2%; width: 74%; }
.crew-blorps img { filter: drop-shadow(0 10px 16px var(--shadow)); }

/* Season 1 */
.eps, .crew-grid, .facts { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.eps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.ep, .fact, .mate { border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.ep, .fact { display: flex; flex-direction: column; overflow: hidden; }
.ep-poster { aspect-ratio: 3 / 4; overflow: hidden; }
.ep-poster img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: scale 0.4s; }
.ep:hover .ep-poster img { scale: 1.04; }
.ep-body, .fact-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.ep-num { font-family: var(--font-data); font-size: 12px; letter-spacing: 0.14em; color: var(--cyan); }
.ep h3, .fact h3 { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.25; }
.ep p, .fact p { margin: 0; color: var(--muted); font-size: 16px; }
.when { margin-top: 0; }
.when.live { background: var(--row-hover); color: var(--cyan); }
.ep details { margin-top: 4px; font-size: 14px; color: var(--muted); }
.ep summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.ep details ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.ep details a { color: var(--cyan); }

/* Subscribe: free comic */
.nav-cta { padding: 0.35em 0.9em; border-radius: 999px; background: var(--orange); color: var(--on-orange) !important; font-weight: 800; }
.sub-card { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 40px; align-items: center; padding: 32px; border-radius: 28px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 107, 26, 0.16), transparent 55%), var(--card); border: 1px solid var(--line-strong); }
.sub-art { position: relative; justify-self: center; width: min(100%, 340px); }
.sub-art img { display: block; width: 100%; height: auto; border-radius: 18px; rotate: -3deg; box-shadow: 0 24px 48px var(--shadow); }
.sub-badge { position: absolute; top: -12px; right: -10px; rotate: 6deg; padding: 6px 12px; border-radius: 999px; background: var(--cyan); color: var(--space); font: 800 13px var(--font-data); letter-spacing: 0.1em; }
.sub-eyebrow { margin: 0 0 8px; font: 700 13px var(--font-data); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.sub-copy h2 em { font-style: normal; color: var(--orange); }
.sub-form { margin-top: 22px; display: grid; gap: 14px; justify-items: start; }
.sub-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; width: 100%; }
.field { display: grid; gap: 6px; min-width: 0; font-weight: 700; font-size: 14px; }
.field input { box-sizing: border-box; }
.field small { font-weight: 400; color: var(--muted); }
.field input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--space-deep); color: var(--ink); font: 400 16px var(--font-body); }
.field input:focus-visible, .check input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--orange); flex: none; }
.check a { color: var(--cyan); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sub-form .btn { font-size: 16px; padding: 0.75em 1.4em; cursor: pointer; }
.sub-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.sub-note { margin: 0; font-size: 13px; color: var(--muted); }
.sub-status { margin: 0; font-weight: 700; min-height: 1.4em; }
.sub-status.ok { color: var(--cyan); }
.sub-status.err { color: var(--orange-soft); }
@media (max-width: 820px) {
  .sub-card { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px 18px; }
  .sub-art { width: min(70%, 280px); }
  .sub-row { grid-template-columns: minmax(0, 1fr); }
}

/* Crew */
.mate { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 22px 22px; }
.mate .mate-pic { position: relative; align-self: stretch; height: 200px; display: flex; align-items: flex-end; justify-content: center; }
.mate .mate-pic img { width: auto; max-width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 18px var(--shadow)); }
.mate .mate-pic .bubble { bottom: auto; top: -18px; }
.mate .mate-pic .bubble::after { top: 100%; }
.mate h3 { margin: 12px 0 0; font-size: 22px; font-weight: 900; }
.mate p { margin: 4px 0 0; color: var(--muted); }
.trio { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.trio figure { margin: 0; display: grid; justify-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.trio img { width: 58px; height: 58px; object-fit: cover; object-position: 50% 30%; border-radius: 50%; background: var(--row-hover); border: 1px solid var(--line-strong); }

/* Facts */
.fact > img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.fact h3 em { font-style: normal; color: var(--orange); }
.src { margin-top: auto; padding-top: 6px; font-family: var(--font-data); font-size: 13px; color: var(--cyan); text-decoration: none; }
.src:hover { text-decoration: underline; }
.calc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: 12px; background: var(--chip); border: 1px solid var(--heat-glow); font-weight: 700; font-size: 15px; }
.calc input { width: 4.6em; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--space-deep); color: var(--ink); font: 700 16px var(--font-data); }
.calc output { font: 700 20px var(--font-data); color: var(--orange); }

@media (max-width: 1080px) {
  .eps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .crew-grid, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { --planet-x: 50%; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-bubble { left: -4%; }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .emo.wide { display: none; }
}
@media (max-width: 640px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding-inline: 12px; }
  .row::before { left: 12px; right: 12px; }
  .mission .bar { grid-column: 1 / -1; grid-row: 2; }
  .axis .row, .row.axis { grid-template-columns: minmax(0, 1fr); }
  .axis > div:first-child, .axis > div:last-child { display: none; }
  .ticks span:nth-child(even) { visibility: hidden; }
  section { padding-block: 52px; }
  .hud { left: 50%; right: auto; translate: -50% 0; font-size: 12px; white-space: nowrap; }
  .missions-head { padding-right: 70px; }
  .crew-peek { width: 54px; }
  .top nav { gap: 16px; }
  .nav-wide { display: none; }
  .crew-blorps { left: -52%; width: 66%; }
  .eps, .crew-grid, .facts { grid-template-columns: minmax(0, 1fr); }
  .ep-poster { aspect-ratio: 4 / 3; }
  .ep-poster img { object-position: 50% 22%; }
  .fact > img { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .emo span, .drifter, .drifter img, .crew-peek img, .crew-bye img, .dig span,
  .bar .fill::after, .sun-dot, .mission.go .runner { animation: none; }
  .drifter { left: auto; right: 6%; }
  .runner, .card, .emo, .btn, .ep-poster img { transition: none; }
}

/* Multi-page site: header nav, page heads, footer extras, home tiles, comics shop, prose.
   build.mjs serves this after site.css as one stylesheet. */
.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--orange); color: var(--on-orange); font-weight: 800; text-decoration: none; }
.skip:focus { left: 16px; }
.nav-wrap { display: flex; align-items: center; gap: 24px; }
.top .site-nav { display: flex; gap: 22px; font-weight: 700; font-size: 15px; }
.site-nav a { text-decoration: none; color: var(--muted); padding-block: 6px; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline 2px var(--orange); text-underline-offset: 8px; }
.nav-cta { text-decoration: none; white-space: nowrap; font-size: 15px; }
.nav-cta:hover { background: var(--orange-soft); }
.menu-btn { display: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: transparent; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: rotate 0.2s, translate 0.2s, background-color 0.2s; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { translate: 0 -6px; }
.menu-icon::after { translate: 0 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { translate: 0 0; rotate: 45deg; }
.menu-btn[aria-expanded="true"] .menu-icon::after { translate: 0 0; rotate: -45deg; }
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav-wrap { gap: 10px; }
  .top .site-nav {
    display: none; position: absolute; z-index: 30; top: calc(100% - 8px);
    left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px));
    flex-direction: column; gap: 2px; padding: 8px; border-radius: 18px; border: 1px solid var(--line-strong);
    background: var(--space-deep); box-shadow: 0 18px 40px var(--shadow); font-size: 18px;
  }
  .top .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; border-radius: 12px; }
  .site-nav a:hover { background: var(--row-hover); }
  .site-nav a[aria-current="page"] { background: var(--chip); color: var(--orange-soft); text-decoration: none; }
}
@media (max-width: 340px) { .nav-cta { display: none; } }

/* Page heads: the same night sky and planet edge as the home page, shorter */
.page-head { --horizon: 44px; --planet-x: 50%; position: relative; z-index: 1; overflow: hidden; padding-bottom: var(--horizon); }
.page-head-inner { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding-block: 24px 44px; }
.page-head h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); }
.page-head .lede { margin-top: 16px; }
.page-mascot { width: clamp(84px, 11vw, 140px); margin: 0 12px 0 0; filter: drop-shadow(0 12px 18px var(--shadow)); animation: float-y 3.4s ease-in-out infinite alternate; }
.page-mascot img { display: block; width: 100%; height: auto; }
@keyframes float-y { from { translate: 0 0; rotate: -4deg } to { translate: 0 -10px; rotate: 4deg } }
@media (max-width: 640px) {
  .page-head-inner { grid-template-columns: minmax(0, 1fr); padding-block: 8px 36px; }
  .page-mascot { position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); top: 0; width: 58px; margin: 0; }
  .page-head .kicker, .page-head h1 { padding-right: 66px; }
}
.inner { position: relative; background: linear-gradient(180deg, var(--space-deep) 0%, var(--space-deep) 70%, #110f24 100%); }
.inner > section:first-child { padding-top: 40px; }
.inner + .site-foot { background: #110f24; }
.site-foot .wm-name { color: var(--ink); }
/* The peeking crew member sits at the right edge, so its bubble opens leftwards instead of past the screen edge. */
.crew-peek .bubble { left: auto; right: 0; translate: none; transform-origin: 100% 100%; }
.crew-peek .bubble::after { left: auto; right: 20px; }

/* Home: where to next */
.explore { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: border-color 0.15s, translate 0.15s; }
.tile:hover { border-color: var(--rim); translate: 0 -4px; }
.tile-pic { aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; background: radial-gradient(circle at 50% 95%, var(--planet-hi), var(--space-deep) 72%); }
.tile-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: scale 0.4s; }
.tile:hover .tile-pic img { scale: 1.05; }
.tile-pic.cutout img { width: 86%; height: 86%; object-fit: contain; object-position: 50% 100%; }
.tile-body { display: grid; gap: 4px; padding: 16px 18px 18px; }
.tile-kicker { font: 700 12px var(--font-data); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.tile h3 { margin: 0; font-size: 20px; font-weight: 900; line-height: 1.2; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.tile-go { margin-top: 6px; font-weight: 800; font-size: 15px; color: var(--orange-soft); }
@media (max-width: 1080px) { .explore { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .explore { gap: 12px; }
  .tile-body { padding: 12px 12px 14px; }
  .tile h3 { font-size: 17px; }
  .tile p { font-size: 14px; }
  .tile-kicker { font-size: 11px; letter-spacing: 0.1em; }
}
.band-sec { padding-block: 16px 48px; }
.comic-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 20px 26px; border-radius: 24px; border: 1px solid var(--heat-glow); background: linear-gradient(120deg, rgba(255, 107, 26, 0.16), rgba(127, 216, 255, 0.07)); }
.comic-band img { display: block; width: 92px; height: auto; border-radius: 10px; rotate: -4deg; box-shadow: 0 12px 24px var(--shadow); }
.comic-band h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.comic-band h2 + p { margin: 6px 0 0; color: var(--muted); }
.comic-band .sub-eyebrow { margin-bottom: 4px; }
@media (max-width: 640px) {
  .comic-band { grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 18px; }
  .comic-band img { width: 72px; }
  .comic-band .btn { grid-column: 1 / -1; justify-content: center; }
}

/* Home: Tiny Crew collectibles, coming soon (figures drawn at their real relative heights) */
.collect-sec { padding-block: 8px 56px; }
.collect { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 32px; padding: 28px; border-radius: 28px; border: 1px dashed var(--line-strong); background: radial-gradient(ellipse 80% 70% at 75% 100%, rgba(127, 216, 255, 0.1), transparent 70%), var(--card); }
.collect-copy .btn { margin-top: 18px; }
.collect-row { list-style: none; margin: 0; padding: 0 0 4px; display: flex; align-items: flex-end; justify-content: center; gap: clamp(8px, 2.4vw, 22px); flex-wrap: wrap; }
.collect-row li { position: relative; display: grid; justify-items: center; gap: 8px; }
.collect-row img { display: block; height: var(--h); width: auto; filter: drop-shadow(0 8px 10px var(--shadow)); }
.collect-row li::before { content: ""; position: absolute; left: 50%; bottom: 22px; width: 64px; height: 14px; translate: -50% 50%; border-radius: 50%; background: radial-gradient(ellipse, rgba(127, 216, 255, 0.35), transparent 70%); z-index: -1; }
.collect-row span { font: 700 11px var(--font-data); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.collect-row .mystery img { filter: brightness(0) drop-shadow(0 0 1px var(--rim)); opacity: 0.8; }
.collect-row .mystery b { position: absolute; top: calc(100% - var(--h) - 22px); left: 50%; translate: -50% 0; font: 900 28px var(--font-display); color: var(--orange); }
@media (max-width: 820px) {
  .collect { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
}
@media (max-width: 420px) {
  .collect-row li:nth-child(3) { display: none; }
}

/* Comics: shelf, plans, questions */
.shelf { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.book { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.book-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: radial-gradient(circle at 50% 40%, #173f78, var(--space-deep) 75%); }
.book-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book-cover .soon-art { display: grid; place-items: center; height: 100%; font-size: 88px; }
.book-cover.ocean { background: radial-gradient(circle at 50% 30%, #2178ad, #071f3a 78%); }
.book-flag { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: var(--cyan); color: var(--space); font: 800 12px var(--font-data); letter-spacing: 0.1em; }
.book-flag.soon { background: var(--orange); color: var(--on-orange); }
.book-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.book h3 { margin: 0; font-size: 21px; font-weight: 900; line-height: 1.2; }
.book p { margin: 0; color: var(--muted); font-size: 16px; }
.book-buy { align-self: stretch; margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.price { font: 700 20px var(--font-data); }
.price small { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }
.btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }
@media (max-width: 1080px) { .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .shelf { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .book { flex-direction: row; }
  .book-cover { flex: none; width: 36%; align-self: flex-start; }
  .book-cover .soon-art { font-size: 52px; }
  .book-flag { top: 8px; left: 8px; font-size: 10px; padding: 4px 8px; }
  .book-body { padding: 14px; gap: 6px; }
  .book h3 { font-size: 18px; }
  .book p { font-size: 14px; }
  .book-buy .btn { font-size: 14px; }
}
.plans { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 880px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line-strong); }
.plan.best { border: 2px solid var(--orange); background: linear-gradient(160deg, rgba(255, 107, 26, 0.15), rgba(255, 255, 255, 0.03) 62%); }
.plan-flag { position: absolute; top: -13px; right: 22px; padding: 4px 12px; border-radius: 999px; background: var(--orange); color: var(--on-orange); font: 800 12px var(--font-data); letter-spacing: 0.1em; }
.plan h3 { margin: 0; font-size: 22px; font-weight: 900; }
.plan-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.plan-price strong { font: 900 42px/1 var(--font-display); }
.plan-price span { color: var(--muted); font-weight: 700; }
.plan ul { margin: 4px 0 10px; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { display: flex; gap: 10px; color: var(--muted); }
.plan li::before { content: "\2713"; color: var(--cyan); font-weight: 900; }
.plan .btn { margin-top: auto; justify-content: center; font-size: 16px; padding: 0.75em 1.2em; }
.plans-note { margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.plans-note a { color: var(--cyan); }
@media (max-width: 700px) { .plans { grid-template-columns: minmax(0, 1fr); } .plan { padding: 24px 20px; } }
.faq { margin-top: 28px; display: grid; gap: 12px; max-width: 820px; }
.faq details { padding: 0 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--orange); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }
.faq a { color: var(--cyan); }

/* About and privacy */
.prose { max-width: 760px; }
.prose h2 { margin: 40px 0 8px; font-size: 24px; }
.prose p, .prose li { color: #d6dcea; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose a { color: var(--cyan); }
.prose .box { margin: 4px 0 0; padding: 16px 18px; border-radius: 14px; border: 2px solid var(--orange); background: rgba(255, 107, 26, 0.08); }
.promises.spaced { margin-top: 32px; }
@media (prefers-reduced-motion: reduce) {
  .page-mascot { animation: none; }
  .tile, .tile-pic img { transition: none; }
}
