:root {
  --ink: #132a27;
  --ink-soft: #38504c;
  --cream: #f4f0df;
  --paper: #fbf8eb;
  --orange: #f45d35;
  --yellow: #f2c94c;
  --mint: #a9d6c8;
  --line: rgba(19, 42, 39, 0.2);
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    radial-gradient(circle, var(--ink) 0 1px, transparent 1.4px),
    radial-gradient(circle, var(--ink) 0 1px, transparent 1.4px);
  background-size: 83px 83px, 137px 137px;
  background-position: 13px 27px, 71px 11px;
}

.stars-two {
  opacity: 0.12;
  transform: rotate(17deg) scale(1.2);
}

.site-header {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: block;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 44% 44%;
  background: var(--paper);
}

.brand-mark::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -7px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--orange);
  z-index: -1;
}

.helmet-glass {
  position: absolute;
  inset: 8px 6px 9px;
  border-radius: 50% 50% 40% 40%;
  background: var(--ink);
  overflow: hidden;
}

.helmet-glass::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 5px;
  top: 5px;
  right: 3px;
  border-radius: 50%;
  background: var(--mint);
  transform: rotate(-20deg);
}

nav {
  display: flex;
  align-items: center;
  gap: 42px;
}

nav a {
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 2px;
  background: var(--orange);
  transition: right 180ms ease;
}

nav a:hover::after {
  right: 0;
}

.sound-button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.sound-button span {
  width: 2px;
  height: 11px;
  background: currentColor;
}

.sound-button span:nth-child(2) {
  height: 18px;
}

.sound-button.is-on span {
  animation: equalizer 600ms ease-in-out infinite alternate;
}

.sound-button.is-on span:nth-child(2) {
  animation-delay: -200ms;
}

.sound-button.is-on span:nth-child(3) {
  animation-delay: -400ms;
}

@keyframes equalizer {
  to { height: 4px; }
}

main {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: 730px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: 90px 50px 80px 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 28px;
  height: 2px;
  background: var(--orange);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 770px;
  margin-bottom: 32px;
  font-size: clamp(54px, 5.5vw, 92px);
  line-height: 0.97;
  letter-spacing: -0.065em;
}

h1 em,
h2 em {
  color: var(--orange);
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero-intro {
  max-width: 600px;
  margin-bottom: 42px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.date-console {
  max-width: 610px;
  padding: 20px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
}

.date-console label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.date-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
select {
  min-width: 0;
  height: 58px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: var(--cream);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 93, 53, 0.13);
}

.date-row button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--paper);
  background: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.date-row button:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

.console-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-light {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #46a277;
  box-shadow: 0 0 0 3px rgba(70, 162, 119, 0.12);
}

.quick-dates {
  max-width: 610px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.quick-dates span {
  opacity: 0.6;
}

.quick-dates button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.hero-art {
  position: relative;
  height: 590px;
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(19, 42, 39, 0.25);
  border-radius: 50%;
}

.orbit-one {
  width: 650px;
  height: 310px;
  left: 20px;
  top: 145px;
  transform: rotate(-18deg);
}

.orbit-two {
  width: 480px;
  height: 530px;
  right: -100px;
  top: 25px;
  transform: rotate(24deg);
}

.planet {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -45px;
  bottom: -30px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  overflow: hidden;
  box-shadow: -20px -16px 0 rgba(242, 201, 76, 0.2);
}

.planet::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(19, 42, 39, 0.25);
  border-radius: 50%;
}

.planet-land {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 48% 52% 46% 54%;
  background: var(--yellow);
}

.land-one {
  width: 130px;
  height: 80px;
  left: 20px;
  top: 55px;
  transform: rotate(-20deg);
}

.land-two {
  width: 110px;
  height: 150px;
  right: 35px;
  top: 100px;
  transform: rotate(28deg);
}

.land-three {
  width: 80px;
  height: 55px;
  left: 65px;
  bottom: 32px;
}

.astronaut {
  position: absolute;
  width: 250px;
  height: 400px;
  left: 135px;
  top: 72px;
  transform: rotate(8deg);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  50% { transform: translateY(-15px) rotate(5deg); }
}

.astro-pack {
  position: absolute;
  width: 120px;
  height: 170px;
  left: 69px;
  top: 115px;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: #d8d6c9;
  transform: rotate(-4deg);
}

.astro-head {
  position: absolute;
  z-index: 5;
  width: 128px;
  height: 125px;
  left: 58px;
  top: 15px;
  border: 4px solid var(--ink);
  border-radius: 48% 48% 43% 43%;
  background: var(--paper);
}

.astro-visor {
  position: absolute;
  inset: 20px 13px 18px;
  border: 3px solid var(--ink);
  border-radius: 46% 46% 40% 40%;
  background: var(--ink);
  overflow: hidden;
}

.astro-visor::after {
  content: "";
  position: absolute;
  width: 80px;
  height: 40px;
  right: -18px;
  top: 8px;
  border-radius: 50%;
  background: var(--mint);
  transform: rotate(-15deg);
  opacity: 0.75;
}

.visor-shine {
  position: absolute;
  z-index: 2;
  width: 26px;
  height: 8px;
  right: 15px;
  top: 15px;
  border-radius: 50%;
  background: var(--paper);
  transform: rotate(-18deg);
}

.astro-body {
  position: absolute;
  z-index: 4;
  width: 128px;
  height: 160px;
  left: 60px;
  top: 130px;
  border: 4px solid var(--ink);
  border-radius: 26px 26px 38px 38px;
  background: var(--paper);
}

.mission-patch {
  position: absolute;
  width: 24px;
  height: 24px;
  right: 19px;
  top: 28px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--orange);
}

.chest-panel {
  position: absolute;
  width: 65px;
  height: 42px;
  left: 29px;
  bottom: 28px;
  border: 3px solid var(--ink);
  background:
    linear-gradient(90deg, var(--orange) 0 22%, transparent 22% 30%, var(--yellow) 30% 52%, transparent 52%);
}

.astro-arm,
.astro-leg {
  position: absolute;
  border: 4px solid var(--ink);
  background: var(--paper);
}

.astro-arm {
  z-index: 3;
  width: 57px;
  height: 145px;
  top: 139px;
  border-radius: 30px;
}

.arm-left {
  left: 29px;
  transform: rotate(28deg);
  transform-origin: top right;
}

.arm-right {
  right: 26px;
  transform: rotate(-39deg);
  transform-origin: top left;
}

.astro-leg {
  z-index: 2;
  width: 58px;
  height: 145px;
  top: 265px;
  border-radius: 25px 25px 14px 14px;
}

.leg-left {
  left: 63px;
  transform: rotate(7deg);
}

.leg-right {
  right: 60px;
  transform: rotate(-17deg);
}

.art-caption {
  position: absolute;
  left: 35px;
  bottom: 15px;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transform: rotate(-90deg);
  transform-origin: left top;
}

.today-strip {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.today-strip h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.today-strip .eyebrow {
  margin-bottom: 10px;
}

.today-message {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  padding-left: 28px;
  border-left: 1px solid var(--line);
  color: var(--ink-soft);
  line-height: 1.6;
}

.today-message strong {
  color: var(--ink);
}

.today-badge {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--paper);
  background: var(--orange);
  font-family: var(--mono);
  font-size: 12px;
}

.calendar-section {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 56px;
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
}

.calendar-intro h2 {
  margin-bottom: 22px;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.calendar-intro > p {
  max-width: 460px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.calendar-console {
  padding: 22px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.calendar-toolbar label {
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calendar-toolbar input {
  height: 48px;
}

.calendar-toolbar button {
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
}

.calendar-toolbar button:hover {
  background: var(--orange);
}

.calendar-summary {
  min-height: 22px;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  text-transform: uppercase;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
}

.calendar-weekdays {
  margin-bottom: 7px;
}

.calendar-weekdays span {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
  text-transform: uppercase;
}

.calendar-blank,
.calendar-day {
  min-height: 92px;
}

.calendar-day {
  position: relative;
  display: grid;
  align-content: space-between;
  justify-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  background: rgba(169, 214, 200, 0.16);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.calendar-day:disabled {
  cursor: default;
  opacity: 0.38;
}

.calendar-day:not(:disabled):hover,
.calendar-day.is-selected {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.calendar-day.is-selected {
  background: var(--yellow);
}

.calendar-day.count-2 {
  background: rgba(169, 214, 200, 0.36);
}

.calendar-day.count-3 {
  background: rgba(242, 201, 76, 0.46);
}

.calendar-day.count-4 {
  background: rgba(244, 93, 53, 0.18);
}

.calendar-date {
  font-family: var(--mono);
  font-size: 10px;
}

.calendar-day strong {
  color: var(--orange);
  font-size: clamp(22px, 2vw, 34px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.calendar-day span:last-child {
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.change-section {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 56px;
  padding: 82px 0;
  border-bottom: 1px solid var(--line);
}

.change-intro h2 {
  margin-bottom: 22px;
  font-size: clamp(44px, 5vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.change-intro > p {
  max-width: 460px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}

.change-console {
  padding: 22px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
}

.change-toolbar {
  max-width: 260px;
  margin-bottom: 16px;
}

.change-toolbar label {
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.change-toolbar select {
  height: 48px;
}

.change-summary {
  min-height: 22px;
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  text-transform: uppercase;
}

.change-list {
  display: grid;
  gap: 12px;
}

.change-record {
  display: grid;
  grid-template-columns: minmax(185px, 0.44fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(169, 214, 200, 0.12);
}

.change-date {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  cursor: pointer;
  text-align: left;
}

.change-date:hover {
  background: var(--orange);
}

.change-date strong,
.change-date span {
  display: block;
}

.change-date strong {
  font-size: 18px;
  line-height: 1.1;
}

.change-date span {
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  text-transform: uppercase;
}

.change-pills {
  display: flex;
  flex-direction: column;
  gap: 7px;
  justify-content: center;
}

.change-pill {
  white-space: nowrap;
  padding: 8px 10px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.change-pill.is-launch {
  background: rgba(169, 214, 200, 0.45);
}

.change-pill.is-return {
  background: rgba(242, 201, 76, 0.4);
}

.change-manifest {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.manifest-column {
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(251, 248, 235, 0.65);
}

.manifest-column h4 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.manifest-column ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.manifest-column li {
  display: grid;
  gap: 2px;
}

.manifest-column strong {
  font-size: 13px;
}

.manifest-column span,
.manifest-column p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.35;
}

.results-section {
  padding: 90px 0 110px;
  border-bottom: 1px solid var(--line);
}

.results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.results-heading h2 {
  margin-bottom: 0;
  font-size: clamp(48px, 6vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.result-count {
  display: flex;
  align-items: center;
  gap: 14px;
}

.result-count strong {
  color: var(--orange);
  font-size: 86px;
  line-height: 1;
  letter-spacing: -0.08em;
}

.result-count span {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  text-transform: uppercase;
}

.result-summary {
  max-width: 700px;
  margin: 24px 0 48px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.astronaut-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.astronaut-card {
  position: relative;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--ink);
  background: var(--paper);
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.astronaut-card:hover {
  transform: translateY(-6px);
  box-shadow: 7px 7px 0 var(--ink);
}

.astronaut-card::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -65px;
  top: 55px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.card-index {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-portrait {
  position: absolute;
  width: 160px;
  height: 160px;
  right: -10px;
  top: 86px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--mint);
  overflow: hidden;
}

.card-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
}

.card-portrait.has-photo::before,
.card-portrait.has-photo::after {
  display: none;
}

.card-portrait::before {
  content: "";
  position: absolute;
  width: 62px;
  height: 72px;
  left: 48px;
  top: 24px;
  border: 2px solid var(--ink);
  border-radius: 47% 47% 42% 42%;
  background: var(--yellow);
}

.card-portrait::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 75px;
  left: 19px;
  bottom: -23px;
  border: 2px solid var(--ink);
  border-radius: 50% 50% 0 0;
  background: var(--paper);
}

.card-body {
  position: relative;
  z-index: 2;
  padding-top: 185px;
}

.card-body h3 {
  max-width: 75%;
  margin-bottom: 8px;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.card-body > p {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.6;
  text-transform: uppercase;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.card-footer > span:first-child {
  color: var(--ink-soft);
  line-height: 1.35;
}

.match-score {
  flex: 0 0 auto;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 10px;
}

.empty-state {
  padding: 75px 30px;
  border: 1px dashed var(--ink);
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 12px;
  font-size: 28px;
}

.empty-state p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--ink-soft);
  line-height: 1.7;
}

.empty-orbit {
  width: 70px;
  height: 35px;
  display: block;
  margin: 0 auto 30px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.birthday-year-group {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  background: rgba(251, 248, 235, 0.58);
}

.birthday-year-group + .birthday-year-group {
  margin-top: 18px;
}

.group-summary {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, auto) auto auto;
  gap: 22px;
  align-items: center;
  padding: 20px 22px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.group-summary:hover {
  background: rgba(169, 214, 200, 0.18);
}

.group-summary-copy {
  display: block;
}

.group-summary-copy h3 {
  margin: 0 0 6px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.045em;
}

.group-summary-copy > span {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.summary-portraits {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 160px;
}

.summary-portrait,
.summary-more {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-left: -10px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  color: var(--ink);
  background: var(--mint);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
}

.summary-portrait:first-child {
  margin-left: 0;
}

.summary-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.summary-more {
  border-color: var(--ink);
  color: var(--paper);
  background: var(--ink);
}

.group-count {
  display: grid;
  justify-items: end;
}

.group-count strong {
  color: var(--orange);
  font-size: 46px;
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.group-count span {
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.group-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
  font-size: 20px;
  transition: transform 180ms ease, background 180ms ease;
}

.birthday-year-group.is-open .group-arrow {
  background: var(--orange);
  transform: rotate(180deg);
}

.group-details {
  padding: 0 22px 22px;
}

.birthday-year-group.is-compact {
  border-color: rgba(19, 42, 39, 0.28);
}

.birthday-year-group.is-compact .astronaut-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.birthday-year-group.is-compact .astronaut-card {
  min-height: 128px;
  padding: 14px;
}

.birthday-year-group.is-compact .astronaut-card:hover {
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 var(--ink);
}

.birthday-year-group.is-compact .astronaut-card::after {
  width: 86px;
  height: 86px;
  right: -28px;
  top: 30px;
}

.birthday-year-group.is-compact .card-index {
  gap: 10px;
  font-size: 8px;
}

.birthday-year-group.is-compact .card-index span:last-child {
  display: none;
}

.birthday-year-group.is-compact .card-portrait {
  width: 54px;
  height: 54px;
  top: 43px;
  right: 12px;
}

.birthday-year-group.is-compact .card-portrait::before {
  width: 22px;
  height: 25px;
  left: 15px;
  top: 8px;
}

.birthday-year-group.is-compact .card-portrait::after {
  width: 42px;
  height: 28px;
  left: 5px;
  bottom: -8px;
}

.birthday-year-group.is-compact .card-body {
  padding-top: 16px;
  padding-right: 58px;
}

.birthday-year-group.is-compact .card-body h3 {
  max-width: none;
  margin-bottom: 4px;
  font-size: 20px;
}

.birthday-year-group.is-compact .card-body > p {
  margin-bottom: 0;
  font-size: 8px;
  line-height: 1.4;
}

.birthday-year-group.is-compact .card-footer {
  padding-top: 10px;
  font-size: 10px;
}

.birthday-year-group.is-compact .card-footer > span:first-child {
  display: none;
}

.astronaut-grid.is-compact-results {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.astronaut-grid.is-compact-results .astronaut-card {
  min-height: 128px;
  padding: 14px;
}

.astronaut-grid.is-compact-results .astronaut-card::after {
  width: 86px;
  height: 86px;
  right: -28px;
  top: 30px;
}

.astronaut-grid.is-compact-results .card-index {
  font-size: 8px;
}

.astronaut-grid.is-compact-results .card-index span:last-child {
  display: none;
}

.astronaut-grid.is-compact-results .card-portrait {
  width: 54px;
  height: 54px;
  top: 43px;
  right: 12px;
}

.astronaut-grid.is-compact-results .card-body {
  padding-top: 16px;
  padding-right: 58px;
}

.astronaut-grid.is-compact-results .card-body h3 {
  max-width: none;
  margin-bottom: 4px;
  font-size: 20px;
}

.astronaut-grid.is-compact-results .card-body > p {
  margin-bottom: 0;
  font-size: 8px;
  line-height: 1.4;
}

.astronaut-grid.is-compact-results .card-footer {
  padding-top: 10px;
  font-size: 10px;
}

.astronaut-grid.is-compact-results .card-footer > span:first-child {
  display: none;
}

.mission-section {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 60px;
  padding: 130px 0;
  border-bottom: 1px solid var(--line);
}

.section-number {
  padding-top: 5px;
  font-family: var(--mono);
  font-size: 11px;
}

.mission-copy h2,
.archive-copy h2 {
  margin-bottom: 32px;
  font-size: clamp(46px, 5vw, 75px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.mission-copy > p:last-child,
.archive-copy > p {
  max-width: 580px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.8;
}

.mission-steps {
  border-top: 1px solid var(--ink);
}

.mission-steps article {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}

.mission-steps article > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 11px;
}

.mission-steps h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.mission-steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.archive-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 720px;
  border-bottom: 1px solid var(--line);
}

.archive-visual {
  position: relative;
  margin-left: -24px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.archive-orbit {
  position: absolute;
  width: 520px;
  height: 520px;
  left: 50%;
  top: 50%;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.archive-orbit::before,
.archive-orbit::after {
  content: "";
  position: absolute;
  inset: 70px;
  border: 1px dashed var(--line);
  border-radius: 50%;
}

.archive-orbit::after {
  inset: 145px;
  border-style: solid;
}

.archive-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--paper);
  background: var(--orange);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 10px 10px 0 var(--ink);
}

.archive-card {
  position: absolute;
  width: 92px;
  height: 55px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  box-shadow: 5px 5px 0 var(--ink);
}

.card-one { left: 18%; top: 20%; transform: rotate(-8deg); }
.card-two { right: 12%; top: 27%; transform: rotate(7deg); }
.card-three { left: 22%; bottom: 17%; transform: rotate(5deg); }

.archive-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 0 90px 90px;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 38px 0;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.archive-stats strong,
.archive-stats span {
  display: block;
}

.archive-stats strong {
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 24px;
}

.archive-stats span {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.data-disclosure {
  padding-left: 15px;
  border-left: 3px solid var(--yellow);
  font-family: var(--mono);
  font-size: 10px !important;
  line-height: 1.6 !important;
  text-transform: uppercase;
}

.database-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 13px 16px;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  text-decoration: none;
  text-transform: uppercase;
}

footer {
  width: min(1400px, calc(100% - 48px));
  min-height: 150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  font-size: 12px;
}

.footer-orbit {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--orange);
}

dialog::backdrop {
  background: rgba(19, 42, 39, 0.78);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  right: 20px;
  top: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 24px;
  cursor: pointer;
}

.profile-hero {
  position: relative;
  padding: 65px 60px 45px;
  background: var(--mint);
  overflow: hidden;
}

.profile-hero .eyebrow {
  margin-bottom: 18px;
}

.profile-hero h2 {
  max-width: 580px;
  margin-bottom: 12px;
  font-size: 55px;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.profile-hero > p {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.profile-portrait {
  position: absolute;
  right: 38px;
  bottom: -32px;
  width: 150px;
  height: 150px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 7px 7px 0 var(--ink);
}

.profile-content {
  padding: 40px 60px 55px;
}

.profile-content > p {
  color: var(--ink-soft);
  line-height: 1.8;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 30px 0;
}

.profile-facts div {
  padding: 16px;
  border: 1px solid var(--line);
}

.profile-facts strong,
.profile-facts span {
  display: block;
}

.profile-facts strong {
  margin-bottom: 5px;
  font-size: 14px;
}

.profile-facts span {
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-links a {
  padding: 10px 14px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  text-decoration: none;
  text-transform: uppercase;
}

.profile-links a:hover {
  color: var(--paper);
  background: var(--ink);
}

.database-page main {
  min-height: 70vh;
}

.database-hero {
  max-width: 920px;
  padding: 95px 0 55px;
}

.database-hero h1 {
  margin-bottom: 24px;
}

.database-hero p {
  max-width: 720px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
}

.database-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  padding: 28px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--ink);
}

.database-controls label {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.database-controls input[type="search"] {
  width: 100%;
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
}

.checkbox-label input {
  width: 19px;
  height: 19px;
  min-width: 19px;
}

.database-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 45px 0;
}

.database-summary article {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(251, 248, 235, 0.6);
}

.database-summary strong,
.database-summary span {
  display: block;
}

.database-summary strong {
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 34px;
  letter-spacing: -0.06em;
}

.database-summary span {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.database-list {
  display: grid;
  gap: 18px;
  padding-bottom: 90px;
}

.database-record {
  display: grid;
  grid-template-columns: 0.85fr 1.2fr;
  gap: 36px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.database-record.is-active {
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--orange);
}

.record-kicker {
  margin-bottom: 12px;
  color: var(--orange);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.database-record h2 {
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.database-record p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.database-record dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
}

.database-record dt {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.database-record dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.mission-history {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.mission-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.mission-history h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.mission-history-header span {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
}

.mission-history ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mission-history li {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(169, 214, 200, 0.14);
}

.mission-history li.is-active {
  border-color: var(--ink);
  background: rgba(244, 93, 53, 0.12);
}

.mission-history strong,
.mission-history span,
.mission-history small {
  display: block;
}

.mission-history strong {
  font-size: 14px;
}

.mission-history span,
.mission-history small {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
}

.mission-history small {
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}

.record-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.record-links a {
  padding: 9px 12px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 9px;
  text-decoration: none;
  text-transform: uppercase;
}

.record-links a:hover {
  color: var(--paper);
  background: var(--ink);
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-right: 0;
  }

  .hero-art {
    height: 560px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .astronaut-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-section {
    grid-template-columns: 50px 1fr;
  }

  .mission-steps {
    grid-column: 2;
  }

  .archive-section {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .archive-copy {
    padding-left: 50px;
  }

}

@media (max-width: 760px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1400px);
  }

  .site-header {
    min-height: 88px;
  }

  nav {
    display: none;
  }

  .hero-copy {
    padding: 65px 0;
  }

  h1 {
    font-size: 51px;
  }

  .date-row {
    grid-template-columns: 1fr;
  }

  .date-row button {
    height: 55px;
  }

  .hero-art {
    height: 490px;
  }

  .astronaut {
    left: 50%;
    transform: translateX(-58%) rotate(8deg) scale(0.86);
    transform-origin: top;
  }

  @keyframes float {
    50% { transform: translateX(-58%) translateY(-12px) rotate(5deg) scale(0.86); }
  }

  .planet {
    width: 250px;
    height: 250px;
  }

  .today-strip,
  .calendar-section,
  .change-section,
  .archive-section {
    grid-template-columns: 1fr;
  }

  .today-strip {
    gap: 25px;
  }

  .today-message {
    padding: 20px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .calendar-section {
    gap: 28px;
    padding: 68px 0;
  }

  .change-section {
    gap: 28px;
    padding: 68px 0;
  }

  .calendar-intro > p,
  .change-intro > p {
    max-width: none;
  }

  .calendar-day {
    min-height: 78px;
    padding: 8px;
  }

  .results-heading {
    align-items: start;
    flex-direction: column;
  }

  .astronaut-grid {
    grid-template-columns: 1fr;
  }

  .mission-section {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 90px 0;
  }

  .mission-steps {
    grid-column: auto;
  }

  .archive-visual {
    min-height: 500px;
    margin-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .archive-orbit {
    width: 400px;
    height: 400px;
  }

  .archive-copy {
    padding: 75px 0;
  }

  .profile-facts,
  .database-summary,
  .database-record,
  .database-record dl {
    grid-template-columns: 1fr;
  }

  .group-summary {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding: 16px;
  }

  .summary-portraits,
  .group-count {
    grid-column: 1 / -1;
    justify-content: flex-start;
    justify-items: start;
  }

  .group-arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .group-details {
    padding: 0 16px 16px;
  }

  .calendar-console {
    padding: 14px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .calendar-toolbar {
    grid-template-columns: 42px 1fr 42px;
    gap: 8px;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 4px;
  }

  .calendar-weekdays span {
    font-size: 7px;
  }

  .calendar-blank,
  .calendar-day {
    min-height: 64px;
  }

  .change-console {
    padding: 14px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .change-record,
  .change-manifest,
  .mission-history ol {
    grid-template-columns: 1fr;
  }

  .change-pills {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .calendar-day strong {
    font-size: 20px;
  }

  .calendar-day span:last-child {
    display: none;
  }

  .database-controls {
    grid-template-columns: 1fr;
  }

  footer {
    min-height: 210px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
  }

  .profile-hero,
  .profile-content {
    padding-left: 28px;
    padding-right: 28px;
  }

  .profile-hero h2 {
    font-size: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
