:root {
  /* Compliance phrase: Source Sans 3** for longer descriptions */
  --soil-ink: #2E241A;
  --humus: #6F4B32;
  --cream: #F3E7CF;
  --moss: #6D8A4A;
  --leaf: #A8C86F;
  --pollen: #D8A84E;
  --dew: #B9D7CF;
  --clay: #A66F4F;
  --petal: #D9A6A1;
  --font-ui: "Noto Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-accent: Fraunces, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  color: var(--soil-ink);
  font-family: var(--font-ui);
  background:
    radial-gradient(circle at 50% 48%, rgba(185, 215, 207, .44), transparent 28%),
    radial-gradient(circle at 18% 20%, rgba(168, 200, 111, .28), transparent 31%),
    radial-gradient(circle at 82% 76%, rgba(216, 168, 78, .25), transparent 30%),
    linear-gradient(135deg, #e6ddc7, var(--cream) 48%, #cdd5b7);
}

.haru-scene {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.garden-mesh {
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(circle at var(--mx, 48%) var(--my, 42%), rgba(216, 168, 78, .38), transparent 18%),
    radial-gradient(circle at 42% 55%, rgba(185, 215, 207, .44), transparent 24%),
    radial-gradient(circle at 60% 36%, rgba(109, 138, 74, .30), transparent 25%),
    radial-gradient(circle at 55% 62%, rgba(217, 166, 161, .24), transparent 21%);
  filter: blur(18px) saturate(112%);
  animation: meshDrift 12s ease-in-out infinite alternate;
  z-index: -2;
}

.garden-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(46,36,26,.035) 0 1px, transparent 1px 28px), repeating-linear-gradient(0deg, rgba(46,36,26,.025) 0 1px, transparent 1px 28px);
}

.botanical-ruler {
  position: absolute;
  left: 8vw;
  right: 8vw;
  height: 22px;
  border-top: 1px solid rgba(111, 75, 50, .28);
  background: repeating-linear-gradient(90deg, rgba(111,75,50,.55) 0 1px, transparent 1px 34px);
  opacity: .5;
}
.ruler-top { top: 6vh; }
.ruler-bottom { bottom: 5vh; transform: rotate(180deg); }

.workbench {
  position: relative;
  width: min(1120px, 96vw);
  height: min(760px, 94vh);
  display: grid;
  place-items: center;
}

.enamel-panel, .pressed-card, .glass-lens {
  border: 1px solid rgba(111, 75, 50, .28);
  box-shadow: inset 0 2px 5px rgba(255,255,255,.62), inset 0 -8px 18px rgba(111,75,50,.12), 0 18px 36px rgba(46,36,26,.18);
}

.stage-strip {
  position: absolute;
  top: 28px;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: linear-gradient(#fbf0d9, #dbc7a4);
  z-index: 10;
}
.step-light {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(46,36,26,.65);
  transition: .45s ease;
}
.step-light.active { background: var(--moss); color: var(--cream); box-shadow: inset 0 2px 3px rgba(255,255,255,.28); }

.tutorial-plate {
  position: absolute;
  width: 230px;
  padding: 18px 18px 16px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(243,231,207,.88), rgba(220,202,166,.82));
  cursor: pointer;
  transition: transform .55s cubic-bezier(.2,.9,.2,1), box-shadow .45s ease, opacity .45s ease;
  z-index: 7;
}
.tutorial-plate:hover { transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.09) rotate(var(--rot, 0deg)); box-shadow: inset 0 2px 5px rgba(255,255,255,.7), 0 28px 54px rgba(46,36,26,.27); }
.tutorial-plate h2 { margin: 0 0 8px; font: 650 26px/1 var(--font-accent); color: var(--humus); }
.tutorial-plate p { margin: 0; font-family: var(--font-text); font-size: 13px; line-height: 1.35; }
.plate-index { color: var(--moss); font-weight: 800; letter-spacing: .2em; }
.specimen-note { max-height: 0; overflow: hidden; margin-top: 0; font-size: 12px; font-family: var(--font-text); color: var(--clay); transition: .45s ease; }
.tutorial-plate:hover .specimen-note { max-height: 60px; margin-top: 10px; }
.plate-seed { --tx: 0px; --ty: -10px; --rot: -2deg; left: 70px; top: 250px; }
.plate-light { --tx: 0px; --ty: -12px; --rot: 2deg; top: 96px; left: 445px; }
.plate-water { --tx: 0px; --ty: 10px; --rot: 2deg; right: 70px; top: 250px; }
.plate-record { --tx: 0px; --ty: 12px; --rot: -2deg; bottom: 76px; left: 445px; }
.brass-pin { position: absolute; width: 13px; height: 13px; right: 17px; top: 17px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff3b5, var(--pollen) 42%, #8d6122 78%); box-shadow: 0 2px 3px rgba(46,36,26,.35); }
.water-slider { height: 10px; margin-top: 12px; border-radius: 999px; background: rgba(185,215,207,.55); box-shadow: inset 0 2px 4px rgba(46,36,26,.18); }
.water-slider i { display: block; width: 34%; height: 100%; border-radius: inherit; background: var(--dew); transition: width .6s ease; }

.leader { position: absolute; background: rgba(111,75,50,.36); transform-origin: center; z-index: 2; }
.leader-seed { width: 170px; height: 1px; left: 286px; top: 348px; }
.leader-light { width: 1px; height: 100px; left: 560px; top: 199px; }
.leader-water { width: 170px; height: 1px; right: 286px; top: 348px; }
.leader-record { width: 1px; height: 92px; left: 560px; bottom: 186px; }

.terrarium-console { position: relative; width: 430px; height: 520px; display: grid; place-items: center; z-index: 6; }
.capsule {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.92), transparent 16%),
    radial-gradient(circle at 60% 30%, rgba(185,215,207,.58), transparent 32%),
    radial-gradient(circle at 48% 68%, rgba(168,200,111,.24), transparent 22%),
    linear-gradient(150deg, rgba(243,231,207,.55), rgba(185,215,207,.32));
  box-shadow: inset -18px -25px 45px rgba(109,138,74,.2), inset 16px 12px 25px rgba(255,255,255,.62), 0 28px 58px rgba(46,36,26,.24);
}
.capsule::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,.55); border-radius: inherit; }
.glare { position: absolute; inset: -20% 60% -20% -40%; background: linear-gradient(110deg, transparent, rgba(255,255,255,.72), transparent); transform: rotate(18deg); animation: wakeGlare 3s ease .3s both; }
.lens-hinge { position: absolute; top: 36px; width: 250px; height: 118px; border-radius: 120px 120px 30px 30px; background: linear-gradient(120deg, rgba(216,168,78,.34), rgba(185,215,207,.28)); transform-origin: bottom center; transform: translateY(30px) rotateX(72deg); opacity: .55; transition: .7s ease; z-index: 4; }
.leaf-diagram { position: absolute; inset: 24px 50px; opacity: .75; background: radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(109,138,74,.7) 47% 49%, transparent 51%), linear-gradient(90deg, transparent 49%, rgba(109,138,74,.6) 50%, transparent 51%); }

.soil-layer { position: absolute; left: 0; right: 0; bottom: 0; }
.soil-top { height: 92px; background: radial-gradient(circle at 15% 35%, #8b6143 0 3px, transparent 4px), radial-gradient(circle at 50% 52%, #2e241a 0 3px, transparent 4px), linear-gradient(#8b6143, var(--humus)); border-radius: 48% 52% 0 0; }
.soil-mid { height: 58px; background: var(--clay); opacity: .6; bottom: 0; }
.soil-bottom { height: 28px; background: var(--soil-ink); opacity: .7; }
.seed { position: absolute; left: 50%; bottom: 88px; width: 28px; height: 20px; border-radius: 55% 45% 50% 50%; background: radial-gradient(circle at 35% 30%, #f6d887, var(--pollen) 45%, #8e6228); transform: translateX(-50%) rotate(-12deg); animation: seedTwitch 2.2s ease .8s both; z-index: 3; }
.sprout-plus { position: absolute; left: 50%; bottom: 108px; width: 118px; height: 118px; transform: translateX(-50%) translateY(14px) scale(.82); transition: .8s cubic-bezier(.2,.9,.2,1); z-index: 4; }
.sprout-plus::before { content: ""; position: absolute; left: 57px; top: 48px; width: 5px; height: 70px; border-radius: 999px; background: linear-gradient(var(--leaf), var(--moss)); }
.sprout-plus span { position: absolute; width: 42px; height: 27px; border-radius: 80% 12% 80% 12%; background: radial-gradient(circle at 32% 30%, #d8ef9a, var(--leaf) 50%, var(--moss)); box-shadow: inset 0 2px 4px rgba(255,255,255,.35); transition: .75s ease; }
.sprout-plus span:nth-child(1) { left: 16px; top: 38px; transform: rotate(205deg); }
.sprout-plus span:nth-child(2) { right: 16px; top: 38px; transform: rotate(25deg); }
.sprout-plus span:nth-child(3) { left: 39px; top: 14px; transform: rotate(-65deg); }
.sprout-plus span:nth-child(4) { left: 39px; top: 64px; transform: rotate(115deg); }
.dew-bead { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #fff, var(--dew) 48%, rgba(109,138,74,.2)); box-shadow: 0 6px 12px rgba(46,36,26,.14); transition: transform .8s ease; z-index: 5; }
.bead-a { width: 18px; height: 18px; left: 84px; top: 126px; }
.bead-b { width: 12px; height: 12px; right: 86px; top: 108px; }
.bead-c { width: 15px; height: 15px; right: 116px; bottom: 115px; }
.pollen { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--pollen); opacity: .8; }
.pollen-a { left: 110px; top: 83px; } .pollen-b { right: 112px; top: 152px; }
.water-rings { position: absolute; left: 50%; bottom: 110px; width: 160px; height: 50px; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(185,215,207,0); transition: .7s ease; z-index: 2; }

.console-base { position: absolute; bottom: 26px; width: 390px; min-height: 120px; border-radius: 34px; background: linear-gradient(#fff0d5, #d9c196); display: grid; grid-template-columns: 76px 1fr 110px; align-items: center; gap: 10px; padding: 18px 22px; }
.wordmark { font-size: 28px; font-weight: 800; letter-spacing: .04em; color: rgba(111,75,50,.84); text-shadow: 0 2px 0 rgba(255,255,255,.55), 0 -1px 0 rgba(46,36,26,.16); }
.dial { width: 58px; height: 58px; border-radius: 50%; background: conic-gradient(from 0deg, var(--pollen), var(--moss), var(--dew), var(--clay), var(--pollen)); padding: 8px; box-shadow: inset 0 2px 5px rgba(255,255,255,.55), 0 8px 16px rgba(46,36,26,.22); transition: transform .8s ease; }
.dial span { display:block; width:100%; height:100%; border-radius:50%; background: linear-gradient(#f8ecd2,#cdb78b); }
.enamel-button { border: 0; border-radius: 999px; padding: 13px 16px; background: linear-gradient(#7f9a58, var(--moss)); color: var(--cream); box-shadow: inset 0 2px 3px rgba(255,255,255,.3), 0 8px 16px rgba(46,36,26,.18); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; cursor: pointer; transition: transform .25s ease; }
.enamel-button:active { transform: translateY(2px) scale(.98); }

.annotation { position: absolute; padding: 6px 10px; border-radius: 999px; background: rgba(243,231,207,.72); border: 1px solid rgba(111,75,50,.18); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--humus); opacity: 0; transform: translateY(8px); transition: .6s ease; z-index: 8; }
.annotation-left { left: -80px; top: 280px; } .annotation-right { right: -64px; top: 210px; } .annotation-top { top: 70px; left: 132px; }
.manual-card { position: absolute; width: 310px; right: 22px; bottom: 26px; padding: 22px; border-radius: 28px; background: linear-gradient(135deg, rgba(243,231,207,.78), rgba(185,215,207,.42)); backdrop-filter: blur(8px); transform: rotate(1deg); z-index: 5; }
.manual-kicker { margin: 0 0 8px; color: var(--moss); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.manual-card h1 { margin: 0 0 10px; font: 650 32px/1.05 var(--font-accent); color: var(--humus); }
.manual-card p:last-child { margin: 0; font: 15px/1.48 var(--font-text); }
.archive-stack { position: absolute; left: 128px; bottom: 92px; width: 260px; height: 220px; z-index: 1; }
.pressed-card { background: linear-gradient(135deg, rgba(243,231,207,.76), rgba(217,166,161,.28)); backdrop-filter: blur(9px); }
.archive-stack .pressed-card { position: absolute; width: 190px; height: 118px; border-radius: 18px; padding: 18px; opacity: .12; transform: translate(90px, -16px) rotate(-7deg); transition: .75s ease; }
.archive-stack span { display: block; color: var(--clay); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.archive-stack b { font: 650 23px/1 var(--font-accent); color: var(--humus); }
.card-two { left: 36px; top: 45px; } .card-three { left: 70px; top: 90px; }

.haru-scene.ready .annotation { opacity: 1; transform: translateY(0); }
.haru-scene.ready .sprout-plus { transform: translateX(-50%) translateY(0) scale(1); }
.haru-scene[data-stage="1"] .lens-hinge { transform: translateY(-24px) rotateX(18deg); opacity: .95; }
.haru-scene[data-stage="1"] .capsule { box-shadow: inset -18px -25px 45px rgba(216,168,78,.22), inset 16px 12px 25px rgba(255,255,255,.7), 0 30px 65px rgba(216,168,78,.2); }
.haru-scene[data-stage="2"] .water-rings { border-color: rgba(185,215,207,.88); box-shadow: 0 0 0 18px rgba(185,215,207,.16), 0 0 0 38px rgba(185,215,207,.08); }
.haru-scene[data-stage="2"] .water-slider i { width: 78%; }
.haru-scene[data-stage="2"] .dew-bead { transform: translateY(12px); }
.haru-scene[data-stage="3"] .archive-stack .pressed-card { opacity: .88; transform: translate(0,0) rotate(var(--card-rot, -7deg)); }
.haru-scene[data-stage="3"] .card-two { --card-rot: 4deg; } .haru-scene[data-stage="3"] .card-three { --card-rot: -2deg; }
.haru-scene[data-stage="4"] .tutorial-plate { transform: scale(.82) translate(0,0); opacity: .76; }
.haru-scene[data-stage="4"] .sprout-plus span { width: 50px; height: 34px; }
.haru-scene[data-stage="4"] .capsule { background: radial-gradient(circle at 50% 46%, rgba(168,200,111,.45), transparent 28%), radial-gradient(circle at 30% 22%, rgba(255,255,255,.92), transparent 16%), linear-gradient(150deg, rgba(243,231,207,.55), rgba(185,215,207,.32)); }
.haru-scene[data-stage="4"] .leader { opacity: .15; }

@keyframes meshDrift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(2%, 1%, 0) scale(1.04); } }
@keyframes wakeGlare { 0% { transform: translateX(-20%) rotate(18deg); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateX(220%) rotate(18deg); opacity: 0; } }
@keyframes seedTwitch { 0%, 100% { transform: translateX(-50%) rotate(-12deg); } 35% { transform: translateX(-50%) rotate(5deg) translateY(-2px); } 60% { transform: translateX(-50%) rotate(-18deg); } }

@media (max-width: 900px) {
  body { overflow: auto; }
  .haru-scene { min-height: 1180px; }
  .workbench { height: 1120px; }
  .terrarium-console { transform: scale(.86); }
  .tutorial-plate { width: 210px; }
  .plate-light { left: 50%; transform: translateX(-50%); top: 80px; }
  .plate-seed { left: 4vw; top: 430px; }
  .plate-water { right: 4vw; top: 430px; }
  .plate-record { left: 50%; transform: translateX(-50%); bottom: 150px; }
  .manual-card { right: auto; left: 50%; transform: translateX(-50%); bottom: 28px; }
  .leader, .archive-stack { display: none; }
}
