:root {
  /* public-interface clarity; Interface fossils:** fossils* fossils: fossils::: old UI affordances — window tabs */
  --ion-cyan: #34E7FF;
  --pool-blue: #1E8BFF;
  --orbit-violet: #6C5CFF;
  --signal-lime: #B8FF4D;
  --mist-white: #F3FBFF;
  --deep-console: #061526;
  --soft-glass: #BDEBFF;
  --plex: "IBM Plex Sans", Inter, system-ui, sans-serif;
  --display: "Inter Tight", Inter, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--mist-white);
  background: radial-gradient(circle at 18% 88%, rgba(52, 231, 255, .24), transparent 30%), radial-gradient(circle at 82% 12%, rgba(108, 92, 255, .34), transparent 35%), linear-gradient(135deg, #061526 0%, #08203f 52%, #061526 100%);
  font-family: var(--plex);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(189, 235, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(189, 235, 255, .07) 1px, transparent 1px), radial-gradient(ellipse at 50% 50%, transparent 38%, rgba(6, 21, 38, .65) 100%);
  background-size: 58px 58px, 58px 58px, 100% 100%;
  animation: gridBreathe 7s ease-in-out infinite alternate;
  z-index: 0;
}

.grid-weather {
  position: fixed;
  inset: -15%;
  pointer-events: none;
  opacity: .52;
  background: repeating-radial-gradient(ellipse at 26% 72%, rgba(52, 231, 255, .16) 0 1px, transparent 1px 32px), repeating-radial-gradient(ellipse at 78% 22%, rgba(108, 92, 255, .18) 0 1px, transparent 1px 44px);
  filter: blur(.1px);
  animation: weatherSlide 18s linear infinite alternate;
  z-index: 1;
}

.atlas-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 520vh;
  pointer-events: none;
  z-index: 2;
}

.river-glow, .river-line { fill: none; stroke-linecap: round; }
.river-glow { stroke: url(#pathGradient); stroke-width: 22; opacity: .16; filter: url(#pathGlow); }
.river-line { stroke: url(#pathGradient); stroke-width: 3; stroke-dasharray: 18 22; animation: dashForward 10s linear infinite; filter: drop-shadow(0 0 14px #34E7FF); }

.cockpit { position: relative; z-index: 3; }

.drift-nav {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(189, 235, 255, .28);
  border-radius: 999px;
  background: rgba(6, 21, 38, .46);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 24px rgba(52, 231, 255, .16);
}

.drift-nav span {
  font: 600 10px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(243, 251, 255, .72);
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(189, 235, 255, .06);
}

.scene {
  position: relative;
  min-height: 100vh;
  padding: clamp(72px, 8vw, 120px) clamp(18px, 6vw, 96px);
  overflow: hidden;
}

.scene::after {
  content: attr(data-scene);
  position: absolute;
  right: 4vw;
  bottom: 4vh;
  font: 600 clamp(3rem, 10vw, 10rem)/1 var(--mono);
  color: rgba(189, 235, 255, .08);
}

.scene-tag, .note-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--signal-lime);
}

.right { float: right; }

.signal-wake { display: grid; align-content: center; }

.hero-assembly {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  margin-top: 4vh;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(4rem, 15vw, 15rem);
  letter-spacing: -.09em;
  line-height: .78;
  color: var(--mist-white);
  text-shadow: 0 0 28px rgba(52, 231, 255, .42), 0 18px 70px rgba(108, 92, 255, .38);
}

.domain-frag {
  display: inline-block;
  opacity: 0;
  transform: translate(var(--sx), var(--sy)) rotate(var(--rot));
  animation: assemble 1.7s cubic-bezier(.2, .9, .15, 1) forwards;
}
.frag-y { --sx: -16vw; --sy: 20vh; --rot: -9deg; animation-delay: .2s; }
.frag-j { --sx: 18vw; --sy: -22vh; --rot: 7deg; animation-delay: .45s; }
.frag-dot { --sx: 4vw; --sy: 18vh; --rot: 22deg; animation-delay: .72s; color: var(--signal-lime); }
.frag-x { --sx: 22vw; --sy: 12vh; --rot: -12deg; animation-delay: .95s; color: var(--soft-glass); }

.wake-copy {
  max-width: 680px;
  margin: 26px 0 0 7vw;
  font-size: clamp(1.05rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: rgba(243, 251, 255, .82);
}

.coordinate-cloud span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 8px 11px;
  font: 400 11px/1 var(--mono);
  color: var(--soft-glass);
  border: 1px solid rgba(189, 235, 255, .24);
  background: rgba(6, 21, 38, .34);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  animation: labelDrift 5s ease-in-out infinite alternate;
  animation-delay: var(--d);
}

.prompt-pill, .contact-signal {
  width: max-content;
  margin-top: 34px;
  padding: 13px 18px;
  border: 1px solid rgba(184, 255, 77, .64);
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(184, 255, 77, .16), rgba(52, 231, 255, .1));
  color: var(--mist-white);
  font: 600 12px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(184, 255, 77, .17), inset 0 0 18px rgba(184, 255, 77, .08);
  transition: transform .35s ease, box-shadow .35s ease;
}

.prompt-pill:hover, .contact-signal:hover { transform: translateY(-3px); box-shadow: 0 0 38px rgba(52, 231, 255, .32); }

.name-drift { min-height: 112vh; }

.liquid-core {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(62vw, 720px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(189, 235, 255, .28);
  border-radius: 43% 57% 62% 38% / 48% 36% 64% 52%;
  background: radial-gradient(circle, rgba(189, 235, 255, .18), rgba(30, 139, 255, .08) 54%, transparent 72%);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 70px rgba(52, 231, 255, .18), 0 0 80px rgba(108, 92, 255, .22);
  animation: morphBlob 8s ease-in-out infinite alternate;
}

.profile-core {
  position: absolute;
  inset: 34%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(52, 231, 255, .55);
  border-radius: 50%;
  background: rgba(6, 21, 38, .68);
}
.core-label { font: 800 clamp(2.5rem, 8vw, 6rem)/1 var(--display); color: var(--mist-white); }
.core-pulse { position: absolute; inset: -18px; border: 1px dashed rgba(184, 255, 77, .52); border-radius: 50%; animation: counterSpin 8s linear infinite; }

.orbit-ring { position: absolute; inset: 11%; border: 1px dashed rgba(189, 235, 255, .25); border-radius: 50%; animation: spin 18s linear infinite; }
.orbit-b { inset: 22%; animation: counterSpin 12s linear infinite; border-color: rgba(108, 92, 255, .42); }
.orbit-ring span { position: absolute; padding: 7px 10px; font: 600 11px/1 var(--mono); color: var(--mist-white); background: rgba(30, 139, 255, .22); border: 1px solid rgba(189, 235, 255, .26); border-radius: 14px; }
.orbit-ring span:nth-child(1) { left: 47%; top: -14px; }
.orbit-ring span:nth-child(2) { right: -18px; top: 42%; }
.orbit-ring span:nth-child(3) { left: 46%; bottom: -14px; }
.orbit-ring span:nth-child(4) { left: -28px; top: 42%; }
.orbit-ring span:nth-child(5) { right: 12%; top: 12%; }

.scrap, .glass-note, .capsule, .engine-panel, .horizon-field {
  border: 1px solid rgba(189, 235, 255, .29);
  background: linear-gradient(135deg, rgba(189, 235, 255, .16), rgba(30, 139, 255, .09));
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(243, 251, 255, .18), 0 20px 60px rgba(0, 0, 0, .2);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.scrap { position: absolute; padding: 14px 16px; font: 500 12px/1.35 var(--mono); color: var(--mist-white); transition: transform .5s ease; }
.scrap-ticket { left: 8vw; top: 22vh; transform: rotate(-8deg); }
.scrap-tab { right: 10vw; top: 18vh; transform: rotate(5deg); }
.scrap-glyph { right: 16vw; bottom: 22vh; transform: rotate(-4deg); color: var(--signal-lime); }
.scrap-map { left: 20vw; bottom: 16vh; transform: rotate(7deg); }
.dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--ion-cyan); }

.drift-note { position: absolute; left: 8vw; bottom: 14vh; max-width: 410px; padding: 26px; }
h2, h3, p { margin-top: 0; }
h2 { font: 800 clamp(2.4rem, 6vw, 6rem)/.92 var(--display); letter-spacing: -.055em; }
h3 { font: 700 clamp(1.4rem, 3vw, 2.4rem)/1 var(--display); letter-spacing: -.04em; }
p { line-height: 1.55; color: rgba(243, 251, 255, .78); }

.project-estuary { min-height: 118vh; }
.capsule { position: absolute; max-width: 360px; padding: 24px; border-radius: 36px; clip-path: ellipse(68% 48% at 50% 50%); }
.capsule span { display: block; margin-bottom: 12px; font: 600 11px/1 var(--mono); color: var(--signal-lime); text-transform: uppercase; letter-spacing: .15em; }
.cap-one { left: 10vw; top: 27vh; transform: rotate(-5deg); }
.cap-two { right: 12vw; top: 40vh; transform: rotate(4deg); background: linear-gradient(135deg, rgba(108, 92, 255, .24), rgba(52, 231, 255, .1)); }
.cap-three { left: 34vw; bottom: 12vh; transform: rotate(-2deg); }

.bead-strip { position: absolute; left: 16vw; right: 16vw; top: 52%; display: flex; justify-content: space-between; transform: rotate(-14deg); }
.bead-strip i { width: 10px; height: 10px; border-radius: 50%; background: var(--ion-cyan); box-shadow: 0 0 18px var(--ion-cyan); animation: beadBack 1.8s ease-in-out infinite; }
.bead-strip i:nth-child(even) { background: var(--signal-lime); animation-direction: reverse; }
.estuary-prompt { position: absolute; right: 16vw; bottom: 12vh; }

.contradiction-engine { display: grid; place-items: center; }
.engine-shell { width: min(1040px, 90vw); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 4vw, 54px); perspective: 1200px; }
.engine-panel { padding: clamp(24px, 4vw, 48px); min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; }
.panel-left { transform: translateX(var(--engine-left, 0)) rotate(-2deg); }
.panel-right { transform: translateX(var(--engine-right, 0)) rotate(2deg); background: linear-gradient(135deg, rgba(52, 231, 255, .12), rgba(108, 92, 255, .24)); }
.engine-panel strong { font: 600 clamp(3rem, 10vw, 8rem)/1 var(--mono); color: var(--ion-cyan); text-shadow: 0 0 24px rgba(52, 231, 255, .44); }

.constellation { position: absolute; width: 360px; height: 260px; right: 8vw; bottom: 8vh; opacity: .78; background: linear-gradient(24deg, transparent 31%, rgba(52, 231, 255, .36) 32% 33%, transparent 34%), linear-gradient(126deg, transparent 42%, rgba(184, 255, 77, .32) 43% 44%, transparent 45%); animation: constellationFlash 4s ease-in-out infinite; }
.constellation span { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--ion-cyan); box-shadow: 0 0 16px var(--ion-cyan); }
.constellation span:nth-child(1){left:8%;top:72%}.constellation span:nth-child(2){left:28%;top:22%}.constellation span:nth-child(3){left:51%;top:48%}.constellation span:nth-child(4){left:78%;top:18%}.constellation span:nth-child(5){left:86%;top:78%}.constellation span:nth-child(6){left:42%;top:86%}

.open-horizon { display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, rgba(184, 255, 77, .18), transparent 24%), linear-gradient(140deg, rgba(52, 231, 255, .34), rgba(30, 139, 255, .22), rgba(108, 92, 255, .22)); }
.horizon-field { width: min(760px, 90vw); padding: clamp(28px, 6vw, 70px); text-align: left; border-radius: 42px; }
.contact-signal { display: block; margin-top: 26px; color: var(--signal-lime); }

.signal-bead { position: fixed; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--signal-lime); box-shadow: 0 0 28px var(--signal-lime), 0 0 60px rgba(52, 231, 255, .52); pointer-events: none; transform: translate3d(-40px, -40px, 0); z-index: 30; mix-blend-mode: screen; }

@keyframes gridBreathe { from { opacity: .42; background-size: 58px 58px, 58px 58px, 100% 100%; } to { opacity: .75; background-size: 66px 66px, 66px 66px, 100% 100%; } }
@keyframes weatherSlide { from { transform: translateX(-2%) rotate(-1deg); } to { transform: translateX(2%) rotate(1deg); } }
@keyframes dashForward { to { stroke-dashoffset: -400; } }
@keyframes assemble { to { opacity: 1; transform: translate(0, 0) rotate(0); } }
@keyframes labelDrift { to { transform: translate(18px, -12px); color: var(--signal-lime); } }
@keyframes morphBlob { to { border-radius: 58% 42% 39% 61% / 44% 60% 40% 56%; transform: translate(-50%, -50%) rotate(3deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes counterSpin { to { transform: rotate(-360deg); } }
@keyframes beadBack { 50% { transform: translateX(-18px) scale(1.45); opacity: .55; } }
@keyframes constellationFlash { 50% { opacity: .26; filter: blur(1px); } }

@media (max-width: 760px) {
  .drift-nav { max-width: 94vw; overflow: hidden; }
  .drift-nav span { padding: 8px; font-size: 9px; }
  .hero-assembly { font-size: clamp(3.7rem, 21vw, 7rem); }
  .wake-copy { margin-left: 0; }
  .liquid-core { width: 92vw; }
  .drift-note, .scrap-ticket, .scrap-tab, .scrap-glyph, .scrap-map, .capsule, .estuary-prompt { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 18px 0; display: block; }
  .name-drift, .project-estuary { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding-top: 46vh; }
  .engine-shell { grid-template-columns: 1fr; }
  .engine-panel { min-height: 300px; }
  .constellation { display: none; }
}
