#space-fx {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

#space-fx[hidden] { display: none; }

#space-hole {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.space-flash {
  position: absolute;
  inset: 0;
  background: #fff7ea;
  opacity: 0;
}

html.is-orbiting body > header,
html.is-orbiting #top,
html.is-orbiting .chapters,
html.is-orbiting .dock {
  transform-origin: center center;
  will-change: transform, filter;
}

#orbit {
  position: fixed;
  inset: 0;
  z-index: 180;
  overflow: auto;
  background: #0c0a12;
  color: #f4f1ea;
  font-family: Inter, system-ui, sans-serif;
  clip-path: circle(var(--open, 150vmax) at 50% 50%);
}

#orbit[hidden] { display: none; }

.orbit-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px clamp(20px, 4vw, 48px);
  background: rgba(12, 10, 18, 0.72);
  backdrop-filter: blur(10px);
}

.orbit-brand {
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: inherit;
  text-decoration: none;
}

.orbit-links {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.orbit-links a,
.orbit-back,
.orbit-pills a,
.orbit-work a,
.orbit-contact a {
  color: inherit;
  text-decoration: none;
}

.orbit-links a,
.orbit-back {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.orbit-back {
  border: 1px solid rgba(244, 241, 234, 0.28);
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.orbit-back:focus-visible,
.orbit-links a:focus-visible,
.orbit-pills a:focus-visible,
.orbit-work a:focus-visible,
.orbit-contact a:focus-visible,
.gate-space:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.orbit-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 12vh clamp(20px, 6vw, 88px) 10vh;
  background:
    radial-gradient(50% 40% at 70% 45%, rgba(90, 70, 160, 0.28), transparent 70%),
    #0c0a12;
}

.orbit-hero__copy {
  max-width: 640px;
  text-align: right;
}

.orbit-kicker {
  margin: 0 0 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: #b7aee0;
}

.orbit-hero h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.orbit-hero h1 em {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: #d6c4ff;
}

.orbit-hero__line {
  margin: 18px 0 0;
  color: #d9d3ea;
  font-size: 17px;
  line-height: 1.5;
}

.orbit-pills {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.orbit-pills a {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 10px 16px;
}

.orbit-pills a.is-primary {
  background: #6d28d9;
  border-color: #8b5cf6;
}

.orbit-album {
  position: relative;
  min-height: 150vh;
  background: #f3f1ea;
  color: #1c1915;
  overflow: hidden;
}

.orbit-album::before {
  content: "";
  position: absolute;
  inset: -8%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800' fill='none' stroke='%23c8c2b6' stroke-width='1.2'><path d='M-20 160c140-80 240 40 380-10s220-60 340 20'/><path d='M40 420c160-90 220 50 380 10s200-40 320 30'/><path d='M-10 680c180-40 260 30 420-20s240 10 360-30'/></svg>");
  background-size: 640px 640px;
  opacity: 0.8;
  pointer-events: none;
}

.orbit-shot,
.orbit-quote {
  position: absolute;
  z-index: 1;
  margin: 0;
}

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

.orbit-shot figcaption,
.orbit-quote {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
}

.orbit-shot figcaption {
  margin-top: 8px;
}

.orbit-shot--a { left: 8%; top: 16%; width: min(280px, 34vw); height: 340px; }
.orbit-shot--b { left: 38%; top: 8%; width: min(180px, 22vw); height: 230px; }
.orbit-shot--c { right: 8%; top: 22%; width: min(320px, 36vw); height: 240px; }
.orbit-shot--d { left: 6%; top: 62%; width: min(200px, 24vw); height: 250px; }
.orbit-shot--e { left: 34%; top: 58%; width: min(220px, 26vw); height: 180px; }
.orbit-shot--f { right: 12%; top: 68%; width: min(240px, 28vw); height: 200px; }

.orbit-quote {
  left: 36%;
  top: 34%;
  width: min(360px, 40vw);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  color: #1c1915;
}

.orbit-quote p { margin: 0; }

.orbit-quote mark {
  background: #d6f25a;
  color: inherit;
}

.orbit-sign {
  display: block;
  width: 180px;
  margin-top: 12px;
  color: #1c1915;
}

.orbit-work,
.orbit-contact {
  padding: 88px clamp(20px, 6vw, 88px);
  background: #f7f6f2;
  color: #1c1915;
}

.orbit-work h2,
.orbit-contact h2 {
  margin: 0 0 18px;
  font-family: "Bricolage Grotesque", Inter, sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.orbit-work ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.orbit-work a,
.orbit-contact a {
  font-size: 20px;
}

.orbit-contact { background: #0c0a12; color: #f4f1ea; }

@media (max-width: 800px) {
  .orbit-hero { justify-content: flex-start; }
  .orbit-hero__copy,
  .orbit-pills { text-align: left; justify-content: flex-start; }
  .orbit-album { min-height: 0; display: grid; gap: 28px; padding: 48px 20px 72px; }
  .orbit-shot,
  .orbit-quote { position: static; width: auto; height: auto; }
  .orbit-shot img { height: 280px; }
  .orbit-nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  #orbit { clip-path: none; }
}
