:root {
  --chrome: #D9DEE3;
  --graphite: #101316;
  --silver: #AEB6BE;
  --indigo: #6E7FA8;
  --celadon: #C8D8CC;
  --plum: #584B63;
  --rice: #F4EFE4;
  --heading: Jost, Poppins, Futura, "Century Gothic", "Trebuchet MS", sans-serif;
  --label: "League Spartan", Poppins, Futura, "Arial Narrow", sans-serif;
  --body: "Nunito Sans", Inter, Avenir, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.observatory {
  position: relative;
  background:
    linear-gradient(115deg, rgba(217,222,227,0.04), transparent 36%),
    radial-gradient(circle at 8% 18%, rgba(244,239,228,0.08), transparent 31%),
    var(--graphite);
}

.ambient, .grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ambient-rice {
  background: radial-gradient(ellipse at 0% 78%, rgba(244,239,228,0.22), transparent 42%);
  filter: blur(18px);
}

.ambient-indigo {
  background: radial-gradient(circle at 88% 22%, rgba(110,127,168,0.22), transparent 34%);
  mix-blend-mode: screen;
}

.grain {
  opacity: 0.13;
  background-image:
    repeating-linear-gradient(90deg, rgba(217,222,227,0.04) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(0deg, rgba(244,239,228,0.025) 0 1px, transparent 1px 11px);
}

.chamber {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 8vw;
  overflow: hidden;
  isolation: isolate;
}

.chamber::before {
  content: "";
  position: absolute;
  inset: 9vh 7vw;
  border: 1px solid rgba(174,182,190,0.13);
  clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
  opacity: 0.7;
}

h1, h2 {
  font-family: var(--heading);
  font-weight: 300;
  margin: 0;
  letter-spacing: 0.12em;
}

h1 {
  font-size: clamp(3.4rem, 11vw, 10rem);
  line-height: 0.88;
  color: var(--rice);
  text-shadow: 0 0 45px rgba(217,222,227,0.18);
}

h2 {
  font-size: clamp(2rem, 5.6vw, 5.8rem);
  line-height: 0.98;
  color: var(--chrome);
}

p {
  font-size: clamp(1rem, 1.28vw, 1.22rem);
  line-height: 1.85;
  color: rgba(244,239,228,0.72);
  max-width: 34rem;
}

.eyebrow, .chamber-label, .coordinate, .chamber-nav button {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.76rem;
  color: var(--silver);
}

.word-island {
  position: absolute;
  left: 8vw;
  top: 18vh;
  max-width: 60vw;
  z-index: 3;
}

.meditation { margin-top: 2rem; }

.chamber-label {
  position: absolute;
  left: 8vw;
  bottom: 8vh;
}

.hex {
  position: absolute;
  width: 18rem;
  aspect-ratio: 1 / 0.866;
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background:
    linear-gradient(135deg, rgba(217,222,227,0.34), rgba(16,19,22,0.1) 32%, rgba(244,239,228,0.16) 58%, rgba(174,182,190,0.28)),
    rgba(217,222,227,0.035);
  box-shadow: inset 0 0 0 1px rgba(217,222,227,0.55), inset 0 0 34px rgba(244,239,228,0.08), 0 30px 80px rgba(0,0,0,0.38);
  opacity: 0;
  transform: translate3d(-26px, 28px, 0) scale(0.92);
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.19,1,.22,1);
}

.chamber.in-view .hex, .chamber-one .hero-hex { opacity: 1; transform: translate3d(0,0,0) scale(1); }

.chrome::after {
  content: "";
  position: absolute;
  inset: 1px;
  clip-path: inherit;
  background: linear-gradient(115deg, transparent 8%, rgba(244,239,228,0.55) 12%, transparent 18%, transparent 62%, rgba(217,222,227,0.28) 68%, transparent 75%);
  opacity: 0.5;
}

.glass {
  background: rgba(200,216,204,0.07);
  box-shadow: inset 0 0 0 1px rgba(200,216,204,0.28), 0 24px 70px rgba(0,0,0,0.25);
}

.hero-hex {
  width: min(48vw, 38rem);
  right: 5vw;
  bottom: 10vh;
}

.breath { animation: breathe 7s ease-in-out infinite; }

@keyframes breathe {
  0%, 100% { filter: brightness(0.92); transform: translate3d(0,0,0) scale(1); }
  50% { filter: brightness(1.16); transform: translate3d(-1vw, -0.5vh, 0) scale(1.025); }
}

.wash {
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(circle at 35% 35%, rgba(110,127,168,0.62), transparent 28%),
    radial-gradient(circle at 62% 58%, rgba(200,216,204,0.55), transparent 32%),
    radial-gradient(circle at 48% 78%, rgba(88,75,99,0.42), transparent 30%);
  filter: blur(20px);
  opacity: 0.68;
}

.indigo { background: radial-gradient(circle at 40% 48%, rgba(110,127,168,0.78), transparent 44%); }
.celadon { background: radial-gradient(circle at 52% 42%, rgba(200,216,204,0.72), transparent 48%); }
.plum { background: radial-gradient(circle at 46% 56%, rgba(88,75,99,0.72), transparent 45%); }
.drift { animation: drift 13s ease-in-out infinite alternate; }
.reverse { animation-direction: alternate-reverse; }

@keyframes drift {
  from { transform: translate(-5%, 4%) rotate(0deg) scale(1.05); }
  to { transform: translate(7%, -5%) rotate(18deg) scale(1.18); }
}

.seed-mark {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 4.2rem;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(244,239,228,0.42);
  border-radius: 50%;
}

.seed-mark span, .node, .inner {
  position: absolute;
  width: 0.55rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--rice);
  box-shadow: 0 0 24px rgba(244,239,228,0.72);
}

.seed-mark span { left: 50%; top: 50%; transform: translate(-50%, -50%); }
.large-seed { width: 6.5rem; }

.triangle-rays, .triangle-rays::before, .triangle-rays::after {
  position: absolute;
  width: 5rem;
  height: 1px;
  background: rgba(244,239,228,0.34);
  left: 50%;
  top: 50%;
  transform-origin: left center;
}

.triangle-rays::before, .triangle-rays::after { content: ""; left: 0; top: 0; }
.triangle-rays { transform: rotate(0deg); }
.triangle-rays::before { transform: rotate(120deg); }
.triangle-rays::after { transform: rotate(240deg); }

.node { z-index: 5; opacity: 0.56; transition: transform 0.45s ease; }
.node-a { left: 58vw; top: 22vh; }
.node-b { left: 82vw; top: 58vh; }
.node-c { left: 38vw; top: 72vh; }

.chamber-copy { position: relative; z-index: 4; max-width: 42rem; }
.left-copy { justify-self: start; align-self: center; }
.right-copy { justify-self: end; text-align: right; }
.right-copy p { margin-left: auto; }

.honeycomb { position: absolute; inset: 6vh 4vw; }
.small { width: 9rem; }
.medium { width: 15rem; }
.large { width: 23rem; }

.diagonal .hex:nth-child(1) { left: 18vw; top: 10vh; }
.diagonal .hex:nth-child(2) { left: 31vw; top: 21vh; }
.diagonal .hex:nth-child(3) { left: 45vw; top: 32vh; }
.diagonal .hex:nth-child(4) { left: 59vw; top: 43vh; }
.diagonal .hex:nth-child(5) { left: 66vw; top: 54vh; }
.diagonal .hex:nth-child(6) { left: 38vw; top: 62vh; }
.delay-1 { transition-delay: .1s; } .delay-2 { transition-delay: .35s; } .delay-3 { transition-delay: .58s; }
.delay-4 { transition-delay: .82s; } .delay-5 { transition-delay: 1.05s; } .delay-6 { transition-delay: 1.28s; }

.coordinate { position: absolute; right: 8vw; bottom: 9vh; }

.watercolor-field {
  position: absolute;
  inset: 12vh 10vw;
  background:
    radial-gradient(circle at 24% 38%, rgba(110,127,168,0.3), transparent 24%),
    radial-gradient(circle at 54% 52%, rgba(200,216,204,0.25), transparent 28%),
    radial-gradient(circle at 74% 64%, rgba(88,75,99,0.24), transparent 26%);
  filter: blur(4px);
}

.rake-line {
  position: absolute;
  width: 82%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217,222,227,0.24), transparent);
  transform: rotate(-18deg);
}
.line-one { top: 25%; left: 5%; } .line-two { top: 48%; left: 10%; } .line-three { top: 70%; left: 0; }

.computation-grid .cell-one { left: 11vw; top: 22vh; width: 26rem; }
.computation-grid .cell-two { left: 37vw; top: 34vh; width: 20rem; }
.computation-grid .cell-three { left: 24vw; top: 58vh; width: 16rem; }
.inner { right: 28%; top: 40%; }

.chamber-four { grid-template-columns: 1fr minmax(16rem, 34rem) 1fr; gap: 2vw; }
.mirror-plane { position: relative; width: 100%; height: 56vh; opacity: 0.86; }
.mirror-plane .hex:nth-child(1) { left: 20%; top: 12%; }
.mirror-plane .hex:nth-child(2) { left: 50%; top: 38%; }
.mirror-plane .hex:nth-child(3) { left: 6%; top: 62%; }
.plane-right { transform: scaleX(-1); }
.central-void { text-align: center; position: relative; z-index: 4; }
.central-void h2 { font-size: clamp(1.8rem, 3.7vw, 4.2rem); }

.final-seal { width: min(34vw, 24rem); position: relative; opacity: 1; transform: none; }
.return-copy { position: absolute; bottom: 12vh; text-align: center; z-index: 4; }
.return-copy p { margin-inline: auto; }
.final-rays { width: 7rem; }

.chamber-nav {
  position: fixed;
  right: 2.4vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: grid;
  gap: 0.9rem;
}

.chamber-nav button {
  color: rgba(174,182,190,0.45);
  background: transparent;
  border: 0;
  padding: 0.3rem;
  cursor: pointer;
  transition: color .4s ease, transform .4s ease;
}

.chamber-nav button.current { color: var(--rice); transform: translateX(-0.35rem); }

.cursor-seed {
  position: fixed;
  left: 0;
  top: 0;
  width: 1rem;
  aspect-ratio: 1;
  border: 1px solid rgba(244,239,228,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  pointer-events: none;
  opacity: 0.65;
}

@media (max-width: 760px) {
  .word-island, .chamber-copy, .return-copy { left: 7vw; right: 7vw; max-width: none; text-align: left; }
  .hero-hex { width: 82vw; right: -18vw; bottom: 15vh; }
  .chamber { padding: 18vh 7vw; display: block; }
  .right-copy p { margin-left: 0; }
  .chamber-four { display: grid; grid-template-columns: 1fr; }
  .mirror-plane { height: 24vh; }
  .chamber-nav { right: 1vw; }
  .large { width: 16rem; } .medium { width: 11rem; } .small { width: 7rem; }
}
