/* ════════════════════════════════════════════════════════════════════
   Vyoma Labs — labs.vyomagroup.online
   Warm cream paper · ink line art · Vyoma orange
   ════════════════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────────────────── */
:root {
  --paper: #f4efe6;
  --paper-2: #ece4d6;
  --card: #fbf8f2;
  --ink: #1f1b16;
  --ink-2: #4a433b;
  --muted: #847a6e;
  --line: #ddd3c3;
  --soft: #e7dccb;

  --orange: #e8622a;
  --orange-h: #d4561f;
  --f-orange: #f4a27a;
  --f-clay: #efc3a6;
  --f-sun: #f3d48a;
  --f-sage: #c9d7b4;
  --f-sky: #bfd0dd;

  --stroke: #1f1b16;
  --grain: .45;
  --grain-blend: multiply;
  --shadow: 0 1px 2px rgba(60, 40, 20, .04), 0 18px 40px -18px rgba(60, 40, 20, .22);

  --f-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Playfair Display', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --max: 1180px;
  --nav-h: 68px;
  --r: 28px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #16130f; --paper-2: #1d1914; --card: #1f1b16; --ink: #f1e9dc; --ink-2: #cfc4b3; --muted: #968b7c;
    --line: #2f2922; --soft: #2a241d; --orange: #f07440; --orange-h: #f7864f;
    --f-orange: #c9643a; --f-clay: #a8735a; --f-sun: #b8994e; --f-sage: #7f9068; --f-sky: #6f8596;
    --stroke: #f1e9dc; --grain: .3; --grain-blend: overlay;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 20px 44px -18px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #16130f; --paper-2: #1d1914; --card: #1f1b16; --ink: #f1e9dc; --ink-2: #cfc4b3; --muted: #968b7c;
  --line: #2f2922; --soft: #2a241d; --orange: #f07440; --orange-h: #f7864f;
  --f-orange: #c9643a; --f-clay: #a8735a; --f-sun: #b8994e; --f-sage: #7f9068; --f-sky: #6f8596;
  --stroke: #f1e9dc; --grain: .3; --grain-blend: overlay;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 20px 44px -18px rgba(0,0,0,.7);
  color-scheme: dark;
}

/* ─── BASE ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 10px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* paper texture */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: var(--grain); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* line-art primitives */
.line { fill: none; stroke: var(--stroke); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.line.thin { stroke-width: 1.5; opacity: .55; }
.line.dash { stroke-dasharray: 3 7; }
.fill { stroke: none; transition: fill .4s var(--ease); }
.f-orange { fill: var(--f-orange); } .f-clay { fill: var(--f-clay); } .f-sun { fill: var(--f-sun); }
.f-sage { fill: var(--f-sage); } .f-sky { fill: var(--f-sky); }

/* draw-on: JS sets pathLength=1 on lines and adds .will-draw, then .is-drawn on the parent */
.js .will-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .is-drawn .will-draw { animation: draw 1.8s var(--ease) forwards; animation-delay: var(--d, 0s); }

/* ─── NAV ────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-inner { max-width: var(--max); height: var(--nav-h); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.flask { width: 26px; height: 26px; color: var(--ink); }
.flask-liquid { fill: var(--orange); transform-origin: 16px 26px; animation: slosh 4s ease-in-out infinite; }
.flask-bubble { fill: var(--orange); opacity: 0; animation: bubble 3s ease-in infinite; }
.flask-bubble.b2 { animation-delay: 1.4s; }
.brand:hover .flask { animation: tilt .8s var(--spring); }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: .95rem; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a.is-active { color: var(--ink); background: var(--paper-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: border-color .2s, transform .3s var(--spring); }
.theme-btn:hover { border-color: var(--ink); transform: rotate(-15deg); }
.theme-btn svg { position: absolute; width: 20px; height: 20px; transition: opacity .3s, transform .5s var(--spring); }
.i-moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
.is-dark .i-sun { opacity: 0; transform: rotate(60deg) scale(.6); }
.is-dark .i-moon { opacity: 1; transform: none; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.8px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--spring), top .35s var(--spring); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.menu { display: none; }

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 1rem; white-space: nowrap; transition: transform .3s var(--spring), background .2s, border-color .2s, color .2s; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .92rem; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-h); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { transform: translateY(-2px); }
.btn-line { border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-soft { background: var(--paper-2); border: 1px solid var(--line); min-width: 280px; }
.btn-soft:hover { background: var(--soft); transform: translateY(-2px); }

/* ─── HERO ───────────────────────────────────────────────────────── */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); display: grid; place-items: center; overflow: hidden; padding: 40px 0 70px; }
.shapes { position: absolute; inset: 0; pointer-events: none; }
.shape { position: absolute; overflow: visible; will-change: transform; }
.s-blob { width: clamp(220px, 30vw, 400px); top: -6%; left: -5%; }
.s-flower { width: clamp(170px, 22vw, 290px); top: 8%; right: -3%; }
.s-pill { width: clamp(150px, 18vw, 240px); bottom: 2%; left: 4%; }
.s-circle { width: clamp(200px, 26vw, 340px); bottom: -14%; right: 8%; }
.s-star { width: clamp(56px, 6vw, 84px); top: 20%; left: 30%; }
.s-squiggle { width: clamp(110px, 12vw, 170px); bottom: 20%; right: 38%; }
.shape .inner { animation: float 9s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.s-flower .inner { animation-duration: 11s; animation-delay: -3s; }
.s-pill .inner { animation-duration: 10s; animation-delay: -5s; }
.s-circle .inner { animation-duration: 12s; animation-delay: -2s; }
.s-star .inner { animation: spin 26s linear infinite; }
.s-squiggle .inner { animation-duration: 8s; animation-delay: -4s; }
.js .shapes .fill { opacity: 0; transition: opacity 1.2s var(--ease) .6s, fill .4s; }
.js .shapes.is-drawn .fill { opacity: 1; }

.hero-lockup { position: relative; z-index: 2; text-align: center; padding: 0 20px; max-width: 820px; }
.lockup-mark { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; }
.flask-lg { width: clamp(34px, 3.6vw, 46px); height: auto; }
.hero h1 { margin-top: 18px; font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.25; letter-spacing: -.015em; color: var(--ink-2); }
.hero h1 em { font-family: var(--f-serif); font-style: italic; font-weight: 500; color: var(--orange); }
.scroll-cue { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-top: 40px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 70%, transparent); transition: border-color .2s; }
.scroll-cue svg { width: 20px; height: 20px; animation: nudge 2.2s ease-in-out infinite; }
.scroll-cue:hover { border-color: var(--ink); }
.js .hero-lockup > * { opacity: 0; transform: translateY(16px); animation: rise .9s var(--ease) forwards; }
.js .hero-lockup > :nth-child(2) { animation-delay: .15s; }
.js .hero-lockup > :nth-child(3) { animation-delay: .35s; }

/* ─── SECTIONS ───────────────────────────────────────────────────── */
.section { position: relative; padding: clamp(72px, 10vw, 130px) 0; }
.head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.kicker { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.kicker.center { text-align: center; }
.head h2, .connect h2 { margin-top: 12px; font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -.025em; }
.lede { margin-top: 12px; color: var(--ink-2); font-size: 1.08rem; }

/* featured */
.feature { display: grid; grid-template-columns: 1.05fr 1fr; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.feature-art { position: relative; min-height: 460px; display: grid; place-items: center; background: color-mix(in srgb, var(--f-clay) 45%, var(--card)); overflow: hidden; }
.art-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-lines .spin { transform-origin: 240px 190px; animation: spin 60s linear infinite; }
.art-lines .waves path { animation: pulse 2.4s ease-in-out infinite; }
.art-lines .waves path:nth-child(2) { animation-delay: .2s; } .art-lines .waves path:nth-child(3) { animation-delay: .4s; }
.feature-logo { position: relative; width: clamp(160px, 22vw, 230px); height: auto; animation: float 7s ease-in-out infinite; filter: drop-shadow(0 22px 28px rgba(60, 40, 20, .22)); }
.say { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .92rem; font-weight: 500; white-space: nowrap; box-shadow: var(--shadow); }
.say span:last-child { transition: opacity .3s; }
.say-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: blink 1.4s ease-in-out infinite; }
.feature-body { padding: clamp(28px, 4.5vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ea65a; animation: ping 2s infinite; }
.feature-body h3 { font-weight: 600; font-size: clamp(2.4rem, 4.6vw, 3.4rem); line-height: 1; letter-spacing: -.03em; }
.feature-tag { font-family: var(--f-serif); font-style: italic; font-size: 1.35rem; color: var(--orange); margin-top: -4px; }
.feature-body > p:not(.status):not(.feature-tag) { color: var(--ink-2); }
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px 0; border-block: 1px solid var(--line); }
.facts strong { display: block; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.facts span { font-size: .84rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* card grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.card { display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: opacity .9s var(--ease), transform .45s var(--spring), box-shadow .45s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); }
.card-art { height: 190px; display: grid; place-items: center; }
.card-art svg { width: 70%; max-width: 220px; height: auto; overflow: visible; transition: transform .6s var(--spring); }
.card:hover .card-art svg { transform: scale(1.06) rotate(-2deg); }
.art-orange { background: color-mix(in srgb, var(--f-orange) 40%, var(--card)); }
.art-sage { background: color-mix(in srgb, var(--f-sage) 50%, var(--card)); }
.art-sky { background: color-mix(in srgb, var(--f-sky) 50%, var(--card)); }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card-body h3 { font-weight: 600; font-size: 1.45rem; letter-spacing: -.02em; }
.card-body p:not(.card-meta) { color: var(--ink-2); font-size: .98rem; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 600; font-size: .95rem; align-self: flex-start; }
.card-link svg { width: 18px; height: 18px; transition: transform .3s var(--spring); }
.card:hover .card-link svg, .card-link:hover svg { transform: translateX(4px); }
.card-soon .card-link { border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.rise { animation: up 3s ease-in infinite; transform-box: fill-box; }
.rise.r2 { animation-delay: 1s; } .rise.r3 { animation-delay: 2s; }
.grow { transform-box: fill-box; transform-origin: right bottom; animation: leaf 4s ease-in-out infinite; }
.grow.g2 { transform-origin: left bottom; animation-delay: -2s; }

/* about */
.about { background: var(--paper-2); }
.statement { max-width: 920px; margin: 18px auto 0; text-align: center; font-weight: 500; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.22; letter-spacing: -.025em; }
.statement .w { color: color-mix(in srgb, var(--ink) 22%, transparent); transition: color .35s var(--ease); }
.statement .w.on { color: var(--ink); }
.statement .w.on.hl { color: var(--orange); }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 48px); margin-top: clamp(56px, 8vw, 96px); }
.about-item svg { width: 52px; height: 52px; margin-bottom: 18px; overflow: visible; }
.about-item .line { stroke: var(--orange); stroke-width: 2.4; }
.about-item h3 { font-weight: 600; font-size: 1.3rem; letter-spacing: -.015em; margin-bottom: 6px; }
.about-item p { color: var(--ink-2); }
.about-item:hover svg { animation: tilt .8s var(--spring); }

/* family */
.family { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.fam { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 22px; padding: 22px 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); transition: opacity .9s var(--ease), transform .4s var(--spring), border-color .25s; }
.fam:hover { transform: translateX(6px); border-color: var(--ink); }
.fam svg { width: 52px; height: 52px; overflow: visible; }
.fam:hover svg { animation: tilt .8s var(--spring); }
.fam h3 { font-weight: 600; font-size: 1.25rem; letter-spacing: -.015em; }
.fam p { color: var(--ink-2); font-size: .97rem; }
.fam-go { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); transition: background .2s, color .2s, transform .3s var(--spring); }
.fam:hover .fam-go { background: var(--ink); color: var(--paper); transform: rotate(45deg); }

/* connect */
.connect { text-align: center; padding-bottom: 0; }
.connect h2 { margin-top: 0; }
.connect-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 34px; }
.stack { position: relative; height: 240px; max-width: 620px; margin: clamp(48px, 7vw, 80px) auto 0; }
.st { position: absolute; bottom: 0; overflow: visible; }
.st .line { stroke-width: 2.4; }
.st-hex { width: 130px; left: 2%; }
.st-circle { width: 120px; left: 20%; bottom: 116px; }
.st-hex2 { width: 130px; left: 34%; }
.st-flower { width: 124px; right: 0; bottom: 103px; }
.st-flower .line { stroke-width: 4.2; }
.st-square { width: 116px; right: 2%; }
.ground { position: absolute; left: 0; right: 0; bottom: 0; border-top: 2px solid var(--stroke); }
.js .stack .st { opacity: 0; transform: translateY(-260px) rotate(var(--r0, -20deg)); }
.js .stack.is-in .st { animation: drop 1s var(--spring) forwards; animation-delay: var(--d); }
.st-hex { --d: .05s; --r0: -30deg; } .st-hex2 { --d: .2s; --r0: 25deg; } .st-square { --d: .35s; --r0: -15deg; }
.st-circle { --d: .55s; --r0: 40deg; } .st-flower { --d: .7s; --r0: -35deg; }

/* physics playground */
.playground { position: relative; overflow-x: clip; height: 400px; margin-top: clamp(40px, 6vw, 70px); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.playground[hidden] { display: none; }
.pg-ground { position: absolute; left: 0; right: 0; bottom: 0; border-top: 2px solid var(--stroke); pointer-events: none; }
.pg-shape { position: absolute; left: 0; top: 0; cursor: grab; touch-action: none; will-change: transform; -webkit-tap-highlight-color: transparent; }
.pg-shape svg { width: 100%; height: 100%; overflow: visible; }
.pg-inner { transition: transform .25s var(--spring); transform-box: fill-box; transform-origin: center; }
.pg-shape .line { stroke-width: 2.4; }
.pg-shape:hover .pg-inner { transform: scale(1.04); }
.pg-shape.is-held { z-index: 3; cursor: grabbing; }
.pg-shape.is-held .pg-inner { transform: scale(1.1); }
.pg-shape.is-held svg { filter: drop-shadow(0 14px 18px rgba(40, 25, 10, .22)); }
.pg-shape.is-bump .pg-inner { animation: squish .38s var(--spring); }
.pg-shape.is-leaving { opacity: 0; transition: opacity .3s; }
.playground.is-grabbing, .playground.is-grabbing * { cursor: grabbing; }
.pg-face .eye { fill: var(--stroke); transform-box: fill-box; transform-origin: center; animation: pgBlink 5s infinite; animation-delay: inherit; }
.pg-face .mouth { fill: none; stroke: var(--stroke); stroke-width: 2; stroke-linecap: round; }
.pg-face .mouth-o { fill: var(--stroke); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.3); transition: opacity .15s, transform .25s var(--spring); }
.is-held .pg-face .mouth { opacity: 0; }
.is-held .pg-face .mouth-o { opacity: 1; transform: none; }
.is-held .pg-face .eye { animation: none; transform: scaleY(1.25); }
.pg-hint { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); white-space: nowrap; pointer-events: none; transition: opacity .5s, transform .5s var(--ease); }
.pg-hint svg { width: 20px; height: 20px; animation: wave 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
.pg-hint.is-gone { opacity: 0; transform: translate(-50%, -8px); }
.pg-tools { position: absolute; top: 44px; right: 0; z-index: 4; display: flex; gap: 6px; }
.pg-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 85%, transparent); backdrop-filter: blur(6px); font-size: .86rem; font-weight: 600; color: var(--ink-2); transition: border-color .2s, color .2s, transform .3s var(--spring); }
.pg-btn svg { width: 17px; height: 17px; }
.pg-btn:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.pg-btn:active { transform: scale(.94); }
.playground.is-shaking .pg-ground { animation: groundShake .5s ease-in-out; }
@keyframes squish { 0% { transform: scale(1); } 30% { transform: scale(1.12, .86); } 60% { transform: scale(.94, 1.06); } 100% { transform: scale(1); } }
@keyframes pgBlink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } }
@keyframes groundShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

/* footer */
.footer { padding: 48px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-h { font-weight: 600; margin-bottom: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--orange); }
.wordmark { margin: clamp(36px, 6vw, 60px) 0 18px; font-weight: 600; font-size: clamp(3.2rem, 12.5vw, 10.5rem); line-height: .9; letter-spacing: -.055em; white-space: nowrap; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.footer-bottom span:first-child { margin-right: auto; }
.footer-bottom a:hover { color: var(--ink); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.in.card, .js .reveal.in.fam { transition-delay: 0s; }

/* ─── KEYFRAMES ──────────────────────────────────────────────────── */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@keyframes slosh { 0%, 100% { transform: skewY(0); } 50% { transform: skewY(-3deg); } }
@keyframes bubble { 0% { opacity: 0; transform: translateY(2px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-9px); } }
@keyframes tilt { 0% { transform: rotate(0); } 35% { transform: rotate(-12deg); } 70% { transform: rotate(6deg); } 100% { transform: rotate(0); } }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(78, 166, 90, .45); } 80%, 100% { box-shadow: 0 0 0 8px rgba(78, 166, 90, 0); } }
@keyframes up { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-46px); opacity: 0; } }
@keyframes leaf { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
@keyframes drop { 0% { opacity: 0; transform: translateY(-260px) rotate(var(--r0)); } 15% { opacity: 1; } 100% { opacity: 1; transform: translateY(0) rotate(0); } }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .feature { grid-template-columns: 1fr; }
  .feature-art { min-height: 380px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .grid .card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: block; }
  .menu { display: grid; gap: 2px; padding: 0 16px; max-height: 0; overflow: hidden; background: var(--paper); border-bottom: 1px solid transparent; transition: max-height .45s var(--ease), padding .45s var(--ease), border-color .3s; }
  .menu a { padding: 14px 8px; font-size: 1.15rem; font-weight: 500; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
  .menu a:last-child { border-bottom: 0; }
  .menu.is-open { max-height: 420px; padding: 6px 16px 14px; border-bottom-color: var(--line); }
  .menu.is-open a { opacity: 1; transform: none; }
  .menu.is-open a:nth-child(2) { transition-delay: .04s; } .menu.is-open a:nth-child(3) { transition-delay: .08s; }
  .menu.is-open a:nth-child(4) { transition-delay: .12s; } .menu.is-open a:nth-child(5) { transition-delay: .16s; }
  .about-cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --nav-h: 60px; --r: 22px; }
  body { font-size: 16px; }
  .container, .nav-inner { padding: 0 16px; }
  .hide-sm { display: none; }
  .hero { min-height: calc(88svh - var(--nav-h)); }
  .s-blob { width: 220px; top: -4%; left: -22%; }
  .s-flower { width: 150px; top: 6%; right: -12%; }
  .s-pill { width: 120px; bottom: 4%; left: -6%; }
  .s-circle { width: 200px; bottom: -10%; right: -14%; }
  .s-star { top: 74%; left: 46%; }
  .s-squiggle { display: none; }
  .feature-art { min-height: 320px; }
  .say { font-size: .84rem; bottom: 20px; }
  .facts strong { font-size: 1.08rem; }
  .actions .btn { flex: 1; }
  .grid { grid-template-columns: 1fr; }
  .card-art { height: 160px; }
  .fam { grid-template-columns: 44px 1fr; gap: 16px; padding: 18px; }
  .fam svg { width: 42px; height: 42px; }
  .fam-go { display: none; }
  .btn-soft { min-width: 0; width: 100%; }
  .connect-actions { align-items: stretch; }
  .stack { height: 170px; }
  .st-hex, .st-hex2 { width: 86px; } .st-square { width: 78px; }
  .st-circle { width: 80px; bottom: 77px; left: 18%; }
  .st-flower { width: 84px; bottom: 68px; }
  .footer-bottom span:first-child { width: 100%; }
  .playground { height: 290px; }
  .pg-tools { top: 40px; left: 0; right: 0; justify-content: center; }
  .pg-btn { height: 36px; padding: 0 12px 0 10px; font-size: .82rem; }
  .pg-hint { font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero-lockup > * { opacity: 1; transform: none; }
  .js .will-draw { stroke-dasharray: none; }
}
