:root {
  --paper: #ffffff;
  --paper-deep: #f4f1ea;
  --ink: #2a3140;
  --muted: #6a6e64;
  --olive: #8ea04a;
  --olive-deep: #6f8238;
  --lime: #b8d44a;
  --lavender: #c9b8e8;
  --sky: #d7eef7;
  --sage: #eef1df;
  --line: #c8cfb4;
  --radius: 24px;
  --display: "Fredoka", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(42, 49, 64, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

html { overflow-x: hidden; }

body {
  position: relative;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

.paper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: #fff;
  z-index: 0;
}

.site-fizz {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.site-fizz .mote {
  width: 9px;
  height: 9px;
  opacity: 0.35;
}

.site-fizz .spark { opacity: 0.4; }

.site-fizz .fizz-bit {
  position: absolute;
  width: 16px;
  height: 16px;
  overflow: visible;
  opacity: 0.28;
}

.site-fizz .fizz-bit.shine {
  width: 7px;
  height: 24px;
  opacity: 0.16;
}

.site-fizz .fizz-cloud {
  position: absolute;
  width: 72px;
  opacity: 0.35;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }

.nav, main, footer {
  position: relative;
  z-index: 1;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 26px max(24px, calc((100% - 1180px) / 2));
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  justify-self: start;
}

.brand-mark {
  width: 26px;
  height: 40px;
  overflow: visible;
  transform-origin: 50% 100%;
  transition: transform 0.28s ease;
}

.brand:hover .brand-mark { transform: rotate(-6deg); }

.brand-word {
  display: block;
  height: 22px;
  width: auto;
}

.brand-liquid {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: brandSlosh 3.6s ease-in-out infinite;
}

.brand-shine {
  animation: brandGleam 4.8s ease-in-out infinite;
}

.bubble {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.bubble.b1 { animation: logoFizz 2.6s ease-out infinite; --dx: -3px; }
.bubble.b2 { animation: logoFizz 2.6s ease-out 0.85s infinite; --dx: 4px; }
.bubble.b3 { animation: logoFizz 2.6s ease-out 1.65s infinite; --dx: 1px; }

.brand:hover .bubble.b1,
.brand:hover .bubble.b2,
.brand:hover .bubble.b3 { animation-duration: 1.7s; }

.brand-mark.is-sm { width: 22px; height: 34px; }
.brand-mark.is-md { width: 38px; height: 58px; }
.brand-mark.is-lg { width: 54px; height: 82px; }

.mark-shift .b1 { animation-delay: 0.45s; }
.mark-shift .b2 { animation-delay: 1.2s; }
.mark-shift .b3 { animation-delay: 2s; }
.mark-shift .brand-liquid { animation-delay: -1.4s; }

.lab-caption .brand-mark {
  display: inline-block;
  vertical-align: -10px;
  margin-left: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a.is-active,
.nav-links a:hover { color: var(--ink); }

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--olive);
  transform: translateX(-50%);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
  border: 0;
  box-shadow: 0 6px 16px rgba(111, 130, 56, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--olive);
  color: #fff;
}

.btn-nav {
  justify-self: end;
  padding: 10px 18px;
  font-size: 0.9rem;
  background: #e7edc4;
  color: var(--olive-deep);
  box-shadow: none;
}

.btn-nav:hover { background: #dce6b0; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}

.play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.6px solid var(--ink);
  position: relative;
}

.play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--ink);
  transform: translate(-40%, -50%);
}

.section, .cta {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  background: transparent;
}

.hero {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  min-height: calc(100vh - 92px);
  min-height: calc(100dvh - 92px);
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1.14fr);
  align-items: center;
  gap: 36px;
  padding: 36px 0 48px;
  background: transparent;
}

.hero-life {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.mote {
  position: absolute;
  border-radius: 50%;
  background: #c9b8e8;
  opacity: 0.45;
  animation: drift 7s ease-in-out infinite;
}
.m1 { width: 10px; height: 10px; top: 12%; left: 46%; background: #c9b8e8; }
.m2 { width: 7px; height: 7px; top: 28%; left: 8%; background: #b8d44a; animation-delay: -1.4s; }
.m3 { width: 8px; height: 8px; top: 8%; right: 8%; background: #e8d56a; animation-delay: -2.6s; }
.m4 { width: 6px; height: 6px; bottom: 22%; left: 42%; background: #c9b8e8; animation-delay: -3.2s; }
.m5 { width: 9px; height: 9px; bottom: 8%; right: 18%; background: #8fa34a; opacity: 0.35; animation-delay: -4s; }

.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  background:
    linear-gradient(#8fa34a, #8fa34a) center / 2px 100% no-repeat,
    linear-gradient(#8fa34a, #8fa34a) center / 100% 2px no-repeat;
  opacity: 0.5;
  animation: twinkle 3.4s ease-in-out infinite;
}
.s1 { top: 18%; right: 28%; }
.s2 { top: 6%; left: 58%; animation-delay: -1.6s; }

.cloud {
  position: absolute;
  top: 0;
  right: 6%;
  width: 110px;
  opacity: 0.85;
  animation: drift 10s ease-in-out infinite;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 540px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #2b3340;
}

.hero h1 span { color: var(--olive); }

.hero-copy p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 440px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

.hero-art {
  position: relative;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.hero-loop {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.hero-art .machine {
  width: 100%;
  height: auto;
  display: block;
}

.hero-scientist,
.sci-pour,
.watcher,
.scene-icon,
.cta-wave,
.cta-sprout,
.sprout,
.bench-flask {
  background: none;
}

.hero-scientist {
  position: absolute;
  left: 2%;
  bottom: 6%;
  width: 92px;
  height: auto;
  z-index: 2;
  display: block;
  transform-origin: 50% 100%;
  animation: sciIdle 4.8s ease-in-out infinite;
}

.hero-watcher {
  position: absolute;
  right: 1%;
  bottom: 5%;
  width: 78px;
  height: auto;
  z-index: 3;
  display: block;
  transform-origin: 50% 100%;
  animation: watchReact 8s ease-in-out infinite;
}

.hero-bug {
  position: absolute;
  width: 46px;
  height: auto;
  z-index: 4;
  transform-origin: 50% 80%;
  animation: bugPop 8s ease-in-out infinite;
}

.bug-a { left: 34%; top: 52%; animation-delay: 0s; }
.bug-b { left: 34%; top: 52%; animation-delay: -2.7s; }
.bug-c { left: 34%; top: 52%; animation-delay: -5.4s; }

.hero-art .arm {
  transform-box: view-box;
  transform-origin: 72.2% 32.3%;
  animation: reach 3.6s ease-in-out infinite;
}

.belt-cube {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: cubeHop 1.6s ease-in-out infinite;
}
.c2 { animation-delay: -0.4s; }
.c3 { animation-delay: -0.8s; }

.dot {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: lampShift 3s ease-in-out infinite;
}
.d2 { animation-delay: -1s; }
.d3 { animation-delay: -2s; }

.code-blink { animation: codeBlink 2.4s steps(1) infinite; }

.tube-fill { transform-box: fill-box; transform-origin: 50% 100%; }
.t1 { animation: tubeSlosh 5s ease-in-out infinite; }
.t2 { animation: tubeSlosh 5s ease-in-out -2.2s infinite; }

.wave {
  position: relative;
  line-height: 0;
  margin: 8px 0 0;
}

.wave svg {
  display: block;
  width: 100%;
  height: 72px;
}

.wave-drop {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 16px;
  height: 22px;
  transform: translateX(-50%);
  background: var(--olive);
  border-radius: 50% 50% 48% 48% / 38% 38% 62% 62%;
  box-shadow: 0 0 0 5px var(--paper);
  animation: dropBob 2.8s ease-in-out infinite;
}

.drop { animation: drip 2.4s ease-in infinite; }
.belt-items { animation: belt 6s linear infinite; }
.arm {
  transform-origin: 520px 168px;
  animation: reach 3.6s ease-in-out infinite;
}

.float-bubble { animation: rise 3.2s ease-in infinite; }
.fb1 { animation-delay: 0s; }
.fb2 { animation-delay: 1.1s; }
.fb3 { animation-delay: 2s; }

@keyframes drip {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(42px); opacity: 1; }
  100% { transform: translateY(52px); opacity: 0; }
}
@keyframes belt {
  from { transform: translateX(0); }
  to { transform: translateX(42px); }
}
@keyframes reach {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(8deg); }
}
@keyframes logoFizz {
  0% {
    transform: translate(0, 14px) scale(0.25);
    opacity: 0;
  }
  14% {
    transform: translate(calc(var(--dx) * 0.2), 6px) scale(0.9);
    opacity: 1;
  }
  62% {
    transform: translate(var(--dx), -9px) scale(1);
    opacity: 0.95;
  }
  100% {
    transform: translate(calc(var(--dx) * 1.3), -20px) scale(0.35);
    opacity: 0;
  }
}

@keyframes brandSlosh {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.9); }
}

@keyframes brandGleam {
  0%, 70%, 100% { opacity: 0.18; }
  82% { opacity: 0.5; }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.7; transform: scale(1); }
}
@keyframes rise {
  0% { transform: translateY(6px); opacity: 0; }
  30% { opacity: 0.9; }
  100% { transform: translateY(-16px); opacity: 0; }
}

@keyframes bugPop {
  0%, 6% {
    opacity: 0;
    transform: translate(0, 10px) scale(0.15);
  }
  12% {
    opacity: 1;
    transform: translate(18px, -28px) scale(1.18);
  }
  18% { transform: translate(36px, 4px) scale(1); }
  28% { transform: translate(78px, -14px) scale(1.04); }
  38% { transform: translate(118px, 6px) scale(1); }
  50% { transform: translate(168px, -10px) scale(1.02); }
  62% { transform: translate(214px, 8px) scale(0.98); }
  74% { transform: translate(268px, -16px) scale(0.92); }
  86% {
    opacity: 1;
    transform: translate(320px, 22px) scale(0.7);
  }
  94%, 100% {
    opacity: 0;
    transform: translate(340px, 40px) scale(0.4);
  }
}

@keyframes sciIdle {
  0%, 100% { transform: rotate(-1.4deg); }
  50% { transform: rotate(1.6deg); }
}

@keyframes watchReact {
  0%, 18%, 100% { transform: rotate(0deg) translateY(0); }
  24% { transform: rotate(-6deg) translateY(-4px); }
  32% { transform: rotate(4deg) translateY(0); }
  50%, 68% { transform: rotate(0deg); }
  74% { transform: rotate(-5deg) translateY(-3px); }
  82% { transform: rotate(0deg); }
}

@keyframes cubeHop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes codeBlink {
  0%, 70% { opacity: 1; }
  71%, 100% { opacity: 0.35; }
}

@keyframes tubeSlosh {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.86); }
}
@keyframes dropBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

.section { padding: 88px 0 96px; }

.eyebrow {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--olive-deep);
  margin-bottom: 10px;
}

h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.lede {
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 80px;
  font-size: 1.05rem;
}

.ideas {
  position: relative;
  text-align: center;
  overflow: visible;
  padding-bottom: 36px;
  background: transparent;
}
.ideas .lede { margin-left: auto; margin-right: auto; }
.ideas h2 span { color: var(--olive); }

.lab-path {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 48px));
  margin: 8px auto 0;
  padding: 150px 240px 0 72px;
  text-align: left;
}

.sci-source {
  position: absolute;
  left: 29px;
  top: -36px;
  width: 112px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.source-tube {
  position: absolute;
  top: 16px;
  left: 28px;
  width: 24px;
  height: auto;
  z-index: 5;
  pointer-events: none;
}

.path-rail {
  position: absolute;
  display: none;
  left: 8px;
  top: 148px;
  bottom: 0;
  width: 52px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.path-line {
  display: block;
  width: 100%;
  height: 100%;
}

.path-drop {
  position: absolute;
  left: 20px;
  top: 0;
  z-index: 6;
  width: 20px;
  height: 28px;
  overflow: visible;
  animation: dropWeave 1s linear both paused;
  animation-delay: calc(var(--p, 0) * -1s);
  pointer-events: none;
}

.path-planter {
  position: absolute;
  right: 8px;
  bottom: -38px;
  width: 220px;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  pointer-events: none;
  z-index: 3;
  transform-origin: 50% 100%;
  animation: plantSway 5.5s ease-in-out infinite;
}

.plant-sprout {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: plantSway 5.5s ease-in-out infinite;
}

.ideas.is-watered .plant-sprout {
  animation: plantNod 0.7s ease-out;
}

.soak { opacity: 0; }

.ideas.is-watered .soak {
  animation: soilSoak 0.8s ease-out;
}

.lab-ground {
  position: relative;
  z-index: 1;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 120px;
  overflow: hidden;
}

.ground-scene {
  display: block;
  width: 100%;
  height: 120px;
}

.lab-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 10px;
}

.path-step {
  min-height: 140px;
  padding: 22px 0 18px;
}

.path-copy {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 460px;
}

.path-copy h3 {
  font-family: var(--display);
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.path-copy p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 360px;
}

.path-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.path-media .chase-loop,
.path-media .flee-loop {
  width: 240px;
  max-width: 100%;
}

.path-still img {
  width: 88px;
  height: auto;
  display: block;
}

.path-still .sci-pour {
  width: 110px;
  transform-origin: 70% 80%;
  animation: pourTilt 5.4s ease-in-out infinite;
}

.sci-pour {
  width: 88px;
  height: auto;
  display: block;
}

.scene-strip {
  position: relative;
  height: 140px;
  overflow: hidden;
  pointer-events: none;
}

.scene-strip.hunt,
.scene-strip.reverse {
  height: 168px;
  overflow: hidden;
  background: #fff;
}

.chase-loop,
.flee-loop {
  display: block;
  width: 300px;
  height: auto;
  background: #fff;
}

.chase-ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  border-top: 2px dashed #d2d8c0;
}

.bg-chase {
  position: absolute;
  bottom: 10px;
  left: 0;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  animation: stroll 9s linear infinite;
}

.scene-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: 0 0 auto;
  display: block;
  transform-origin: 50% 80%;
  animation: iconDrift 5.6s ease-in-out infinite;
}

.path-step:nth-of-type(1) .scene-icon { animation-delay: 0s; }
.path-step:nth-of-type(2) .scene-icon { animation-delay: -1.1s; }
.path-step:nth-of-type(3) .scene-icon { animation-delay: -2.2s; }
.path-step:nth-of-type(4) .scene-icon { animation-delay: -3.3s; }
.path-step:nth-of-type(5) .scene-icon { animation-delay: -4.4s; }

.sprite {
  display: block;
  flex: 0 0 auto;
}

.sprite-run {
  width: 104px;
  height: auto;
  aspect-ratio: 280 / 240;
  background: url("assets/lab/scientist-suit-chase.png") center / contain no-repeat;
}

.sprite-flee {
  width: 104px;
  height: auto;
  aspect-ratio: 280 / 240;
  background: url("assets/lab/scientist-suit-flee.png") center / contain no-repeat;
}

.sprite-bug {
  width: 52px;
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 6px;
  background: url("assets/lab/bug-run.png") center / contain no-repeat;
}

.sprite-bug.tiny {
  width: 40px;
  height: 36px;
}

.work-chase {
  position: absolute;
  bottom: 10px;
  left: 0;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  animation: strollBack 9s linear infinite;
}

@keyframes sheet4 {
  to { background-position: -400% 0; }
}

@keyframes sheet2 {
  to { background-position: -200% 0; }
}

@keyframes runBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes stride {
  0%, 100% { transform: rotate(16deg); }
  50% { transform: rotate(-18deg); }
}

@keyframes netSwing {
  0%, 100% { transform: rotate(10deg); }
  50% { transform: rotate(-14deg); }
}

@keyframes scuttle {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  50% { transform: translate(4px, -6px) rotate(8deg); }
}

@keyframes bugLegs {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}

@keyframes sourceTilt {
  0%, 78% { transform: rotate(0deg); }
  88% { transform: rotate(-6deg); }
  100% { transform: rotate(0deg); }
}

@keyframes pourTilt {
  0%, 40% { transform: rotate(0deg); }
  70%, 100% { transform: rotate(-42deg); }
}

@keyframes puff {
  0%, 72% { transform: scale(0.2); opacity: 0; }
  78% { transform: scale(1.15); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes stroll {
  0% { transform: translateX(-180px); }
  100% { transform: translateX(calc(100vw + 40px)); }
}

@keyframes strollBack {
  0% { transform: translateX(calc(100vw + 20px)); }
  100% { transform: translateX(-260px); }
}

@keyframes glassPeek {
  0%, 100% { transform: rotate(-8deg); }
  50% { transform: rotate(10deg); }
}

@keyframes flaskWobble {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(8deg); }
}

@keyframes dropWeave {
  0%   { top: 4px; left: 37px; opacity: 0; transform: scale(0.4); }
  8%   { top: 174px; left: 22px; opacity: 1; transform: scale(1); }
  20%  { top: 18%; left: 40px; }
  40%  { top: 38%; left: 12px; }
  60%  { top: 58%; left: 40px; }
  78%  { top: 76%; left: 16px; opacity: 1; }
  88%  { top: calc(100% - 8px); left: 24px; opacity: 1; }
  96%  { top: calc(100% + 18px); left: 26px; opacity: 0.5; }
  100% { top: calc(100% + 28px); left: 26px; opacity: 0; }
}

@keyframes plantSway {
  0%, 100% { transform: rotate(-1.8deg); }
  50% { transform: rotate(1.8deg); }
}

@keyframes plantNod {
  0% { transform: rotate(0deg); }
  40% { transform: rotate(-3deg); }
  100% { transform: rotate(0deg); }
}

@keyframes soilSoak {
  0%, 90% { opacity: 0; }
  94% { opacity: 0.28; }
  100% { opacity: 0; }
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes iconPeel {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-6deg); }
}

@keyframes iconNod {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes iconGrow {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.08); }
}

@keyframes crateBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes iconDrift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(1.4deg); }
}

@keyframes crateStir {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  28% { transform: translateY(-2px) rotate(-1deg); }
  64% { transform: translateY(-1px) rotate(1.1deg); }
}

@keyframes lampPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(184, 212, 74, 0.16); }
  50% { box-shadow: 0 0 0 7px rgba(184, 212, 74, 0.06); }
}

@keyframes pipeRun {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(420%); }
}

@keyframes shellGlow {
  0%, 100% { box-shadow: 0 16px 30px rgba(42, 49, 64, 0.08); }
  50% { box-shadow: 0 16px 34px rgba(184, 212, 74, 0.18), 0 0 0 3px rgba(184, 212, 74, 0.08); }
}

@keyframes bayLight {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes glassSheen {
  0% { transform: translateX(-70%); }
  100% { transform: translateX(70%); }
}

@keyframes gaugeSweep {
  0%, 100% { transform: translateX(-50%) rotate(-28deg); }
  50% { transform: translateX(-50%) rotate(32deg); }
}

@keyframes sitterSettle {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.6deg); }
}

@keyframes lampShift {
  0%, 100% { background: #8fa34a; box-shadow: 0 0 0 3px rgba(143, 163, 74, 0.16); }
  33% { background: #b8d44a; box-shadow: 0 0 0 4px rgba(184, 212, 74, 0.2); }
  66% { background: #c9b8e8; box-shadow: 0 0 0 3px rgba(201, 184, 232, 0.18); }
}

@keyframes arrowNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

.section.work {
  text-align: center;
  width: 100%;
  max-width: none;
  overflow: visible;
}

.work.band {
  position: relative;
  background: transparent;
  padding: 96px 0 110px;
}

.corner-life {
  position: absolute;
  bottom: 24px;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.corner-left { left: max(12px, calc((100% - 1180px) / 2 - 40px)); }
.corner-right { right: max(12px, calc((100% - 1180px) / 2 - 20px)); }

.rack { width: 132px; height: auto; }
.sprout { width: 56px; height: auto; margin-bottom: 4px; display: block; }
.bench-flask { width: 72px; height: auto; display: block; }

.work .eyebrow,
.work h2,
.work .lede {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.machine-bay {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 56px auto 0;
  padding: 40px 80px 0 0;
}

.sitter {
  position: absolute;
  left: 12%;
  top: -103px;
  width: 90px;
  height: auto;
  z-index: 5;
  pointer-events: none;
  transform-origin: 50% 90%;
  animation: sitterSettle 5.2s ease-in-out infinite;
}

.watcher-right {
  position: absolute;
  height: auto;
  z-index: 4;
  pointer-events: none;
  width: 151px;
  right: 32px;
  bottom: -16px;
}

.machine-shell {
  position: relative;
  background: #f4efe3;
  border: 2.6px solid #2a3140;
  border-radius: 40px;
  padding: 12px 20px 22px;
  box-shadow: 0 16px 30px rgba(42, 49, 64, 0.08);
  animation: shellGlow 5.4s ease-in-out infinite;
}

.machine-shell::before,
.machine-shell::after {
  content: "";
  position: absolute;
  top: 38%;
  width: 14px;
  height: 72px;
  background: #d7eef7;
  border: 2.2px solid #2a3140;
  border-radius: 8px;
}

.machine-shell::before { left: -10px; }
.machine-shell::after { right: -10px; background: #c9b8e8; }

.machine-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 14px;
}

.rivet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #f7f4ea, #c4c8b4 62%, #9aa384);
  border: 1.6px solid #2a3140;
  flex: 0 0 auto;
}

.machine-gauge {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #8fa34a;
  border: 2px solid #2a3140;
  flex: 0 0 auto;
  overflow: hidden;
}

.machine-gauge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 2px;
  height: 9px;
  background: #2a3140;
  transform-origin: center bottom;
  transform: translateX(-50%) rotate(-28deg);
  animation: gaugeSweep 4.6s ease-in-out infinite;
}

.machine-pipe {
  position: relative;
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: #d7eef7;
  border: 2px solid #2a3140;
  overflow: hidden;
}

.machine-pipe::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  width: 28%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.85), transparent);
  animation: pipeRun 2.8s linear infinite;
}

.lamp {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.8px solid #2a3140;
  flex: 0 0 auto;
  animation: lampShift 3.6s ease-in-out infinite;
}

.lamp-a { animation-delay: 0s; }
.lamp-b { animation-delay: -1.2s; }
.lamp-c { animation-delay: -2.4s; }

.machine-window {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), transparent 28%),
    #d5e0e4;
  border: 2.2px solid #2a3140;
  border-radius: 22px;
  overflow: hidden;
  min-height: 300px;
}

.machine-window::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), transparent);
  animation: bayLight 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.machine-window::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 64%
  );
  transform: translateX(-60%);
  animation: glassSheen 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

.line-track {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  padding: 44px 32px 31px;
}

.crate {
  position: relative;
  top: 14px;
  flex: 0 1 188px;
  max-width: 200px;
  transform-origin: 50% 92%;
  animation: crateStir 5.4s ease-in-out infinite;
}

.crate:nth-child(2) { animation-delay: -1.3s; }
.crate:nth-child(3) { animation-delay: -2.6s; }
.crate:nth-child(4) { animation-delay: -3.8s; }

.crate .box-art {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
  filter: none;
}

.crate.is-live { z-index: 2; }

.box-label {
  position: absolute;
  left: 22%;
  top: 31%;
  width: 56%;
  height: 38%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 4px 6px;
}

.box-label:hover strong { color: var(--olive-deep); }

.box-label strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(0.78rem, 1.4vw, 1rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 3px;
}

.box-label span {
  display: block;
  color: var(--muted);
  font-size: clamp(0.58rem, 1vw, 0.7rem);
  line-height: 1.15;
}

.crate.is-classified .box-art {
  filter: blur(2.8px) saturate(0.6) brightness(0.98);
}

.classified-stamp {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-16deg);
  z-index: 3;
  font-family: var(--display);
  font-size: clamp(0.62rem, 1.1vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a3a3a;
  border: 2px solid #8a3a3a;
  border-radius: 3px;
  padding: 4px 6px 3px;
  background: rgba(255, 248, 244, 0.5);
  pointer-events: none;
  white-space: nowrap;
}

.crate-b .classified-stamp { transform: translate(-50%, -50%) rotate(10deg); }
.crate-c .classified-stamp { transform: translate(-50%, -50%) rotate(-8deg); }

.machine-legs {
  display: flex;
  justify-content: space-between;
  padding: 0 56px;
  height: 34px;
}

.machine-legs span {
  width: 16px;
  background: linear-gradient(180deg, #e8d7b4, #c9a86a);
  border: 2.2px solid #2a3140;
  border-top: 0;
  border-radius: 0 0 7px 7px;
}

.tabletop {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  margin: 0;
  border: 0;
  border-top: 2px solid #2a3140;
  border-radius: 0 0 20px 20px;
  background:
    linear-gradient(180deg, #f0e2c4 0%, #e4d0a6 55%, #d4ba86 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
  z-index: 0;
}

.cta { padding: 24px 0 88px; background: transparent; }

.cta-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px 36px;
  background: #f3f6e4;
  border: 1.5px solid var(--line);
  border-radius: 32px;
  padding: 36px 44px;
  box-shadow: var(--shadow);
}

.cta-props {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.cta-wave { width: 86px; height: auto; display: block; }
.cta-sprout { width: 52px; height: auto; margin-bottom: 8px; display: block; }
.cta-copy h2 { margin-bottom: 8px; }
.cta-copy p { color: var(--muted); max-width: 460px; }

footer {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 56px;
  background: transparent;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  border-top: 1px solid rgba(42, 49, 64, 0.08);
}

.footer-life {
  position: absolute;
  right: 0;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}

.footer-logo {
  display: block;
  width: min(140px, 100%);
  height: auto;
  margin-bottom: 10px;
}
.footer-brand p, footer a, .copy { color: var(--muted); }
footer a { display: block; text-decoration: none; margin-top: 8px; }
footer a:hover { color: var(--ink); }
.footer-label { font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.copy { grid-column: 1 / -1; font-size: 0.85rem; margin-top: 8px; }

@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr auto auto;
    gap: 10px;
  }
  .btn-nav { display: none; }
  .hero {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
    padding: 20px 0 40px;
    gap: 12px;
  }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .wave svg { height: 48px; }
  .machine-bay { padding: 24px 0 0; }
  .machine-shell::before,
  .machine-shell::after { display: none; }
  .line-track {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 14px;
    padding: 28px 16px 34px;
  }
  .crate { flex: 0 0 148px; }
  .box-label span { display: none; }
  .lab-path { padding: 100px 0 0 40px; width: calc(100% - 32px); }
  .path-planter { display: none; }
  .lab-ground { height: 88px; }
  .path-step { min-height: 0; }
  .path-media .chase-loop,
  .path-media .flee-loop { width: 200px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 78px;
    right: 24px;
    left: 24px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    box-shadow: var(--shadow);
  }
  .nav-links.is-open { display: flex; }
  .cta-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }

  .watcher-right{
   right: 4px;
  }

  .sci-source{
    left: 10px;
    top: -57px;
    width: 100px;
  }

  .sci-tube{
    left: 15px;
    top: -6px;
    width: 21px;
  }

  .source-tube{
    left: 10px;
    top: -6px;
    width: 21px;
  }

  .corner-life,
  .hero-life,
  .footer-life,
  .sitter,
  .hero-scientist,
  .hero-watcher,
  .hero-bug,
  .bg-mix,
  .bg-mix { display: none; }
  .scientist { width: 70px; }
  .critter { width: 38px; }
  footer { grid-template-columns: 1fr; }
}

.boot-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.boot-mark svg {
  width: 72px;
  height: 108px;
  overflow: visible;
}

.boot-mark p {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.boot-liquid {
  transform-origin: center bottom;
  animation: boot-fill 1.4s ease-in-out infinite;
}

.boot-bubble {
  animation: boot-pop 1.6s ease-in-out infinite;
}

.boot-bubble.b2 { animation-delay: .2s; }
.boot-bubble.b3 { animation-delay: .4s; }

@keyframes boot-fill {
  0%, 100% { transform: scaleY(0.72); }
  50% { transform: scaleY(1); }
}

@keyframes boot-pop {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-6px); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .drop, .belt-items, .arm, .bubble, .brand-liquid, .brand-shine, .hero-bug, .hero-watcher, .belt-cube,
  .dot, .code-blink, .tube-fill,
  .mote, .spark, .cloud, .float-bubble, .wave-drop,
  .scene-icon, .crate, .puff, .bg-chase, .work-chase,
  .path-drop, .plant-sprout, .path-planter, .soak, .sci-source, .sci-pour,
  .sprite-run, .sprite-flee, .sprite-bug,
  .lot.is-live .box-art, .line-belt,
  .lamp, .machine-window::after, .machine-window::before,
  .machine-gauge::after, .machine-pipe::after, .machine-shell,
  .sitter { animation: none; }
  .boot-liquid, .boot-bubble { animation: none; }
}
