:root {
  color-scheme: dark;
  --ink: #10100f;
  --paper: #eee9df;
  --muted: rgba(238, 233, 223, 0.54);
  --line: rgba(238, 233, 223, 0.16);
  --accent: #6678ff;
  --coral: #ff6b52;
  --mx: 0;
  --my: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at calc(74% + var(--mx) * 3%) calc(42% + var(--my) * 3%), rgba(102, 120, 255, 0.1), transparent 23rem),
    var(--ink);
  color: var(--paper);
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  background-image: repeating-radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.035) 0 0.6px, transparent 0.7px 3px);
  content: "";
  opacity: 0.14;
  pointer-events: none;
}

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

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

.page-shell {
  display: grid;
  width: 100%;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.1rem, 2vw, 2rem) clamp(1.1rem, 3vw, 3rem);
}

.site-header,
.site-footer {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.site-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.wordmark__mark {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border: 1px solid rgba(238, 233, 223, 0.64);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0;
}

.build-id {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--muted);
}

.live-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 rgba(102, 120, 255, 0.4);
  animation: live-pulse 2.2s ease-out infinite;
}

main {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(18rem, 0.86fr) minmax(27rem, 1.14fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 7rem);
  padding: clamp(3.25rem, 7vh, 7rem) 0;
}

.intro {
  position: relative;
  z-index: 5;
  align-self: center;
}

.eyebrow {
  margin: 0 0 clamp(1.3rem, 3vh, 2.25rem);
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.8rem, 7vw, 8.8rem);
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 0.82;
}

h1 em {
  position: relative;
  color: var(--accent);
  font-weight: 400;
}

h1 em::after {
  position: absolute;
  right: 0.05em;
  bottom: -0.02em;
  left: 0.05em;
  height: 0.06em;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  animation: draw-line 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.intro__copy {
  max-width: 34rem;
  margin: clamp(2rem, 4vh, 3.25rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 1.15vw, 1.08rem);
  line-height: 1.65;
}

.construction {
  position: relative;
  width: min(100%, 48rem);
  aspect-ratio: 1.05;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  isolation: isolate;
  perspective: 1100px;
}

.construction::before,
.construction::after {
  position: absolute;
  z-index: 4;
  width: 1rem;
  height: 1rem;
  border-color: var(--accent);
  content: "";
}

.construction::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.construction::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.construction__grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 12.5% 12.5%;
  opacity: 0.35;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.construction__coordinates {
  position: absolute;
  z-index: 6;
  color: rgba(238, 233, 223, 0.38);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.construction__coordinates--top {
  top: 1rem;
  left: 1rem;
}

.construction__coordinates--side {
  top: 50%;
  right: -2.4rem;
  transform: rotate(90deg);
}

.assembly {
  position: absolute;
  inset: 8% 5% 17%;
  transform: rotateX(calc(var(--my) * -3deg)) rotateY(calc(var(--mx) * 4deg));
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(102, 120, 255, 0.24);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.orbit--outer {
  width: 68%;
  aspect-ratio: 1;
  border-style: dashed;
  transform: translate(-50%, -50%) rotateX(67deg) rotateZ(0deg);
  animation: orbit-outer 14s linear infinite;
}

.orbit--inner {
  width: 42%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateY(64deg) rotateZ(0deg);
  animation: orbit-inner 9s linear infinite reverse;
}

.assembly__axis {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  background: linear-gradient(90deg, transparent, rgba(102, 120, 255, 0.36), transparent);
  transform: translate(-50%, -50%);
}

.assembly__axis--x {
  width: 94%;
  height: 1px;
}

.assembly__axis--y {
  width: 1px;
  height: 94%;
  background: linear-gradient(transparent, rgba(102, 120, 255, 0.36), transparent);
}

.assembly__core {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 29%;
  aspect-ratio: 1;
  border: 1px solid rgba(102, 120, 255, 0.78);
  background: rgba(102, 120, 255, 0.08);
  box-shadow:
    inset 0 0 2.8rem rgba(102, 120, 255, 0.1),
    0 0 4rem rgba(102, 120, 255, 0.09);
  transform: translate(-50%, -50%) rotate(45deg) scale(0.82);
  animation: core-build 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.archive-card {
  --x: 0px;
  --y: 0px;
  --z: 0px;
  --from-x: 0px;
  --from-y: -280px;
  --turn: 0deg;
  --delay: 0s;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: clamp(8.2rem, 17vw, 12.5rem);
  height: clamp(4.8rem, 9vw, 7rem);
  grid-template-columns: auto 1fr;
  align-content: space-between;
  gap: 0.25rem 0.8rem;
  padding: 0.75rem;
  border: 1px solid rgba(238, 233, 223, 0.48);
  border-radius: 0.2rem 0.2rem 1.2rem 0.2rem;
  background: rgba(20, 20, 18, 0.88);
  box-shadow: 0 1.2rem 3.4rem rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  animation: assemble-card 9s cubic-bezier(0.65, 0, 0.35, 1) var(--delay) infinite;
}

.archive-card small {
  color: var(--accent);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
}

.archive-card strong {
  justify-self: end;
  font-size: clamp(0.66rem, 1vw, 0.82rem);
  letter-spacing: 0.12em;
}

.archive-card i {
  grid-column: 1 / -1;
  align-self: end;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: clamp(0.75rem, 1vw, 0.95rem);
  font-weight: 400;
}

.archive-card--one {
  --x: -40%;
  --y: -118%;
  --z: 14px;
  --from-x: -260px;
  --from-y: -220px;
  --turn: -8deg;
  --delay: 0s;
}

.archive-card--two {
  --x: 52%;
  --y: -58%;
  --z: 28px;
  --from-x: 280px;
  --from-y: -180px;
  --turn: 5deg;
  --delay: 0.28s;
}

.archive-card--three {
  --x: 26%;
  --y: 45%;
  --z: 56px;
  --from-x: 260px;
  --from-y: 230px;
  --turn: -3deg;
  --delay: 0.56s;
}

.archive-card--four {
  --x: -85%;
  --y: 32%;
  --z: 42px;
  --from-x: -300px;
  --from-y: 200px;
  --turn: 7deg;
  --delay: 0.84s;
}

.archive-card--five {
  --x: -16%;
  --y: -8%;
  --z: 82px;
  --from-x: 20px;
  --from-y: -330px;
  --turn: -1deg;
  --delay: 1.12s;
  border-color: rgba(102, 120, 255, 0.72);
  background: rgba(102, 120, 255, 0.11);
}

.assembly__cursor {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border: 1px solid var(--coral);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: cursor-route 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.assembly__cursor::before,
.assembly__cursor::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--coral);
  content: "";
  transform: translate(-50%, -50%);
}

.assembly__cursor::before {
  width: 2.5rem;
  height: 1px;
}

.assembly__cursor::after {
  width: 1px;
  height: 2.5rem;
}

.assembly__cursor i {
  position: absolute;
  top: -0.55rem;
  left: -0.55rem;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid rgba(255, 107, 82, 0.34);
  border-radius: 50%;
  animation: cursor-ping 1.8s ease-out infinite;
}

.construction__status {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 8;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  align-items: center;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.construction__status > span:first-child {
  color: var(--muted);
}

.construction__status strong {
  justify-self: end;
  color: var(--accent);
}

.construction__meter {
  height: 1px;
  grid-column: 1 / -1;
  overflow: hidden;
  background: var(--line);
}

.construction__meter i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: build-meter 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

.site-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.site-footer p span {
  margin: 0 0.4rem;
  color: var(--accent);
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 200ms ease;
}

.site-footer a span {
  color: var(--coral);
  font-size: 0.9rem;
  transition: transform 200ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

.site-footer a:hover span,
.site-footer a:focus-visible span {
  transform: translate(0.15rem, -0.15rem);
}

@keyframes live-pulse {
  70%, 100% { box-shadow: 0 0 0 0.6rem rgba(102, 120, 255, 0); }
}

@keyframes draw-line {
  0%, 12%, 100% { transform: scaleX(0); }
  28%, 84% { transform: scaleX(1); }
}

@keyframes orbit-outer {
  to { transform: translate(-50%, -50%) rotateX(67deg) rotateZ(360deg); }
}

@keyframes orbit-inner {
  to { transform: translate(-50%, -50%) rotateY(64deg) rotateZ(360deg); }
}

@keyframes core-build {
  0%, 10%, 100% { opacity: 0; transform: translate(-50%, -50%) rotate(5deg) scale(0.2); }
  30%, 78% { opacity: 1; transform: translate(-50%, -50%) rotate(45deg) scale(0.82); }
  86% { opacity: 0.35; transform: translate(-50%, -50%) rotate(80deg) scale(1.2); }
}

@keyframes assemble-card {
  0%, 8%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) translate3d(var(--from-x), var(--from-y), 250px) rotateZ(calc(var(--turn) * 3)) scale(0.72);
  }
  22% {
    opacity: 1;
  }
  34%, 78% {
    opacity: 1;
    transform: translate(-50%, -50%) translate3d(var(--x), var(--y), var(--z)) rotateZ(var(--turn)) scale(1);
  }
  84% {
    opacity: 0.5;
    transform: translate(-50%, -50%) translate3d(var(--x), calc(var(--y) - 24px), 170px) rotateZ(calc(var(--turn) * -1)) scale(0.94);
  }
}

@keyframes cursor-route {
  0%, 10%, 100% { opacity: 0; transform: translate(-11rem, -8rem); }
  18% { opacity: 1; transform: translate(-8rem, -5rem); }
  34% { transform: translate(7rem, -3rem); }
  50% { transform: translate(4rem, 6rem); }
  66% { transform: translate(-7rem, 4rem); }
  78% { opacity: 1; transform: translate(-0.3rem, -0.3rem); }
  87% { opacity: 0; transform: translate(-0.3rem, -0.3rem); }
}

@keyframes cursor-ping {
  0% { opacity: 0.8; transform: scale(0.25); }
  75%, 100% { opacity: 0; transform: scale(1); }
}

@keyframes build-meter {
  0% { transform: scaleX(0); }
  78%, 86% { transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

@media (max-width: 900px) {
  .page-shell {
    min-height: 100svh;
  }

  main {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 3.5rem;
    padding: 4rem 0 3rem;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(4.2rem, 14vw, 7.5rem);
  }

  .construction {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 600px) {
  .page-shell {
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  }

  .wordmark {
    gap: 0;
  }

  .wordmark > span:last-child {
    display: none;
  }

  .build-id {
    font-size: 0.52rem;
  }

  main {
    gap: 2.75rem;
    padding: 3.2rem 0 2.5rem;
  }

  h1 {
    font-size: clamp(3.55rem, 18vw, 5.5rem);
  }

  .intro__copy {
    max-width: 29rem;
    font-size: 0.88rem;
  }

  .construction {
    min-height: 25rem;
    aspect-ratio: 0.88;
  }

  .assembly {
    inset: 10% 0 18%;
    transform: scale(0.82) rotateX(calc(var(--my) * -2deg)) rotateY(calc(var(--mx) * 2deg));
  }

  .archive-card {
    width: 9.5rem;
    height: 5.4rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  h1 em::after {
    transform: scaleX(1);
  }

  .archive-card {
    opacity: 1;
    transform: translate(-50%, -50%) translate3d(var(--x), var(--y), var(--z)) rotateZ(var(--turn));
  }

  .assembly__core {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(45deg) scale(0.82);
  }
}
