:root {
  /* Compliance typography tokens: IBM Plex Sans* Sans** for body copy Interaction ideas: Space Grotesk* Grotesk** with tight tracking and large scale */
  --vacuum: #05080A;
  --fiber: #11181A;
  --cyan: #6EF3FF;
  --green: #7AF28B;
  --amber: #D7A84F;
  --frost: #E8FBF7;
  --ember: #F05D3F;
  --rail-progress: 0;
  --cursor-x: 50vw;
  --cursor-y: 50vh;
}

* { box-sizing: border-box; }

html {
  background: var(--vacuum);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--frost);
  font-family: "IBM Plex Sans", Inter, sans-serif;
  background:
    radial-gradient(circle at 70% 18%, rgba(110, 243, 255, .07), transparent 29rem),
    radial-gradient(circle at 24% 82%, rgba(122, 242, 139, .055), transparent 34rem),
    linear-gradient(115deg, var(--vacuum), #061012 42%, var(--vacuum));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .23;
  background-image:
    linear-gradient(116deg, transparent 0 47%, rgba(232, 251, 247, .09) 48%, transparent 49% 100%),
    repeating-linear-gradient(68deg, rgba(232, 251, 247, .028) 0 1px, transparent 1px 18px),
    repeating-linear-gradient(158deg, rgba(17, 24, 26, .8) 0 2px, transparent 2px 21px);
  mix-blend-mode: screen;
}

.carbon-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), rgba(110, 243, 255, .16), transparent 18rem),
    radial-gradient(circle at 50% 120%, rgba(215, 168, 79, .08), transparent 40rem);
  transition: background .25s ease;
}

.cursor-orbit {
  position: fixed;
  left: var(--cursor-x);
  top: var(--cursor-y);
  z-index: 7;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border: 1px solid rgba(110, 243, 255, .32);
  border-radius: 50%;
  pointer-events: none;
  transform: scale(calc(1 + var(--rail-progress) * .0009));
  box-shadow: 0 0 26px rgba(110, 243, 255, .14), inset 0 0 18px rgba(110, 243, 255, .08);
}

.site-instrument {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.35rem 2rem;
  color: var(--frost);
  pointer-events: none;
}

.brand-mark,
.lab-readout {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -.04em;
}

.brand-mark {
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  text-shadow: 0 0 22px rgba(110, 243, 255, .25);
}

.lab-readout {
  justify-self: end;
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--amber);
}

.allotrope-progress {
  width: 86px;
  height: 86px;
  position: relative;
  animation: rotateAllotrope 16s linear infinite;
}

.allotrope-progress span {
  position: absolute;
  left: 38px;
  top: 38px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fiber);
  border: 1px solid rgba(232, 251, 247, .32);
  transform: rotate(calc(var(--i, 0) * 60deg)) translateY(-35px);
  box-shadow: 0 0 14px rgba(110, 243, 255, .18);
}

.allotrope-progress span:nth-child(1) { --i: 0; }
.allotrope-progress span:nth-child(2) { --i: 1; }
.allotrope-progress span:nth-child(3) { --i: 2; }
.allotrope-progress span:nth-child(4) { --i: 3; }
.allotrope-progress span:nth-child(5) { --i: 4; }
.allotrope-progress span:nth-child(6) { --i: 5; }
.allotrope-progress span.active { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 20px var(--cyan); }

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

.molecular-rail {
  position: fixed;
  inset: 0;
  z-index: 3;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.rail-shadow,
.rail-path {
  fill: none;
  stroke-linecap: round;
}

.rail-shadow {
  stroke: rgba(17, 24, 26, .92);
  stroke-width: 18;
}

.rail-path {
  stroke: url(#railGradient);
  stroke-width: 2.8;
  stroke-dasharray: 28 18;
  stroke-dashoffset: calc(900 - var(--rail-progress) * 9);
  filter: url(#cyanGlow);
}

.bond-nodes circle {
  fill: var(--vacuum);
  stroke: var(--cyan);
  stroke-width: 2;
  opacity: .84;
  transform-origin: center;
}

body.state-graphite .rail-path { stroke-dasharray: 90 8; }
body.state-nanotube .rail-path { stroke-dasharray: 8 9; stroke-width: 5; }
body.state-pressure .rail-path { stroke-dasharray: 160 16; stroke: var(--ember); }
body.state-biochar .rail-path { stroke-dasharray: 5 22; }
body.state-diamond .rail-path { stroke-dasharray: 210 5 22 5; stroke-width: 3.5; }

.apparatus { position: relative; z-index: 2; }

.chamber {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 7rem clamp(1.4rem, 5vw, 5.8rem);
}

.chamber::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  z-index: -2;
  opacity: .74;
  background:
    radial-gradient(ellipse at 36% 44%, rgba(232, 251, 247, .09), transparent 24%),
    radial-gradient(ellipse at 72% 68%, rgba(17, 24, 26, .72), transparent 42%);
  mask-image: radial-gradient(ellipse at center, #000 0 46%, transparent 73%);
}

.annotation {
  width: min(520px, 88vw);
  position: relative;
  padding: 1.4rem 1.55rem 1.65rem;
  background:
    linear-gradient(135deg, rgba(17, 24, 26, .9), rgba(5, 8, 10, .54)),
    linear-gradient(90deg, rgba(110, 243, 255, .09), transparent);
  border: 1px solid rgba(232, 251, 247, .13);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(232, 251, 247, .08);
  clip-path: polygon(0 0, calc(100% - 2.2rem) 0, 100% 2.2rem, 100% 100%, 1.2rem 100%, 0 calc(100% - 1.2rem));
  transform: translateY(36px);
  opacity: .36;
  transition: opacity .8s ease, transform .8s ease;
}

.chamber.active .annotation,
.chamber.active .closing-statement { opacity: 1; transform: translateY(0); }

.shelf-left { margin-left: clamp(0rem, 6vw, 6rem); }
.shelf-right { margin-left: auto; margin-right: clamp(0rem, 7vw, 7rem); }
.low { align-self: end; margin-bottom: 8vh; }
.high { align-self: start; margin-top: 15vh; }

.annotation::before {
  content: "";
  position: absolute;
  left: -52px;
  top: 48%;
  width: 76px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.shelf-right::before { left: auto; right: -52px; background: linear-gradient(90deg, var(--cyan), transparent); }

.specimen {
  margin: 0 0 .8rem;
  color: var(--amber);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.4rem, 10vw, 10rem);
  line-height: .78;
  letter-spacing: -.085em;
  color: var(--frost);
  text-shadow: 0 0 35px rgba(110, 243, 255, .18);
}

h2 { font-size: clamp(2.8rem, 8vw, 7.7rem); }

.annotation p:not(.specimen),
.closing-statement p:not(.specimen) {
  margin: 1.05rem 0 0;
  max-width: 33rem;
  color: rgba(232, 251, 247, .78);
  font-size: clamp(1rem, 1.42vw, 1.28rem);
  line-height: 1.55;
}

.scanner-line {
  position: absolute;
  top: -18%;
  left: 18%;
  width: 3px;
  height: 140%;
  background: linear-gradient(transparent, var(--cyan), transparent);
  box-shadow: 0 0 34px var(--cyan);
  transform: rotate(24deg) translateX(-14vw);
  animation: scan 5.8s cubic-bezier(.6, 0, .2, 1) infinite;
}

@keyframes scan { 0%, 18% { transform: rotate(24deg) translateX(-24vw); opacity: 0; } 26%, 70% { opacity: .9; } 100% { transform: rotate(24deg) translateX(80vw); opacity: 0; } }

.capture-bubbles { position: absolute; inset: 0; z-index: -1; }
.co2 {
  position: absolute;
  display: flex;
  gap: .22rem;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 84px;
  border: 1px solid rgba(215, 168, 79, .45);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, rgba(215, 168, 79, .2), rgba(17, 24, 26, .08) 68%, transparent);
  color: var(--frost);
  font-family: "Space Grotesk", sans-serif;
  box-shadow: inset 0 0 24px rgba(215, 168, 79, .16), 0 0 30px rgba(215, 168, 79, .08);
  animation: drift 13s ease-in-out infinite alternate;
}
.co2 span { font-size: .78rem; opacity: .75; }
.co2 b { color: var(--cyan); font-size: 1.2rem; }
.bubble-a { left: 19%; top: 24%; animation-delay: -.8s; }
.bubble-b { right: 16%; top: 31%; animation-delay: -3s; transform: scale(.83); }
.bubble-c { left: 58%; bottom: 16%; animation-delay: -6s; transform: scale(.72); }
.bubble-d { left: 9%; bottom: 18%; animation-delay: -8s; transform: scale(.58); }
@keyframes drift { to { translate: 34px -42px; rotate: 11deg; } }

.word-assembly {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 11vw, 11rem);
  font-weight: 700;
  letter-spacing: -.11em;
  color: rgba(232, 251, 247, .94);
  opacity: 0;
  text-shadow: 0 0 44px rgba(110, 243, 255, .26);
  animation: wordSnap 7s ease-in-out infinite;
}
.word-assembly i { color: var(--amber); font-style: normal; }
.word-assembly span { display: inline-block; transform: translateY(30px) scale(.8); }
@keyframes wordSnap { 0%, 20% { opacity: 0; filter: blur(16px); } 35%, 62% { opacity: 1; filter: blur(0); } 78%, 100% { opacity: 0; filter: blur(20px); } }

.graphite-chamber { background: radial-gradient(ellipse at 23% 22%, rgba(215, 168, 79, .08), transparent 28rem); }
.wafer-stack {
  position: absolute;
  left: 8vw;
  top: 28vh;
  width: min(44vw, 600px);
  height: 330px;
  transform: skewY(-16deg) rotate(-7deg);
}
.wafer-stack div {
  position: absolute;
  width: 100%;
  height: 42px;
  border: 1px solid rgba(232, 251, 247, .12);
  background: linear-gradient(100deg, var(--fiber), #080d0f 55%, rgba(215, 168, 79, .15));
  box-shadow: -24px 16px 30px rgba(0, 0, 0, .45), inset 0 -6px 12px rgba(0, 0, 0, .55);
}
.wafer-stack div:nth-child(1) { top: 0; }
.wafer-stack div:nth-child(2) { top: 42px; left: 14px; }
.wafer-stack div:nth-child(3) { top: 84px; left: 28px; }
.wafer-stack div:nth-child(4) { top: 126px; left: 42px; }
.wafer-stack div:nth-child(5) { top: 168px; left: 56px; }
.wafer-stack div:nth-child(6) { top: 210px; left: 70px; }
.fraunces-note {
  position: absolute;
  left: 10vw;
  bottom: 12vh;
  max-width: 25rem;
  font-family: "Fraunces", serif;
  color: rgba(215, 168, 79, .8);
  font-size: clamp(1.4rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.nanotube-chamber { background: radial-gradient(ellipse at 70% 70%, rgba(110, 243, 255, .075), transparent 30rem); }
.nanotube-grove {
  position: absolute;
  right: 7vw;
  bottom: 0;
  width: min(58vw, 760px);
  height: 78vh;
  display: flex;
  align-items: flex-end;
  gap: clamp(.35rem, 1vw, 1rem);
  transform: perspective(700px) rotateX(12deg) rotateZ(-5deg);
}
.nanotube-grove i {
  --h: 55%;
  flex: 1;
  height: var(--h);
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, #020304, var(--fiber) 34%, rgba(110, 243, 255, .38) 50%, var(--fiber) 66%, #020304);
  box-shadow: inset 0 0 18px rgba(110, 243, 255, .16), 0 0 20px rgba(110, 243, 255, .08);
  transform-origin: bottom;
  animation: sway 5.5s ease-in-out infinite alternate;
}
.nanotube-grove i:nth-child(3n) { --h: 82%; animation-delay: -1.8s; }
.nanotube-grove i:nth-child(4n) { --h: 67%; animation-delay: -3.2s; }
.nanotube-grove i:nth-child(5n) { --h: 94%; animation-delay: -4.6s; }
@keyframes sway { to { transform: rotate(4deg) translateX(5px); } }

.pressure-rig {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(72vw, 720px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.ring {
  position: absolute;
  inset: var(--inset, 0);
  border-radius: 50%;
  border: 1px solid rgba(232, 251, 247, .17);
  box-shadow: inset 0 0 38px rgba(240, 93, 63, .08), 0 0 60px rgba(0, 0, 0, .5);
}
.ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 20deg, transparent 0 9deg, rgba(240, 93, 63, .85) 10deg 12deg, transparent 13deg 44deg, rgba(215, 168, 79, .6) 45deg 47deg, transparent 48deg);
  mask: radial-gradient(circle, transparent 64%, #000 65% 66%, transparent 67%);
}
.ring-one { --inset: 0; animation: compress 7s ease-in-out infinite; }
.ring-two { --inset: 13%; animation: compress 7s ease-in-out infinite reverse; }
.ring-three { --inset: 27%; animation: compress 7s ease-in-out infinite; }
.compression-core {
  position: absolute;
  inset: 41%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ember);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 5rem);
  background: radial-gradient(circle, rgba(240, 93, 63, .2), rgba(5, 8, 10, .88) 62%);
  box-shadow: 0 0 44px rgba(240, 93, 63, .28);
}
@keyframes compress { 50% { transform: scale(.92); border-color: rgba(240, 93, 63, .5); } }

.biochar-chamber { background: radial-gradient(ellipse at 40% 60%, rgba(122, 242, 139, .07), transparent 32rem); }
.pore-field {
  position: absolute;
  inset: 15vh 8vw 10vh 42vw;
  filter: drop-shadow(0 0 24px rgba(122, 242, 139, .08));
}
.pore-field span {
  position: absolute;
  border-radius: 48% 52% 61% 39%;
  background: radial-gradient(circle at 46% 52%, #010202 0 45%, rgba(17, 24, 26, .92) 58%, rgba(122, 242, 139, .14));
  box-shadow: inset 0 0 28px #000, 0 0 0 1px rgba(232, 251, 247, .05);
}
.pore-field span::after {
  content: "";
  position: absolute;
  left: 48%; top: 48%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
  animation: sporeBlink 2.7s steps(2, end) infinite;
}
.pore-field span:nth-child(1) { width: 18vw; height: 13vw; left: 6%; top: 5%; }
.pore-field span:nth-child(2) { width: 10vw; height: 14vw; left: 42%; top: 0; }
.pore-field span:nth-child(3) { width: 14vw; height: 11vw; right: 4%; top: 18%; }
.pore-field span:nth-child(4) { width: 13vw; height: 15vw; left: 18%; top: 42%; }
.pore-field span:nth-child(5) { width: 19vw; height: 12vw; right: 15%; bottom: 5%; }
.pore-field span:nth-child(6) { width: 8vw; height: 8vw; left: 0; bottom: 11%; }
.pore-field span:nth-child(7) { width: 8vw; height: 12vw; right: 0; bottom: 28%; }
.pore-field span:nth-child(8) { width: 7vw; height: 7vw; left: 51%; top: 38%; }
.pore-field span:nth-child(9) { width: 9vw; height: 6vw; left: 39%; bottom: 0; }
.pore-field span:nth-child(2n)::after { animation-delay: -1.3s; }
.pore-field span:nth-child(3n)::after { animation-delay: -.45s; }
@keyframes sporeBlink { 0%, 42% { opacity: .12; transform: scale(.6); } 43%, 100% { opacity: 1; transform: scale(1.15); } }
.root-filaments i {
  position: absolute;
  left: calc(13vw + var(--i) * 7vw);
  bottom: 0;
  width: 1px;
  height: 44vh;
  background: linear-gradient(transparent, rgba(122, 242, 139, .62));
  transform: rotate(calc(-20deg + var(--i) * 9deg));
  transform-origin: bottom;
}
.root-filaments i:nth-child(1) { --i: 0; }
.root-filaments i:nth-child(2) { --i: 1; }
.root-filaments i:nth-child(3) { --i: 2; }
.root-filaments i:nth-child(4) { --i: 3; }
.root-filaments i:nth-child(5) { --i: 4; }

.diamond-chamber { background: radial-gradient(ellipse at 50% 42%, rgba(232, 251, 247, .12), transparent 35rem); }
.diamond-map {
  position: absolute;
  inset: 11vh 7vw;
  transform: rotate(-12deg) skewX(-8deg);
}
.diamond-map span {
  position: absolute;
  clip-path: polygon(50% 0, 100% 34%, 76% 100%, 19% 84%, 0 28%);
  background: linear-gradient(135deg, rgba(232, 251, 247, .42), rgba(110, 243, 255, .05), rgba(215, 168, 79, .16));
  border: 1px solid rgba(232, 251, 247, .18);
  filter: drop-shadow(0 0 30px rgba(232, 251, 247, .16));
  animation: facetFlash 5.4s ease-in-out infinite alternate;
}
.diamond-map span:nth-child(1) { width: 36vw; height: 38vh; left: 1%; top: 9%; }
.diamond-map span:nth-child(2) { width: 30vw; height: 32vh; left: 31%; top: 0; animation-delay: -1s; }
.diamond-map span:nth-child(3) { width: 34vw; height: 35vh; right: 4%; top: 18%; animation-delay: -2s; }
.diamond-map span:nth-child(4) { width: 26vw; height: 30vh; left: 16%; bottom: 4%; animation-delay: -3s; }
.diamond-map span:nth-child(5) { width: 32vw; height: 33vh; left: 44%; bottom: 3%; animation-delay: -4s; }
.diamond-map span:nth-child(6) { width: 16vw; height: 22vh; right: 0; bottom: 0; animation-delay: -5s; }
@keyframes facetFlash { to { opacity: .45; transform: translateY(-14px); } }
.closing-statement {
  width: min(790px, 88vw);
  margin: auto;
  text-align: left;
  opacity: .25;
  transform: translateY(32px);
  transition: opacity .9s ease, transform .9s ease;
}
.closing-statement h2 { color: var(--frost); }

@media (max-width: 760px) {
  .site-instrument { grid-template-columns: 1fr auto; padding: 1rem; }
  .allotrope-progress { display: none; }
  .lab-readout { font-size: .58rem; }
  .chamber { padding: 6rem 1rem; }
  .annotation { width: 94vw; }
  .shelf-left, .shelf-right { margin-left: 0; margin-right: 0; }
  .wafer-stack, .nanotube-grove, .pore-field { opacity: .58; }
  .pore-field { inset: 16vh 2vw 12vh 16vw; }
}
