:root {
  /* Design font token: Grotesk* */
  --night: #0B1026;
  --cream: #F8F1DE;
  --red: #F23C2E;
  --yellow: #FFD43B;
  --blue: #1264D8;
  --cyan: #6FFFE9;
  --violet: #D98CFF;
  --serif: "Cormorant Garamond", Georgia, serif;
  --body: "Libre Baskerville", Georgia, serif;
  --label: "Space Grotesk", "Grotesk*", Inter, Lato, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

button, a { font: inherit; color: inherit; }

.field-tabs {
  position: fixed;
  z-index: 20;
  top: 18px;
  right: 18px;
  display: grid;
  gap: 7px;
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.field-tabs a {
  text-decoration: none;
  background: rgba(248, 241, 222, .12);
  border: 2px solid var(--cream);
  padding: 8px 10px;
  transform: skewX(-8deg);
  transition: background .25s ease, transform .25s ease;
}

.field-tabs a:hover { background: var(--red); transform: skewX(-8deg) translateX(-8px); }

.aurora {
  position: fixed;
  inset: auto auto 0 0;
  width: 110vw;
  height: 55vh;
  pointer-events: none;
  z-index: 0;
  opacity: .45;
  filter: blur(28px);
  mix-blend-mode: screen;
  animation: breathe 8s ease-in-out infinite alternate;
}

.aurora-one { background: linear-gradient(115deg, transparent 8%, var(--cyan) 31%, transparent 48%, var(--violet) 68%, transparent 82%); transform: rotate(-13deg) translateY(10vh); }
.aurora-two { top: 3vh; right: -22vw; left: auto; background: radial-gradient(circle, var(--violet), transparent 55%), linear-gradient(70deg, transparent, var(--cyan), transparent); animation-duration: 11s; }

.chamber {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  padding: clamp(22px, 4vw, 62px);
  background: var(--night);
}

.poster-grid {
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image: linear-gradient(90deg, var(--cream) 1px, transparent 1px), linear-gradient(0deg, var(--cream) 1px, transparent 1px);
  background-size: 8.33vw 12.5vh;
}

.yellow-disk {
  position: absolute;
  right: -18vmin;
  top: -20vmin;
  width: 62vmin;
  height: 62vmin;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 48%, var(--yellow) 0 42%, var(--red) 75%, transparent 76%);
  box-shadow: 0 0 80px rgba(255, 212, 59, .44), 0 0 120px rgba(242, 60, 46, .24);
  z-index: 1;
}

.red-bar {
  position: absolute;
  left: 32vw;
  top: -4vh;
  width: clamp(54px, 8vw, 118px);
  height: 82vh;
  background: var(--red);
  transform: rotate(2deg);
  z-index: 2;
}

.blue-needle {
  position: absolute;
  right: 24vw;
  bottom: 15vh;
  width: 170px;
  height: 34px;
  background: var(--blue);
  border: 3px solid var(--cream);
  color: var(--cream);
  font-family: var(--label);
  display: grid;
  place-items: center;
  letter-spacing: .12em;
  clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%, 12% 50%);
  transform: rotate(-18deg);
  z-index: 3;
}

.title-block {
  grid-column: 1 / 9;
  grid-row: 3 / 7;
  z-index: 4;
  align-self: center;
}

.coordinate, .margin-note, .rail-caption {
  font-family: var(--label);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: clamp(10px, 1vw, 13px);
}

h1, h2, blockquote {
  font-family: var(--serif);
  font-weight: 600;
  line-height: .86;
  margin: 0;
}

h1 { font-size: clamp(76px, 15vw, 230px); letter-spacing: -.06em; max-width: 9ch; }
h1 span { color: var(--yellow); font-style: italic; }
h2 { font-size: clamp(54px, 9vw, 145px); letter-spacing: -.04em; }
.lead { max-width: 560px; font-size: clamp(16px, 2vw, 25px); line-height: 1.5; }

.registration-mark { position: absolute; width: 92px; height: 92px; border: solid var(--cream); z-index: 4; opacity: .8; }
.top-left { left: 24px; top: 24px; border-width: 6px 0 0 6px; }
.bottom-right { right: 24px; bottom: 24px; border-width: 0 6px 6px 0; }

.icon-swarm { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.field-icon, .tool-icon, .shape {
  position: absolute;
  border: 3px solid var(--night);
  box-shadow: 6px 7px 0 rgba(11,16,38,.45);
  font-family: var(--label);
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  transition: transform .28s ease, background .28s ease, color .28s ease;
}
.field-icon:hover, .tool-icon:hover, .shape:hover { transform: translateY(-9px) rotate(var(--tilt, 8deg)); background: var(--cyan); color: var(--night); }

.cover-swarm .field-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--cream); color: var(--night); }
.cover-swarm .compass { left: 12%; top: 18%; --tilt: -18deg; }
.cover-swarm .orbit { left: 71%; top: 51%; background: var(--violet); }
.cover-swarm .arrow { left: 18%; bottom: 13%; background: var(--cyan); }
.cover-swarm .prism { right: 10%; bottom: 23%; background: var(--yellow); }
.cover-swarm .switch { left: 52%; top: 13%; border-radius: 0; background: var(--blue); color: var(--cream); }
.cover-swarm .screw { left: 42%; bottom: 8%; background: var(--red); color: var(--cream); }

.margin-note { position: absolute; z-index: 5; max-width: 210px; line-height: 1.4; }
.note-a { left: 4vw; bottom: 18vh; color: var(--cyan); }
.note-b { right: 7vw; top: 41vh; color: var(--cream); }

.calibration { background: linear-gradient(135deg, var(--night) 0 50%, #111936 50% 100%); }
.cream-panel {
  grid-column: 1 / 7;
  grid-row: 2 / 7;
  align-self: center;
  z-index: 4;
  background: var(--cream);
  color: var(--night);
  padding: clamp(28px, 5vw, 72px);
  border: 4px solid var(--night);
  box-shadow: 18px 18px 0 var(--red);
}
.skewed-panel { transform: rotate(-2deg); }
.cream-panel p:last-child { font-size: clamp(15px, 1.4vw, 22px); line-height: 1.55; max-width: 650px; }

.blue-rail { position: absolute; height: 20px; background: linear-gradient(90deg, var(--blue), var(--cream)); z-index: 2; }
.rail-one { width: 72vw; right: -16vw; top: 22vh; transform: rotate(-10deg); }
.rail-two { width: 64vw; left: 36vw; bottom: 19vh; transform: rotate(7deg); }
.red-square { position: absolute; right: 11vw; top: 16vh; width: 130px; height: 130px; background: var(--red); transform: rotate(11deg); }
.pole-small { position: absolute; left: 28vw; top: 49vh; width: 90px; height: 90px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 55px var(--yellow); }

.tool-wall { position: absolute; inset: 10vh 5vw 6vh 48vw; z-index: 5; }
.tool-icon { width: 82px; height: 82px; display: grid; place-items: center; background: var(--cream); color: var(--night); }
.tool-icon:nth-child(1) { left: 0; top: 4%; border-radius: 50%; background: var(--yellow); }
.tool-icon:nth-child(2) { left: 32%; top: 0; background: var(--cyan); }
.tool-icon:nth-child(3) { right: 11%; top: 14%; border-radius: 50% 50% 6px 6px; background: var(--violet); }
.tool-icon:nth-child(4) { left: 15%; top: 36%; border-radius: 50%; background: var(--blue); color: var(--cream); }
.tool-icon:nth-child(5) { right: 1%; top: 42%; background: var(--yellow); clip-path: polygon(50% 0,100% 100%,0 100%); }
.tool-icon:nth-child(6) { left: 42%; top: 55%; background: var(--red); color: var(--cream); }
.tool-icon:nth-child(7) { left: 3%; bottom: 4%; background: var(--cyan); }
.tool-icon:nth-child(8) { left: 58%; bottom: 0; border-radius: 50%; }
.tool-icon:nth-child(9) { right: 2%; bottom: 16%; width: 124px; background: var(--violet); }

.tunnel { background: radial-gradient(circle at 65% 60%, rgba(255,212,59,.28), transparent 22%), var(--night); }
.aurora-ribbon { position: absolute; left: -10vw; width: 125vw; height: 26vh; border-radius: 50%; filter: blur(10px); opacity: .75; mix-blend-mode: screen; animation: ribbon 9s ease-in-out infinite alternate; }
.ribbon-a { top: 18vh; background: linear-gradient(90deg, transparent, var(--cyan), var(--violet), transparent); transform: rotate(-12deg); }
.ribbon-b { bottom: 16vh; background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent); transform: rotate(9deg); animation-delay: -3s; }
.rail-caption { grid-column: 2 / 8; grid-row: 2; z-index: 3; color: var(--cyan); }
blockquote { grid-column: 2 / 11; grid-row: 3 / 7; z-index: 4; font-size: clamp(48px, 8vw, 132px); font-style: italic; color: var(--cream); text-shadow: 10px 12px 0 rgba(18,100,216,.65); }
.orbit-map { position: absolute; right: 6vw; bottom: 8vh; width: 360px; height: 260px; border: 2px dashed var(--cream); border-radius: 50%; z-index: 5; transform: rotate(-8deg); }
.orbit-dot { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--yellow); animation: jumpRail 3s steps(2,end) infinite; }
.dot-one { left: 12%; top: 30%; }
.dot-two { left: 52%; top: 8%; background: var(--cyan); animation-delay: -.7s; }
.dot-three { right: 10%; top: 50%; background: var(--red); animation-delay: -1.2s; }
.dot-four { left: 44%; bottom: 6%; background: var(--violet); animation-delay: -1.8s; }
.floating { right: 38%; top: 42%; width: 72px; height: 72px; border-radius: 50%; background: var(--cream); color: var(--night); }

.toyboard { background: #050814; }
.final-field { position: absolute; inset: 0; background: radial-gradient(circle at 45% 43%, rgba(111,255,233,.32), transparent 18%), radial-gradient(circle at 58% 20%, rgba(217,140,255,.28), transparent 28%); }
.toyboard .coordinate { grid-column: 1 / 5; grid-row: 2; z-index: 3; color: var(--violet); }
.toyboard h2 { grid-column: 1 / 9; grid-row: 3 / 5; z-index: 3; }
.toy-shapes { position: absolute; inset: 0; z-index: 5; }
.shape { display: grid; place-items: center; }
.disk { left: 58vw; top: 18vh; width: 180px; height: 180px; border-radius: 50%; background: var(--yellow); color: var(--night); font-size: 42px; }
.slab { left: 9vw; bottom: 16vh; width: 300px; height: 92px; background: var(--red); transform: rotate(-9deg); color: var(--cream); }
.triangle { right: 8vw; bottom: 18vh; width: 160px; height: 140px; background: var(--blue); color: var(--cream); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.capsule { left: 48vw; bottom: 9vh; width: 220px; height: 76px; border-radius: 999px; background: var(--cream); color: var(--night); }
.closing-copy { grid-column: 7 / 12; grid-row: 6 / 8; z-index: 3; max-width: 520px; font-size: clamp(16px, 1.7vw, 24px); line-height: 1.55; }
.blackout-symbols { position: absolute; left: 4vw; bottom: 4vh; z-index: 4; display: flex; gap: 18px; font-family: var(--label); font-size: 22px; color: var(--cyan); }
.blackout-symbols span { animation: polarityPulse 2.4s ease-in-out infinite alternate; }
.blackout-symbols span:nth-child(even) { color: var(--violet); animation-delay: -.8s; }

.calibrating .field-icon, .calibrating .tool-icon, .calibrating .shape { opacity: 0; transform: translate(var(--start-x, 0), var(--start-y, 40px)) rotate(-18deg) scale(.72); }
.is-in .field-icon, .is-in .tool-icon, .is-in .shape { animation: arrive .75s cubic-bezier(.2,.9,.18,1.1) forwards; animation-delay: var(--delay, 0ms); }
.drifting { transform: translate(var(--drift-x, 0), var(--drift-y, 0)) rotate(var(--rotation, 0deg)); }
.flipped { background: var(--red) !important; color: var(--cream) !important; }

@keyframes arrive { to { opacity: 1; transform: translate(0,0) rotate(0deg) scale(1); } }
@keyframes breathe { from { opacity: .28; transform: translate3d(-4vw, 5vh, 0) rotate(-13deg) scale(1); } to { opacity: .58; transform: translate3d(3vw, -2vh, 0) rotate(-8deg) scale(1.08); } }
@keyframes ribbon { to { transform: translateX(8vw) rotate(-6deg) scaleY(1.18); opacity: .92; } }
@keyframes jumpRail { 50% { transform: translate(22px, -14px) scale(1.35); } }
@keyframes polarityPulse { to { transform: translateY(-8px); text-shadow: 0 0 16px currentColor; } }

@media (max-width: 780px) {
  .field-tabs { left: 12px; right: auto; grid-template-columns: repeat(2, auto); }
  .title-block, .cream-panel, blockquote, .toyboard h2, .closing-copy { grid-column: 1 / -1; }
  .red-bar { left: 63vw; }
  .tool-wall { inset: 50vh 4vw 5vh 8vw; }
  .tool-icon { width: 62px; height: 62px; }
  .orbit-map { width: 250px; height: 180px; }
  .disk { width: 120px; height: 120px; }
  .slab { width: 210px; }
}
