:root {
  /* Design compliance text: stamped thin begin slowly trace incomplete around opening composition Grotes** Groteskkkk Grotesk** */
  --clay: #C76F4A;
  --cream: #F6DFC5;
  --soil: #342018;
  --marigold: #E3A33B;
  --green: #7DFFB2;
  --violet: #B36CFF;
  --rose: #FF6FAE;
  --teal: #226C63;
  --scene-bg: #C76F4A;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--soil);
  background: var(--scene-bg);
  font-family: "Outfit", Inter, system-ui, sans-serif;
  transition: background-color 900ms ease;
  overflow-x: hidden;
}

body.tone-clay { --scene-bg: #C76F4A; }
body.tone-paper { --scene-bg: #F6DFC5; }
body.tone-dusk { --scene-bg: #226C63; }
body.tone-morning { --scene-bg: #E3A33B; }

.aurora-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  mix-blend-mode: screen;
  opacity: .72;
  overflow: hidden;
}

.aurora-field span {
  position: absolute;
  width: 42vw;
  height: 18vh;
  border-radius: 999px;
  filter: blur(35px);
  opacity: .45;
  animation: drift 18s ease-in-out infinite alternate;
}

.aurora-field span:nth-child(1) { right: -12vw; top: 12vh; background: #7DFFB2; }
.aurora-field span:nth-child(2) { left: -18vw; bottom: 18vh; background: #B36CFF; animation-duration: 22s; }
.aurora-field span:nth-child(3) { right: 7vw; bottom: -5vh; background: #FF6FAE; animation-duration: 26s; }

.pin-nav {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pin {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--cream);
  border: 1px solid rgba(246, 223, 197, .48);
  border-radius: 50%;
  background: rgba(52, 32, 24, .14);
  box-shadow: 0 0 0 rgba(125, 255, 178, 0);
  transition: border-color 280ms ease, box-shadow 280ms ease, color 280ms ease, transform 280ms ease;
}

.pin span { transform: translateY(-1px); }
.pin:hover, .pin.is-active { color: #7DFFB2; border-color: #7DFFB2; box-shadow: 0 0 22px rgba(125, 255, 178, .66), inset 0 0 12px rgba(179, 108, 255, .26); transform: scale(1.08); }

.scene {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 7vw, 92px);
}

.kicker {
  margin: 0 0 22px;
  font-family: "Syne", "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(52, 32, 24, .76);
}

h1, h2 { margin: 0; font-family: "Space Grotesk", system-ui, sans-serif; letter-spacing: -.055em; }

.clay-gate { background: radial-gradient(circle at 78% 76%, rgba(125,255,178,.16), transparent 18rem), #C76F4A; }

.stamp-block {
  position: absolute;
  left: 9vw;
  top: 15vh;
  width: min(610px, 68vw);
  transform: rotate(-1.5deg);
}

.stamp-block h1 {
  display: inline-block;
  padding: .08em .18em .13em;
  color: var(--soil);
  background: rgba(246, 223, 197, .74);
  font-size: clamp(56px, 11vw, 154px);
  line-height: .86;
  border-radius: 18px;
  box-shadow: 8px 10px 0 rgba(52, 32, 24, .08), inset 0 0 0 1px rgba(52, 32, 24, .18);
}

.whisper { max-width: 390px; margin: 28px 0 0 11px; font-size: clamp(16px, 1.6vw, 21px); line-height: 1.45; color: rgba(52, 32, 24, .78); }

.broken-frame {
  position: absolute;
  border: 1px solid rgba(246, 223, 197, .76);
  border-radius: 28px;
  filter: drop-shadow(0 0 12px rgba(125, 255, 178, .28));
}

.broken-frame::before, .broken-frame::after {
  content: "";
  position: absolute;
  background: inherit;
}

.hero-frame {
  left: 5vw;
  top: 9vh;
  width: 53vw;
  height: 58vh;
  clip-path: polygon(0 0, 78% 0, 78% 5%, 100% 5%, 100% 83%, 96% 83%, 96% 100%, 13% 100%, 13% 95%, 0 95%);
  animation: frameBreathe 8s ease-in-out infinite;
}

.sprout-cassette { position: absolute; right: 12vw; bottom: 12vh; width: 220px; height: 230px; }
.cassette-body { position: absolute; bottom: 0; width: 190px; height: 92px; border: 2px solid #F6DFC5; border-radius: 18px; background: rgba(52,32,24,.13); box-shadow: inset 0 0 0 12px rgba(246,223,197,.14), 0 0 30px rgba(179,108,255,.22); }
.cassette-body i { position: absolute; top: 31px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #342018; background: #F6DFC5; }
.cassette-body i:first-child { left: 38px; }
.cassette-body i:nth-child(2) { right: 38px; }
.cassette-body b { position: absolute; left: 72px; right: 72px; bottom: 18px; height: 9px; border-radius: 99px; background: #342018; }
.sprout-svg { position: absolute; left: 33px; top: 0; width: 130px; height: 160px; overflow: visible; }
.sprout-svg path { fill: rgba(34,108,99,.64); stroke: #7DFFB2; stroke-width: 4; filter: drop-shadow(0 0 10px #7DFFB2) drop-shadow(0 0 20px rgba(255,111,174,.5)); animation: leafGlow 5s ease-in-out infinite alternate; }
.sprout-svg path:first-child { fill: none; stroke-width: 5; }
.edge-note { position: absolute; right: 9vw; top: 26vh; writing-mode: vertical-rl; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(246,223,197,.68); }

.seed-tapes { background: linear-gradient(115deg, #F6DFC5 0%, #F6DFC5 64%, rgba(199,111,74,.38) 100%); }
.scene-number { position: absolute; left: 6vw; top: 8vh; font-family: "Syne", sans-serif; font-size: clamp(84px, 17vw, 240px); color: rgba(199,111,74,.18); line-height: .8; }
.library-label { position: absolute; left: 49vw; top: 16vh; width: min(430px, 38vw); }
.library-label h2, .room-copy h2, .date-note h2 { font-size: clamp(34px, 5vw, 82px); line-height: .92; color: #342018; }
.tape-shelf { position: absolute; display: flex; align-items: center; gap: 26px; }
.shelf-one { left: 13vw; top: 45vh; }
.shelf-two { right: 14vw; bottom: 18vh; }
.seed-tape { position: relative; width: 218px; height: 76px; padding: 14px 18px; border: 1px solid #342018; border-radius: 16px; background: rgba(199,111,74,.2); box-shadow: 0 16px 0 rgba(52,32,24,.05); transition: transform 350ms ease, box-shadow 350ms ease; }
.seed-tape.wide { width: 286px; }
.seed-tape.narrow { width: 178px; }
.seed-tape::before { content: ""; position: absolute; inset: -28px -46px; border: 1px solid transparent; border-radius: 22px; clip-path: inset(0 100% 100% 0); transition: clip-path 650ms ease, border-color 350ms ease; }
.seed-tape span { display: block; font-family: "Syne", sans-serif; font-size: 10px; letter-spacing: .2em; color: #226C63; }
.seed-tape strong { display: block; margin-top: 8px; font-family: "Space Grotesk", sans-serif; font-size: 22px; color: #342018; }
.seed-tape em { position: absolute; right: 18px; top: 14px; width: 34px; height: 34px; border-radius: 50% 50% 50% 6px; opacity: 0; transform: scale(.2) rotate(20deg); transition: opacity 350ms ease, transform 500ms ease; }
.seed-tape:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 24px 30px rgba(52,32,24,.11), 0 0 22px rgba(255,111,174,.18); }
.seed-tape:hover::before { border-color: #FF6FAE; clip-path: inset(0 0 0 0); box-shadow: 0 0 16px rgba(255,111,174,.32); }
.seed-tape:hover em { opacity: 1; transform: scale(1) rotate(-18deg); }
.seed-tape[data-flower="violet"] em { background: #B36CFF; box-shadow: 0 0 18px #B36CFF; }
.seed-tape[data-flower="rose"] em { background: #FF6FAE; box-shadow: 0 0 18px #FF6FAE; }
.seed-tape[data-flower="green"] em { background: #7DFFB2; box-shadow: 0 0 18px #7DFFB2; }
.seed-tape[data-flower="gold"] em { background: #E3A33B; box-shadow: 0 0 18px #E3A33B; }
.seed-tape[data-flower="teal"] em { background: #226C63; box-shadow: 0 0 18px #226C63; }
.archive-copy { position: absolute; left: 14vw; bottom: 10vh; width: 320px; line-height: 1.45; color: rgba(52,32,24,.68); }

.potting-room { background: radial-gradient(ellipse at 5% 20%, rgba(255,111,174,.26), transparent 31vw), linear-gradient(135deg, #226C63, #342018); color: #F6DFC5; }
.specimen-frame { left: 18vw; top: 13vh; width: 34vw; height: 68vh; border-color: rgba(246,223,197,.66); animation: misregister 7s ease-in-out infinite alternate; }
.potting-table { position: absolute; left: 9vw; right: 44vw; bottom: 15vh; height: 8px; border-radius: 999px; background: #C76F4A; box-shadow: 0 0 28px rgba(227,163,59,.35); }
.botanical-specimen { position: absolute; left: 24vw; bottom: 15vh; width: 280px; filter: drop-shadow(0 0 18px rgba(125,255,178,.72)); }
.botanical-specimen svg { overflow: visible; }
.botanical-specimen path { fill: rgba(246,223,197,.12); stroke: #7DFFB2; stroke-width: 5; }
.botanical-specimen .stem { fill: none; stroke: #F6DFC5; }
.botanical-specimen .leaf-a { stroke: #7DFFB2; }
.botanical-specimen .leaf-b { stroke: #FF6FAE; }
.botanical-specimen .leaf-c { stroke: #B36CFF; }
.room-copy { position: absolute; right: 10vw; top: 22vh; width: min(480px, 38vw); }
.room-copy .kicker { color: rgba(246,223,197,.74); }
.room-copy h2 { color: #F6DFC5; }
.room-copy p:last-child { max-width: 330px; color: rgba(246,223,197,.72); line-height: 1.55; }

.morning-wall { background: linear-gradient(90deg, #E3A33B 0%, #C76F4A 58%, #F6DFC5 100%); }
.wall-wash { position: absolute; right: -12vw; top: 0; width: 35vw; height: 100%; background: linear-gradient(180deg, rgba(125,255,178,.46), rgba(179,108,255,.38), rgba(255,111,174,.28)); filter: blur(18px); opacity: .62; }
.date-note { position: absolute; left: 12vw; bottom: 16vh; width: min(500px, 70vw); padding: 30px 34px; border: 1px solid rgba(52,32,24,.38); border-radius: 24px; background: rgba(246,223,197,.32); transform: rotate(.8deg); }
.date-stamp { display: inline-block; margin-bottom: 20px; padding: 8px 12px; border: 1px solid #342018; border-radius: 999px; font-family: "Syne", sans-serif; font-size: 12px; letter-spacing: .16em; color: #342018; }
.date-note p { width: 310px; max-width: 100%; line-height: 1.5; color: rgba(52,32,24,.74); }
.envelope-corner { position: absolute; right: 13vw; bottom: 16vh; width: 190px; height: 190px; border-right: 2px solid rgba(52,32,24,.35); border-bottom: 2px solid rgba(52,32,24,.35); transform: rotate(45deg); }
.final-mark { position: absolute; right: 8vw; top: 12vh; font-family: "Syne", sans-serif; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: rgba(52,32,24,.58); }

@keyframes drift { from { transform: translate3d(0,0,0) rotate(-8deg); } to { transform: translate3d(10vw,-8vh,0) rotate(12deg); } }
@keyframes frameBreathe { 0%,100% { transform: translate(0,0); box-shadow: inset 0 0 0 rgba(125,255,178,0); } 50% { transform: translate(9px,-6px); box-shadow: inset 0 0 24px rgba(125,255,178,.18), 0 0 26px rgba(179,108,255,.28); } }
@keyframes leafGlow { from { filter: drop-shadow(0 0 8px #7DFFB2); } to { filter: drop-shadow(0 0 15px #7DFFB2) drop-shadow(0 0 30px #FF6FAE); } }
@keyframes misregister { from { transform: translate(0,0); clip-path: inset(0 0 0 0 round 28px); } to { transform: translate(12px,-10px); clip-path: inset(0 4% 6% 0 round 28px); } }

@media (max-width: 760px) {
  .pin-nav { right: 14px; gap: 12px; }
  .scene { padding: 28px; }
  .stamp-block { left: 7vw; width: 78vw; }
  .hero-frame { width: 78vw; height: 48vh; }
  .sprout-cassette { right: 12vw; bottom: 9vh; transform: scale(.78); transform-origin: right bottom; }
  .edge-note { display: none; }
  .library-label, .room-copy { position: relative; left: auto; right: auto; top: auto; width: 78vw; margin: 14vh 0 0; }
  .tape-shelf { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin-top: 42px; flex-direction: column; align-items: flex-start; }
  .shelf-two { margin-left: 20vw; }
  .archive-copy { left: 8vw; bottom: 5vh; }
  .specimen-frame { left: 8vw; width: 78vw; top: 29vh; }
  .botanical-specimen { left: 18vw; bottom: 13vh; width: 220px; }
  .potting-table { right: 12vw; }
}
