:root {
  /* DESIGN TYPOGRAPHY TOKENS: Mono* Mono** sparingly tech motif appears delicate measuring instrument rather than developer aesthetic. Source Sans 3* 3** readable */
  --green-flare: #B7F27A;
  --violet-black: #171326;
  --lilac: #C9A7FF;
  --moss: #24382F;
  --cyan: #8DE7E0;
  --linen: #F4E8CF;
  --berry: #6E315F;
  --copper: #B8794A;
  --heading: "Alegreya Sans", "Trebuchet MS", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--linen);
  font-family: var(--body);
  background: var(--violet-black);
  cursor: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(circle at 52% 22%, rgba(183, 242, 122, 0.14), transparent 13rem),
    radial-gradient(circle at 80% 68%, rgba(201, 167, 255, 0.17), transparent 20rem),
    linear-gradient(135deg, #171326 0%, #24382F 35%, #6E315F 62%, #8DE7E0 100%);
  filter: saturate(0.9);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(244, 232, 207, 0.45) 0 1px, transparent 1.5px),
    radial-gradient(circle at 77% 42%, rgba(141, 231, 224, 0.36) 0 1px, transparent 1.5px),
    radial-gradient(circle at 48% 82%, rgba(201, 167, 255, 0.32) 0 1px, transparent 1.5px);
  background-size: 78px 72px, 105px 94px, 63px 88px;
  mix-blend-mode: screen;
}

.aurora-field {
  position: fixed;
  inset: -18vh -12vw;
  z-index: -3;
  opacity: 0.52;
  filter: blur(48px);
  background:
    linear-gradient(115deg, transparent 10%, rgba(141, 231, 224, 0.58) 34%, rgba(201, 167, 255, 0.42) 48%, transparent 68%),
    linear-gradient(25deg, transparent 28%, rgba(183, 242, 122, 0.35) 44%, rgba(110, 49, 95, 0.5) 62%, transparent 80%);
  transform: translate3d(0, 0, 0) rotate(-7deg);
}

.cursor-dew {
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 30;
  background: radial-gradient(circle, #F4E8CF 0 10%, #B7F27A 28%, rgba(141, 231, 224, 0.22) 70%, transparent 72%);
  box-shadow: 0 0 28px rgba(183, 242, 122, 0.8), 0 0 52px rgba(141, 231, 224, 0.35);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.pollen-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

.pollen {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--linen);
  opacity: 0.45;
  box-shadow: 0 0 12px rgba(244, 232, 207, 0.8);
  transform: translate3d(var(--x), var(--y), 0);
}

.scene {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.layer { position: absolute; will-change: transform; }

.scene-threshold {
  background:
    radial-gradient(circle at 60% 34%, rgba(183, 242, 122, 0.1), transparent 18rem),
    radial-gradient(circle at 15% 75%, rgba(110, 49, 95, 0.36), transparent 22rem),
    linear-gradient(180deg, rgba(23, 19, 38, 1), rgba(23, 19, 38, 0.76) 58%, rgba(36, 56, 47, 0.38));
}

.haze {
  inset: 10vh -12vw auto;
  height: 66vh;
  background: radial-gradient(ellipse at center, rgba(244, 232, 207, 0.18), transparent 68%);
  filter: blur(32px);
}

.botanical {
  opacity: 0.33;
  filter: blur(0.3px);
}

.fern-left {
  left: -5vw;
  bottom: -8vh;
  width: 38vw;
  height: 78vh;
  background: repeating-linear-gradient(104deg, transparent 0 21px, rgba(244, 232, 207, 0.2) 22px 24px, transparent 25px 43px), linear-gradient(72deg, transparent 49%, rgba(183, 242, 122, 0.3) 50%, transparent 51%);
  clip-path: polygon(45% 0, 54% 0, 58% 100%, 38% 100%);
}

.seed-right {
  right: -3vw;
  top: 17vh;
  width: 30vw;
  height: 64vh;
  background:
    radial-gradient(ellipse at 44% 11%, rgba(201, 167, 255, 0.52) 0 3%, transparent 4%),
    radial-gradient(ellipse at 56% 22%, rgba(244, 232, 207, 0.38) 0 2%, transparent 3%),
    linear-gradient(97deg, transparent 48%, rgba(141, 231, 224, 0.42) 50%, transparent 52%);
}

.pole-flare {
  position: absolute;
  left: 57vw;
  top: 31vh;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #B7F27A;
  box-shadow: 0 0 8px #F4E8CF, 0 0 34px #B7F27A, 0 0 82px rgba(184, 121, 74, 0.85), 38px -13px 80px rgba(141, 231, 224, 0.48);
}

.pole-flare::before, .pole-flare::after, .lens::before, .center-flare::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(90deg, transparent, rgba(244, 232, 207, 0.82), transparent);
  height: 1px;
  width: 170px;
}

.pole-flare::after { transform: translate(-50%, -50%) rotate(90deg); width: 110px; }

.field-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  pointer-events: none;
  opacity: 0.72;
}

.field-lines path, .field-lines circle {
  stroke: rgba(244, 232, 207, 0.38);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.hero-lines path:first-child, .map-lines path:first-child { stroke: rgba(141, 231, 224, 0.62); }
.circuit-lines path:nth-child(2) { stroke: rgba(183, 242, 122, 0.55); }
.field-lines circle { fill: rgba(184, 121, 74, 0.6); stroke: rgba(244, 232, 207, 0.6); }

.stitched-orbit {
  position: absolute;
  left: 50%;
  top: 43%;
  width: min(78vw, 980px);
  transform: translate(-50%, -50%) rotate(-7deg);
  text-align: center;
}

.stitched-orbit span, .signature {
  font-family: var(--heading);
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--linen);
  text-shadow: 0 0 18px rgba(244, 232, 207, 0.42), 0 0 40px rgba(141, 231, 224, 0.28);
}

.stitched-orbit span {
  display: block;
  font-size: clamp(4rem, 12vw, 12rem);
  line-height: 0.8;
  animation: stitchIn 2.6s ease both;
}

.field-note {
  position: absolute;
  max-width: 20rem;
  margin: 0;
  color: rgba(244, 232, 207, 0.78);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.18;
  font-weight: 300;
}

.note-hero { left: 12vw; bottom: 22vh; transform: rotate(-5deg); }
.note-wardrobe { right: 12vw; bottom: 19vh; }

.mono-tag {
  position: absolute;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.69rem;
  letter-spacing: 0.13em;
  color: rgba(141, 231, 224, 0.82);
}

.tag-hero { right: 11vw; bottom: 16vh; }
.tag-meadow { left: 9vw; bottom: 13vh; }
.tag-map { top: 16vh; left: 9vw; }

.scroll-thread {
  position: absolute;
  left: 50%;
  bottom: 4vh;
  width: 1px;
  height: 80px;
  background: rgba(244, 232, 207, 0.22);
}

.scroll-thread span {
  display: block;
  width: 7px;
  height: 7px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--green-flare);
  animation: bead 2.4s ease-in-out infinite;
}

.scene-meadow {
  background: linear-gradient(180deg, rgba(36, 56, 47, 0.22), rgba(23, 19, 38, 0.78)), radial-gradient(circle at 74% 26%, rgba(201, 167, 255, 0.22), transparent 22rem);
}

.aurora-ribbon {
  left: -14vw;
  top: 12vh;
  width: 130vw;
  height: 25vh;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(141, 231, 224, 0.44), rgba(201, 167, 255, 0.35), rgba(183, 242, 122, 0.28), transparent);
  filter: blur(25px);
  transform: rotate(-11deg);
}

.vellum-panel {
  width: min(26rem, 72vw);
  min-height: 13rem;
  padding: 4rem 2rem 2rem;
  border: 1px solid rgba(244, 232, 207, 0.25);
  border-radius: 42% 58% 49% 51% / 10% 18% 12% 16%;
  background: linear-gradient(135deg, rgba(244, 232, 207, 0.16), rgba(141, 231, 224, 0.06));
  box-shadow: inset 0 0 40px rgba(244, 232, 207, 0.05), 0 24px 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.vellum-panel p {
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  font-weight: 300;
  line-height: 0.92;
  color: rgba(244, 232, 207, 0.86);
}

.panel-a { left: 12vw; top: 19vh; transform: rotate(-4deg); }
.panel-b { right: 9vw; top: 47vh; transform: rotate(5deg); }

.pin {
  position: absolute;
  left: 2rem;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green-flare);
  box-shadow: 0 0 26px var(--green-flare);
}
.pin.copper { background: var(--copper); box-shadow: 0 0 26px var(--copper); }

.pressed-violet {
  right: 23vw;
  top: 18vh;
  width: 120px;
  height: 150px;
  background: radial-gradient(ellipse at 52% 20%, rgba(201, 167, 255, 0.72) 0 16%, transparent 17%), radial-gradient(ellipse at 38% 36%, rgba(110, 49, 95, 0.62) 0 20%, transparent 21%), radial-gradient(ellipse at 65% 42%, rgba(201, 167, 255, 0.5) 0 18%, transparent 19%);
  filter: blur(0.2px) drop-shadow(0 0 18px rgba(201, 167, 255, 0.3));
}

.pressed-fern {
  left: 50vw;
  bottom: 8vh;
  width: 210px;
  height: 320px;
  opacity: 0.38;
  background: repeating-linear-gradient(78deg, transparent 0 18px, rgba(183, 242, 122, 0.45) 19px 21px, transparent 22px 39px), linear-gradient(90deg, transparent 49%, rgba(244, 232, 207, 0.32) 50%, transparent 51%);
  clip-path: ellipse(36% 50% at 50% 50%);
}

.scene-wardrobe {
  background: radial-gradient(circle at 50% 48%, rgba(141, 231, 224, 0.12), transparent 24rem), linear-gradient(180deg, rgba(23, 19, 38, 0.82), rgba(110, 49, 95, 0.28) 55%, rgba(23, 19, 38, 0.9));
}

.scene-title {
  position: absolute;
  left: 9vw;
  top: 11vh;
  margin: 0;
  font-family: var(--heading);
  font-size: clamp(3rem, 8vw, 8.5rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: 0.035em;
  color: rgba(244, 232, 207, 0.82);
}

.garment {
  position: absolute;
  width: 14rem;
  height: 18rem;
  border: 1px solid rgba(244, 232, 207, 0.23);
  background: linear-gradient(160deg, rgba(244, 232, 207, 0.12), rgba(141, 231, 224, 0.035) 50%, rgba(201, 167, 255, 0.1));
  clip-path: polygon(31% 0, 69% 0, 80% 18%, 72% 100%, 28% 100%, 20% 18%);
  backdrop-filter: blur(8px);
}

.garment span {
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: rgba(244, 232, 207, 0.65);
}

.g-one { left: 19vw; top: 39vh; transform: rotate(-9deg); }
.g-two { left: 43vw; top: 25vh; transform: rotate(7deg); }
.g-three { right: 18vw; top: 41vh; transform: rotate(-3deg); }
.g-four { right: 34vw; bottom: 3vh; transform: rotate(11deg); }

.lens {
  position: absolute;
  left: 65vw;
  top: 23vh;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px #8DE7E0, 0 0 80px rgba(201, 167, 255, 0.6), -70px 26px 110px rgba(183, 242, 122, 0.28);
}

.scene-map {
  background: linear-gradient(180deg, rgba(23, 19, 38, 0.96), rgba(36, 56, 47, 0.84));
}

.map-dial {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(78vw, 760px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(244, 232, 207, 0.18);
  box-shadow: inset 0 0 120px rgba(141, 231, 224, 0.08), 0 0 80px rgba(23, 19, 38, 0.5);
}

.ticks {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 4deg, rgba(244, 232, 207, 0.38) 0deg 0.6deg, transparent 0.6deg 8deg);
  mask: radial-gradient(circle, transparent 61%, #000 62%, #000 64%, transparent 65%);
}

.north, .south {
  position: absolute;
  font-family: var(--mono);
  letter-spacing: 0.18em;
  color: var(--cyan);
}
.north { left: 50%; top: 7%; transform: translateX(-50%); }
.south { left: 50%; bottom: 7%; transform: translateX(-50%); color: rgba(184, 121, 74, 0.55); text-decoration: line-through; }
.center-flare { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--green-flare); box-shadow: 0 0 44px var(--green-flare), 0 0 100px rgba(141, 231, 224, 0.5); transform: translate(-50%, -50%); }

.signature {
  position: absolute;
  left: 50%;
  bottom: 22vh;
  margin: 0;
  transform: translateX(-50%);
  font-size: clamp(3.4rem, 11vw, 11rem);
  white-space: nowrap;
}

.closing-note {
  position: absolute;
  left: 50%;
  bottom: 16vh;
  width: min(27rem, 80vw);
  transform: translateX(-50%);
  margin: 0;
  text-align: center;
  color: rgba(244, 232, 207, 0.7);
  font-size: 1.25rem;
  font-weight: 300;
}

.reveal {
  opacity: 0;
  filter: blur(16px);
  transition: opacity 1.4s ease, filter 1.4s ease, transform 1.4s ease;
}

.reveal.is-visible { opacity: 1; filter: blur(0); }

@keyframes stitchIn {
  from { opacity: 0; filter: blur(20px); letter-spacing: 0.35em; clip-path: inset(0 100% 0 0); }
  to { opacity: 1; filter: blur(0); letter-spacing: 0.16em; clip-path: inset(0 0 0 0); }
}

@keyframes bead {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  50% { transform: translateY(74px); opacity: 1; }
}

@media (max-width: 760px) {
  body { cursor: auto; }
  .cursor-dew { display: none; }
  .panel-a, .panel-b { left: 8vw; right: auto; width: 84vw; }
  .panel-b { top: 54vh; }
  .garment { width: 9rem; height: 13rem; }
  .g-one { left: 8vw; }
  .g-two { left: 40vw; }
  .g-three { right: 5vw; }
  .g-four { right: 28vw; }
  .note-wardrobe { right: 8vw; bottom: 9vh; }
}
