:root {
  /* Typography compliance note: IBM Plex Sans** Sans* for explanatory copy */
  --archive-glass: #D9F7F2;
  --deep-ink: #102A35;
  --violet: #7C4DFF;
  --parchment: #F3E7C8;
  --copper: #B87333;
  --green: #64C27B;
  --lacquer: #E85D4A;
  --night: #071116;
  --serif: "Cormorant Garamond", serif;
  --sans: "IBM Plex Sans", sans-serif;
  --mono: "Spline Sans Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--deep-ink);
  background: var(--night);
  font-family: var(--sans);
  overflow-x: hidden;
  cursor: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(circle at 22% 18%, rgba(217,247,242,.28), transparent 26%),
    linear-gradient(115deg, transparent 0 34%, rgba(255,255,255,.13) 36%, transparent 40% 100%),
    repeating-linear-gradient(90deg, rgba(16,42,53,.05) 0 1px, transparent 1px 84px);
  mix-blend-mode: screen;
}

.conservatory { position: relative; }

.room {
  min-height: 100vh;
  position: relative;
  padding: 9vh 8vw;
  overflow: hidden;
  isolation: isolate;
}

.room::after {
  content: "";
  position: absolute;
  inset: 5vh 4vw;
  border: 1px solid rgba(16,42,53,.16);
  border-radius: 32px;
  pointer-events: none;
  box-shadow: inset 0 0 70px rgba(255,255,255,.26);
}

.room-label { position: relative; z-index: 1; max-width: 680px; }
.room-label span, .accession {
  font-family: var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .72rem;
  color: var(--copper);
}
.room-label h2 {
  margin: .2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(3.8rem, 8vw, 8.2rem);
  font-weight: 500;
  line-height: .83;
}
.field-note {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 1.2rem 0 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(16,42,53,.76);
}

.intake-room {
  background:
    radial-gradient(circle at 78% 22%, rgba(124,77,255,.18), transparent 31%),
    linear-gradient(180deg, #071116 0%, #102A35 43%, #D9F7F2 100%);
  color: var(--archive-glass);
}
.glass-bench {
  position: absolute;
  inset: 8vh 7vw;
  border: 1px solid rgba(217,247,242,.36);
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(217,247,242,.13), rgba(243,231,200,.04));
  box-shadow: 0 30px 120px rgba(0,0,0,.35), inset 0 0 110px rgba(217,247,242,.18);
  overflow: hidden;
}
.condensation {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 35% 38%, rgba(217,247,242,.75), transparent 12%), repeating-radial-gradient(circle at 50% 50%, rgba(217,247,242,.18) 0 1px, transparent 1px 13px);
  opacity: .82;
  transition: opacity 1.4s ease, filter 1.4s ease;
  filter: blur(3px);
}
.intake-room.is-visible .condensation { opacity: .18; filter: blur(8px); }
.bench-etching { position: absolute; left: 7vw; top: 13vh; max-width: 620px; z-index: 2; }
.bench-etching h1 {
  font-family: var(--serif);
  font-size: clamp(5rem, 14vw, 14rem);
  font-weight: 500;
  line-height: .75;
  margin: .5rem 0 1rem;
  color: rgba(217,247,242,.82);
  text-shadow: 0 0 30px rgba(217,247,242,.4);
}
.bench-etching p { font-size: 1.22rem; line-height: 1.7; color: rgba(217,247,242,.8); }
.crate { position: absolute; right: 11vw; bottom: 17vh; width: 240px; height: 150px; border: 2px solid var(--copper); background: rgba(184,115,51,.18); transform: perspective(600px) rotateY(-18deg); }
.crate-lid { position: absolute; inset: -34px 12px auto; height: 36px; border: 2px solid var(--copper); background: rgba(184,115,51,.25); transform-origin: bottom; transition: transform 1.3s ease; }
.intake-room.is-visible .crate-lid { transform: rotateX(68deg); }
.crate-face { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; padding: 63px 22px; color: var(--parchment); }
.tray { position: absolute; border: 1px solid rgba(217,247,242,.42); border-radius: 18px; background: rgba(217,247,242,.08); box-shadow: inset 0 0 28px rgba(217,247,242,.18); }
.tray span { position: absolute; left: 18px; bottom: 12px; font-family: var(--mono); font-size: .68rem; color: rgba(217,247,242,.62); text-transform: uppercase; }
.tray-a { width: 310px; height: 130px; left: 10vw; bottom: 10vh; }
.tray-b { width: 270px; height: 120px; right: 26vw; top: 16vh; }
.slip {
  position: absolute;
  width: 185px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(217,247,242,.58);
  background: rgba(217,247,242,.25);
  backdrop-filter: blur(8px);
  color: var(--deep-ink);
  box-shadow: 0 16px 50px rgba(0,0,0,.18);
  animation: drift 7s ease-in-out infinite;
}
.slip::before { content: ""; position: absolute; top: 10px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: rgba(16,42,53,.32); }
.slip b { display: block; font-family: var(--serif); font-size: 1.65rem; }
.slip small { font-family: var(--mono); }
.slip-one { left: 21vw; top: 55vh; }
.slip-two { right: 32vw; top: 30vh; animation-delay: -2s; }
.slip-three { right: 10vw; top: 52vh; animation-delay: -4s; }
.hanging-note { position: absolute; right: 7vw; top: 8vh; padding: 20px 26px; background: var(--parchment); color: var(--deep-ink); font-family: var(--serif); font-size: 1.7rem; transform: rotate(5deg); box-shadow: 0 18px 38px rgba(0,0,0,.18); }
.hanging-note::before { content: ""; position: absolute; top: -50px; left: 50%; width: 1px; height: 50px; background: var(--copper); }

.cabinet-room { background: linear-gradient(180deg, #D9F7F2, #F3E7C8); }
.cabinet { position: relative; height: 62vh; margin-top: 2vh; }
.drawer { position: absolute; width: min(520px, 42vw); padding: 26px 32px; border-radius: 18px; border: 1px solid rgba(16,42,53,.19); background: linear-gradient(135deg, rgba(243,231,200,.94), rgba(217,247,242,.72)); box-shadow: 0 22px 55px rgba(16,42,53,.12); transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.drawer.left { left: -8vw; transform: translateX(-22%); }
.drawer.right { right: -7vw; transform: translateX(22%); }
.cabinet-room.is-visible .drawer.left, .cabinet-room.is-visible .drawer.right { transform: translateX(0); }
.drawer:nth-child(1) { top: 8%; }.drawer:nth-child(2) { top: 21%; }.drawer:nth-child(3) { top: 47%; }.drawer:nth-child(4) { top: 61%; }
.drawer h3 { margin: 0; font-family: var(--serif); font-size: 2.7rem; font-weight: 600; }
.drawer p, .drawer code, .drawer span { font-family: var(--mono); margin-right: 16px; color: rgba(16,42,53,.72); }
.copper-pull { position: absolute; top: 22px; right: 26px; width: 58px; height: 14px; border-radius: 20px; background: var(--copper); }
.specimen-beetle { position: absolute; left: 49%; bottom: 17vh; width: 130px; height: 98px; border: 1px solid var(--deep-ink); border-radius: 50%; display: grid; place-items: center; color: var(--deep-ink); transform: rotate(-9deg); }
.specimen-beetle::before, .specimen-beetle::after { content: ""; position: absolute; width: 46px; height: 1px; background: var(--deep-ink); top: 49%; }.specimen-beetle::before { left: -42px; transform: rotate(21deg); }.specimen-beetle::after { right: -42px; transform: rotate(-21deg); }
.specimen-beetle span { font-family: var(--mono); font-size: 1.8rem; }.specimen-beetle i { position: absolute; bottom: -22px; font-family: var(--mono); font-size: .7rem; }

.greenhouse-room { background: linear-gradient(180deg, #F3E7C8, #D9F7F2 55%, rgba(100,194,123,.32)); }
.root-case { position: relative; width: min(900px, 82vw); height: 62vh; margin: 2vh auto 0; border-radius: 38px; border: 1px solid rgba(16,42,53,.17); background: rgba(255,255,255,.18); box-shadow: inset 0 -110px 90px rgba(100,194,123,.18); }
.soil-label { position: absolute; left: 28px; bottom: 26px; font-family: var(--mono); color: rgba(16,42,53,.5); text-transform: uppercase; letter-spacing: .13em; }
.root-map { position: absolute; inset: 3%; width: 94%; height: 94%; }
.root-line { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; filter: drop-shadow(0 0 6px rgba(100,194,123,.4)); transition: stroke-dashoffset 2.8s ease; }
.root-line.main { stroke: var(--deep-ink); stroke-width: 4; }
.greenhouse-room.is-visible .root-line { stroke-dashoffset: 0; }
.root-tag { position: absolute; padding: 10px 13px; border-radius: 999px; background: rgba(243,231,200,.78); border: 1px solid rgba(184,115,51,.45); font-family: var(--mono); font-size: .78rem; transform: scale(.92); opacity: .25; transition: opacity 1s ease .8s, transform 1s ease .8s; }
.greenhouse-room.is-visible .root-tag { opacity: 1; transform: scale(1); }
.root-a { left: 8%; top: 57%; }.root-b { right: 5%; top: 62%; }.root-c { left: 24%; bottom: 11%; }.root-d { right: 22%; bottom: 9%; }

.lightbox-room { background: radial-gradient(circle at 68% 32%, rgba(124,77,255,.24), transparent 28%), linear-gradient(180deg, #D9F7F2, #102A35); color: var(--archive-glass); }
.lightbox-room .field-note { color: rgba(217,247,242,.78); }
.lightbox-stack { position: relative; width: min(760px, 76vw); height: 53vh; margin: 5vh 0 0 auto; border-radius: 34px; background: rgba(7,17,22,.35); box-shadow: inset 0 0 100px rgba(124,77,255,.26), 0 24px 80px rgba(7,17,22,.24); }
.vellum { position: absolute; width: 410px; height: 250px; padding: 44px; border-radius: 18px; background: rgba(243,231,200,.68); border: 1px solid rgba(243,231,200,.52); color: var(--deep-ink); transform-origin: 50% 120%; transition: transform 1.2s ease, opacity 1.2s ease; }
.vellum strong { font-family: var(--serif); font-size: 4rem; display: block; }.vellum span { font-family: var(--mono); color: var(--violet); }
.sheet-one { left: 9%; top: 11%; transform: rotate(-16deg); }.sheet-two { left: 25%; top: 20%; transform: rotate(3deg); }.sheet-three { left: 41%; top: 31%; transform: rotate(16deg); }
.lightbox-room.is-visible .sheet-one { transform: rotate(-8deg) translateY(-18px); }.lightbox-room.is-visible .sheet-two { transform: rotate(4deg) translateY(10px); }.lightbox-room.is-visible .sheet-three { transform: rotate(13deg) translateY(32px); }
.uv-beam { position: absolute; inset: -18% 18% -15% auto; width: 145px; background: linear-gradient(90deg, transparent, rgba(124,77,255,.43), transparent); transform: rotate(18deg); animation: beam 4.6s ease-in-out infinite; }
.seal-row { position: absolute; left: 9vw; bottom: 16vh; display: flex; gap: 18px; }.seal { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; font-family: var(--mono); font-size: .8rem; box-shadow: inset 0 0 18px rgba(0,0,0,.18); }.seal.copper { background: var(--copper); }.seal.violet { background: var(--violet); }.seal.green { background: var(--green); color: var(--deep-ink); }

.night-room { background: radial-gradient(circle at 50% 28%, rgba(124,77,255,.22), transparent 35%), linear-gradient(180deg, #102A35, #071116); color: var(--archive-glass); }
.night-room .field-note { color: rgba(217,247,242,.72); }
.jar-shelf { position: relative; height: 52vh; margin-top: 6vh; border-top: 1px solid rgba(217,247,242,.25); border-bottom: 1px solid rgba(217,247,242,.25); }
.jar { position: absolute; bottom: 7vh; width: 210px; height: 320px; border: 1px solid rgba(217,247,242,.38); border-radius: 42% 42% 20px 20px; background: linear-gradient(140deg, rgba(217,247,242,.2), rgba(124,77,255,.08)); box-shadow: inset 0 0 44px rgba(217,247,242,.14), 0 18px 50px rgba(0,0,0,.35); overflow: hidden; }
.jar::before { content: ""; position: absolute; top: 28px; left: 28px; right: 28px; height: 1px; background: rgba(217,247,242,.35); box-shadow: 0 42px rgba(217,247,242,.18), 0 90px rgba(217,247,242,.12); }
.jar code { position: absolute; left: 22px; right: 22px; bottom: 34px; font-family: var(--mono); font-size: .82rem; color: var(--archive-glass); animation: rotateText 8s linear infinite; }
.jar span { position: absolute; inset: 44px 34px 86px; border-radius: 50%; border: 1px dashed rgba(217,247,242,.32); animation: orbit 12s linear infinite; }
.jar-one { left: 12%; }.jar-two { left: 43%; bottom: 13vh; }.jar-three { right: 12%; }
.constellation i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--archive-glass); box-shadow: 0 0 16px var(--archive-glass); animation: twinkle 2.4s ease-in-out infinite; }
.constellation i:nth-child(1) { left: 61%; top: 20%; }.constellation i:nth-child(2) { left: 72%; top: 28%; animation-delay: -.4s; }.constellation i:nth-child(3) { left: 67%; top: 42%; animation-delay: -.8s; }.constellation i:nth-child(4) { left: 83%; top: 38%; animation-delay: -1.2s; }.constellation i:nth-child(5) { left: 28%; top: 30%; animation-delay: -1.6s; }.constellation i:nth-child(6) { left: 35%; top: 21%; animation-delay: -2s; }

.ledger-room { background: linear-gradient(180deg, #071116, #102A35 48%, #F3E7C8); color: var(--archive-glass); }
.ledger-room .field-note { color: rgba(217,247,242,.78); }
.ledger-wall { position: relative; margin-top: 5vh; padding: 3vh 4vw; border-radius: 34px; border: 1px solid rgba(243,231,200,.35); background: linear-gradient(180deg, rgba(243,231,200,.1), rgba(217,247,242,.08)); box-shadow: inset 0 0 90px rgba(243,231,200,.2); }
.ledger-scroll { columns: 2 360px; column-gap: 5vw; }
.ledger-scroll p { break-inside: avoid; margin: 0 0 18px; padding: 16px 0; border-bottom: 1px solid rgba(217,247,242,.18); font-family: var(--mono); color: var(--archive-glass); letter-spacing: .02em; }
.ledger-scroll span { color: var(--copper); margin-right: 16px; }.ledger-scroll em { color: var(--green); font-style: normal; margin: 0 12px; }.ledger-scroll code { color: var(--parchment); }
.closing-phrase { margin-top: 5vh; font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 6rem); color: var(--deep-ink); text-align: right; }

.cursor-lens { position: fixed; left: 0; top: 0; width: 160px; height: 160px; border-radius: 50%; border: 1px solid rgba(217,247,242,.6); box-shadow: inset 0 0 26px rgba(217,247,242,.25), 0 0 30px rgba(124,77,255,.18); pointer-events: none; z-index: 10; transform: translate(-50%, -50%); backdrop-filter: contrast(1.25) brightness(1.12) saturate(1.18); mix-blend-mode: screen; }
.ambient-dust span { position: fixed; width: 3px; height: 3px; border-radius: 50%; background: rgba(243,231,200,.55); pointer-events: none; z-index: 3; animation: dust 12s linear infinite; }

@keyframes drift { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-24px) rotate(4deg); } }
@keyframes beam { 0%,100% { transform: translateX(-50px) rotate(18deg); opacity: .35; } 50% { transform: translateX(180px) rotate(18deg); opacity: .9; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes rotateText { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%,100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.5); } }
@keyframes dust { from { transform: translateY(105vh) translateX(0); opacity: 0; } 15%,85% { opacity: .7; } to { transform: translateY(-10vh) translateX(45px); opacity: 0; } }

@media (max-width: 820px) {
  body { cursor: auto; }
  .cursor-lens { display: none; }
  .room { padding: 8vh 6vw; }
  .field-note { margin-left: 0; }
  .drawer { width: 78vw; }
  .drawer.left, .drawer.right { left: 0; right: auto; }
  .vellum { width: 300px; height: 210px; padding: 30px; }
  .vellum strong { font-size: 2.8rem; }
  .jar { width: 150px; height: 240px; }
  .jar-two { left: 36%; }
}
