/* ════════════════════════════════════════════════════════════════════
   EURECA — site v2 · "Watched vs Done"
   Premium dark · grain + glow + glass · Instrument Serif/Sans · JetBrains Mono
   A persistent Watch·Do mode embodies the thesis: flip the whole site
   between passive (frozen, grey) and active (alive, in colour).
   ════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

.eu2 {
  /* ── ink + surface (near-black, faint warm) ── */
  --void:   #08080a;
  --base:   #0c0c0f;
  --base2:  #101014;
  --raise:  #16161b;
  --raise2: #1c1c22;
  --ink:    #f4f4f6;
  --ink2:   #9fa0a9;
  --ink3:   rgba(244,244,246,0.50);
  --ink4:   rgba(244,244,246,0.26);
  --ink5:   rgba(244,244,246,0.12);

  /* ── accent: slate-blue pushed a touch brighter for energy ── */
  --accent:        #7c92ad;
  --accent-bright: #b8c8dd;
  --accent-hi:     #d7e3f2;
  --accent-deep:   #4d627c;
  --accent-fill:   rgba(124,146,173,0.14);
  --accent-line:   rgba(124,146,173,0.34);
  --accent-soft:   rgba(124,146,173,0.07);
  --accent-glow:   rgba(124,146,173,0.45);

  /* ── clay secondary (struggle / emphasis / "watch" heat) ── */
  --clay:        #c8795c;
  --clay-bright: #e6a585;
  --clay-fill:   rgba(200,121,92,0.14);
  --clay-line:   rgba(200,121,92,0.34);

  /* ── hairlines + glass ── */
  --hair:   rgba(255,255,255,0.08);
  --hair2:  rgba(255,255,255,0.05);
  --strong: rgba(255,255,255,0.16);
  --hover:  rgba(255,255,255,0.045);
  --glass:  rgba(22,22,28,0.62);
  --glass2: rgba(28,28,36,0.72);
  --glass-line: rgba(255,255,255,0.10);
  --glass-hi:   rgba(255,255,255,0.06);

  --shadow:    0 1px 0 rgba(0,0,0,0.4), 0 20px 50px -26px rgba(0,0,0,0.8);
  --shadow-lg: 0 40px 100px -36px rgba(0,0,0,0.92);
  --shadow-glow: 0 0 0 1px var(--accent-line), 0 30px 80px -40px var(--accent-glow);

  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Instrument Sans', system-ui, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, monospace;

  --r-sm:8px; --r-md:12px; --r-lg:18px; --r-xl:26px; --r-2xl:34px; --r-pill:999px;
  --ease-out: cubic-bezier(.19,.66,.31,1);
  --ease-io:  cubic-bezier(.45,.05,.25,1);
  --ease-pop: cubic-bezier(.34,1.4,.5,1);
  --maxw: 1240px; --pad: 64px;

  position: relative;
  background: var(--base);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  --motion: 1;   /* set to 0 by JS in Watch mode to freeze ambient motion */
}
.eu2 *, .eu2 *::before, .eu2 *::after { box-sizing: border-box; }
.eu2 ::selection { background: var(--accent-line); color: #fff; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); position: relative; }
.eu2 section { position: relative; padding: 104px 0; }
.eu2 a { color: inherit; text-decoration: none; }
.eu2 img { max-width: 100%; }

/* ── grain + ambient field (fixed, behind everything) ── */
.eu2-grain { position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay; }
.eu2-field { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 44% at 50% -6%, rgba(124,146,173,0.16), transparent 60%),
    radial-gradient(40% 36% at 88% 8%, rgba(200,121,92,0.06), transparent 60%),
    radial-gradient(50% 40% at 8% 30%, rgba(124,146,173,0.05), transparent 60%); }
.eu2 main, .eu2 .eu2-nav, .eu2 .eu2-footer { position: relative; z-index: 2; }

/* ════════ typography ════════ */
.dsp { font-family: var(--serif); font-weight: 400; line-height: 0.98; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.dsp em { font-style: italic; }
.h1 { font-size: clamp(48px, 7.4vw, 104px); }
.h2 { font-size: clamp(38px, 5vw, 68px); line-height: 1.0; }
.h3 { font-size: clamp(26px, 3vw, 40px); line-height: 1.04; }
.serif-accent { color: var(--accent-bright); font-style: italic; }
.serif-clay { color: var(--clay-bright); font-style: italic; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-bright); white-space: nowrap; }
.eyebrow .pip { width: 7px; height: 7px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-fill), 0 0 12px var(--accent-glow); flex: none; }
.eyebrow .ix { color: var(--ink4); }
.lead { font-family: var(--sans); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--ink2); margin: 0; }
.lead b { color: var(--ink); font-weight: 600; }
.body { font-size: 16px; line-height: 1.66; color: var(--ink2); margin: 0; }
.body b { color: var(--ink); font-weight: 600; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink3); }
.mono { font-family: var(--mono); }

/* ── armory-style scroll-ignite text: dim → ink, JS sets --p 0..1 (legible floor) ── */
.ignite { color: color-mix(in srgb, var(--ink) calc(26% + var(--p,0) * 74%), transparent); transition: color .15s linear; }
.ignite-soft { color: color-mix(in srgb, var(--ink2) calc(36% + var(--p,0) * 64%), transparent); transition: color .15s linear; }
.ignite-word { display: inline; }

/* ════════ buttons ════════ */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-weight: 600; font-size: 15px; padding: 14px 26px; border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .16s var(--ease-out), background .16s, border-color .16s, box-shadow .2s, filter .16s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { color: #0b0f14; background: linear-gradient(180deg, var(--accent-hi), var(--accent-bright)); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 18px 40px -18px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 26px 60px -20px var(--accent-glow); }
.btn-glass { color: var(--ink); background: var(--glass); border-color: var(--glass-line); backdrop-filter: blur(14px) saturate(1.2); }
.btn-glass:hover { background: var(--glass2); border-color: var(--accent-line); transform: translateY(-2px); }
.btn-ghost { color: var(--ink2); border-color: transparent; }
.btn-ghost:hover { color: var(--ink); background: var(--hover); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.eu2 button:focus-visible, .eu2 a:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-fill), 0 0 0 1px var(--accent-line); }

/* ════════ glass cards / chips ════════ */
.glass { position: relative; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-lg); backdrop-filter: blur(16px) saturate(1.25); box-shadow: var(--shadow); }
.glass::before { content:''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(150deg, var(--glass-hi), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card { background: var(--raise); border: 1px solid var(--hair); border-radius: var(--r-lg); }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--accent-line); color: var(--accent-bright); background: var(--accent-fill); white-space: nowrap; }
.chip.clay { border-color: var(--clay-line); color: var(--clay-bright); background: var(--clay-fill); }
.chip .dot { width: 7px; height: 7px; border-radius: 99px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.kbd { font-family: var(--mono); font-size: 12px; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--strong); color: var(--ink2); background: var(--raise); }
.hair-line { height: 1px; background: var(--hair); border: none; margin: 0; }

/* ════════ nav + Watch·Do toggle ════════ */
.eu2-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: 78px; transition: transform .35s var(--ease-out), background .35s, border-color .35s; }
.eu2-nav.hide { transform: translateY(-100%); }
.eu2-nav.scrolled { background: rgba(10,10,13,0.72); backdrop-filter: blur(20px) saturate(1.3); border-bottom: 1px solid var(--hair); }
.eu2-nav-in { max-width: var(--maxw); margin: 0 auto; height: 100%; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; background: none; border: none; }
.brand .bmark { width: 26px; height: 26px; flex: none; }
.brand .bname { font-family: var(--sans); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink2); padding: 9px 15px; border-radius: var(--r-sm); transition: color .14s, background .14s; }
.nav-links a:hover { color: var(--ink); background: var(--hover); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-menu-btn { display: none; }
.mobile-menu { display: none; }

/* segmented Watch·Do toggle */
.mode-toggle { position: relative; display: inline-flex; align-items: center; padding: 4px; border-radius: var(--r-pill); background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); }
.mode-toggle .seg { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--ink3); padding: 8px 16px; border-radius: var(--r-pill); cursor: pointer; border: none; background: none; transition: color .25s; white-space: nowrap; }
.mode-toggle .seg.on { color: #0b0f14; }
.mode-toggle .seg.on.watch { color: var(--ink); }
.mode-toggle .knob { position: absolute; top: 4px; bottom: 4px; border-radius: var(--r-pill); transition: left .42s var(--ease-pop), width .42s var(--ease-pop), background .3s; z-index: 0; box-shadow: 0 4px 14px -4px rgba(0,0,0,.6); }
.mode-toggle .seg .ic { width: 13px; height: 13px; }

/* ════════ Watch·Do MODE — the thesis, applied site-wide ════════ */
/* default = "do" (alive). watch freezes + greys the experience. */
.eu2[data-mode="watch"] { --motion: 0; }
.eu2[data-mode="watch"] .mode-react {
  filter: grayscale(1) brightness(0.72) contrast(0.95);
  transition: filter .6s var(--ease-io);
}
.eu2[data-mode="do"] .mode-react { filter: none; transition: filter .6s var(--ease-io); }
/* freeze ambient/continuous animations in watch */
.eu2[data-mode="watch"] .ambient { animation-play-state: paused !important; }
/* a "passive" wash + scanlines that only appear in watch */
.watch-veil { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease-io); background: repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0 1px, transparent 1px 4px); z-index: 6; }
.eu2[data-mode="watch"] .watch-veil { opacity: .5; }
.mode-show-watch, .mode-show-do { transition: opacity .4s var(--ease-io), transform .4s var(--ease-io); }
.eu2[data-mode="do"]   .mode-show-watch { opacity: 0; pointer-events: none; position: absolute; inset: 0; transform: scale(.98); }
.eu2[data-mode="watch"] .mode-show-do   { opacity: 0; pointer-events: none; position: absolute; inset: 0; transform: scale(.98); }

/* ════════ counters ════════ */
.counter { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ════════ hero ════════ */
.eu2 .hero { padding-top: 88px; padding-bottom: 60px; }
.hero-eyebrow { margin-bottom: 26px; }
.hero h1 { max-width: 14ch; }
.hero-sub { margin-top: 30px; max-width: 54ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 40px; align-items: center; flex-wrap: wrap; }
.hero-stage { margin-top: 8px; }

/* the dual-mode demo panel */
.demo-panel { position: relative; border-radius: var(--r-2xl); overflow: hidden; }
.demo-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--hair); }
.demo-body { position: relative; padding: 26px; min-height: 300px; }
.demo-foot { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--hair); }

/* draggable cluster demo */
.cluster-stage { position: relative; width: 100%; touch-action: none; cursor: grab; }
.cluster-stage:active { cursor: grabbing; }

/* ════════ proof strip ════════ */
.proof { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.proof-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 28px; border-right: 1px solid var(--hair); position: relative; }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 60px); line-height: 1; color: var(--ink); }
.stat .num .u { color: var(--accent-bright); }
.stat .cap { font-size: 13.5px; color: var(--ink2); margin-top: 12px; line-height: 1.45; max-width: 22ch; }
.stat .src { font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink4); margin-top: 10px; }

/* ════════ section header ════════ */
.sec-head { max-width: 760px; }
.sec-head .h2 { margin-top: 22px; }
.sec-head .lead { margin-top: 22px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ════════ pillar / feature cards ════════ */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pillar { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: var(--r-xl); background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(16px) saturate(1.2); cursor: pointer; overflow: hidden; transition: transform .3s var(--ease-out), border-color .3s, background .3s; }
.pillar::after { content:''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 80% at 50% -10%, var(--accent-soft), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.pillar:hover { transform: translateY(-5px); border-color: var(--accent-line); }
.pillar:hover::after { opacity: 1; }
.pillar .pn { font-family: var(--mono); font-size: 12px; color: var(--ink4); }
.pillar .pt { font-family: var(--serif); font-size: 30px; line-height: 1.02; color: var(--ink); }
.pillar .ptag { font-size: 14px; font-weight: 600; color: var(--accent-bright); }
.pillar .pb { font-size: 15px; color: var(--ink2); line-height: 1.6; }
.pillar .plink { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.icon-tile { width: 48px; height: 48px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; background: var(--accent-fill); border: 1px solid var(--accent-line); color: var(--accent-bright); }
.icon-tile.clay { background: var(--clay-fill); border-color: var(--clay-line); color: var(--clay-bright); }

.feat { padding: 30px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(12px); display: flex; flex-direction: column; gap: 14px; }
.feat .ft { font-family: var(--serif); font-size: 24px; color: var(--ink); line-height: 1.05; }
.feat .fb { font-size: 14.5px; color: var(--ink2); line-height: 1.6; }

.beat { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--hair); }
.beat:last-child { border-bottom: none; }
.beat .bn { font-family: var(--mono); font-size: 13px; color: var(--accent-bright); flex: none; padding-top: 3px; }
.beat .bt { font-family: var(--serif); font-size: 26px; color: var(--ink); margin: 0 0 7px; line-height: 1.05; }
.beat .bb { font-size: 15px; color: var(--ink2); margin: 0; line-height: 1.55; }

/* ════════ engine — living data-viz ════════ */
.engine-wrap { position: relative; border-radius: var(--r-2xl); overflow: hidden; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.metric { padding: 20px; border-radius: var(--r-md); background: var(--raise); border: 1px solid var(--hair); }
.metric .ml { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink3); }
.metric .mv { font-family: var(--serif); font-size: 30px; color: var(--ink); margin-top: 4px; }
.bar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.bar-track { flex: 1; height: 8px; border-radius: 99px; background: var(--hair); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright)); transition: width 1.1s var(--ease-out); }
.bar-fill.clay { background: linear-gradient(90deg, var(--clay), var(--clay-bright)); }

/* ════════ footer ════════ */
.eu2-footer { border-top: 1px solid var(--hair); padding: 80px 0 56px; background: var(--void); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink3); margin: 0 0 16px; }
.foot-col a { display: block; font-size: 14.5px; color: var(--ink2); padding: 6px 0; transition: color .14s; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--ink3); flex-wrap: wrap; gap: 12px; }

/* ════════ reveal (JS-driven; base visible so never stranded) ════════ */
.rv { opacity: 1; }
.rv.pre { opacity: 0; transform: translateY(46px); }
.rv.in { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }

/* ════════ Spark bot motion ════════ */
@keyframes sp-bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
.sp-bob { animation: sp-bob 3.4s var(--ease-io) infinite; }
@keyframes sp-eq1 {0%,100%{transform:scaleY(.4)}50%{transform:scaleY(1)}}
@keyframes sp-eq2 {0%,100%{transform:scaleY(1)}50%{transform:scaleY(.35)}}
@keyframes sp-eq3 {0%,100%{transform:scaleY(.55)}40%{transform:scaleY(.95)}70%{transform:scaleY(.45)}}
.sp-eq rect { transform-origin: center; }
.sp-eq rect:nth-child(1){animation:sp-eq1 .9s ease-in-out infinite}
.sp-eq rect:nth-child(2){animation:sp-eq2 .8s ease-in-out infinite}
.sp-eq rect:nth-child(3){animation:sp-eq3 1s ease-in-out infinite}
@keyframes sp-look {0%,100%{transform:translateX(0)}50%{transform:translateX(2px)}}
.sp-look-grp { animation: sp-look 2.6s var(--ease-io) infinite; transform-box: fill-box; }
@keyframes sp-think-eyes {0%,100%{transform:translateY(0)}50%{transform:translateY(-1.5px)}}
.sp-think-grp { animation: sp-think-eyes 2.4s var(--ease-io) infinite; transform-box: fill-box; }
@keyframes sp-think-dot {0%,75%,100%{transform:translateY(0);opacity:.45}38%{transform:translateY(-3px);opacity:1}}
.sp-think circle { transform-box: fill-box; transform-origin: center; }
.sp-think circle:nth-child(1){animation:sp-think-dot 1.3s infinite 0s}
.sp-think circle:nth-child(2){animation:sp-think-dot 1.3s infinite .16s}
.sp-think circle:nth-child(3){animation:sp-think-dot 1.3s infinite .32s}
@keyframes sp-joy {0%,100%{transform:translateY(0)}32%{transform:translateY(-3px)}64%{transform:translateY(0)}}
.sp-happy-grp { animation: sp-joy 2s var(--ease-pop) infinite; transform-box: fill-box; }
@keyframes sp-twinkle {0%,100%{transform:scale(.55);opacity:.35}50%{transform:scale(1.1);opacity:1}}
.sp-sparkles > * { transform-box: fill-box; transform-origin: center; }
.sp-sparkles > *:nth-child(1){animation:sp-twinkle 1.5s ease-in-out infinite 0s}
.sp-sparkles > *:nth-child(2){animation:sp-twinkle 1.5s ease-in-out infinite .5s}
.sp-sparkles > *:nth-child(3){animation:sp-twinkle 1.5s ease-in-out infinite .95s}
@keyframes sp-sleep {0%,100%{transform:translateY(0)}50%{transform:translateY(-1.5px)}}
.sp-sleep-grp { animation: sp-sleep 4s var(--ease-io) infinite; transform-box: fill-box; }
@keyframes sp-z {0%{opacity:0;transform:translateY(2px) scale(.7)}30%{opacity:.9}100%{opacity:0;transform:translateY(-12px) scale(1.1)}}
.sp-z > * { transform-box: fill-box; transform-origin: center; }
.sp-z > *:nth-child(1){animation:sp-z 2.6s ease-in-out infinite 0s}
.sp-z > *:nth-child(2){animation:sp-z 2.6s ease-in-out infinite .8s}
.sp-z > *:nth-child(3){animation:sp-z 2.6s ease-in-out infinite 1.6s}

/* Spark companion shell */
.sp-fixed { position: fixed; z-index: 80; will-change: transform; top: 0; left: 0; transform-origin: top left; }
.sp-btn { background: none; border: none; padding: 0; cursor: pointer; display: block; filter: drop-shadow(0 16px 36px rgba(0,0,0,.55)); }
.bubble { background: var(--glass2); border: 1px solid var(--glass-line); box-shadow: var(--shadow); border-radius: 18px; padding: 13px 16px; font-size: 14.5px; line-height: 1.5; color: var(--ink); max-width: 256px; backdrop-filter: blur(16px) saturate(1.3); }
.bubble b { color: var(--accent-bright); font-weight: 600; }
.bubble.tail-br { border-bottom-right-radius: 5px; }
.bubble.tail-bl { border-bottom-left-radius: 5px; }
@keyframes line-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.line-in { animation: line-in .4s var(--ease-out) both; }

.sp-panel { width: 326px; background: var(--glass2); border: 1px solid var(--glass-line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; backdrop-filter: blur(20px) saturate(1.3); }
.sp-panel .sph { display: flex; align-items: center; gap: 11px; padding: 15px 17px; border-bottom: 1px solid var(--hair); }
.sp-panel .sph .t { font-weight: 600; font-size: 14.5px; color: var(--ink); flex: 1; }
.sp-panel .spc { padding: 15px 17px; display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow-y: auto; }
.ask-chip { text-align: left; font-size: 14px; font-weight: 500; color: var(--ink); background: var(--raise); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 12px 14px; cursor: pointer; transition: border-color .14s, background .14s; line-height: 1.4; }
.ask-chip:hover { border-color: var(--accent-line); background: var(--raise2); }
.ask-ans { font-size: 14px; color: var(--ink2); line-height: 1.6; padding-left: 13px; border-left: 2px solid var(--accent-line); }
.ask-ans b { color: var(--ink); }
.tour-btn { display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; font-size: 14px; color: #0b0f14; background: linear-gradient(180deg, var(--accent-hi), var(--accent-bright)); border: none; border-radius: var(--r-md); padding: 12px; cursor: pointer; }
.tour-btn:hover { filter: brightness(1.06); }
.iconbtn { width: 30px; height: 30px; border-radius: var(--r-sm); border: 1px solid transparent; background: transparent; color: var(--ink3); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.iconbtn:hover { background: var(--hover); color: var(--ink); }

/* halo + highlight */
.halo { position: absolute; border-radius: 50%; border: 1.5px solid var(--accent-line); pointer-events: none; }
@keyframes halo-pulse { 0%{opacity:0;transform:scale(.5)} 30%{opacity:.7} 100%{opacity:0;transform:scale(1.9)} }
.halo.go { animation: halo-pulse 1.6s var(--ease-out) forwards; }
.halo.go2 { animation: halo-pulse 2s var(--ease-out) .18s forwards; }

/* hand-drawn hero underline (draws in) */
@keyframes hl-draw { to { stroke-dashoffset: 0; } }
.hl-path { stroke-dasharray: 120; stroke-dashoffset: 120; animation: hl-draw 950ms var(--ease-out) .5s forwards; }

/* orange keyword underline inside Spark's speech bubble */
.bubble .kw { color: var(--clay-bright); font-weight: 600; position: relative; white-space: nowrap; }
.bubble .kw::after { content:''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--clay); }

/* tour: orange underline under the feature Spark names on the page (layout-safe) */
@keyframes sul-fade { from { text-decoration-color: transparent; } to { text-decoration-color: var(--clay-bright); } }
.spark-underline { text-decoration: underline; text-decoration-color: var(--clay-bright); text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-skip-ink: none; animation: sul-fade .45s var(--ease-out) both; }

/* intro */
.loader-cap { position: fixed; left: 0; right: 0; text-align: center; z-index: 81; pointer-events: none; }
.loader-cap .word { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.loader-cap .dots { display: inline-flex; gap: 5px; margin-left: 8px; vertical-align: middle; }
.loader-cap .dots i { width: 5px; height: 5px; border-radius: 99px; background: var(--ink3); display: inline-block; }
@keyframes pm-dot {0%,60%,100%{transform:translateY(0);opacity:.4}30%{transform:translateY(-3px);opacity:1}}
.loader-cap .dots i:nth-child(1){animation:pm-dot 1.2s infinite 0s}
.loader-cap .dots i:nth-child(2){animation:pm-dot 1.2s infinite .15s}
.loader-cap .dots i:nth-child(3){animation:pm-dot 1.2s infinite .3s}
.intro-scrim { position: fixed; inset: 0; z-index: 77; pointer-events: none; background: radial-gradient(ellipse 72% 58% at 50% 45%, rgba(10,10,13,.55), rgba(6,6,8,.96)); backdrop-filter: blur(4px) saturate(.8); animation: scrim-in .55s var(--ease-out) both; }
.intro-scrim[data-leaving="1"] { opacity: 0 !important; animation: none; transition: opacity .9s var(--ease-io); }
@keyframes scrim-in { from{opacity:0} to{opacity:1} }

/* site-load reveal behind Spark */
.eu2 main, .eu2 .eu2-footer { transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.eu2 .eu2-nav { transition: opacity .9s var(--ease-out), transform .35s var(--ease-out), background .35s, border-color .35s; }
.eu2.booting main, .eu2.booting .eu2-footer { opacity: 0; transform: translateY(16px) scale(.99); }
.eu2.booting .eu2-nav { opacity: 0; }

/* tour spotlight */
.eu2.touring section { transition: opacity .5s var(--ease-out), filter .5s var(--ease-out); }
.eu2.touring section:not(.sp-focus) { opacity: .3; filter: saturate(.6); }
.eu2.touring .sp-focus { position: relative; z-index: 3; }
.eu2.touring .sp-focus > .wrap { position: relative; z-index: 1; }
.eu2.touring .sp-focus::before { content:''; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(1320px, 94%); height: calc(100% - 40px); border-radius: 30px; z-index: 0; background: radial-gradient(ellipse 70% 62% at 50% 34%, var(--accent-soft), transparent 72%); border: 1px solid var(--accent-line); box-shadow: 0 50px 140px -50px var(--accent-glow), inset 0 0 100px rgba(124,146,173,.06); pointer-events: none; animation: focus-pop .55s var(--ease-out); }
@keyframes focus-pop { from{opacity:0;transform:translate(-50%,-50%) scale(.975)} to{opacity:1;transform:translate(-50%,-50%) scale(1)} }

/* engine living-viz keyframes */
@keyframes dashflow { to { stroke-dashoffset: -16; } }
@keyframes eng-ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes eng-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ════════ responsive ════════ */
@media (max-width: 1080px) {
  .eu2 { --pad: 36px; }
  .nav-demo { display: none; }
  .eu2-nav-in { gap: 14px; }
  .grid3 { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .hero-grid { grid-template-columns: 1fr !important; }
  .proof-in { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(even) { border-right: none; }
  .stat { border-bottom: 1px solid var(--hair); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .eu2 { --pad: 22px; }
  .nav-links { display: none; }
  .nav-right .desktop-only { display: none; }
  .nav-menu-btn { display: flex; }
  .eu2 section { padding: 96px 0; }
  .mobile-menu.open { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .eu2 *, .eu2 *::before, .eu2 *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .rv, .rv.pre { opacity: 1 !important; transform: none !important; }
  .ignite, .ignite-soft { color: var(--ink) !important; }
  .intro-scrim { display: none; }
  .eu2.booting main, .eu2.booting .eu2-footer, .eu2.booting .eu2-nav { opacity: 1; transform: none; }
}
