:root {
  /* Compliance texture words: Interpret + ai** without becoming generic startup: playful model */
  --glass: #BFEFFF;
  --deep: #0B4F8A;
  --lime: #9DFF4F;
  --pearl: #F5FAFF;
  --coral: #FF6B7A;
  --violet: #7A5CFF;
  --teal: #043B46;
  --display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --body: "DM Sans", Inter, system-ui, sans-serif;
  --serif: Literata, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--teal);
  font-family: var(--body);
  background:
    radial-gradient(circle at 15% 12%, rgba(245,250,255,.95), transparent 26%),
    radial-gradient(circle at 76% 24%, rgba(157,255,79,.35), transparent 14%),
    linear-gradient(135deg, #F5FAFF 0%, #BFEFFF 38%, #7A5CFF 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: radial-gradient(circle, rgba(4,59,70,.45) 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: soft-light;
  z-index: 20;
}

.tank-shell {
  min-height: 500vh;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(245,250,255,.34), rgba(191,239,255,.2) 28%, rgba(11,79,138,.08) 70%, rgba(122,92,255,.16)),
    radial-gradient(ellipse at 20% 55%, rgba(191,239,255,.75), transparent 40%),
    radial-gradient(ellipse at 80% 72%, rgba(4,59,70,.34), transparent 42%);
}

.caustics, .scanlines, .waterline, .tube-map, .far-blobs, .magnifier, .hidden-labels { position: fixed; pointer-events: none; }
.caustics {
  inset: -20%;
  background: repeating-radial-gradient(ellipse at 40% 30%, rgba(245,250,255,.34) 0 2px, transparent 4px 35px);
  filter: blur(7px);
  animation: causticDrift 18s linear infinite;
  opacity: .58;
  z-index: 0;
}
.scanlines {
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 8px, rgba(245,250,255,.2) 9px 10px);
  z-index: 4;
  opacity: .22;
}
.waterline {
  top: 17vh;
  left: 0;
  right: 0;
  height: 42px;
  background: linear-gradient(180deg, rgba(245,250,255,.86), rgba(191,239,255,.2));
  border-top: 1px solid rgba(245,250,255,.9);
  border-bottom: 1px solid rgba(11,79,138,.18);
  box-shadow: 0 16px 45px rgba(11,79,138,.16);
  z-index: 2;
  transform: skewY(-1.5deg);
}

.lab-header {
  position: fixed;
  top: 22px;
  left: 24px;
  right: 24px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--deep);
  text-transform: lowercase;
  letter-spacing: .05em;
}
.lab-mark, .tank-title, .status-diode {
  border: 1px solid rgba(245,250,255,.65);
  background: rgba(245,250,255,.35);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 16px rgba(245,250,255,.7), 0 12px 34px rgba(11,79,138,.13);
  border-radius: 999px;
  padding: 10px 15px;
}
.lab-mark { font: 800 21px/1 var(--display); text-shadow: 0 1px 0 #F5FAFF; }
.tank-title { font: 700 12px/1 var(--display); }
.status-diode { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.status-diode i { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 16px #9DFF4F; }

.tube-map { inset: 18vh 0 auto; height: 62vh; width: 100%; z-index: 1; opacity: .85; }
.tube-map path { fill: none; stroke-linecap: round; }
#currentPath { stroke: rgba(245,250,255,.48); stroke-width: 30; filter: drop-shadow(0 7px 15px rgba(11,79,138,.16)); }
.tube-glow { stroke: rgba(157,255,79,.5); stroke-width: 4; stroke-dasharray: 14 26; animation: currentDash 5s linear infinite; }

.current-scroll { position: relative; z-index: 5; }
.chamber {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 112px clamp(22px, 5vw, 72px) 104px;
}
.chamber::before {
  content: "";
  position: absolute;
  inset: 8vh 4vw;
  border: 1px solid rgba(245,250,255,.52);
  border-radius: 46px 90px 58px 115px;
  background: linear-gradient(135deg, rgba(245,250,255,.28), rgba(191,239,255,.12) 48%, rgba(122,92,255,.1));
  box-shadow: inset 0 0 42px rgba(245,250,255,.55), inset 0 -34px 80px rgba(11,79,138,.08), 0 35px 80px rgba(4,59,70,.12);
  backdrop-filter: blur(10px);
}
.scene-number { position: absolute; top: 19vh; left: 8vw; color: rgba(11,79,138,.62); font: 800 12px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; z-index: 2; }

.decal-panel, .acrylic-tag, .release-copy {
  position: relative;
  z-index: 3;
  border: 1px solid rgba(245,250,255,.72);
  background: rgba(245,250,255,.34);
  backdrop-filter: blur(22px) saturate(1.35);
  border-radius: 34px 54px 30px 62px;
  box-shadow: inset 0 2px 18px rgba(245,250,255,.86), 0 22px 58px rgba(11,79,138,.16);
}
.decal-panel { width: min(740px, 82vw); margin-left: -18vw; padding: clamp(30px, 6vw, 72px); }
h1, h2 { font-family: var(--display); margin: 0; color: var(--deep); letter-spacing: -.06em; }
h1 { font-size: clamp(74px, 14vw, 190px); line-height: .8; color: rgba(11,79,138,.55); text-shadow: 0 2px 0 #F5FAFF, 0 0 42px rgba(191,239,255,.9); }
h2 { font-size: clamp(38px, 6vw, 88px); line-height: .9; }
.copy, .acrylic-tag p, .release-copy p { font-size: clamp(16px, 2vw, 22px); line-height: 1.45; max-width: 640px; }
.field-note, .serif { font-family: var(--serif); font-style: italic; color: var(--teal); }
.acrylic-tag span, .release-copy span { display: inline-block; margin-bottom: 12px; color: var(--violet); font: 900 12px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; }

.organism-cluster { position: absolute; z-index: 2; width: 290px; height: 230px; right: 12vw; top: 30vh; filter: drop-shadow(0 20px 45px rgba(11,79,138,.22)); }
.spore { position: absolute; display: block; border-radius: 45% 55% 58% 42%; background: radial-gradient(circle at 28% 24%, #F5FAFF, #9DFF4F 42%, rgba(122,92,255,.45)); border: 1px solid rgba(245,250,255,.7); box-shadow: inset 0 10px 20px rgba(245,250,255,.65), 0 0 26px rgba(157,255,79,.6); animation: sporeDrift 6s ease-in-out infinite; }
.spore b { position: absolute; left: 42%; top: 46%; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 17px -2px 0 rgba(4,59,70,.78); }
.s1 { width: 110px; height: 92px; left: 38px; top: 48px; }.s2 { width: 92px; height: 88px; left: 132px; top: 88px; animation-delay: -1s; }.s3 { width: 78px; height: 72px; left: 92px; top: 4px; animation-delay: -2s; }.s4 { width: 62px; height: 58px; left: 190px; top: 28px; animation-delay: -3s; }.s5 { width: 58px; height: 54px; left: 28px; top: 150px; animation-delay: -4s; }

.bubble-field { position: absolute; z-index: 4; inset: 0; pointer-events: none; }
.bubble { position: absolute; pointer-events: auto; width: 68px; height: 68px; border-radius: 50%; border: 1px solid rgba(245,250,255,.78); color: var(--deep); background: radial-gradient(circle at 30% 22%, #F5FAFF 0 10%, rgba(191,239,255,.66) 36%, rgba(122,92,255,.18)); box-shadow: inset 0 2px 18px rgba(245,250,255,.85), 0 12px 34px rgba(11,79,138,.14); font: 800 13px/1 var(--display); transition: transform .35s, filter .35s; animation: bubbleRise 10s ease-in-out infinite; }
.bubble:hover { transform: scale(1.38); filter: brightness(1.18) saturate(1.3); }
.bubble:nth-child(1){left:14%;top:61%;}.bubble:nth-child(2){left:34%;top:30%;animation-delay:-2s}.bubble:nth-child(3){left:72%;top:64%;animation-delay:-4s}.bubble:nth-child(4){left:83%;top:24%;animation-delay:-6s}.bubble:nth-child(5){left:52%;top:78%;animation-delay:-8s}

.rule-chamber { justify-items: start; }
.swing-tag { width: min(660px, 84vw); padding: 38px; margin-left: 7vw; transform-origin: 40px -30px; animation: tagSwing 4.8s ease-in-out infinite; }
.swing-tag::before, .nursery-note::before, .bloom-tag::before { content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: linear-gradient(135deg, #F5FAFF, #0B4F8A); left: 26px; top: 25px; box-shadow: 0 0 0 4px rgba(191,239,255,.45); }
.droplet-rack { position: absolute; right: 8vw; top: 24vh; display: grid; grid-template-columns: repeat(2, 130px); gap: 28px; z-index: 3; }
.drop { height: 150px; border-radius: 70% 70% 60% 60% / 82% 82% 45% 45%; display: grid; place-items: center; color: var(--deep); background: radial-gradient(circle at 35% 20%, #F5FAFF, #BFEFFF 45%, rgba(157,255,79,.42)); border: 1px solid rgba(245,250,255,.72); font: 900 16px/1 var(--display); box-shadow: inset 0 14px 25px rgba(245,250,255,.75), 0 18px 34px rgba(11,79,138,.12); animation: dropletSink 5s ease-in-out infinite; }
.drop:nth-child(2){animation-delay:-1.2s}.drop:nth-child(3){animation-delay:-2.4s}.drop:nth-child(4){animation-delay:-3.6s}.drop.coral { background: radial-gradient(circle at 35% 20%, #F5FAFF, #FF6B7A 45%, rgba(122,92,255,.25)); }
.ruler { position: absolute; left: 10vw; right: 14vw; bottom: 18vh; z-index: 2; height: 42px; border-radius: 18px; background: rgba(245,250,255,.32); border: 1px solid rgba(11,79,138,.2); display: flex; justify-content: space-around; align-items: center; color: rgba(4,59,70,.58); font-size: 12px; }

.petri-wrap { position: relative; width: min(820px, 90vw); height: 520px; z-index: 2; }
.petri { position: absolute; border-radius: 50%; border: 2px solid rgba(245,250,255,.72); background: radial-gradient(circle at 40% 35%, rgba(245,250,255,.82), rgba(191,239,255,.3) 52%, rgba(11,79,138,.16)); box-shadow: inset 0 4px 34px rgba(245,250,255,.86), 0 30px 90px rgba(4,59,70,.15); }
.dish-one { width: 350px; height: 350px; left: 3%; top: 10%; }.dish-two { width: 280px; height: 280px; right: 5%; bottom: 3%; }
.petri i { position: absolute; width: 38px; height: 38px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 20px #9DFF4F; animation: plankton 7s ease-in-out infinite; }
.petri i:nth-child(1){left:28%;top:30%}.petri i:nth-child(2){left:55%;top:48%;animation-delay:-2s}.petri i:nth-child(3){left:42%;top:68%;animation-delay:-4s}.petri em { position: absolute; left: 28%; top: 48%; font: italic 19px var(--serif); color: rgba(4,59,70,.52); }
.nursery-note { position: absolute; right: 8vw; top: 20vh; width: min(530px, 84vw); padding: 34px; z-index: 4; }

.bloom-diagram { position: absolute; left: 10vw; top: 22vh; width: 560px; height: 520px; z-index: 2; filter: drop-shadow(0 20px 35px rgba(11,79,138,.18)); }
.branch { position: absolute; width: 18px; border-radius: 18px; transform-origin: bottom; background: linear-gradient(180deg, #9DFF4F, #7A5CFF 70%, #0B4F8A); box-shadow: inset 0 0 8px rgba(245,250,255,.7); animation: growPulse 4s ease-in-out infinite; }
.root { height: 330px; left: 250px; bottom: 55px; }.b1 { height: 210px; left: 205px; bottom: 220px; transform: rotate(-42deg); }.b2 { height: 250px; left: 300px; bottom: 200px; transform: rotate(38deg); }.b3 { height: 160px; left: 280px; bottom: 300px; transform: rotate(8deg); }
.node { position: absolute; width: 72px; height: 72px; border-radius: 50% 48% 55% 45%; background: radial-gradient(circle at 30% 23%, #F5FAFF, #FF6B7A 45%, #7A5CFF); border: 1px solid rgba(245,250,255,.75); box-shadow: 0 0 24px rgba(255,107,122,.34); animation: sporeDrift 5s ease-in-out infinite; }
.n1{left:205px;top:50px}.n2{left:115px;top:120px}.n3{left:390px;top:92px}.n4{left:310px;top:15px}.n5{left:244px;top:268px}
.bloom-tag { width: min(570px, 82vw); padding: 38px; margin-left: 32vw; }

.release-chamber { background: radial-gradient(circle at 80% 50%, rgba(255,107,122,.18), transparent 28%); }
.release-copy { width: min(610px, 82vw); padding: 42px; margin-right: 25vw; }
.valve { position: absolute; right: 14vw; top: 36vh; z-index: 4; width: 190px; height: 190px; border: 0; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #F5FAFF, #BFEFFF 28%, #0B4F8A 70%, #043B46); box-shadow: inset 0 12px 24px rgba(245,250,255,.65), 0 28px 70px rgba(4,59,70,.28); cursor: pointer; transition: transform .5s cubic-bezier(.2,1.4,.4,1); }
.valve:hover, .valve.open { transform: rotate(38deg) scale(1.08); }
.valve span, .valve b { position: absolute; left: 50%; top: 50%; width: 150px; height: 28px; margin: -14px 0 0 -75px; border-radius: 18px; background: linear-gradient(90deg, #F5FAFF, #7A5CFF, #F5FAFF); }
.valve b { transform: rotate(90deg); }.valve i { position: absolute; inset: 68px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 28px #9DFF4F; }
.released-ribbons span { position: absolute; right: -10vw; top: 47vh; width: 42vw; height: 18px; border-radius: 99px; background: linear-gradient(90deg, transparent, #FF6B7A, #9DFF4F, transparent); opacity: .66; transform: translateX(24vw); transition: transform 1.1s ease; }
.released-ribbons span:nth-child(2){top:53vh;transition-delay:.12s;background:linear-gradient(90deg,transparent,#7A5CFF,#BFEFFF,transparent)}.released-ribbons span:nth-child(3){top:59vh;transition-delay:.24s}.release-chamber.released .released-ribbons span{transform:translateX(-35vw)}

.pipette-nav { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 18; display: flex; gap: 10px; padding: 9px; border-radius: 999px; background: rgba(245,250,255,.35); border: 1px solid rgba(245,250,255,.68); backdrop-filter: blur(18px); box-shadow: 0 15px 45px rgba(4,59,70,.14); }
.pipette-nav a { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #F5FAFF, rgba(191,239,255,.58)); color: var(--deep); text-decoration: none; transition: transform .3s; }
.pipette-nav a:hover, .pipette-nav a.active { transform: scale(1.26) translateY(-7px); }
.pipette-nav i { width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px #9DFF4F; animation: plankton 3.6s ease-in-out infinite; }
.pipette-nav span { position: absolute; bottom: 54px; opacity: 0; background: var(--pearl); color: var(--deep); border-radius: 99px; padding: 6px 9px; font-size: 11px; transition: opacity .25s; }.pipette-nav a:hover span{opacity:1}

.magnifier { width: 174px; height: 174px; margin: -87px 0 0 -87px; border-radius: 50%; left: 50%; top: 50%; z-index: 17; opacity: 0; transform: scale(.8); border: 2px solid rgba(245,250,255,.86); background: radial-gradient(circle at 35% 28%, rgba(245,250,255,.72), rgba(191,239,255,.28) 48%, rgba(122,92,255,.22)); backdrop-filter: blur(2px) saturate(1.8) brightness(1.12); box-shadow: inset 0 4px 22px rgba(245,250,255,.9), 0 20px 55px rgba(11,79,138,.2), 0 0 0 1px rgba(11,79,138,.12); transition: opacity .25s, transform .25s; }
.magnifier.active { opacity: 1; transform: scale(1); }
.lens-label { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font: 900 11px/1 var(--display); letter-spacing: .14em; color: var(--deep); text-transform: uppercase; }
.hidden-labels { inset: 0; z-index: 16; }
.hidden-labels span { position: absolute; left: var(--x); top: var(--y); opacity: 0; color: var(--teal); background: rgba(245,250,255,.72); border: 1px solid rgba(245,250,255,.9); border-radius: 999px; padding: 8px 12px; font: 800 12px/1 var(--display); transform: translate(-50%, -50%) scale(.86); transition: opacity .25s, transform .25s; }
.hidden-labels span.revealed { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.far-blobs { inset: 0; z-index: 0; overflow: hidden; }
.far-blobs span { position: absolute; border-radius: 50%; background: rgba(245,250,255,.28); filter: blur(16px); animation: farFloat 22s linear infinite; }
.far-blobs span:nth-child(1){width:160px;height:160px;top:22%;left:-10%;}.far-blobs span:nth-child(2){width:230px;height:230px;top:62%;left:15%;animation-delay:-8s}.far-blobs span:nth-child(3){width:120px;height:120px;top:36%;left:70%;animation-delay:-14s}.far-blobs span:nth-child(4){width:190px;height:190px;top:78%;left:45%;animation-delay:-4s}

@keyframes causticDrift { to { transform: translate3d(8%, 6%, 0) rotate(8deg); } }
@keyframes currentDash { to { stroke-dashoffset: -80; } }
@keyframes sporeDrift { 50% { transform: translate3d(10px, -16px, 0) rotate(8deg) scale(1.05); } }
@keyframes bubbleRise { 50% { transform: translateY(-38px); } }
@keyframes tagSwing { 50% { transform: rotate(1.8deg) translateY(-8px); } }
@keyframes dropletSink { 50% { transform: translateY(24px) scale(.96, 1.04); } }
@keyframes plankton { 50% { transform: translate(18px, -12px) scale(1.25); } }
@keyframes growPulse { 50% { filter: brightness(1.2); transform-origin: bottom; } }
@keyframes farFloat { to { transform: translateX(120vw) translateY(-12vh); } }

@media (max-width: 760px) {
  .tank-title { display: none; }
  .status-diode { font-size: 0; padding: 13px; }
  .decal-panel, .release-copy { margin: 0; }
  .organism-cluster { opacity: .58; right: -40px; top: 46vh; transform: scale(.72); }
  .droplet-rack { right: 3vw; top: 58vh; grid-template-columns: repeat(4, 70px); gap: 8px; }
  .drop { height: 82px; }
  .nursery-note, .bloom-tag { position: relative; right: auto; top: auto; margin: 0; }
  .petri-wrap, .bloom-diagram { opacity: .7; transform: scale(.72); }
  .bloom-tag { margin-left: 0; }
  .valve { right: 8vw; top: 66vh; width: 130px; height: 130px; }
  .valve span, .valve b { width: 100px; margin-left: -50px; }
  .valve i { inset: 48px; }
  .pipette-nav { width: calc(100% - 20px); justify-content: space-between; }
}
