:root {
  color-scheme: dark;
  --ink: #f3eee4;
  --muted: #b9c0cc;
  --night: #070e1a;
  --line: rgba(224, 229, 242, 0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "DM Sans", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #f0caaa;
  outline-offset: 6px;
}
::selection {
  background: #cfb19b;
  color: #080d17;
}
.observatory {
  height: 100svh;
  min-height: 520px;
  position: relative;
  overflow: hidden;
  background: #060d19;
}
.sky {
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: none;
  user-select: none;
  overflow: hidden;
}
.sky.is-dragging {
  cursor: grabbing;
}
.sky canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.constellations {
  position: absolute;
  inset: 0;
}
.masthead {
  position: absolute;
  left: 42px;
  right: 42px;
  top: 30px;
  display: flex;
  align-items: center;
  gap: 28px;
  pointer-events: none;
  z-index: 4;
}
.masthead > * {
  pointer-events: auto;
}
.wordmark {
  font-family: "Instrument Serif", serif;
  font-size: 34px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.025em;
}
.wordmark svg {
  width: 30px;
  height: 34px;
  stroke: #e2cdb3;
  fill: #f7e9d2;
  stroke-width: 1;
  overflow: visible;
}
.wordmark-dot {
  color: #d9ae8b;
  margin-left: -11px;
}
.masthead-note {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.025em;
  padding-top: 6px;
}
.index-toggle {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(6, 13, 25, 0.62);
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.index-toggle:hover {
  border-color: #b5a695;
  background: #101b2a;
}
.count {
  font-size: 11px;
  color: #d5bb9e;
  font-variant-numeric: tabular-nums;
}
.index-toggle svg {
  width: 17px;
  height: 17px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1;
}
.introduction {
  position: absolute;
  left: 46px;
  bottom: 100px;
  pointer-events: none;
  z-index: 2;
}
.introduction h1 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-size: clamp(38px, 4.3vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  text-shadow: 0 2px 28px #040911;
}
.introduction em {
  font-weight: 400;
  color: #e9c9af;
}
.introduction p {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #bcc4ce;
  margin: 16px 0 0;
}
.sky-footer {
  position: absolute;
  bottom: 25px;
  left: 46px;
  right: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 4;
  pointer-events: none;
}
.sky-footer button {
  pointer-events: auto;
}
.wander-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #c2c8d2;
  letter-spacing: 0.035em;
}
.wander-hint svg {
  width: 26px;
  height: 16px;
  fill: none;
  stroke: #d8bba3;
  stroke-width: 0.9;
}
.sky-controls {
  display: flex;
  align-items: center;
  gap: 26px;
}
.sky-caption {
  font-family: "Instrument Serif", serif;
  font-size: 16px;
  font-style: italic;
  color: #b1b9c6;
}
.motion-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  font-size: 11px;
  letter-spacing: 0.03em;
  padding: 9px 0 9px 9px;
  color: #c8cdd7;
}
.motion-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.motion-toggle:hover {
  color: #f5d7b8;
}
.constellation {
  position: absolute;
  left: 0;
  top: 0;
  width: 185px;
  height: 140px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: center;
  isolation: isolate;
  touch-action: none;
}
.constellation::before {
  content: "";
  position: absolute;
  inset: 5px -8px 0;
  background: radial-gradient(
    ellipse,
    rgba(138, 176, 227, 0.1),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.45s;
  pointer-events: none;
}
.constellation:hover::before,
.constellation.is-active::before,
.constellation:focus-visible::before {
  opacity: 1;
}
.constellation svg {
  width: 160px;
  height: 104px;
  overflow: visible;
  display: block;
  margin: 0 auto;
}
.constellation .connection {
  fill: none;
  stroke: #bacde6;
  stroke-width: 0.65;
  opacity: 0.26;
  transition:
    opacity 0.35s,
    stroke 0.35s;
}
.constellation .trace {
  fill: none;
  stroke: #f0ddc3;
  stroke-width: 1;
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  opacity: 0;
}
.constellation .star-halo {
  fill: #9ebfe9;
  opacity: 0.04;
  transition:
    opacity 0.5s,
    fill 0.5s;
}
.constellation .star {
  fill: #d9e5f6;
  transition: fill 0.3s;
}
.constellation .spark {
  stroke: #f5e9db;
  stroke-width: 0.55;
  opacity: 0.38;
  transition: opacity 0.4s;
}
.constellation .name {
  display: block;
  font-size: 11px;
  font-weight: 450;
  letter-spacing: 0.11em;
  color: #d4dae4;
  text-shadow:
    0 1px 9px #040a14,
    0 1px 3px #040a14;
  line-height: 1.5;
  margin-top: 10px;
  transition: color 0.3s;
}
.constellation .name::after {
  content: "";
  display: block;
  width: 3px;
  height: 3px;
  background: #e4c3a4;
  margin: 7px auto;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s;
}
.constellation:hover .name,
.constellation.is-active .name,
.constellation:focus-visible .name {
  color: #f8e4ce;
}
.constellation:hover .star-halo,
.constellation.is-active .star-halo,
.constellation:focus-visible .star-halo {
  opacity: 0.28;
  fill: #edc8a4;
}
.constellation:hover .connection,
.constellation.is-active .connection,
.constellation:focus-visible .connection {
  opacity: 0.7;
  stroke: #e9d6c0;
}
.constellation:hover .trace,
.constellation.is-active .trace,
.constellation:focus-visible .trace {
  opacity: 1;
  animation: illuminate 1.1s var(--ease) forwards;
}
.constellation:hover .spark,
.constellation.is-active .spark,
.constellation:focus-visible .spark {
  opacity: 1;
}
.constellation:hover .name::after,
.constellation.is-active .name::after,
.constellation:focus-visible .name::after {
  opacity: 1;
}
@keyframes illuminate {
  to {
    stroke-dashoffset: 0;
  }
}
.project-card {
  position: absolute;
  width: 310px;
  z-index: 8;
  background: #101a29;
  border: 1px solid rgba(203, 211, 230, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 60px #0008;
  overflow: hidden;
  animation: card-arrive 0.3s var(--ease);
  transform-origin: top center;
}
.project-card[hidden],
.project-index[hidden] {
  display: none;
}
.project-card > img {
  display: block;
  width: 100%;
  height: 166px;
  object-fit: cover;
  object-position: top;
  background: #172132;
}
.close-button {
  position: absolute;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #ffffff30;
  border-radius: 50%;
  background: #08111ee8;
  z-index: 2;
}
.close-button svg {
  width: 16px;
  height: 16px;
  stroke: var(--ink);
  stroke-width: 1.2;
  fill: none;
}
.close-button:hover {
  background: #24334a;
}
.card-copy {
  padding: 20px;
}
.card-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  justify-content: space-between;
}
.card-heading h2 {
  font-family: "Instrument Serif", serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
}
.card-heading > span {
  font-size: 11px;
  color: #c2a98f;
  font-variant-numeric: tabular-nums;
}
.card-copy p {
  font-size: 13px;
  line-height: 1.65;
  color: #c6cbd4;
  margin: 10px 0 18px;
}
.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.card-links a {
  font-size: 11px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  color: #f0d0af;
  border-bottom: 1px solid #a1846240;
  text-underline-offset: 4px;
}
.card-links a:hover {
  border-color: #f0d0af;
}
.card-links svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}
@keyframes card-arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
    clip-path: inset(0 0 10% 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0);
  }
}
.project-index {
  position: absolute;
  right: 30px;
  top: 92px;
  bottom: 30px;
  width: 380px;
  z-index: 10;
  background: #0c1524;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  overflow: auto;
  box-shadow: 0 20px 70px #0009;
  animation: card-arrive 0.3s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: #738094 #0c1524;
}
.index-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}
.index-heading .close-button {
  position: static;
  flex-shrink: 0;
}
.index-heading h2 {
  font-family: "Instrument Serif", serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}
.index-heading p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 7px 0 0;
}
.index-row {
  display: grid;
  grid-template-columns: 32px 1fr 20px;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 17px 0;
  text-align: left;
  background: none;
}
.index-row:hover {
  color: #efceae;
}
.index-row .ordinal {
  font-size: 11px;
  color: #b8a28d;
  font-variant-numeric: tabular-nums;
}
.index-row .project-name {
  font-size: 13px;
}
.index-row svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #d3b391;
  stroke-width: 1;
}
.index-footnote {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 16px;
  color: #bbc3cf;
  margin: 25px 0 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.no-script {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: var(--night);
  padding: 40px;
  overflow: auto;
}
.no-script a {
  display: block;
  padding: 12px 0;
}
.no-script h1 {
  font-family: "Instrument Serif", serif;
  font-size: 50px;
  font-weight: 400;
}
.wordmark svg path {
  fill: none;
}
@media (max-height: 650px) {
  .introduction h1 {
    font-size: 32px;
  }
  .introduction p {
    display: none;
  }
  .introduction {
    bottom: 76px;
  }
  .sky-footer {
    bottom: 16px;
  }
  .sky-caption {
    display: none;
  }
}
@media (min-width: 1600px) {
  .masthead {
    left: 60px;
    right: 60px;
    top: 38px;
  }
  .introduction,
  .sky-footer {
    left: 64px;
  }
  .sky-footer {
    right: 60px;
    bottom: 32px;
  }
  .introduction {
    bottom: 120px;
  }
}
@media (max-width: 700px) {
  .introduction {
    isolation: isolate;
  }
  .introduction::before {
    content: "";
    position: absolute;
    inset: -24px -34px -18px -25px;
    z-index: -1;
    background: radial-gradient(
      ellipse at 30% 58%,
      rgba(3, 8, 16, 0.9),
      rgba(3, 8, 16, 0.72) 42%,
      rgba(3, 8, 16, 0) 76%
    );
    pointer-events: none;
  }
  .introduction p {
    color: #f0eee9;
    text-shadow: 0 1px 4px #030810;
  }
  .masthead {
    left: 22px;
    right: 22px;
    top: 20px;
    gap: 10px;
  }
  .wordmark {
    font-size: 29px;
    gap: 8px;
  }
  .wordmark svg {
    width: 24px;
  }
  .masthead-note {
    display: none;
  }
  .index-toggle {
    font-size: 11px;
    padding: 10px 11px;
    gap: 8px;
  }
  .index-toggle .count {
    display: none;
  }
  .index-toggle svg {
    width: 15px;
    height: 15px;
  }
  .introduction {
    left: 25px;
    bottom: 100px;
  }
  .introduction h1 {
    font-size: 40px;
    line-height: 1.02;
  }
  .introduction p {
    max-width: 235px;
    font-size: 12px;
    line-height: 1.6;
    margin-top: 13px;
  }
  .sky-footer {
    left: 25px;
    right: 22px;
    bottom: 24px;
    gap: 10px;
    align-items: flex-end;
  }
  .wander-hint {
    font-size: 11px;
    gap: 9px;
    max-width: 220px;
    line-height: 1.6;
  }
  .wander-hint svg {
    width: 22px;
    flex-shrink: 0;
  }
  .sky-caption {
    display: none;
  }
  .motion-toggle {
    font-size: 11px;
    white-space: nowrap;
  }
  .constellation {
    width: 160px;
    height: 125px;
  }
  .constellation svg {
    width: 145px;
    height: 94px;
  }
  .constellation .name {
    font-size: 11px;
    margin-top: 7px;
  }
  .project-card {
    position: fixed;
    left: 16px !important;
    right: 16px;
    bottom: 16px;
    top: auto !important;
    width: auto;
    max-height: calc(100svh - 100px);
    overflow: auto;
    transform-origin: bottom center;
  }
  .project-card > img {
    height: 160px;
  }
  .project-card .card-copy {
    padding: 18px 20px 22px;
  }
  .project-index {
    position: fixed;
    inset: 86px 16px 16px;
    width: auto;
    padding: 24px;
  }
  .index-row {
    padding: 16px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.1s !important;
  }
  .project-card,
  .project-index {
    animation: none;
  }
  .constellation .trace {
    stroke-dashoffset: 0;
  }
  .constellation:hover .trace,
  .constellation.is-active .trace,
  .constellation:focus-visible .trace {
    stroke-dashoffset: 0;
  }
}
