:root {
  --foam: #F6EBC8;
  --graphite: #292525;
  --blush: #FF8FB3;
  --coral: #E96D55;
  --mint: #67F2C2;
  --violet: #5D54D8;
  --tape: #F8C94A;
  --title: "Dela Gothic One", cursive;
  --mono: "IBM Plex Mono", monospace;
  --body: "Zen Kaku Gothic New", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--graphite);
  font-family: var(--body);
  background:
    radial-gradient(circle at 18% 12%, rgba(248, 201, 74, .45), transparent 26rem),
    radial-gradient(circle at 72% 20%, rgba(255, 143, 179, .22), transparent 22rem),
    linear-gradient(135deg, #fff4d6 0%, var(--foam) 54%, #e8dab7 100%);
  overflow-x: hidden;
  cursor: none;
}

button, input { font: inherit; }

.bench-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .42;
  background-image:
    linear-gradient(rgba(41, 37, 37, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 37, 37, .12) 1px, transparent 1px),
    linear-gradient(rgba(93, 84, 216, .13) 2px, transparent 2px),
    linear-gradient(90deg, rgba(93, 84, 216, .13) 2px, transparent 2px);
  background-size: 36px 36px, 36px 36px, 180px 180px, 180px 180px;
  transform: rotate(-1.4deg) scale(1.05);
}

.lamp-glow {
  position: fixed;
  inset: -20vh -10vw auto auto;
  width: 80vw;
  height: 70vh;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse, rgba(248, 201, 74, .38), rgba(248, 201, 74, .08) 42%, transparent 70%);
  mix-blend-mode: multiply;
}

.dust-field { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.dust { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(41, 37, 37, .2); animation: driftDust linear infinite; }
@keyframes driftDust { from { transform: translate3d(0, 0, 0); opacity: .1; } 45% { opacity: .55; } to { transform: translate3d(34px, -90px, 0); opacity: .05; } }

.workbench-story { position: relative; z-index: 3; }

.station {
  position: relative;
  min-height: 100vh;
  padding: clamp(2rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  isolation: isolate;
  overflow: hidden;
  border-bottom: 2px dashed rgba(41, 37, 37, .18);
}

.station::before {
  content: attr(data-station);
  position: absolute;
  right: 2rem;
  top: 2rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: .55rem .7rem;
  border: 1px solid rgba(41,37,37,.35);
  transform: rotate(3deg);
  background: rgba(246,235,200,.72);
}

.hero-station { perspective: 900px; transform-style: preserve-3d; }
.ruler { position: absolute; background: rgba(246, 235, 200, .75); border: 2px solid rgba(41, 37, 37, .28); font-family: var(--mono); color: rgba(41, 37, 37, .72); z-index: 4; box-shadow: 0 12px 22px rgba(41,37,37,.13); }
.ruler::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(41,37,37,.38) 0 1px, transparent 1px 12px); }
.ruler-top { top: 5vh; left: 8vw; right: 10vw; height: 42px; display: flex; justify-content: space-between; align-items: center; padding: 0 1rem; transform: rotate(-2deg); }
.ruler-left { left: 5vw; top: 15vh; bottom: 11vh; width: 42px; display: flex; flex-direction: column; justify-content: space-around; align-items: center; transform: rotate(1.5deg); }
.ruler-left::after { background: repeating-linear-gradient(0deg, rgba(41,37,37,.38) 0 1px, transparent 1px 12px); }
.ruler span { position: relative; z-index: 1; }

.acetate { position: absolute; border: 1px solid rgba(93, 84, 216, .45); background: rgba(93, 84, 216, .12); box-shadow: 0 20px 48px rgba(93,84,216,.12); backdrop-filter: blur(1px); animation: acetateDrift 7s ease-in-out infinite alternate; }
.acetate-a { width: 45vw; height: 35vh; top: 18vh; right: 8vw; transform: rotate(8deg); }
.acetate-b { width: 32vw; height: 42vh; bottom: 10vh; left: 20vw; transform: rotate(-6deg); animation-delay: -2s; }
@keyframes acetateDrift { to { translate: 18px -8px; } }

.foam-word { grid-column: 2 / 12; grid-row: 3 / 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(.15rem, .8vw, .65rem); transform: rotateX(12deg) rotateZ(-1deg); }
.foam-word span { position: relative; display: inline-grid; place-items: center; min-width: clamp(2rem, 6.2vw, 6.7rem); height: clamp(3.6rem, 10vw, 9rem); padding: .08em .1em; font-family: var(--title); font-size: clamp(2.8rem, 8vw, 8rem); line-height: 1; color: var(--graphite); background: linear-gradient(145deg, #fff8de, var(--foam) 60%, #dcca9c); border: 3px solid var(--graphite); box-shadow: 8px 10px 0 rgba(41,37,37,.2), inset -8px -9px 0 rgba(233,109,85,.12); transform: rotate(var(--r)) translateY(var(--y)); text-shadow: 2px 2px 0 rgba(255,143,179,.6); }
.foam-word .dot { min-width: clamp(1.1rem, 3vw, 3rem); background: var(--tape); color: var(--violet); }
.letter-o { overflow: visible; }
.peek-mascot { position: absolute; left: 50%; top: 56%; width: 58%; height: 48%; transform: translate(-50%, -50%); background: var(--blush); border: 2px solid var(--graphite); border-radius: 45% 45% 35% 35%; z-index: 3; animation: peek 3.8s ease-in-out infinite; }
.peek-mascot::before, .peek-mascot::after { content: ""; position: absolute; top: 36%; width: 7px; height: 7px; border-radius: 50%; background: var(--graphite); }
.peek-mascot::before { left: 30%; } .peek-mascot::after { right: 30%; }
.peek-mascot b { position: absolute; left: 50%; bottom: -9px; width: 38%; height: 12px; transform: translateX(-50%); background: var(--mint); border: 2px solid var(--graphite); border-radius: 50%; }
@keyframes peek { 0%,100% { translate: 0 8px; } 50% { translate: 0 -5px; } }

.invitation { grid-column: 3 / 11; grid-row: 5 / 6; align-self: start; justify-self: center; margin: 1.4rem 0 0; font-size: clamp(1.3rem, 2.4vw, 2.2rem); max-width: 860px; text-align: center; line-height: 1.25; background: rgba(246,235,200,.7); padding: .65rem 1rem; transform: rotate(.7deg); box-shadow: 0 13px 0 rgba(255,143,179,.18); }
.bench-note, .scroll-tag, .station-code, .measurement-card, .paper-label, .ribbon-tag, .version-readout, .final-tag, .stamp { font-family: var(--mono); }
.bench-note { position: absolute; left: 13vw; bottom: 18vh; width: 280px; padding: 1rem; border-left: 4px solid var(--coral); background: rgba(246,235,200,.78); transform: rotate(-6deg); }
.scroll-tag { position: absolute; right: 12vw; bottom: 12vh; padding: .8rem 1rem; background: var(--tape); border: 2px solid var(--graphite); transform: rotate(4deg); }
.tape { position: absolute; padding: .72rem 1.2rem; background: linear-gradient(90deg, rgba(248,201,74,.8), var(--tape), rgba(248,201,74,.78)); border: 1px solid rgba(41,37,37,.28); font-family: var(--mono); font-weight: 700; box-shadow: 0 8px 14px rgba(41,37,37,.16); transition: transform .35s ease; }
.tape:hover { transform: rotate(var(--hover-rot, 0deg)) translateY(-10px); }
.tape-one { --hover-rot: -8deg; left: 35vw; top: 18vh; transform: rotate(-5deg); }
.tape-two { --hover-rot: 9deg; right: 15vw; top: 64vh; transform: rotate(6deg); }
.registration-cross { position: absolute; width: 54px; height: 54px; opacity: .7; }
.registration-cross::before, .registration-cross::after { content: ""; position: absolute; background: var(--violet); }
.registration-cross::before { width: 100%; height: 3px; top: 50%; }
.registration-cross::after { width: 3px; height: 100%; left: 50%; }
.cross-a { left: 9vw; top: 10vh; } .cross-b { right: 8vw; bottom: 8vh; transform: rotate(45deg); }

.station-title-block { grid-column: 2 / 7; grid-row: 2 / 5; align-self: center; max-width: 620px; z-index: 3; }
.station-title-block h1 { margin: .1rem 0 .9rem; font-family: var(--title); font-size: clamp(2.6rem, 6.8vw, 7rem); line-height: .95; letter-spacing: -.04em; text-shadow: 4px 4px 0 rgba(255,143,179,.45); }
.station-title-block p:not(.station-code) { font-size: clamp(1.1rem, 1.5vw, 1.45rem); line-height: 1.55; background: rgba(246,235,200,.7); padding: .8rem 1rem; border: 1px dashed rgba(41,37,37,.32); }
.station-code { margin: 0; color: var(--violet); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.rotated-title { transform: rotate(-3deg); }

.foam-specimen { grid-column: 8 / 12; grid-row: 2 / 7; align-self: center; justify-self: center; position: relative; width: min(360px, 70vw); aspect-ratio: 1; }
.foam-cube { position: absolute; inset: 12%; background: linear-gradient(135deg, #fff9e4, var(--foam) 62%, #d9c58f); border: 4px solid var(--graphite); box-shadow: 18px 22px 0 rgba(41,37,37,.22); transform: rotate(8deg) skew(-3deg); }
.cube-eye { position: absolute; top: 42%; width: 15px; height: 15px; background: var(--graphite); border-radius: 50%; animation: blink 4.3s infinite; }
.cube-eye.left { left: 35%; } .cube-eye.right { right: 35%; }
.cube-blush { position: absolute; left: 34%; right: 34%; bottom: 31%; height: 22px; background: radial-gradient(ellipse, var(--blush), transparent 72%); }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 94%, 96% { transform: scaleY(.12); } }
.cut-line { position: absolute; background: repeating-linear-gradient(90deg, var(--coral) 0 10px, transparent 10px 17px); height: 3px; width: 75%; left: 9%; opacity: .8; }
.cut-one { top: 33%; transform: rotate(19deg); } .cut-two { bottom: 30%; transform: rotate(-14deg); }
.measurement-card { grid-column: 7 / 10; grid-row: 6 / 8; display: grid; gap: .35rem; padding: 1rem; border: 2px solid var(--graphite); background: rgba(103,242,194,.28); transform: rotate(-4deg); z-index: 4; }
.paper-label, .label-coral { position: absolute; right: 14vw; bottom: 15vh; padding: .8rem 1.3rem; background: var(--coral); color: var(--foam); border: 2px solid var(--graphite); transform: rotate(8deg); }

.vellum-sheet { grid-column: 6 / 12; grid-row: 1 / 8; background: rgba(93,84,216,.1); border: 2px solid rgba(93,84,216,.45); transform: rotate(5deg); }
.wire-drawing { grid-column: 7 / 12; grid-row: 2 / 8; width: 100%; height: 100%; filter: drop-shadow(10px 16px 0 rgba(41,37,37,.12)); }
.draw-path { fill: none; stroke: var(--graphite); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 1.8s ease; }
.station.active .draw-path { stroke-dashoffset: 0; }
.delay-one { transition-delay: .35s; stroke: var(--violet); } .delay-two { transition-delay: .72s; stroke: var(--coral); }
.joint { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); border: 3px solid var(--graphite); box-shadow: 0 0 18px rgba(103,242,194,.7); animation: pulseMint 2.4s ease-in-out infinite; }
.joint-one { right: 30vw; top: 40vh; } .joint-two { right: 20vw; top: 55vh; animation-delay: -.7s; } .joint-three { right: 39vw; top: 55vh; animation-delay: -1.4s; }
@keyframes pulseMint { 50% { transform: scale(1.18); box-shadow: 0 0 35px rgba(103,242,194,.95); } }
.ribbon-tag { position: absolute; right: 13vw; bottom: 14vh; padding: 1rem 1.2rem; background: var(--tape); border: 2px solid var(--graphite); transform: rotate(-9deg); }

.face-board { grid-column: 7 / 12; grid-row: 2 / 7; display: grid; grid-template-columns: repeat(2, minmax(130px, 220px)); gap: 2rem; align-self: center; justify-self: center; transform: rotate(3deg); }
.paper-face { position: relative; height: 150px; border: 3px solid var(--graphite); background: #fff8df; box-shadow: 10px 12px 0 rgba(41,37,37,.18); transform: rotate(var(--face-rot, -2deg)); transition: transform .3s ease, background .3s ease; cursor: none; }
.paper-face:nth-child(2) { --face-rot: 4deg; } .paper-face:nth-child(3) { --face-rot: -6deg; } .paper-face:nth-child(4) { --face-rot: 6deg; }
.paper-face span { font-family: var(--title); font-size: 2.2rem; letter-spacing: .18em; }
.paper-face i { position: absolute; left: 50%; top: -12px; width: 18px; height: 18px; border-radius: 50%; background: var(--blush); border: 2px solid var(--graphite); }
.paper-face.active, .paper-face:hover { background: var(--blush); transform: rotate(0deg) translateY(-8px); }
.pin-string { position: absolute; left: 52%; top: 11vh; bottom: 12vh; width: 2px; background: rgba(41,37,37,.25); transform: rotate(12deg); }
.margin-note { position: absolute; left: 9vw; bottom: 12vh; width: 330px; min-height: 86px; padding: 1rem; background: rgba(248,201,74,.82); border: 2px solid var(--graphite); font-family: var(--mono); transform: rotate(-5deg); }

.jig-panel { grid-column: 6 / 12; grid-row: 2 / 7; align-self: center; padding: clamp(1rem, 3vw, 2rem); background: rgba(41,37,37,.88); border: 4px solid var(--graphite); box-shadow: 18px 24px 0 rgba(233,109,85,.22); transform: rotate(2deg); }
.scope { height: 160px; background: #161414; border: 2px solid rgba(103,242,194,.6); padding: 1rem; }
.scope-trace { fill: none; stroke: var(--mint); stroke-width: 6; filter: drop-shadow(0 0 8px var(--mint)); stroke-dasharray: 900; animation: scopeMove 3s linear infinite; }
@keyframes scopeMove { to { stroke-dashoffset: -900; } }
.led-row { display: flex; gap: 1rem; margin: 1.5rem 0; }
.led-row i { width: 24px; height: 24px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 22px var(--mint); animation: ledBlink 1.7s infinite steps(2, end); }
.led-row i:nth-child(2) { animation-duration: 2.3s; background: var(--blush); box-shadow: 0 0 22px var(--blush); }
.led-row i:nth-child(3) { animation-duration: 1.1s; background: var(--tape); box-shadow: 0 0 22px var(--tape); }
.led-row i:nth-child(4) { animation-duration: 2.9s; } .led-row i:nth-child(5) { animation-duration: 1.4s; background: var(--coral); box-shadow: 0 0 22px var(--coral); }
@keyframes ledBlink { 50% { opacity: .25; } }
.half-buttons { display: flex; gap: .8rem; flex-wrap: wrap; }
.half-buttons button { border: 2px solid var(--foam); background: transparent; color: var(--foam); padding: .7rem 1rem; box-shadow: inset -8px -8px 0 rgba(246,235,200,.1); cursor: none; }
.hex-cells { position: absolute; left: 12vw; bottom: 8vh; display: flex; gap: -2px; }
.hex-cells span { width: 72px; height: 82px; background: rgba(93,84,216,.23); clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); border: 2px solid var(--violet); margin-left: -10px; }

.terrarium { grid-column: 7 / 12; grid-row: 2 / 8; justify-self: center; align-self: center; position: relative; width: min(460px, 75vw); height: min(590px, 72vh); }
.glass { position: absolute; inset: 5% 10% 0; border-radius: 48% 48% 18% 18%; border: 4px solid rgba(41,37,37,.7); background: linear-gradient(120deg, rgba(103,242,194,.25), rgba(246,235,200,.14) 50%, rgba(93,84,216,.18)); box-shadow: inset 30px 0 0 rgba(255,255,255,.18), 0 0 60px rgba(103,242,194,.35); }
.glow-being { position: absolute; left: 50%; top: 43%; width: 145px; height: 145px; transform: translate(-50%, -50%); border-radius: 46% 54% 50% 44%; background: radial-gradient(circle, #fff 0 8%, var(--mint) 40%, rgba(103,242,194,.3)); border: 3px solid var(--graphite); display: grid; place-items: center; color: var(--graphite); font-family: var(--title); font-size: 2rem; animation: floatBeing 4.5s ease-in-out infinite; }
@keyframes floatBeing { 50% { translate: 0 -22px; } }
.floating-ui { position: absolute; border: 2px solid var(--violet); background: rgba(246,235,200,.64); animation: uiFloat 5s ease-in-out infinite; }
.ui-one { width: 86px; height: 46px; left: 18%; top: 28%; } .ui-two { width: 55px; height: 80px; right: 16%; top: 40%; animation-delay: -1s; } .ui-three { width: 105px; height: 26px; left: 34%; bottom: 22%; animation-delay: -2s; }
@keyframes uiFloat { 50% { transform: translateY(-14px) rotate(5deg); } }
.moss { position: absolute; left: 16%; right: 16%; bottom: 7%; height: 74px; border-radius: 50% 50% 0 0; background: radial-gradient(circle at 20% 0, var(--mint), transparent 28%), radial-gradient(circle at 55% 0, var(--coral), transparent 25%), var(--violet); opacity: .8; }
.stamp { position: absolute; right: 8vw; bottom: 16vh; padding: 1rem; border: 4px double var(--coral); color: var(--coral); font-weight: 700; transform: rotate(12deg); background: rgba(246,235,200,.75); }

.shelf-station { min-height: 110vh; }
.shelf-title { grid-column: 2 / 9; grid-row: 1 / 4; }
.version-readout { grid-column: 9 / 12; grid-row: 2 / 4; align-self: center; display: grid; gap: .4rem; padding: 1rem; background: rgba(255,143,179,.25); border: 2px solid var(--graphite); transform: rotate(4deg); }
.version-readout span { font-family: var(--title); font-size: clamp(2rem, 5vw, 4.8rem); }
.version-slider { grid-column: 2 / 12; grid-row: 5; width: 100%; accent-color: var(--violet); cursor: none; }
.specimen-tray { grid-column: 1 / 13; grid-row: 5 / 8; display: flex; gap: 1.2rem; align-items: end; overflow: hidden; padding: 3rem 5vw; transform: rotate(-1deg); }
.shelf-line { position: absolute; left: 3vw; right: 3vw; bottom: 19vh; height: 18px; background: var(--graphite); box-shadow: 0 14px 0 rgba(41,37,37,.18); }
.specimen { position: relative; flex: 0 0 140px; height: 190px; display: grid; justify-items: center; align-content: end; gap: .6rem; padding: 1rem; background: rgba(246,235,200,.75); border: 2px solid rgba(41,37,37,.45); transform: translateY(var(--drop, 0)) rotate(var(--tilt, -3deg)); transition: transform .35s ease, background .35s ease; }
.specimen:nth-of-type(2n) { --tilt: 4deg; } .specimen:nth-of-type(3n) { --tilt: -7deg; }
.specimen b { width: 78px; height: 92px; border: 3px solid var(--graphite); background: var(--foam); border-radius: 45% 45% 30% 30%; box-shadow: inset -10px -12px 0 rgba(233,109,85,.18); }
.specimen b::before, .specimen b::after { content: ""; position: absolute; top: 69px; width: 8px; height: 8px; background: var(--graphite); border-radius: 50%; }
.specimen b::before { left: 61px; } .specimen b::after { right: 61px; }
.specimen span { font-family: var(--mono); background: var(--tape); padding: .25rem .45rem; }
.specimen.active { background: rgba(103,242,194,.3); transform: translateY(-34px) rotate(0deg) scale(1.08); }
.final-tag { position: absolute; right: 8vw; bottom: 10vh; font-family: var(--title); font-size: clamp(1.6rem, 4vw, 4rem); padding: .8rem 1.2rem; background: var(--tape); border: 3px solid var(--graphite); transform: rotate(-5deg); }

.prototype-face { position: fixed; z-index: 20; right: 1.4rem; bottom: 1.4rem; width: 86px; height: 86px; border: 3px solid var(--graphite); border-radius: 42% 45% 34% 38%; background: var(--foam); display: grid; place-items: center; box-shadow: 8px 8px 0 rgba(41,37,37,.2); transition: transform .35s ease, background .35s ease; }
.prototype-face .eyes { font-family: var(--title); letter-spacing: .15em; font-size: 1.2rem; }
.prototype-face .cheeks { position: absolute; left: 18%; right: 18%; bottom: 24%; height: 14px; background: radial-gradient(circle at 20% 50%, var(--blush), transparent 30%), radial-gradient(circle at 80% 50%, var(--blush), transparent 30%); }
.prototype-face[data-face="curious"] { background: var(--tape); transform: rotate(5deg); }
.prototype-face[data-face="alert"] { background: var(--mint); transform: rotate(-6deg) scale(1.06); }
.prototype-face[data-face="bashful"] { background: var(--blush); transform: rotate(2deg); }
.inspection-cursor { position: fixed; left: 0; top: 0; z-index: 50; width: 36px; height: 36px; pointer-events: none; border: 2px solid var(--violet); border-radius: 50%; transform: translate(-50%, -50%); mix-blend-mode: multiply; transition: width .2s ease, height .2s ease, background .2s ease; }
.inspection-cursor span { position: absolute; left: 50%; top: 50%; width: 46px; height: 2px; background: var(--violet); transform: rotate(-35deg); transform-origin: left center; }
.inspection-cursor.inspecting { width: 58px; height: 58px; background: rgba(103,242,194,.25); }
.tooltip-note { position: fixed; z-index: 49; max-width: 260px; padding: .75rem .9rem; background: var(--graphite); color: var(--foam); font-family: var(--mono); font-size: .78rem; pointer-events: none; opacity: 0; transform: translate(14px, 14px) rotate(-2deg); transition: opacity .18s ease; }
.tooltip-note.visible { opacity: 1; }

@media (max-width: 800px) {
  body { cursor: auto; }
  .inspection-cursor { display: none; }
  .station { display: block; min-height: auto; padding: 6rem 1.1rem; }
  .hero-station { min-height: 100vh; }
  .foam-word { margin-top: 20vh; }
  .foam-word span { min-width: 2.1rem; height: 3.6rem; font-size: 2.8rem; border-width: 2px; }
  .invitation, .station-title-block, .foam-specimen, .measurement-card, .wire-drawing, .face-board, .jig-panel, .terrarium, .version-readout, .specimen-tray { margin: 2rem auto; width: 100%; max-width: 560px; }
  .ruler-left, .acetate-b, .bench-note, .paper-label, .joint, .pin-string, .hex-cells, .stamp { display: none; }
  .ruler-top { left: 1rem; right: 1rem; }
  .face-board { grid-template-columns: 1fr 1fr; }
  .specimen-tray { overflow-x: auto; }
}
