:root {
  color-scheme: dark;
  --ink: #f0f1ea;
  --muted: #949a91;
  --dim: #5d625d;
  --line: rgba(240, 241, 234, 0.14);
  --line-strong: rgba(240, 241, 234, 0.24);
  --surface: rgba(14, 16, 17, 0.78);
  --acid: #c9ff5c;
  --violet: #9381ff;
  --cyan: #66e4ff;
  --coral: #ff7b61;
  --space-scroll: 0px;
  --universe-tail: clamp(320px, 48svh, 600px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.has-arcade,
html.has-mission {
  overflow: hidden;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  overflow-x: hidden;
  -webkit-user-select: none;
  user-select: none;
  background:
    radial-gradient(
      circle at 75% 8%,
      rgba(147, 129, 255, 0.1),
      transparent 28rem
    ),
    radial-gradient(
      circle at 20% 52%,
      rgba(102, 228, 255, 0.06),
      transparent 35rem
    ),
    #050607;
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

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

button {
  cursor: pointer;
  font: inherit;
}

[role="button"],
summary,
input:is([type="button"], [type="submit"], [type="reset"]),
select {
  cursor: pointer;
}

::selection {
  background: var(--acid);
  color: #050607;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--acid);
  color: #050607;
  font-weight: 700;
}

.skip-link:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#starfield,
.ambient-grid {
  position: fixed;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ambient-grid {
  z-index: -1;
  inset: -10%;
  width: 120%;
  height: 120%;
  transform: rotate(-4deg);
  background-image:
    linear-gradient(rgba(240, 241, 234, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 241, 234, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    black 0%,
    transparent 73%
  );
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 73%);
}

.cursor-comet {
  position: fixed;
  z-index: 20;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.cursor-comet__trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cursor-comet__head {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #ffffff 0 7%,
    #fff9e9 14%,
    #ffe8bfe8 28%,
    #ffc97978 54%,
    #ffc97900 100%
  );
  transform: translate3d(-200px, -200px, 0) translate(-50%, -50%);
  transform-origin: center;
  will-change: transform;
}

.cursor-comet[data-cursor-mode="bird"] .cursor-comet__head {
  display: none;
}

main {
  width: min(100% - 3rem, 1360px);
  margin-inline: auto;
}

.cursor-toggle:hover,
.cursor-toggle:focus-visible,
.spacecraft-toggle:hover,
.spacecraft-toggle:focus-visible {
  color: var(--acid);
}

.cursor-toggle,
.spacecraft-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  gap: 0.42rem;
  padding: 0.38rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  appearance: none;
  background: rgba(5, 6, 7, 0.46);
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    color 180ms ease;
}

.cursor-toggle strong,
.spacecraft-toggle strong {
  color: var(--ink);
  font-size: inherit;
  font-weight: 700;
}

.cursor-toggle i,
.spacecraft-toggle i {
  color: var(--acid);
  font-style: normal;
}

.cursor-toggle:hover,
.cursor-toggle:focus-visible,
.spacecraft-toggle:hover,
.spacecraft-toggle:focus-visible {
  border-color: var(--line-strong);
}

.hero {
  --focus-rotate: 0deg;
  --focus-scale: 1.045;
  --focus-x: 0px;
  --focus-y: 0px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: max(780px, 100svh);
  padding: 150px 0 112px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 760px;
  padding-bottom: 2rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
  transition:
    opacity 400ms ease,
    translate 600ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hero-copy > .eyebrow,
.hero-copy > h1 > span,
.hero-copy > h1 > em,
.hero-copy > .hero-intro,
.hero-copy > .hero-actions {
  transition:
    opacity 360ms ease,
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-copy > h1 > span,
.hero-copy > h1 > em {
  display: block;
}

.hero-actions {
  pointer-events: none;
}

.hero-action-row > *,
.preference-row > * {
  pointer-events: auto;
}

.hero.is-mission {
  z-index: 14;
}

.hero.is-arcade {
  z-index: 14;
}

.hero.is-mission .space-scene,
.hero.is-arcade .space-scene {
  position: fixed;
  z-index: 4;
  cursor: default;
}

.hero.is-mission .hero-copy {
  opacity: 0;
  translate: -40px 0;
}

.hero.is-arcade .hero-copy > .eyebrow,
.hero.is-arcade .hero-copy > .hero-intro,
.hero.is-arcade .hero-copy > .hero-actions {
  opacity: 0;
  transform: translateX(-28vw);
}

.hero.is-arcade .hero-copy > h1 > span {
  opacity: 0;
  transform: translateX(-72vw) skewX(-5deg);
}

.hero.is-arcade .hero-copy > h1 > em {
  opacity: 0;
  transform: translateX(72vw) skewX(5deg);
}

.hero[data-space-focus="earth"] {
  --focus-rotate: -0.6deg;
  --focus-scale: 1.18;
  --focus-x: -7vw;
  --focus-y: -2vh;
}

.hero[data-space-focus="moon"] {
  --focus-rotate: 0.8deg;
  --focus-scale: 1.23;
  --focus-x: 8vw;
  --focus-y: -7vh;
}

.hero[data-space-focus="system"] {
  --focus-rotate: -0.8deg;
  --focus-scale: 1.25;
  --focus-x: 2vw;
  --focus-y: 12vh;
}

.hero[data-space-focus="mars"] {
  --focus-rotate: 0.45deg;
  --focus-scale: 1.26;
  --focus-x: -3vw;
  --focus-y: 8vh;
}

.hero[data-space-focus="sun"] {
  --focus-rotate: -0.35deg;
  --focus-scale: 1.34;
  --focus-x: 16vw;
  --focus-y: 15vh;
}

.hero[data-space-focus="black-hole"] {
  --focus-rotate: 1deg;
  --focus-scale: 1.3;
  --focus-x: -15vw;
  --focus-y: 13vh;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px rgba(201, 255, 92, 0.8);
}

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

h1,
h2,
.contact-section h2 {
  letter-spacing: -0.065em;
  line-height: 0.92;
}

h1 {
  max-width: 760px;
  margin-bottom: 2rem;
  font-size: clamp(4.3rem, 7.7vw, 7.7rem);
  font-weight: 650;
}

h1 em,
.contact-section h2 em {
  color: transparent;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.075em;
  -webkit-text-stroke: 1px rgba(240, 241, 234, 0.72);
}

.hero-intro {
  max-width: 490px;
  margin-bottom: 2rem;
  color: #b8bdb5;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  width: fit-content;
}

.preference-row {
  display: flex;
  align-self: flex-start;
  gap: 0.5rem;
  margin-top: 0.55rem;
  pointer-events: none;
}

.hero-action-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  pointer-events: auto;
}

.arcade-launch {
  position: relative;
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1.15rem;
  border: 1px solid rgba(102, 228, 255, 0.34);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(4, 10, 14, 0.58);
  color: #dce7e5;
  cursor: pointer;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.59rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  backdrop-filter: blur(14px);
}

.arcade-launch::before {
  position: absolute;
  inset: 0;
  transform: translateX(-105%);
  background: linear-gradient(
    100deg,
    transparent,
    rgba(102, 228, 255, 0.12),
    transparent
  );
  content: "";
  transition: transform 500ms ease;
}

.arcade-launch:hover,
.arcade-launch:focus-visible {
  border-color: var(--cyan);
  color: #fff;
  transform: translateY(-3px);
}

.arcade-launch:hover::before,
.arcade-launch:focus-visible::before {
  transform: translateX(105%);
}

.arcade-launch kbd {
  position: relative;
  padding: 0.36rem 0.55rem;
  border: 1px solid rgba(240, 241, 234, 0.28);
  border-radius: 5px;
  box-shadow: 0 2px 0 rgba(240, 241, 234, 0.16);
  color: var(--cyan);
  font: inherit;
  letter-spacing: 0.07em;
}

.arcade-launch span {
  position: relative;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 215px;
  min-height: 58px;
  padding: 0 1.2rem 0 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    transform 200ms ease,
    background 200ms ease,
    color 200ms ease;
}

.button--primary {
  border-color: var(--acid);
  background: var(--acid);
  color: #060807;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--ink);
  color: #060807;
}

.hero-apps-link {
  --apps-magnet-x: 0px;
  --apps-magnet-y: 0px;
  --apps-magnet-strength: 0;
  transform: translate3d(var(--apps-magnet-x), var(--apps-magnet-y), 0);
  transition:
    background 200ms ease,
    color 200ms ease;
  will-change: transform;
}

.hero-apps-link:hover,
.hero-apps-link:focus-visible {
  transform: translate3d(
    var(--apps-magnet-x),
    calc(var(--apps-magnet-y) - 3px),
    0
  );
}

.space-scene {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  overflow: hidden;
  background: #010203;
  user-select: none;
}

.space-scene__orbit::before,
.space-scene__orbit::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  pointer-events: none;
}

.space-scene__orbit::before {
  background:
    linear-gradient(
      90deg,
      rgba(2, 3, 4, 0.84) 0%,
      rgba(2, 3, 4, 0.38) 39%,
      transparent 67%
    ),
    linear-gradient(180deg, rgba(2, 3, 4, 0.12) 40%, rgba(2, 3, 4, 0.9) 100%);
  -webkit-mask-image: radial-gradient(
    circle 250px at 0% 15%,
    transparent 0 42%,
    #000 88%
  );
  mask-image: radial-gradient(
    circle 250px at 0% 15%,
    transparent 0 42%,
    #000 88%
  );
}

.space-scene__orbit::after {
  top: auto;
  height: 38%;
  background: linear-gradient(180deg, transparent, #050607 94%);
}

.space-scene__orbit {
  position: absolute;
  z-index: 1;
  inset: 0;
  transform: translate3d(
      var(--focus-x),
      calc(var(--space-scroll) + var(--focus-y)),
      0
    )
    scale(var(--focus-scale)) rotate(var(--focus-rotate));
  transform-origin: center;
  transition:
    opacity 650ms ease,
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.space-scene__image {
  position: absolute;
  top: -3%;
  left: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(1.04) brightness(1.18);
  pointer-events: none;
}

.space-scene__texture-source {
  display: none;
}

.space-scene__black-hole-media {
  position: absolute;
  z-index: 3;
  top: 19%;
  left: 84%;
  width: clamp(255px, 31vw, 430px);
  height: auto;
  transform: translate(-50%, -50%);
  filter: saturate(1.08) brightness(1.18)
    drop-shadow(0 0 20px rgba(240, 68, 21, 0.2));
  pointer-events: none;
}

.space-scene__black-hole-media::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 53.2%;
  left: 50%;
  width: 21.5%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #000;
  transform: translate(-50%, -50%);
}

.space-scene__black-hole-media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

#solar-system,
#spacecraft-foreground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#solar-system {
  z-index: 3;
}

#spacecraft-foreground {
  z-index: 5;
}

.space-ship-hint {
  --spacecraft-center-rise: clamp(29px, 2.7vw, 35.6px);
  --spacecraft-controls-gap: 12px;
  --spacecraft-half-height: clamp(26.8px, 2.49vw, 32.8px);
  --spacecraft-offset-x: clamp(151px, 14.07vw, 185.3px);
  position: absolute;
  z-index: 6;
  top: calc(
    16vh - 8px - var(--spacecraft-center-rise) + var(--spacecraft-half-height) +
      var(--spacecraft-controls-gap)
  );
  left: calc(36.5% - var(--spacecraft-offset-x));
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: rgba(240, 241, 234, 0.5);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.48rem;
  letter-spacing: 0.11em;
  pointer-events: none;
  text-transform: uppercase;
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.space-ship-hint span {
  padding: 0.24rem 0.36rem;
  border: 1px solid rgba(240, 241, 234, 0.18);
  border-radius: 4px;
  background: rgba(3, 7, 9, 0.48);
  color: rgba(201, 255, 92, 0.78);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.24);
}

.space-ship-hint strong {
  font-size: inherit;
  font-weight: 500;
}

.hero[data-ship-piloting="true"] .space-ship-hint {
  opacity: 0;
  transform: translateY(5px);
}

.space-scene__atmosphere {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(
      circle at 77% 66%,
      transparent 0 19%,
      rgba(102, 228, 255, 0.05) 27%,
      transparent 41%
    ),
    radial-gradient(circle at 4% 82%, rgba(255, 166, 81, 0.15), transparent 22%);
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (min-width: 761px) {
  .hero {
    margin-bottom: var(--universe-tail);
  }

  .hero:not(.is-mission):not(.is-arcade) .space-scene {
    bottom: calc(-1 * var(--universe-tail));
    background: linear-gradient(
      180deg,
      #010203 0 46%,
      rgba(1, 2, 3, 0.92) 58%,
      rgba(1, 2, 3, 0.72) 70%,
      rgba(1, 2, 3, 0.44) 82%,
      rgba(1, 2, 3, 0.18) 92%,
      transparent 100%
    );
  }

  .space-scene__orbit {
    transform-origin: center 50svh;
  }

  .space-scene__image {
    top: -3svh;
    height: 106svh;
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0 78%,
      rgba(0, 0, 0, 0.88) 86%,
      transparent 100%
    );
    mask-image: linear-gradient(
      180deg,
      #000 0 78%,
      rgba(0, 0, 0, 0.88) 86%,
      transparent 100%
    );
  }

  .space-scene__black-hole-media {
    top: 19svh;
  }

  .space-scene__orbit::before,
  .space-scene__atmosphere {
    bottom: auto;
    height: 100svh;
  }

  .hero:not(.is-mission):not(.is-arcade) .space-scene__orbit::after {
    background: none;
  }

  .hero:not(.is-mission):not(.is-arcade) .space-scene__orbit {
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0 90%,
      rgba(0, 0, 0, 0.8) 93%,
      rgba(0, 0, 0, 0.42) 97%,
      transparent 100%
    );
    mask-image: linear-gradient(
      180deg,
      #000 0 90%,
      rgba(0, 0, 0, 0.8) 93%,
      rgba(0, 0, 0, 0.42) 97%,
      transparent 100%
    );
  }
}

.space-scene__markers {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.space-object {
  --object-x: 50%;
  --object-y: 50%;
  position: absolute;
  top: var(--object-y);
  left: var(--object-x);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(240, 241, 234, 0.68);
  cursor: pointer;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 8px #000;
  text-transform: uppercase;
  transform: translate(-23px, -50%);
  pointer-events: auto;
}

.space-object > i {
  position: relative;
  display: block;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(240, 241, 234, 0.42);
  border-radius: 50%;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    scale 220ms ease;
}

.space-object > i::before,
.space-object > i::after {
  position: absolute;
  content: "";
}

.space-object > i::before {
  inset: 7px;
  border: 1px dashed rgba(240, 241, 234, 0.33);
  border-radius: 50%;
}

.space-object > i::after {
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px var(--acid);
}

.space-object > span {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  opacity: 0.7;
  transition:
    color 220ms ease,
    opacity 220ms ease,
    translate 220ms ease;
  white-space: nowrap;
}

.space-object small {
  color: var(--dim);
  font-size: 0.43rem;
  letter-spacing: 0.09em;
}

.space-object:focus-visible > span {
  color: var(--ink);
  opacity: 1;
  translate: 4px 0;
}

.space-object:focus-visible {
  outline: none;
}

.space-object:focus-visible > i {
  border-color: rgba(240, 241, 234, 0.82);
  box-shadow: 0 0 0 3px rgba(240, 241, 234, 0.14);
  scale: 1.06;
}

.space-object--earth:focus-visible > i,
.space-object--moon:focus-visible > i,
.space-object--mars:focus-visible > i {
  border-color: transparent;
  box-shadow: none;
}

.space-object--earth {
  --object-x: 70%;
  --object-y: 57%;
}

.space-object--moon {
  --object-x: 53%;
  --object-y: 48%;
  z-index: 2;
}

.space-object--system {
  --object-x: 55%;
  --object-y: 18%;
}

.space-object--mars {
  --object-x: 44%;
  --object-y: 76%;
  z-index: 2;
}

.space-object--moon > span,
.space-object--mars > span {
  border-left: 1px solid rgba(240, 241, 234, 0.3);
  opacity: 0.94;
}

.space-object--moon > i {
  border-color: rgba(196, 220, 238, 0.7);
  box-shadow: 0 0 24px rgba(142, 191, 226, 0.14);
}

.space-object--moon > i::after {
  background: #c4dcee;
  box-shadow: 0 0 16px rgba(196, 220, 238, 0.86);
}

.space-object--mars {
  color: rgba(255, 202, 172, 0.86);
}

.space-object--mars > i {
  border-color: rgba(255, 136, 91, 0.8);
  box-shadow: 0 0 26px rgba(255, 105, 61, 0.2);
}

.space-object--mars > i::before {
  border-color: rgba(255, 165, 122, 0.4);
}

.space-object--mars > i::after {
  background: var(--coral);
  box-shadow: 0 0 18px var(--coral);
}

.space-object--mars small {
  color: rgba(255, 159, 116, 0.68);
}

.space-object--sun {
  --object-x: 1%;
  --object-y: 2%;
  color: rgba(255, 220, 144, 0.9);
}

.space-object--sun > i::after {
  background: #ffad32;
  box-shadow: 0 0 18px rgba(255, 173, 50, 0.9);
}

.space-object--sun small {
  color: rgba(255, 190, 95, 0.72);
}

.space-object--horizon {
  --object-x: 88%;
  --object-y: 16%;
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 23px), -50%);
}

.space-object--horizon > i::after {
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

@media (hover: hover) {
  .space-object:hover > i {
    border-color: var(--acid);
    box-shadow:
      0 0 0 9px rgba(201, 255, 92, 0.06),
      0 0 28px rgba(201, 255, 92, 0.22);
    scale: 1.12;
  }

  .space-object:hover > span {
    color: var(--ink);
    opacity: 1;
    translate: 4px 0;
  }

  .space-object--earth:hover > i,
  .space-object--moon:hover > i,
  .space-object--mars:hover > i {
    border-color: transparent;
    box-shadow: none;
  }

  .space-object--horizon:hover > i {
    border-color: var(--cyan);
    box-shadow:
      0 0 0 10px rgba(102, 228, 255, 0.05),
      0 0 34px rgba(102, 228, 255, 0.2);
  }
}

@media (min-width: 761px) {
  .hero-copy > h1 > span {
    white-space: nowrap;
  }

  .space-object--sun,
  .space-object--moon,
  .space-object--mars,
  .space-object--horizon {
    display: block;
    width: 84px;
    height: 84px;
    transform: translate(-50%, -50%);
  }

  .space-object--moon {
    width: 148px;
    height: 148px;
  }

  .space-object--mars {
    width: 116px;
    height: 116px;
  }

  .space-object--sun {
    width: 150px;
    height: 150px;
    transform: translate(-10px, -16px);
  }

  .space-object--horizon {
    width: 106px;
  }

  .space-object--sun > i,
  .space-object--moon > i,
  .space-object--mars > i,
  .space-object--horizon > i {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-color: transparent;
    box-shadow: none;
    opacity: 0;
  }

  .space-object--sun > span,
  .space-object--moon > span,
  .space-object--mars > span,
  .space-object--horizon > span {
    position: absolute;
    top: 50%;
    left: calc(100% + 0.8rem);
    padding-left: 0.7rem;
    transform: translateY(-50%);
    text-shadow:
      0 2px 8px #000,
      0 0 18px #000;
    opacity: 0;
  }

  .space-object--sun > span {
    top: 72%;
    left: 72%;
    padding-left: 0.7rem;
    border-left: 1px solid rgba(255, 190, 95, 0.42);
    transform: none;
    text-align: left;
  }

  .space-object--moon > span {
    top: auto;
    bottom: calc(100% + 0.4rem);
    left: 50%;
    padding: 0 0 0.45rem;
    border-bottom: 1px solid rgba(240, 241, 234, 0.3);
    border-left: 0;
    transform: translateX(-50%);
    text-align: center;
  }

  .space-object--mars > span {
    top: calc(100% + 0.4rem);
    bottom: auto;
    left: 50%;
    padding: 0.45rem 0 0;
    border-top: 1px solid rgba(240, 241, 234, 0.3);
    border-left: 0;
    transform: translateX(-50%);
    text-align: center;
  }

  .space-object--horizon > span {
    top: calc(100% + 0.4rem);
    right: 0;
    left: auto;
    padding: 0.45rem 0 0;
    border-top: 1px solid rgba(240, 241, 234, 0.3);
    transform: none;
    text-align: right;
  }

  .space-object--sun:hover > i,
  .space-object--sun:focus-visible > i,
  .space-object--horizon:hover > i,
  .space-object--horizon:focus-visible > i {
    border-color: transparent;
    box-shadow: none;
    opacity: 0;
    scale: 1;
  }

  .space-object--sun:focus-visible > span,
  .space-object--moon:focus-visible > span,
  .space-object--mars:focus-visible > span,
  .space-object--horizon:focus-visible > span {
    opacity: 1;
  }

  .space-object--moon > i,
  .space-object--mars > i {
    inset: 6px;
    width: auto;
    height: auto;
    border-color: transparent;
    opacity: 0.5;
  }

  .space-object--moon > i {
    inset: 2px;
  }

  .space-object--moon > i::before {
    inset: 1px;
  }

  .space-object--moon > span,
  .space-object--mars > span {
    opacity: 0.82;
  }

  .space-object--moon:focus-visible > i,
  .space-object--mars:focus-visible > i {
    opacity: 0.9;
  }
}

@media (min-width: 761px) and (hover: hover) {
  .space-object--moon:hover > i,
  .space-object--mars:hover > i {
    opacity: 0.9;
  }

  .space-object--sun:hover > span,
  .space-object--moon:hover > span,
  .space-object--mars:hover > span,
  .space-object--horizon:hover > span {
    opacity: 1;
  }
}

#mission-surface {
  position: absolute;
  z-index: 6;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 700ms ease;
  pointer-events: none;
}

#arcade-surface {
  position: absolute;
  z-index: 6;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 650ms ease;
  pointer-events: none;
}

.hero.is-arcade #arcade-surface {
  opacity: 1;
}

.hero.is-arcade .space-scene__orbit {
  transform: scale(1.045);
  filter: saturate(0.3) brightness(0.45) blur(1px);
  opacity: 0.14;
  pointer-events: none;
}

.hero.is-arcade .space-inspector,
.hero.is-arcade .mission-console {
  opacity: 0;
  visibility: hidden;
}

.hero.is-mission #mission-surface {
  position: fixed;
  opacity: 1;
}

.hero.is-mission .space-scene__orbit {
  opacity: 0;
  pointer-events: none;
}

.hero.is-mission .space-inspector {
  opacity: 0;
  visibility: hidden;
}

.space-inspector {
  position: absolute;
  z-index: 5;
  right: 2rem;
  bottom: 4.75rem;
  width: min(340px, calc(100% - 4rem));
  padding: 1.15rem 1.2rem 1.1rem;
  border: 1px solid rgba(240, 241, 234, 0.2);
  background: rgba(4, 7, 9, 0.76);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 300ms ease,
    translate 500ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 300ms;
  visibility: hidden;
  backdrop-filter: blur(18px);
  pointer-events: none;
}

.space-inspector.is-visible {
  opacity: 1;
  translate: 0 0;
  visibility: visible;
  pointer-events: auto;
}

.space-inspector__index {
  margin-bottom: 1.2rem;
  color: var(--acid);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.space-inspector__title {
  margin-bottom: 0.45rem;
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.space-inspector__description {
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.space-inspector__close {
  display: flex;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.55rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.space-inspector__close:hover,
.space-inspector__close:focus-visible {
  color: var(--acid);
}

.mission-console {
  position: absolute;
  z-index: 7;
  top: 7rem;
  right: 2rem;
  bottom: auto;
  left: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  width: min(320px, calc(100% - 4rem));
  padding: 1rem;
  border: 1px solid rgba(240, 241, 234, 0.24);
  background: rgba(4, 7, 9, 0.68);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.46);
  opacity: 0;
  translate: 30px 0;
  transition:
    opacity 350ms ease,
    translate 650ms cubic-bezier(0.16, 1, 0.3, 1),
    visibility 350ms;
  visibility: hidden;
  backdrop-filter: blur(20px);
  pointer-events: none;
}

.mission-console > div:first-child {
  padding-right: 3.7rem;
}

.mission-console.is-visible {
  opacity: 1;
  translate: 0 0;
  visibility: visible;
  pointer-events: auto;
}

.hero.is-mission .mission-console {
  position: fixed;
}

.mission-console__eyebrow,
.mission-console__status,
.mission-console__actions > p {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mission-console__eyebrow {
  margin-bottom: 0.7rem;
  color: var(--acid);
  font-size: 0.54rem;
}

.mission-console h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.65rem, 2.5vw, 2.3rem);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.mission-console__description {
  max-width: 610px;
  margin-bottom: 0.75rem;
  color: #bec4bb;
  font-size: 0.86rem;
}

.mission-console__status {
  margin: 0;
  color: var(--muted);
  font-size: 0.52rem;
}

.mission-console__actions {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  min-width: 0;
}

.mission-console__actions > p {
  margin: 0;
  color: var(--dim);
  font-size: 0.48rem;
}

.mission-drive {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mission-drive button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(240, 241, 234, 0.06);
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  touch-action: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.mission-drive [data-jump] {
  width: auto;
  min-width: 96px;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.mission-drive button:focus-visible,
.mission-drive button:active,
.mission-drive button.is-pressed {
  border-color: var(--acid);
  background: var(--acid);
  color: #050607;
}

@media (hover: hover) {
  .mission-drive button:hover {
    border-color: var(--acid);
    background: var(--acid);
    color: #050607;
    transform: translateY(-2px);
  }
}

.mission-console__touch-instructions {
  display: none;
}

.mission-console__close {
  --close-mark-size: 18px;
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 50px;
  height: 50px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(240, 241, 234, 0.42);
  border-radius: 50%;
  background: rgba(240, 241, 234, 0.08);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.65rem;
  font-weight: 300;
  line-height: 1;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.mission-console__close:hover,
.mission-console__close:focus-visible {
  border-color: var(--acid);
  background: var(--acid);
  color: #050607;
  transform: rotate(8deg) scale(1.06);
}

.mission-console__close > span,
.arcade-ui__close > span {
  position: relative;
  display: block;
  width: var(--close-mark-size);
  height: var(--close-mark-size);
  font-size: 0;
  line-height: 0;
}

.mission-console__close > span::before,
.mission-console__close > span::after,
.arcade-ui__close > span::before,
.arcade-ui__close > span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}

.mission-console__close > span::after,
.arcade-ui__close > span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.arcade-ui {
  position: absolute;
  z-index: 7;
  inset: 0;
  opacity: 0;
  outline: none;
  transition:
    opacity 350ms ease,
    visibility 350ms;
  visibility: hidden;
  pointer-events: none;
}

.arcade-ui.is-visible {
  opacity: 1;
  visibility: visible;
}

.arcade-hud {
  position: absolute;
  top: 7rem;
  right: 2rem;
  left: 2rem;
  display: grid;
  grid-template-columns: 1fr auto 52px;
  gap: 1.4rem;
  align-items: center;
  min-height: 58px;
  padding: 0.55rem 0.65rem 0.55rem 1rem;
  border-top: 1px solid rgba(102, 228, 255, 0.25);
  border-bottom: 1px solid rgba(102, 228, 255, 0.13);
  background: linear-gradient(
    90deg,
    rgba(1, 5, 8, 0.78),
    rgba(5, 12, 16, 0.46),
    rgba(1, 5, 8, 0.78)
  );
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.35);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  pointer-events: none;
  backdrop-filter: blur(14px);
}

.arcade-hud__signal {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: #dce7e5;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.arcade-hud__signal span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  animation: arcade-signal 1.4s ease-in-out infinite;
  background: var(--acid);
  box-shadow: 0 0 18px rgba(201, 255, 92, 0.9);
}

.arcade-hud__stats {
  display: flex;
  gap: clamp(1.25rem, 4vw, 4.5rem);
  margin: 0;
}

.arcade-hud__stats div {
  min-width: 56px;
}

.arcade-hud__stats dt {
  margin-bottom: 0.08rem;
  color: #768185;
  font-size: 0.46rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.arcade-hud__stats dd {
  margin: 0;
  color: #eef5f1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

[data-arcade-lives] {
  color: var(--acid) !important;
}

.arcade-ui__close {
  --close-mark-size: 17px;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(240, 241, 234, 0.34);
  border-radius: 50%;
  background: rgba(240, 241, 234, 0.05);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1;
  pointer-events: auto;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.arcade-ui__close:hover,
.arcade-ui__close:focus-visible {
  border-color: var(--coral);
  background: var(--coral);
  color: #050607;
  transform: rotate(8deg) scale(1.06);
}

.arcade-ui__status {
  position: absolute;
  top: 11.7rem;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(201, 255, 92, 0.72);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.48rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.arcade-controls {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem;
  transform: translateX(-50%);
  border: 1px solid rgba(102, 228, 255, 0.16);
  border-radius: 999px;
  background: rgba(1, 6, 9, 0.72);
  pointer-events: auto;
  backdrop-filter: blur(16px);
}

.arcade-controls button {
  display: grid;
  width: 52px;
  height: 52px;
  padding: 0;
  place-content: center;
  border: 1px solid rgba(240, 241, 234, 0.23);
  border-radius: 50%;
  background: rgba(240, 241, 234, 0.04);
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
  touch-action: none;
}

.arcade-controls button span {
  font-size: 1rem;
}

.arcade-controls button small {
  margin-top: 0.18rem;
  color: var(--dim);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.arcade-controls button:hover,
.arcade-controls button:focus-visible,
.arcade-controls button:active {
  border-color: var(--cyan);
  background: var(--cyan);
  color: #050607;
  transform: translateY(-2px);
}

.arcade-controls__fire {
  width: 64px !important;
  height: 64px !important;
  border-color: rgba(201, 255, 92, 0.55) !important;
  color: var(--acid) !important;
}

.arcade-controls__fire span {
  font-size: 0.7rem;
}

.arcade-controls__fire:hover,
.arcade-controls__fire:focus-visible,
.arcade-controls__fire:active {
  background: var(--acid) !important;
  color: #050607 !important;
}

.work-section {
  padding: 150px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 6rem;
  align-items: end;
  margin-bottom: 5rem;
}

.section-heading h2,
.principles-intro h2 {
  margin: 0;
  font-size: clamp(3.2rem, 6.5vw, 6.5rem);
  font-weight: 550;
}

.section-heading > p,
.principles-intro > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.project-card {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  transform: perspective(1200px) rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg));
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.17);
  transition:
    transform 180ms ease-out,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.project-card::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(
    circle 420px at var(--mx, 50%) var(--my, 50%),
    rgba(240, 241, 234, 0.1),
    transparent 70%
  );
  content: "";
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.project-card:hover,
.project-card:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
}

.project-card:hover::before,
.project-card:focus-within::before {
  opacity: 1;
}

.project-card--breathe,
.project-card--templates {
  grid-column: span 7;
}

.project-card--remember,
.project-card--bio {
  grid-column: span 5;
}

.project-card--remember,
.project-card--templates {
  min-height: 520px;
}

.card-link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.3rem;
}

.card-link:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: -5px;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.57rem;
  letter-spacing: 0.1em;
}

.project-visual {
  position: relative;
  flex: 1;
  min-height: 300px;
  margin: 1.25rem 0 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(240, 241, 234, 0.07);
}

.project-visual::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  pointer-events: none;
}

.project-visual--breathe {
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at center,
      rgba(102, 228, 255, 0.2),
      transparent 48%
    ),
    #0b181b;
}

.breath-orbit {
  position: absolute;
  border: 1px solid rgba(102, 228, 255, 0.32);
  border-radius: 50%;
  animation: breathe 5.5s ease-in-out infinite;
}

.breath-orbit--one {
  width: 240px;
  height: 240px;
}

.breath-orbit--two {
  width: 150px;
  height: 150px;
  animation-delay: -1.2s;
}

.breath-core {
  position: relative;
  z-index: 2;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 70px rgba(102, 228, 255, 0.4);
  color: #071114;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-visual--remember {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 4rem);
  background:
    linear-gradient(145deg, rgba(147, 129, 255, 0.17), transparent 60%), #14111e;
}

.remember-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.remember-list span {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: rgba(240, 241, 234, 0.82);
  font-size: 0.78rem;
}

.remember-list i {
  width: 17px;
  height: 17px;
  border: 1px solid rgba(147, 129, 255, 0.8);
  border-radius: 50%;
}

.remember-list span:first-child i {
  background: var(--violet);
  box-shadow: inset 0 0 0 4px #14111e;
}

.remember-progress {
  height: 3px;
  background: rgba(240, 241, 234, 0.1);
}

.remember-progress span {
  display: block;
  width: 64%;
  height: 100%;
  background: var(--violet);
  box-shadow: 0 0 14px rgba(147, 129, 255, 0.5);
}

.project-visual--bio {
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      circle at center,
      rgba(255, 123, 97, 0.13),
      transparent 55%
    ),
    #1a100f;
}

.signal-reading {
  position: absolute;
  top: 14%;
  left: 10%;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.signal-reading strong {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.08em;
  line-height: 1;
}

.signal-reading span {
  color: var(--coral);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.58rem;
}

.signal-line {
  display: flex;
  align-items: center;
  width: 80%;
  height: 80px;
}

.signal-line i {
  flex: 1;
  height: 1px;
  background: var(--coral);
  box-shadow: 0 0 12px rgba(255, 123, 97, 0.4);
}

.signal-line i:nth-child(4),
.signal-line i:nth-child(8) {
  height: 62px;
  transform: skewY(-65deg);
}

.signal-line i:nth-child(5),
.signal-line i:nth-child(9) {
  height: 35px;
  transform: skewY(58deg);
}

.project-visual--templates {
  background:
    linear-gradient(145deg, rgba(201, 255, 92, 0.12), transparent 56%), #12170e;
}

.ui-window {
  position: absolute;
  width: 44%;
  height: 62%;
  padding: 1rem;
  border: 1px solid rgba(201, 255, 92, 0.28);
  background: rgba(8, 12, 7, 0.82);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.ui-window span,
.ui-window i {
  display: block;
  margin-bottom: 0.8rem;
  background: rgba(240, 241, 234, 0.12);
}

.ui-window span {
  width: 60%;
  height: 8px;
  background: var(--acid);
}

.ui-window i {
  width: 100%;
  height: 20%;
}

.ui-window--back {
  top: 14%;
  left: 18%;
  transform: rotate(-7deg);
}

.ui-window--front {
  right: 18%;
  bottom: 10%;
  transform: rotate(5deg);
}

.ui-cursor {
  position: absolute;
  z-index: 3;
  top: 42%;
  left: 48%;
  color: var(--acid);
  font-size: 2.2rem;
  filter: drop-shadow(0 0 9px rgba(201, 255, 92, 0.5));
  animation: cursor-drift 4s ease-in-out infinite;
}

.card-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}

.card-copy h3 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  font-weight: 520;
  letter-spacing: -0.055em;
  line-height: 1;
}

.card-copy p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.card-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.project-card:hover .card-arrow,
.project-card:focus-within .card-arrow {
  transform: rotate(45deg);
  background: var(--ink);
  color: #080a09;
}

.principles-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(4rem, 10vw, 11rem);
  padding: 150px 0;
}

.principles-intro {
  position: sticky;
  top: 4rem;
  align-self: start;
}

.principles-intro h2 {
  margin-bottom: 2rem;
}

.principle {
  position: relative;
  min-height: 205px;
  padding: 2.5rem 0 2.5rem 6rem;
}

.principle h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 480;
  letter-spacing: -0.045em;
}

.principle p {
  max-width: 490px;
  margin-bottom: 0;
  color: var(--muted);
}

.contact-section {
  padding: 150px 0;
}

.cta-wisps {
  position: fixed;
  z-index: 4;
  top: 0;
  left: 0;
  pointer-events: none;
}

.cta-wisps[hidden] {
  display: none;
}

.contact-section h2 {
  max-width: 1080px;
  margin-bottom: 4rem;
  font-size: clamp(4rem, 8vw, 8rem);
  font-weight: 550;
}

.contact-link {
  --contact-magnet-x: 0px;
  --contact-magnet-y: 0px;
  --contact-magnet-strength: 0;
  position: relative;
  isolation: isolate;
  display: flex;
  width: fit-content;
  min-width: min(280px, 100%);
  min-height: 64px;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: 0 2.5rem;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.2);
  color: #050607;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(0.9rem, 1.5vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translate3d(
    var(--contact-magnet-x),
    var(--contact-magnet-y),
    0
  );
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
  will-change: transform;
}

.contact-link::after {
  position: absolute;
  inset: -0.7rem;
  border: 1px solid rgba(201, 255, 92, 0.52);
  border-radius: inherit;
  box-shadow: 0 0 1.8rem rgba(201, 255, 92, 0.38);
  content: "";
  opacity: var(--contact-magnet-strength);
  pointer-events: none;
}

.contact-link:hover,
.contact-link:focus-visible {
  background: #fff;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.24);
  color: #050607;
}

.contact-link:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 6px;
}

.reveal {
  --reveal-offset: 34px;
  opacity: 0;
  translate: 0 var(--reveal-offset);
  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    translate 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.74);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes cursor-drift {
  0%,
  100% {
    transform: translate(-12px, 16px) rotate(-8deg);
  }
  50% {
    transform: translate(38px, -28px) rotate(5deg);
  }
}

@keyframes arcade-signal {
  50% {
    opacity: 0.45;
    scale: 0.72;
  }
}

@media (max-width: 1040px) {
  .hero {
    padding-top: 180px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .space-scene__image {
    object-position: 58% center;
  }

  .section-heading,
  .principles-section {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .principles-intro {
    position: static;
    max-width: 750px;
  }
}

@media (max-width: 760px) {
  main {
    width: min(100% - 2rem, 1360px);
  }

  .cursor-toggle > span {
    display: none;
  }

  .spacecraft-toggle {
    display: none;
  }

  .hero {
    --space-scroll: 0px;
    display: block;
    min-height: 240svh;
    padding: 0;
  }

  .hero:not(.is-mission):not(.is-arcade)::after {
    position: absolute;
    z-index: 0;
    top: 100%;
    left: 50%;
    width: 100vw;
    height: 160px;
    background: linear-gradient(
      180deg,
      #010203,
      rgba(1, 2, 3, 0.68) 38%,
      rgba(1, 2, 3, 0.22) 74%,
      transparent
    );
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
  }

  .hero-copy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100svh;
    padding: 124px 0 5rem;
  }

  .space-scene {
    position: sticky;
    top: 0;
    bottom: auto;
    height: 100svh;
  }

  .hero:not(.is-mission):not(.is-arcade) .space-scene {
    background: linear-gradient(
      180deg,
      #010203 0 42%,
      rgba(1, 2, 3, 0.82) 62%,
      rgba(1, 2, 3, 0.46) 80%,
      rgba(1, 2, 3, 0.16) 92%,
      transparent 100%
    );
  }

  h1 {
    font-size: clamp(3.65rem, 17vw, 5.5rem);
  }

  h1 em {
    text-shadow:
      0 2px 8px rgba(0, 0, 0, 0.98),
      0 0 28px rgba(0, 0, 0, 0.92);
    -webkit-text-stroke-color: rgba(240, 241, 234, 0.92);
  }

  .hero-intro {
    margin-left: -0.75rem;
    padding: 0.85rem 0.9rem 0.85rem 0.75rem;
    border-radius: 16px;
    background:
      linear-gradient(
        110deg,
        rgba(240, 241, 234, 0.1),
        rgba(240, 241, 234, 0.025) 42%,
        rgba(2, 5, 7, 0.14)
      ),
      rgba(2, 5, 7, 0.22);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
    color: var(--ink);
    text-shadow: 0 1px 4px #000;
    transform: translateZ(0);
    -webkit-backdrop-filter: blur(2px) saturate(115%);
    backdrop-filter: blur(2px) saturate(115%);
    will-change: backdrop-filter;
  }

  .space-scene__black-hole-media {
    top: 18%;
    left: 78%;
    width: clamp(205px, 58vw, 275px);
  }

  .space-scene__orbit::before {
    background:
      linear-gradient(
        90deg,
        rgba(2, 3, 4, 0.88) 0%,
        rgba(2, 3, 4, 0.52) 72%,
        rgba(2, 3, 4, 0.12) 100%
      ),
      linear-gradient(180deg, rgba(2, 3, 4, 0.2) 24%, rgba(2, 3, 4, 0.92) 100%);
    -webkit-mask-image: radial-gradient(
      circle 150px at 0% 13%,
      transparent 0 42%,
      #000 90%
    );
    mask-image: radial-gradient(
      circle 150px at 0% 13%,
      transparent 0 42%,
      #000 90%
    );
  }

  .space-scene__image {
    top: -2%;
    left: -26%;
    width: 152%;
    height: 104%;
    object-position: 60% center;
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0 54%,
      rgba(0, 0, 0, 0.72) 70%,
      transparent 100%
    );
    mask-image: linear-gradient(
      180deg,
      #000 0 54%,
      rgba(0, 0, 0, 0.72) 70%,
      transparent 100%
    );
  }

  .hero:not(.is-mission):not(.is-arcade) .space-scene__orbit::after {
    background: none;
  }

  .space-ship-hint {
    display: none;
  }

  .hero-action-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .arcade-launch {
    min-height: 52px;
    background:
      linear-gradient(
        110deg,
        rgba(240, 241, 234, 0.1),
        rgba(240, 241, 234, 0.025) 42%,
        rgba(2, 5, 7, 0.14)
      ),
      rgba(2, 5, 7, 0.22);
    box-shadow:
      inset 0 1px 0 rgba(240, 241, 234, 0.14),
      0 16px 38px rgba(0, 0, 0, 0.12);
    -webkit-backdrop-filter: blur(2px) saturate(115%);
    backdrop-filter: blur(2px) saturate(115%);
    will-change: backdrop-filter;
  }

  .space-scene__markers {
    inset: 0;
  }

  .hero[data-mobile-explore="false"] .space-object {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .hero[data-mobile-explore="true"] .space-object {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .space-object {
    position: absolute;
    top: var(--object-y);
    left: var(--object-x);
    display: flex;
    min-width: 48px;
    min-height: 48px;
    gap: 0.4rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    transform: translate(-24px, -50%);
    transition:
      opacity 220ms ease,
      visibility 0s linear 220ms;
    backdrop-filter: none;
  }

  .space-object > i {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .space-object > span {
    display: block;
    padding: 0.25rem 0;
    border: 0;
    background: transparent;
    font-size: 0.58rem;
    line-height: 1.2;
    opacity: 0.88;
    text-align: left;
    white-space: nowrap;
    backdrop-filter: none;
  }

  .space-object small {
    display: none;
  }

  .space-object--moon {
    gap: 0.4rem;
  }

  .space-object--earth {
    --object-x: calc(100vw - 38px) !important;
    flex-direction: row-reverse;
    transform: translate(calc(-100% + 24px), -50%);
  }

  .space-object--system {
    --object-x: 39vw !important;
    --object-y: 8% !important;
  }

  .space-object--sun {
    --object-x: 52px !important;
    --object-y: 52px !important;
  }

  .space-object--horizon {
    transform: translate(calc(-100% + 24px), -50%);
  }

  .hero[data-space-focus]:not([data-space-focus=""]) .space-scene__markers {
    opacity: 0;
    pointer-events: none;
  }

  .hero[data-space-focus]:not([data-space-focus=""]) .space-object {
    pointer-events: none;
  }

  .space-inspector {
    right: 1rem;
    bottom: 2.6rem;
    left: 1rem;
    width: auto;
  }

  .hero[data-space-focus]:not([data-space-focus=""]) .space-scene__orbit {
    transform: scale(1.045);
  }

  .mission-console {
    inset: 0;
    display: block;
    width: 100%;
    height: 100dvh;
    padding: 1rem;
    border: 0;
    background: none;
    box-shadow: none;
    translate: none;
    backdrop-filter: none;
  }

  .mission-console.is-visible {
    pointer-events: none;
  }

  .mission-console > div:first-child {
    width: min(230px, calc(100% - 4rem));
    padding: 0.85rem;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: rgba(4, 7, 9, 0.68);
    backdrop-filter: blur(20px);
  }

  .hero.is-mission .space-scene {
    height: 100dvh;
  }

  .mission-console h2 {
    font-size: 1.5rem;
  }

  .mission-console__description {
    display: none;
  }

  .mission-console__actions {
    justify-items: start;
    min-width: 0;
  }

  .mission-drive {
    position: absolute;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: 1rem;
    display: grid;
    grid-template-columns: 56px 56px 1fr;
    gap: 0.65rem;
  }

  .mission-drive button {
    width: 56px;
    height: 56px;
    background: rgba(4, 7, 9, 0.76);
    pointer-events: auto;
  }

  .mission-drive [data-jump] {
    min-width: 112px;
    justify-self: end;
  }

  .mission-console__instructions {
    display: none;
  }

  .mission-console__actions > .mission-console__touch-instructions {
    position: absolute;
    right: 1rem;
    bottom: calc(5.25rem + env(safe-area-inset-bottom));
    left: 1rem;
    display: block;
    color: var(--muted);
    text-align: center;
  }

  .mission-console__close {
    top: 1rem;
    right: 1rem;
    background: rgba(4, 7, 9, 0.76);
    pointer-events: auto;
  }

  .arcade-hud {
    top: 5.25rem;
    right: 0.75rem;
    left: 0.75rem;
    grid-template-columns: 1fr 46px;
    gap: 0.5rem;
    padding: 0.4rem 0.45rem 0.4rem 0.7rem;
  }

  .arcade-hud__signal {
    display: none;
  }

  .arcade-hud__stats {
    justify-content: space-between;
    gap: 0.65rem;
  }

  .arcade-hud__stats div {
    min-width: 48px;
  }

  .arcade-ui__close {
    width: 46px;
    height: 46px;
  }

  .arcade-ui__status {
    top: 9.5rem;
    width: calc(100% - 2rem);
    white-space: normal;
  }

  .arcade-controls {
    bottom: max(0.85rem, env(safe-area-inset-bottom));
  }

  .arcade-controls button {
    width: 50px;
    height: 50px;
  }

  .arcade-controls__fire {
    width: 62px !important;
    height: 62px !important;
  }

  .work-section {
    padding: 100px 0;
  }

  .principles-section {
    padding: 100px 0 65px;
  }

  .contact-section {
    padding: 65px 0 100px;
  }

  .section-heading {
    margin-bottom: 3rem;
  }

  .project-card--breathe,
  .project-card--remember,
  .project-card--bio,
  .project-card--templates {
    grid-column: 1 / -1;
    min-height: 530px;
  }

  .project-card--remember,
  .project-card--templates {
    min-height: 490px;
  }

  .card-topline span:last-child {
    display: none;
  }

  .principle {
    min-height: 180px;
    padding-left: 3.5rem;
  }

}

@media (max-width: 480px) {
  .project-card {
    min-height: 490px;
  }

  .card-link {
    padding: 1rem;
  }

  .project-visual {
    min-height: 260px;
  }

  .ui-window {
    width: 52%;
  }

  .ui-window--back {
    left: 8%;
  }

  .ui-window--front {
    right: 8%;
  }
}

@media (max-width: 340px) {
  .space-object > span {
    font-size: 0.53rem;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not(.has-mission):not(.has-arcade) body {
    cursor: none;
  }

  html:not(.has-mission):not(.has-arcade)
    :is(
      a[href],
      button,
      [role="button"],
      summary,
      input:is([type="button"], [type="submit"], [type="reset"]),
      select
    ) {
    cursor: pointer;
  }

  html:not(.has-mission):not(.has-arcade):has(
      :is(
          a[href],
          button,
          [role="button"],
          summary,
          input:is([type="button"], [type="submit"], [type="reset"]),
          select
        ):hover
    )
    .cursor-comet {
    visibility: hidden;
    opacity: 0 !important;
  }

  html.has-mission .cursor-comet,
  html.has-arcade .cursor-comet {
    display: none;
  }
}

@media (pointer: coarse) {
  .cursor-comet,
  .cursor-toggle {
    display: none;
  }

  .contact-link {
    transform: none;
    will-change: auto;
  }

  .contact-link::after {
    display: none;
  }

  .hero-apps-link,
  .hero-apps-link:hover,
  .hero-apps-link:focus-visible {
    transform: none;
    will-change: auto;
  }
}

@media (forced-colors: active) {
  h1 em,
  .contact-section h2 em {
    color: CanvasText;
    -webkit-text-stroke: 0;
  }

  .space-object,
  .space-inspector,
  .space-inspector__close,
  .mission-console,
  .mission-drive button,
  .mission-console__close,
  .arcade-launch,
  .arcade-ui__close,
  .arcade-controls,
  .arcade-controls button {
    border-color: ButtonText;
  }
}

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

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

  .reveal {
    opacity: 1;
    translate: none;
  }

  .space-scene__orbit {
    transform: scale(1.045);
  }

  .cursor-comet,
  .cursor-toggle {
    display: none;
  }

  .hero-apps-link,
  .hero-apps-link:hover,
  .hero-apps-link:focus-visible {
    transform: none;
    will-change: auto;
  }
}
