@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=DM+Sans:ital,opsz,wght@0,9..40,300..600&display=swap');

/* ===========================================================
   MycoLumen — light-mode stylesheet v2
   Palette: white + purple (laser) + emerald (mycelium) + orange (energy)
   "Sophisticated but playful" — airy, editorial, with living science energy
   =========================================================== */

:root {
  /* backgrounds */
  --bg:        #FAF9F7;
  --bg-2:      #F3F0EA;   /* barely-lavender tint */
  --bg-3:      #ECE8DF;   /* soft lavender for alt bands */
  --panel:     #FEFEFE;
  --panel-2:   #F8F6F2;

  /* borders & shadows */
  --border:    #DDD9EC;
  --border-2:  #C5BEDD;
  --shadow:    rgba(82, 71, 160, 0.07);
  --shadow-lg: rgba(82, 71, 160, 0.12);

  /* typography */
  --text:      #18181B;
  --muted:     #52525B;
  --muted-2:   #A1A1AA;

  /* purple = laser / primary / tech */
  --myco:      #5F50BE;
  --myco-dim:  #8577D6;
  --myco-pale: #EEEBFF;

  /* emerald = mycelium / bio / life */
  --lumen:     #1A8F68;
  --lumen-2:   #22AE7C;
  --lumen-pale:#D6F5EA;

  /* orange = playful / energy / warmth */
  --neural:    #CB6E2A;
  --neural-2:  #E0863E;
  --neural-pale:#FDF3E8;

  --radius:    20px;
  --radius-sm: 14px;
  --maxw:      1180px;
  --font-head:    "DM Sans", system-ui, sans-serif;
  --font-body:    "DM Sans", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --font-display: "Fraunces", Georgia, serif;
  --font-accent:  "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-optical-sizing: auto;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 .4em;
  color: var(--text);
}
/* Display headings use the calligraphic serif — echoes tryandai.com's editorial Martina Plantijn */
h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h1 .grad, h1 .grad-warm { font-style: italic; }
/* Gradient spans inside h1 go italic — the calligraphic italic is the hand-drawn moment */
h2 { font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
h3 { font-size: 1.22rem; }
p  { margin: 0 0 1em; }

a { color: var(--myco); text-decoration: none; transition: color .2s; }
a:hover { color: #5b21b6; }

.muted  { color: var(--muted); }
.mono   { font-family: var(--font-mono); }
.center { text-align: center; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 88px 0; position: relative; }
section.tight { padding: 60px 0; }
section.alt {
  background-color: var(--bg-2);
  background-image:
    repeating-linear-gradient(-53deg,rgba(95,80,190,0.04) 0,rgba(95,80,190,0.04) 1px,transparent 1px,transparent 15px),
    repeating-linear-gradient(37deg,rgba(26,143,104,0.025) 0,rgba(26,143,104,0.025) 1px,transparent 1px,transparent 22px);
}
section.alt2 {
  background-color: var(--bg-3);
  background-image:
    repeating-linear-gradient(-48deg,rgba(95,80,190,0.05) 0,rgba(95,80,190,0.05) 1px,transparent 1px,transparent 13px),
    repeating-linear-gradient(42deg,rgba(26,143,104,0.03) 0,rgba(26,143,104,0.03) 1px,transparent 1px,transparent 18px),
    repeating-linear-gradient(-18deg,rgba(203,110,42,0.018) 0,rgba(203,110,42,0.018) 1px,transparent 1px,transparent 26px);
}

/* ---------- gradient text ---------- */
.grad {
  background: linear-gradient(110deg, var(--myco) 0%, var(--lumen) 55%, var(--neural) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.grad-warm {
  background: linear-gradient(110deg, var(--neural) 0%, var(--myco) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- kicker / eyebrow ---------- */
/* Handwritten label — Caveat font, organic border-radius, no AI status dot */
.kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--myco);
  border: 1.5px solid var(--border-2);
  border-radius: 4px 10px 6px 9px / 9px 6px 10px 4px;
  padding: 3px 13px 5px;
  background: var(--myco-pale);
  margin-bottom: 20px;
}
.kicker.lumen { color: var(--lumen); background: var(--lumen-pale); border-color: #5ECFA2; }
.kicker.warm  { color: var(--neural); background: var(--neural-pale); border-color: #E6BC5A; }
/* Hide the AI-status dot indicator — decorative role is now played by the organic shape + font */
.kicker .dot  { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .97rem;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s, box-shadow .22s, background .18s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--myco);
  color: #fff; box-shadow: 0 4px 20px rgba(95,80,190,0.30);
}
.btn-primary:hover { background: #4E40A0; color: #fff; box-shadow: 0 8px 30px rgba(95,80,190,0.36); }

.btn-ghost {
  background: transparent; border-color: var(--border-2); color: var(--text);
}
.btn-ghost:hover { border-color: var(--myco); color: var(--myco); }

.btn-green {
  background: var(--lumen); color: #fff; box-shadow: 0 4px 20px rgba(26,143,104,0.26);
}
.btn-green:hover { background: #157358; color: #fff; }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1.5px solid var(--border);
  box-shadow: 0 2px 16px rgba(99,40,200,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.18rem;
  color: var(--text); letter-spacing: -0.02em;
}
.brand:hover { opacity: 0.82; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--myco-dim) 0%, var(--myco) 60%, #3B2E78 100%);
  box-shadow: 0 4px 14px rgba(95,80,190,0.35);
  position: relative; overflow: hidden;
}
.brand .mark::after {
  content: ""; position: absolute; bottom: -4px; right: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.9), transparent 70%);
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--border-2);
  border-radius: 10px; width: 42px; height: 38px;
  color: var(--text); font-size: 1.3rem; cursor: pointer;
}

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 0; align-items: stretch;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1.5px solid var(--border);
    padding: 10px 24px 20px; box-shadow: 0 10px 30px var(--shadow);
  }
  .nav-links.open a { padding: 13px 4px; border-bottom: 1px solid var(--border); }
}

/* ---------- hero (light / no video — used on interior pages) ---------- */
.hero {
  padding: 72px 0 80px;
  background: linear-gradient(160deg, #fff 50%, var(--bg-2) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; top: -120px; right: -80px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(95,80,190,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; bottom: -80px; left: -60px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(5,150,105,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 52px; align-items: center; position: relative; z-index: 1;
}
.hero p.lead { font-size: 1.17rem; color: var(--muted); max-width: 36ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats { display: flex; gap: 32px; margin-top: 42px; flex-wrap: wrap; }
.hero-stats .stat .n { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--text); }
.hero-stats .stat .l { font-size: .82rem; color: var(--muted); }

/* quick-fact pills in the video hero */
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.hf-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .80rem; font-family: var(--font-mono);
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- hero — full-screen video background ---------- */
.hero-vid {
  min-height: 100vh;
  padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #05020a; /* dark fallback while video loads */
}
.hero-vid::before, .hero-vid::after { display: none; } /* remove light-mode blobs */

/* the <video> element */
.hero-vid .hero-video-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
  /* slight de-saturation keeps text legible and looks more editorial */
  filter: brightness(0.72) saturate(1.1);
}

/* gradient overlay: transparent top → dark bottom — text always readable */
.hero-vid .hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(5,2,10,0.25)  0%,
      rgba(5,2,10,0.15) 35%,
      rgba(5,2,10,0.55) 75%,
      rgba(5,2,10,0.80) 100%);
}

/* content sits above video + overlay */
.hero-vid .hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--maxw);
  margin: 0 auto; padding: 120px 24px 100px;
}
/* left-side text block, floats handle the right */
.hero-left { max-width: 500px; }

/* ---- Science page step rows ---- */
.science-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 52px;
  align-items: stretch;
}
.science-step:last-of-type { margin-bottom: 0; }
.science-step.rev > .photo-frame { order: -1; }
.science-step .photo-frame {
  height: 100%;
  min-height: 280px;
}
.science-step .card.pillar {
  height: 100%;
  box-sizing: border-box;
}
@media (max-width: 840px) {
  .science-step { grid-template-columns: 1fr; gap: 20px; }
  .science-step.rev > .photo-frame { order: 0; }
  .science-step .photo-frame { height: auto; aspect-ratio: 4/3; }
}

/* ---- Paper stack ---- */
.paper-stack {
  flex-shrink: 0;
  position: relative;
  width: 282px;   /* 222 + 5×12px offsets */
  height: 350px;  /* 288 + 5×12px offsets + 2px extra */
  perspective: 1000px;
  perspective-origin: 50% 8%;
}
.ps-page {
  position: absolute;
  width: 222px;
  height: 288px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.28), 0 1px 3px rgba(0,0,0,0.15);
  transform-origin: top center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.3s ease;
  overflow: hidden;
  cursor: pointer;
  will-change: transform;
}
.ps-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.ps-page.is-peel {
  transform: rotateX(-175deg);   /* curl up and over, bottom sweeps upward */
  box-shadow: none;
  z-index: 20 !important;
}
.ps-clip {
  position: absolute;
  top: -9px;
  left: 205px;
  z-index: 25;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}
@media (max-width: 700px) { .paper-stack { display: none; } }

/* text overrides for dark background */
.hero-vid h1 { color: #fff; }
.hero-vid p.lead { color: rgba(255,255,255,0.80); font-size: 1.17rem; max-width: 42ch; }
.hero-vid .hero-stats .stat .n { color: #fff; font-family: var(--font-head); font-size: 1.9rem; font-weight: 700; }
.hero-vid .hero-stats .stat .l { color: rgba(255,255,255,0.60); font-size: .82rem; }

/* kicker on dark */
.hero-vid .kicker {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.20);
  color: rgba(255,255,255,0.88);
}

/* ghost button inverted */
.hero-vid .btn-ghost {
  border-color: rgba(255,255,255,0.35);
  color: #fff; background: rgba(255,255,255,0.08);
}
.hero-vid .btn-ghost:hover {
  border-color: #fff; background: rgba(255,255,255,0.16);
}

/* grad text still works on dark */
.hero-vid .grad {
  background: linear-gradient(110deg, #9D90EE 0%, var(--lumen-2) 55%, var(--neural-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- draggable floating cards ---- */
.hero-float {
  position: absolute;
  z-index: 3;
  user-select: none;
  width: 300px;
}
#float-video { top: 13%; right: 28%; }
#float-sim   { top: 50%; right:  2%; width: 390px; }
@media (max-width: 900px) {
  .hero-float { display: none; }
}

.float-drag-hint {
  font-family: var(--font-mono); font-size: .60rem;
  color: rgba(255,255,255,0.25); letter-spacing: .12em;
  text-transform: uppercase; margin-left: auto;
}
.float-handle { cursor: grab; }
.float-handle:active { cursor: grabbing; }

/* floating preview card on dark video bg */
.hero-preview-card {
  border-radius: var(--radius);
  background: rgba(8,4,18,0.60);
  border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(16px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(95,80,190,0.18);
  overflow: hidden;
  padding: 12px;
}
.hero-preview-card .bar { display:flex; gap:6px; padding-bottom:10px; }
.hero-preview-card .bar i { width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,0.18);display:inline-block; }
.hero-preview-card .scr {
  border-radius: 10px; overflow: hidden;
  aspect-ratio: 4/3; background: #000; position: relative;
}
.hero-preview-card .scr video { width:100%;height:100%;object-fit:cover;display:block; }
.hero-preview-card .cap {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: .72rem;
  color: rgba(255,255,255,0.45); margin-top: 10px; padding: 0 2px;
}
.hero-preview-card .cap .live {
  display: flex; align-items: center; gap: 5px; color: var(--lumen-2);
}
.hero-preview-card .cap .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--lumen-2); display:inline-block;
}

/* ---- simulator card ---- */
.sim-card {
  width: 100%;
  border-radius: var(--radius);
  background: rgba(8,4,18,0.72);
  border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(16px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(95,80,190,0.18);
  overflow: hidden;
}
.sim-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sim-bar i { width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,0.18);display:inline-block; }
.sim-title {
  font-family: var(--font-mono); font-size: .66rem;
  color: rgba(255,255,255,0.45); letter-spacing: .1em;
  margin-left: 4px;
}
.sim-panels {
  display: flex; align-items: center;
  padding: 10px 12px; gap: 6px;
}
.sim-panel { flex: 1; }
.sim-label {
  font-family: var(--font-mono); font-size: .62rem;
  color: rgba(255,255,255,0.30); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 5px;
  text-align: center;
}
.sim-canvas {
  display: block; width: 100%;
  aspect-ratio: 1; border-radius: 6px;
  background: #070416;
}
#simDraw { cursor: crosshair; touch-action: none; }
#simGrow { cursor: default; }
.sim-arrow {
  color: rgba(255,255,255,0.25); font-size: 1.0rem;
  flex: none; width: 18px; text-align: center; margin-top: 16px;
}
.sim-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 12px 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
  font-family: var(--font-mono); font-size: .70rem;
}
.sim-clear {
  background: none; border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.45); border-radius: 4px;
  padding: 3px 8px; cursor: pointer; font-size: .66rem;
  font-family: var(--font-mono); transition: all .15s;
}
.sim-clear:hover { border-color: rgba(255,255,255,0.55); color: #fff; }
.sim-status { color: rgba(255,255,255,0.35); flex: 1; text-align: center; }
.sim-footer .live {
  display: flex; align-items: center; gap: 5px; color: var(--myco-dim);
  font-family: var(--font-mono); font-size: .72rem;
}
.sim-footer .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--myco-dim); display: inline-block;
}

/* print button (hidden until growth done) */
.sim-print-btn {
  display: none; align-items: center; gap: 4px;
  background: linear-gradient(135deg, var(--myco), var(--lumen));
  color: #fff; border-radius: 5px;
  padding: 3px 9px; cursor: pointer;
  font-family: var(--font-mono); font-size: .66rem;
  text-decoration: none; font-weight: 600;
}
.sim-print-btn.visible { display: flex; }

/* ---- pixel mascot ---- */
.mascot-wrap {
  position: absolute;
  left: -68px;
  bottom: -2px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.mascot-bubble {
  background: rgba(255,255,255,0.96);
  border-radius: 8px 8px 8px 2px;
  padding: 4px 7px;
  font-size: .64rem;
  font-family: var(--font-mono);
  white-space: nowrap;
  color: #18181b;
  box-shadow: 0 2px 10px rgba(0,0,0,0.35);
  line-height: 1.3;
  max-width: 96px;
  text-align: center;
}
.mascot-sprite {
  image-rendering: pixelated; image-rendering: crisp-edges; display: block;
  pointer-events: auto; cursor: pointer;
}

/* mascot animation states */
.mascot-sprite.m-idle     { animation: m-bounce 2.4s ease-in-out infinite; }
.mascot-sprite.m-hint     { animation: m-bounce 0.9s ease-in-out infinite; }
.mascot-sprite.m-drawing  { animation: m-shake  0.4s ease-in-out infinite; }
.mascot-sprite.m-growing  { animation: m-bounce 0.7s ease-in-out infinite; }
.mascot-sprite.m-done     { animation: m-jump   0.55s ease-out 4; }
/* interaction states */
.mascot-sprite.m-laser  { animation: m-laser-pulse 0.18s ease-in-out infinite; }
.mascot-sprite.m-tickle { animation: m-tickle-laugh 0.22s ease-in-out infinite; }
.mascot-sprite.m-rocket { animation: none; }

@keyframes m-bounce       { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }
@keyframes m-shake        { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-2px)} 75%{transform:translateX(2px)} }
@keyframes m-jump         { 0%,100%{transform:translateY(0)} 40%{transform:translateY(-8px)} }
@keyframes m-laser-pulse  {
  0%,100% { filter: drop-shadow(0 0 3px rgba(255,50,0,.7)); }
  50%     { filter: drop-shadow(0 0 8px rgba(255,160,0,1)) brightness(1.5); }
}
@keyframes m-tickle-laugh {
  0%,100% { transform: rotate(0deg) translateY(0); }
  25%     { transform: rotate(-12deg) translateY(-3px); }
  75%     { transform: rotate(12deg) translateY(-3px); }
}

/* rocket launch — applied to .mascot-wrap */
.mascot-wrap.m-rocket-launch {
  animation: m-rocket-launch 1.5s cubic-bezier(.4,0,.4,1) forwards;
}
@keyframes m-rocket-launch {
  0%   { transform: translateY(0) scaleX(1); }
  10%  { transform: translateY(8px) scaleX(1.08); }
  38%  { transform: translateY(-520px) scaleX(0.65); opacity: 1; }
  55%  { transform: translateY(-520px) scaleX(0.65); opacity: 0; }
  80%  { transform: translateY(-22px) scale(1.15); opacity: 1; }
  91%  { transform: translateY(5px); }
  100% { transform: translateY(0); }
}

/* ---------- timeline ---------- */
.timeline {
  display: grid; grid-template-columns: repeat(3,1fr);
  position: relative; gap: 0;
  margin-top: 52px;
}
/* connecting line */
.timeline::before {
  content: ""; position: absolute;
  top: 52px; /* aligns with dot center */
  left: calc(16.66% + 8px); right: calc(16.66% + 8px);
  height: 2px;
  background: linear-gradient(to right, var(--myco), var(--lumen), var(--neural));
  z-index: 0;
}
.tl-item {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 16px; text-align: center;
}
.tl-year {
  font-family: var(--font-head); font-weight: 700;
  font-size: 2rem; color: var(--text); line-height: 1;
  margin-bottom: 20px;
}
.tl-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--myco-dim); border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--myco-dim);
  margin-bottom: 24px; position: relative; z-index: 1;
  flex-shrink: 0;
}
.tl-dot.lumen { background: var(--lumen-2); box-shadow: 0 0 0 3px var(--lumen-2); }
.tl-dot.warm  { background: var(--neural);  box-shadow: 0 0 0 3px var(--neural); }

.tl-card {
  background: var(--panel); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 22px 18px;
  box-shadow: 0 4px 20px var(--shadow); width: 100%;
}
.tl-card .label {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 8px;
}
.tl-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tl-card p  { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 680px) {
  .timeline { grid-template-columns: 1fr; gap: 14px; }
  .timeline::before { display: none; }
  .tl-item { flex-direction: row; align-items: flex-start; gap: 16px; text-align: left; padding: 0; }
  .tl-year { font-size: 1.5rem; min-width: 54px; margin: 0; }
  .tl-dot  { margin: 6px 0 0; flex-shrink: 0; }
  .tl-card { flex: 1; }
}

/* scroll-down indicator */
.scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.45); font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase; animation: bounce 2.4s ease-in-out infinite;
}
.scroll-hint svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }

@media (max-width: 680px) {
  .hero-vid .hero-content { padding: 100px 20px 80px; }
}

/* hero visual box */
.hero-art {
  border: 1.5px solid var(--border-2); border-radius: var(--radius);
  background: var(--panel-2); padding: 14px;
  box-shadow: 0 24px 70px var(--shadow-lg);
}
.hero-art .scr {
  border-radius: 12px; aspect-ratio: 4/3; position: relative; overflow: hidden;
  background: #0a0510; border: 1px solid var(--border);
}
.hero-art canvas, .hero-art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-art .bar { display: flex; gap: 6px; padding: 4px 4px 10px; }
.hero-art .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); display: inline-block; }
.hero-art .cap {
  font-family: var(--font-mono); font-size: .74rem; color: var(--muted);
  margin-top: 10px; display: flex; justify-content: space-between;
}

/* ---------- photo components ---------- */
.photo-frame {
  border-radius: 16px 22px 18px 22px / 22px 16px 22px 18px;
  overflow: hidden;
  background: #0a0510;
  box-shadow: 0 20px 60px var(--shadow-lg);
  border: 1.5px solid var(--border);
  position: relative;
}
.photo-frame img {
  width: 100%; height: 100%; display: block; object-fit: cover;
}
.photo-frame figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 10px 16px; font-family: var(--font-mono); font-size: .72rem;
  background: rgba(10,5,16,0.75); color: rgba(255,255,255,0.7);
  letter-spacing: .06em;
}

/* photo grid / gallery strip */
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-strip .photo-frame { aspect-ratio: 4/3; }
.gallery-strip .photo-frame.tall { aspect-ratio: 3/4; }
.gallery-strip .photo-frame.wide { grid-column: span 2; aspect-ratio: 16/9; }
@media (max-width: 760px) { .gallery-strip { grid-template-columns: 1fr 1fr; } .gallery-strip .photo-frame.wide { grid-column: span 2; } }
@media (max-width: 480px) { .gallery-strip { grid-template-columns: 1fr; } .gallery-strip .photo-frame.wide { grid-column: span 1; } }

/* lab results stack */
.lab-stack { display:flex; flex-direction:column; gap:24px; max-width:820px; margin:0 auto; }
.lab-stack .photo-frame { margin:0; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 18px 22px 20px 22px / 22px 18px 22px 20px;
  outline: 1px solid rgba(95,80,190,0.06);
  outline-offset: 3px;
  padding: 28px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.88) inset,
    0 2px 8px rgba(95,80,190,0.05),
    0 6px 24px rgba(95,80,190,0.07);
  transition: transform .2s, box-shadow .22s, border-color .2s, outline-color .2s;
}
/* appearance cards: photo bleeds to card edge at top */
.appear-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.appear-card .photo-frame { border-radius: 0; }
.appear-card .photo-frame img { border-radius: 0; }
.appear-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }

/* team section */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

.team-card { display: flex; gap: 22px; padding: 24px; align-items: flex-start; }
.team-photo {
  width: 88px; height: 88px; border-radius: 50%;
  overflow: hidden; flex: none;
  border: 2.5px solid var(--border-2);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-body { flex: 1; min-width: 0; }
.team-body h3 { margin-bottom: 2px; }

.team-hiring {
  align-items: stretch; padding: 0;
  border: 2px dashed var(--border-2);
  background: transparent;
  box-shadow: none;
}
.hiring-inner {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  padding: 32px 24px; height: 100%;
  color: var(--muted);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.88) inset,
    0 4px 16px rgba(95,80,190,0.09),
    0 10px 32px rgba(95,80,190,0.11);
  border-color: var(--border-2);
  outline-color: rgba(95,80,190,0.10);
}
.card .ic {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.45rem;
  margin-bottom: 18px; background: var(--myco-pale);
  border: 1.5px solid var(--border-2);
}
.card.lumen .ic { background: var(--lumen-pale); border-color: #5ECFA2; }
.card.warm  .ic { background: var(--neural-pale); border-color: #E6BC5A; }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }

/* pillar card accent top border */
.pillar { position: relative; padding-top: 32px; }
.pillar::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; border-radius: 4px 4px 0 0;
  background: var(--accent, var(--myco));
}
.pillar .d { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent, var(--myco)); margin-bottom: 10px; }

/* color tags */
.tag-myco   { color: var(--myco); }
.tag-lumen  { color: var(--lumen); }
.tag-neural { color: var(--neural); }

/* ---------- section heading ---------- */
.shead { max-width: 680px; margin-bottom: 48px; }
.shead.center { margin-left: auto; margin-right: auto; }
.shead p { color: var(--muted); font-size: 1.08rem; }

/* ---------- split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split.rev .text-col { order: 2; }
@media (max-width: 840px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.rev .text-col { order: 0; } }

/* ---------- visual placeholder (canvas) ---------- */
.visual {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  min-height: 300px; overflow: hidden; position: relative;
  background: var(--bg-2);
  box-shadow: 0 10px 40px var(--shadow);
}
.visual canvas { width: 100%; height: 100%; display: block; }

/* ---------- how it works steps ---------- */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  background: var(--panel); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 22px 24px;
  box-shadow: 0 2px 10px var(--shadow);
}
.step .num {
  counter-increment: step; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
  background: var(--myco-pale); border: 1.5px solid var(--border-2); color: var(--myco);
}
.step .num::before { content: counter(step, decimal-leading-zero); }
.step h3 { color: var(--text); margin-bottom: 5px; }
.step p  { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- kit item list ---------- */
.kititem {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 14px; align-items: center;
  padding: 16px 4px; border-bottom: 1.5px solid var(--border);
}
.kititem:last-child { border-bottom: none; }
.kititem .em { font-size: 1.45rem; }
.kititem h4 { margin: 0; font-family: var(--font-head); font-size: 1rem; color: var(--text); }
.kititem p  { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.kititem .q { font-family: var(--font-mono); font-size: .78rem; color: var(--muted-2); }

/* ---------- checklist ---------- */
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 11px; color: var(--text); }
.checks li::before { content: "✶"; position: absolute; left: 0; color: var(--myco); }
.checks li b { color: var(--text); font-weight: 600; }

/* ---------- pricing ---------- */
/* summer early bird banner */
.summer-banner { background:linear-gradient(90deg,var(--lumen-soft,#eef6ff) 0%,#fdf6ee 100%); border-bottom:1.5px solid var(--border); text-align:center; padding:13px 20px; font-size:.92rem; color:var(--text); }
.summer-badge { display:inline-block; background:var(--warm,#f97316); color:#fff; font-size:.72rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; border-radius:20px; padding:3px 10px; margin-right:10px; vertical-align:middle; }

.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.plan { display: flex; flex-direction: column; }
.plan.feat {
  border-color: var(--myco); position: relative;
  box-shadow: 0 0 0 1px var(--myco), 0 20px 60px rgba(95,80,190,0.18);
}
.plan .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--myco); color: #fff;
  font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 14px; border-radius: 999px;
}
.plan .pname { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--text); }
.plan .price { font-family: var(--font-head); font-size: 2.5rem; font-weight: 700; color: var(--text); margin: 6px 0 2px; }
.plan .price span { font-size: 1rem; font-weight: 400; color: var(--muted); font-family: var(--font-body); }
.plan ul { list-style: none; padding: 0; margin: 18px 0; flex: 1; }
.plan ul li { padding: 9px 0 9px 26px; position: relative; color: var(--text); font-size: .93rem; border-top: 1.5px solid var(--border); }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--lumen); font-weight: 700; }
.plan ul li.off { color: var(--muted-2); }
.plan ul li.off::before { content: "–"; color: var(--muted-2); }

/* ---------- FAQ ---------- */
.faq { border: 1.5px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; background: var(--panel); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; font-family: var(--font-head); font-weight: 600; color: var(--text); display: block; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--myco); font-size: 1.4rem; transition: transform .2s; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 22px 20px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1.5px solid var(--border-2); border-radius: var(--radius);
  background: linear-gradient(130deg, var(--myco-pale) 0%, var(--lumen-pale) 50%, var(--neural-pale) 100%);
  padding: 60px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(95,80,190,0.12), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: var(--text); }
.cta-band p  { color: var(--muted); max-width: 52ch; margin: 0 auto 28px; }

/* ---------- pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-family: var(--font-mono); font-size: .77rem; padding: 6px 13px;
  border: 1.5px solid var(--border-2); border-radius: 999px;
  color: var(--muted); background: var(--myco-pale);
}
.pill b { color: var(--myco); font-weight: 600; }

/* ---------- paper / quote card ---------- */
.paper-card {
  border: 2px solid var(--myco); border-radius: var(--radius);
  padding: 32px; background: linear-gradient(135deg, var(--myco-pale), #fff 60%);
  box-shadow: 0 8px 40px rgba(95,80,190,0.14);
}

/* ---------- footer ---------- */
footer.site {
  border-top: 1.5px solid var(--border);
  background: var(--bg-2); padding: 56px 0 28px; margin-top: 40px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px; align-items: start;
}
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-tagline { font-size: .88rem; max-width: 28ch; line-height: 1.6; margin: 0; }
footer.site h5 { font-family: var(--font-head); color: var(--text); font-size: .94rem; margin: 0 0 14px; }
footer.site a { display: block; color: var(--muted); font-size: .91rem; margin-bottom: 9px; text-decoration: none; }
footer.site a:hover { color: var(--myco); }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 20px; border-top: 1.5px solid var(--border);
  color: var(--muted-2); font-size: .82rem;
}
.foot-legal { font-size: .76rem; color: var(--muted-2); }
.foot-legal a { display: inline; color: var(--muted-2); font-size: inherit; margin: 0; }
.foot-legal a:hover { color: var(--myco); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; gap: 20px; } .foot-bottom { flex-direction: column; align-items: flex-start; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in  { opacity: 1; transform: none; }

/* ---------- page hero (interior pages) ---------- */
.phead { padding: 60px 0 28px; }
.phead p { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }

/* ---------- form inputs ---------- */
input, select, textarea {
  background: var(--bg-2); border: 1.5px solid var(--border-2);
  border-radius: 12px; color: var(--text); font-family: inherit; font-size: 1rem;
  padding: 12px 14px; width: 100%; transition: border-color .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--myco);
  box-shadow: 0 0 0 3px rgba(95,80,190,0.12);
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }

/* ---------- misc ---------- */
.note { font-size: .82rem; color: var(--muted-2); }

/* organic blob decorations */
.blob {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(60px); opacity: 0.5;
}
.blob-purple { background: radial-gradient(circle, var(--myco-pale), transparent 70%); }
.blob-green  { background: radial-gradient(circle, var(--lumen-pale), transparent 70%); }
.blob-orange { background: radial-gradient(circle, var(--neural-pale), transparent 70%); }

/* =========================================================
   Global mascot desktop-pet widget (fixed bottom-right)
   ========================================================= */
.mascot-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  pointer-events: none;
}
.mascot-widget > * { pointer-events: auto; }

/* FAB — no background, just the house + bubble */
.mascot-fab {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  user-select: none; pointer-events: none;
}
.mascot-fab > * { pointer-events: auto; }

/* Speech bubble */
.mfab-bubble {
  background: #fff;
  border: 1.5px solid rgba(95,80,190,0.20);
  border-radius: 10px 10px 10px 3px;
  padding: 5px 10px;
  font-size: .72rem; font-family: var(--font-mono);
  color: var(--text); white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
  max-width: 170px; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none; align-self: flex-end; margin-right: 10px;
}

/* ── Pixel-art tree hollow ───────────────────────────────────── */
.mascot-house {
  cursor: pointer; user-select: none;
  filter: drop-shadow(0 5px 18px rgba(30,10,0,0.42));
  transition: filter .25s ease, transform .2s ease;
}
.mascot-house:hover {
  filter: drop-shadow(0 8px 28px rgba(95,80,190,0.28)) drop-shadow(0 3px 10px rgba(30,10,0,0.3));
  transform: translateY(-2px);
}

/* Canvas container — sized to match PixelHollow output (120×160) */
.hollow-wrap {
  position: relative;
  width: 90px; height: 120px;
}

/* Hollow background canvas (pixel art drawn by PixelHollow) */
#hollow-bg {
  position: absolute; top: 0; left: 0;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Sprite canvas — inside hollow: top bark is 4 rows (20px) + mold+gap 2 rows (10px) + 1 row gap = top:35, centered in 70px interior (14 cols from col5-18), sprite 50px → left margin 10px → left:35 */
#mfab-canvas {
  position: absolute !important;
  top: 35px !important; left: 20px !important;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Props float above sprite, can overflow out of hollow upward */
.house-props {
  position: absolute; z-index: 2;
  top: 35px; left: 20px;
  width: 50px; height: 0;
  overflow: visible;
  display: flex; align-items: flex-end; justify-content: center;
}
.house-floor { display: none; }

/* ── Prop animations ──────────────────────────────────── */
@keyframes zzz-rise {
  0%   { opacity: 0; transform: translate(0,2px) scale(0.5); }
  20%  { opacity: 1; transform: translate(0,0) scale(1); }
  80%  { opacity: 0.7; transform: translate(6px,-16px) scale(0.8); }
  100% { opacity: 0; transform: translate(10px,-26px) scale(0.4); }
}
.prop-zzz {
  position: absolute; bottom: 6px;
  font-family: var(--font-mono); font-weight: 900; line-height: 1;
  color: #5F50BE; pointer-events: none;
  animation: zzz-rise 2.6s ease-in-out infinite;
}
.prop-zzz:nth-child(1) { left: 42%; font-size: 9px;  animation-delay: 0s; }
.prop-zzz:nth-child(2) { left: 50%; font-size: 11px; animation-delay: 0.85s; }
.prop-zzz:nth-child(3) { left: 58%; font-size: 8px;  animation-delay: 1.7s; }

@keyframes sparkle-drift {
  0%   { opacity: 0; transform: translateY(4px) rotate(0deg) scale(0.4); }
  30%  { opacity: 1; transform: translateY(-4px) rotate(90deg) scale(1); }
  70%  { opacity: 0.8; transform: translateY(-14px) rotate(220deg) scale(0.7); }
  100% { opacity: 0; transform: translateY(-22px) rotate(360deg) scale(0.3); }
}
.prop-star {
  position: absolute; bottom: 5px; color: #5F50BE;
  animation: sparkle-drift 3s ease-in-out infinite; pointer-events: none;
}
.prop-star:nth-child(1) { left: 18%; font-size: 10px; animation-delay: 0s; }
.prop-star:nth-child(2) { left: 50%; font-size: 8px;  animation-delay: 1s; }
.prop-star:nth-child(3) { left: 74%; font-size: 11px; animation-delay: 2s; }

@keyframes munch {
  0%, 100% { transform: translateX(-50%) scale(1) rotate(-6deg); }
  50%      { transform: translateX(-50%) scale(1.15) rotate(6deg) translateY(-2px); }
}
.prop-food {
  position: absolute; bottom: 3px; left: 50%;
  transform: translateX(-50%);
  font-size: 15px; animation: munch 0.45s ease-in-out infinite;
  pointer-events: none; display: block;
}

@keyframes screen-pulse {
  from { box-shadow: 0 0 4px rgba(95,80,190,0.35); }
  to   { box-shadow: 0 0 10px rgba(95,80,190,0.75); filter: brightness(1.08); }
}
.prop-screen {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  animation: screen-pulse 0.55s ease-in-out infinite alternate;
  pointer-events: none;
  image-rendering: pixelated;
}

/* ── Mascot state animations ─────────────────────────── */
.mascot-sprite.m-sleeping {
  animation: sprite-breathe 4s ease-in-out infinite;
}
@keyframes sprite-breathe {
  0%, 100% { transform: translateY(0) scaleY(1); }
  50%      { transform: translateY(1px) scaleY(0.98); }
}
.mascot-sprite.m-daydream {
  animation: sprite-sway 5s ease-in-out infinite;
}
@keyframes sprite-sway {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25%      { transform: rotate(-8deg) translateY(-3px); }
  75%      { transform: rotate(8deg) translateY(-3px); }
}
.mascot-sprite.m-eating {
  animation: sprite-nod 0.5s ease-in-out infinite;
}
@keyframes sprite-nod {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50%      { transform: rotate(-12deg) translateY(3px); }
}
.mascot-sprite.m-gaming {
  animation: sprite-lean 0.65s steps(2) infinite;
}
@keyframes sprite-lean {
  0%   { transform: translateX(-3px) rotate(-2deg); }
  100% { transform: translateX(3px) rotate(2deg); }
}
.mascot-sprite.m-idle {
  animation: sprite-bob 3.5s ease-in-out infinite;
}
@keyframes sprite-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* ── Chat panel ──────────────────────────────────────── */
.mascot-chat {
  width: 292px; background: #fff; border-radius: 16px;
  box-shadow: 0 14px 56px rgba(0,0,0,0.16), 0 0 0 1px rgba(95,80,190,0.10);
  border: 1px solid var(--border); overflow: hidden;
  transform-origin: bottom right;
  animation: chat-open .2s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes chat-open {
  from { opacity: 0; transform: scale(.85) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.chat-hdr {
  background: var(--myco); color: #fff; padding: 11px 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600;
  letter-spacing: .03em;
}
.chat-x {
  background: none; border: none; color: rgba(255,255,255,.7);
  cursor: pointer; font-size: 1rem; line-height: 1; padding: 0;
  transition: color .15s;
}
.chat-x:hover { color: #fff; }
.chat-msgs {
  max-height: 200px; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  scroll-behavior: smooth;
}
.chat-msg {
  padding: 8px 11px; border-radius: 10px; font-size: .82rem; line-height: 1.45;
  max-width: 90%;
}
.chat-msg-q {
  background: var(--myco-pale); color: var(--text);
  align-self: flex-end; border-radius: 10px 10px 2px 10px;
  font-style: italic;
}
.chat-msg-a {
  background: var(--bg-2); color: var(--text);
  border-left: 3px solid var(--myco);
  align-self: flex-start; border-radius: 0 10px 10px 10px;
}
.chat-qs {
  padding: 10px 12px 12px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 5px;
  max-height: 180px; overflow-y: auto;
}
.chat-q-btn {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 10px;
  font-size: .75rem; font-family: var(--font-mono);
  color: var(--text); cursor: pointer; text-align: left;
  transition: background .15s, border-color .15s, color .15s;
  line-height: 1.35;
}
.chat-q-btn:hover {
  background: var(--myco-pale); border-color: var(--myco); color: var(--myco);
}
@media (max-width: 600px) {
  .mascot-widget { bottom: 16px; right: 16px; }
  .mascot-chat { width: calc(100vw - 40px); }
}

/* ── Social media bar (inside .foot-brand) ───────────────────── */
.foot-social {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
footer.site .soc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: var(--panel); border: 1.5px solid var(--border);
  color: var(--muted); text-decoration: none; line-height: 1;
  margin-bottom: 0; padding: 0;
  transition: background .18s, border-color .18s, color .18s, transform .18s;
}
footer.site .soc-btn svg { display: block; flex-shrink: 0; }
footer.site .soc-btn:hover {
  background: var(--myco-pale); border-color: var(--myco);
  color: var(--myco); transform: translateY(-2px);
}

/* ── Blind-box color gallery ─────────────────────────────── */
.color-grid {
  display: grid; gap: 14px; margin-top: 20px;
}
.color-grid-4 { grid-template-columns: repeat(4, 1fr); }
.color-grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) {
  .color-grid-4, .color-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
.color-card {
  border-radius: 12px; overflow: hidden;
  border: 1.5px solid var(--border);
  background: #f8f8fb; position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
}
.color-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.color-card img {
  width: 100%; aspect-ratio: 1/1;
  object-fit: cover; display: block;
}
.color-label {
  font-size: .72rem; font-family: var(--font-mono);
  color: var(--muted-2); text-align: center;
  padding: 7px 4px 8px; letter-spacing: .06em;
  background: var(--bg-2); border-top: 1px solid var(--border);
}
.color-card.soon { opacity: 0.78; }
.soon-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(252,211,77,0.22); color: #92700a;
  font-size: .65rem; font-family: var(--font-mono);
  padding: 3px 8px; border-radius: 999px;
  letter-spacing: .08em; border: 1px solid rgba(252,211,77,0.5);
}

/* ── Editorial / hand-drawn integration ────────────────────── */
/* Page-level section heads: the sub-line under h1 uses display italic */
.phead p   { font-size: 1.12rem; color: var(--muted); max-width: 52ch; }

/* Section intro heads in light context — keep Space Grotesk weight but allow display for .shead h2 */
.shead h2  { letter-spacing: -0.015em; }

/* CTA band uses display for warmth */

/* Handwritten note style for .note class — small captions, fine print */
.note {
  font-size: .88rem; font-weight: 400;
  color: var(--muted-2); line-height: 1.5;
}

/* Sketch underline on .grad text in large headings — a thin wavy-ish accent */
h1 .grad::after, h2 .grad::after {
  content: none; /* reserved — add per-instance if desired */
}

/* ---- Paper reader modal ---- */
.pm-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.pm-overlay.is-open {
  opacity: 1; pointer-events: auto;
}
.pm-backdrop {
  position: absolute; inset: 0;
  background: rgba(8,6,18,0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.pm-box {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 20px;
  padding: 0 8px;
  max-width: 96vw;
}
.pm-stage {
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
  transform: scale(0.94);
  transition: transform 0.25s ease;
}
.pm-overlay.is-open .pm-stage { transform: scale(1); }
.pm-img {
  display: block;
  max-height: 88vh;
  max-width: 76vw;
  width: auto;
  height: auto;
}
.pm-counter {
  position: absolute; bottom: 0; left: 0; right: 0;
  text-align: center;
  padding: 6px 0 8px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  color: rgba(0,0,0,0.38);
  background: rgba(255,255,255,0.85);
}
.pm-nav {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
  color: #fff; font-size: 1.8rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.pm-nav:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.55); }
.pm-nav:disabled { opacity: 0.2; cursor: default; }
.pm-close {
  position: absolute; top: -44px; right: 0;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.85); font-size: 1rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.pm-close:hover { background: rgba(255,255,255,0.22); }

/* Pill tags (specs etc) get slightly organic shape too */
.pill {
  border-radius: 3px 7px 4px 7px / 7px 4px 7px 3px;
}

/* Badge on pricing card */
.badge {
  font-size: .88rem; font-weight: 700;
  letter-spacing: .02em;
}

/* ── Page-header atmospheric background ─────────────────────────── */
.phead {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse at 78% 16%, rgba(95,80,190,0.09) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(26,143,104,0.06) 0%, transparent 48%);
}

/* ---- hand-drawn SVG icons ---- */
.ic-svg {
  display: block;
  width: 26px; height: 26px;
  flex-shrink: 0;
}
/* inline contexts: em spans, pills, hf-pills */
.em .ic-svg,
.pill .ic-svg,
.hf-pill .ic-svg {
  display: inline-block;
  width: 1.15em; height: 1.15em;
  vertical-align: -0.2em;
}
/* lumen card: shift purple → green via filter */
.card.lumen .ic .ic-svg {
  filter: hue-rotate(148deg) saturate(1.1);
}
/* warm card: shift purple → amber */
.card.warm .ic .ic-svg {
  filter: hue-rotate(220deg) saturate(1.4) brightness(0.9);
}

/* ---- How it works — paired step + thumbnail layout ---- */
.hiw-pairs { display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.hiw-row { display: grid; grid-template-columns: 1fr 110px; gap: 0 56px; align-items: center; }
.hiw-thumb { width: 110px; height: 110px; overflow: hidden; border-radius: 4px; flex-shrink: 0; }
@media (max-width: 680px) { .hiw-thumb { display: none; } }


/* ---- sketch illustrations (section right columns) ---- */
.sketch-aside img { border-radius: 4px; }
@media (max-width: 980px) {
  .sketch-grid { grid-template-columns: 1fr !important; }
  .sketch-aside { display: none; }
}
