/* ==========================================================================
   LYRA DATA SYSTEMS — styles
   1. Tokens        6. (removed)       11. Why Lyra
   2. Base          7. Ecosystem       12. Contact card
   3. Utilities     8. Product Lab     13. Footer, toast
   4. Buttons/nav   9. Visuals         14. Motion & reduced motion
   5. Hero         10. Modal / Spotlight
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --bg: #05060a;
  --bg-2: #080a12;
  --panel: rgba(16, 20, 36, 0.55);
  --panel-solid: #0b0e1a;
  --line: rgba(140, 160, 255, 0.12);
  --line-2: rgba(140, 160, 255, 0.24);
  --text: #f4f6ff;
  --text-2: #b6bdd2;
  --text-3: #8189a4;
  --blue: #4da3ff;
  --blue-2: #2f7bff;
  --violet: #8b6cff;
  --violet-2: #5b3fd9;
  --cyan: #46d6e8;
  --green: #3ddc97;
  --grad: linear-gradient(90deg, #4da3ff, #8b6cff);
  --grad-soft: linear-gradient(135deg, rgba(77, 163, 255, 0.16), rgba(139, 108, 255, 0.12));

  --f-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --maxw: 1240px;
  --gutter: 20px;
  --nav-h: 64px;
  --radius: 16px;
  --section-y: clamp(64px, 8vw, 112px);
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter)));
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; --nav-h: 72px; } }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body:has(dialog[open]) { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(139, 108, 255, 0.4); }

/* 3. Utilities ------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.section { position: relative; padding-block: var(--section-y); }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3);
}
.label-tick { width: 18px; height: 1px; background: var(--grad); box-shadow: 0 0 8px rgba(77, 163, 255, 0.8); }
.section-head { max-width: 860px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .label { justify-content: center; }
.section-title {
  margin-top: 18px;
  font: 600 clamp(1.75rem, 4.2vw, 3rem)/1.12 var(--f-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-lead { margin-top: 18px; color: var(--text-2); font-size: clamp(1rem, 1.4vw, 1.125rem); max-width: 40rem; }


/* 4. Buttons & navigation --------------------------------------------------- */
.icon { width: 18px; height: 18px; flex: none; }
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  font: 500 13px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 10px; border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s, background-color 0.25s, color 0.25s;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn--sm { --h: 44px; padding: 0 16px; font-size: 12px; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(90deg, #2f7bff, #6a4ff0);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(160, 180, 255, 0.25) inset, 0 8px 30px -8px rgba(77, 120, 255, 0.6);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(190, 205, 255, 0.45) inset, 0 12px 40px -8px rgba(100, 120, 255, 0.8); }
.btn--ghost { border-color: var(--line-2); background: rgba(255, 255, 255, 0.025); color: var(--text); }
.btn--ghost:hover { border-color: rgba(77, 163, 255, 0.6); background: rgba(77, 163, 255, 0.07); }
.btn--text { color: var(--text-2); padding-inline: 8px; }
.btn--text:hover { color: var(--text); }
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn.is-disabled { opacity: 0.4; cursor: not-allowed; filter: grayscale(0.6); }
.btn.is-disabled:hover { transform: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, background-color 0.2s, opacity 0.2s;
}
.icon-btn:hover:not(:disabled) { border-color: rgba(77, 163, 255, 0.6); background: rgba(77, 163, 255, 0.08); }
.icon-btn:disabled { opacity: 0.3; cursor: default; }

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; min-height: 44px; }
.brand-logo { width: 24px; height: auto; }
.brand-name { font: 600 14px/1 var(--f-display); letter-spacing: 0.2em; }
.nav-links { display: none; gap: 4px; }
.nav-links a {
  position: relative; padding: 10px 14px; font-size: 14px; color: var(--text-2); border-radius: 8px; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-links a.is-active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--grad);
}
.nav-cta { display: none; }
.nav-toggle {
  width: 46px; height: 46px; margin-right: -8px; display: grid; place-content: center; gap: 6px;
}
.nav-toggle i { display: block; width: 22px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease); }
.nav-toggle[aria-expanded='true'] i:first-of-type { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] i:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 49;
  background: rgba(5, 6, 10, 0.96);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  overflow-y: auto;
}
.mobile-menu nav { display: flex; flex-direction: column; padding-block: 28px 40px; }
.mobile-menu .label { margin-bottom: 12px; }
.mobile-menu a:not(.btn) {
  display: flex; align-items: baseline; gap: 16px; padding: 18px 0;
  font: 500 1.6rem/1.2 var(--f-display); border-bottom: 1px solid var(--line);
}
.mm-num { font: 400 12px var(--f-mono); color: var(--text-3); letter-spacing: 0.12em; }
.mobile-menu .btn { margin-top: 28px; }
.mobile-menu:not([hidden]) nav > * { animation: rise 0.45s var(--ease) both; }
.mobile-menu:not([hidden]) nav > :nth-child(2) { animation-delay: 0.03s; }
.mobile-menu:not([hidden]) nav > :nth-child(3) { animation-delay: 0.06s; }
.mobile-menu:not([hidden]) nav > :nth-child(4) { animation-delay: 0.09s; }
.mobile-menu:not([hidden]) nav > :nth-child(5) { animation-delay: 0.12s; }
.mobile-menu:not([hidden]) nav > :nth-child(6) { animation-delay: 0.15s; }
.mobile-menu:not([hidden]) nav > :nth-child(7) { animation-delay: 0.18s; }

@media (min-width: 1000px) {
  .nav-links, .nav-cta { display: flex; }
  .nav-toggle, .mobile-menu { display: none !important; }
}

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 32px); padding-bottom: 96px;
  overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(140, 160, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 160, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(40rem 28rem at 78% 30%, rgba(91, 63, 217, 0.18), transparent 70%),
    radial-gradient(36rem 26rem at 15% 85%, rgba(47, 123, 255, 0.12), transparent 70%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero-inner { position: relative; }
.hero-sys { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: clamp(28px, 5vw, 44px); }
.sys-online, .sys-event {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.16em; color: var(--text-2);
}
.sys-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 2.4s ease-in-out infinite; }
.sys-event { padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(77, 163, 255, 0.06); color: var(--text); }
.hero-title {
  font: 600 clamp(2.5rem, 8.4vw, 6.6rem)/0.98 var(--f-display);
  letter-spacing: 0.02em;
  max-width: 11ch;
  background: linear-gradient(180deg, #ffffff 30%, #b9c6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-tagline, .card-tagline, .roi-year strong { width: fit-content; }
.hero-tagline {
  margin-top: clamp(18px, 3vw, 28px);
  font: 500 clamp(12px, 1.4vw, 15px)/1.4 var(--f-mono); letter-spacing: 0.32em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-statement {
  margin-top: clamp(28px, 4vw, 40px);
  font: 500 clamp(1.4rem, 2.8vw, 2.1rem)/1.25 var(--f-display);
  max-width: 24ch; text-wrap: balance;
}
.hero-text { margin-top: 16px; max-width: 38rem; color: var(--text-2); font-size: clamp(1rem, 1.3vw, 1.125rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 5vw, 44px); }
@media (max-width: 480px) { .hero-ctas .btn { flex: 1 1 100%; } }

.hero-telemetry {
  position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line);
  font: 400 11.5px/1 var(--f-mono); letter-spacing: 0.14em; color: var(--text-3);
}
.hero-telemetry .container { display: flex; align-items: center; gap: 32px; height: 52px; overflow: hidden; }
.hero-telemetry span { white-space: nowrap; }
.hero-telemetry span:nth-child(n + 2):not(.tele-stream) { display: none; }
.tele-stream { margin-left: auto; display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.tele-stream i { width: 3px; background: var(--blue); opacity: 0.7; animation: bars 1.6s ease-in-out infinite; }
.tele-stream i:nth-child(2n) { animation-delay: -0.4s; background: var(--violet); }
.tele-stream i:nth-child(3n) { animation-delay: -0.9s; }
.tele-stream i:nth-child(5n) { animation-delay: -1.2s; }
@media (min-width: 768px) { .hero-telemetry span:nth-child(n + 2):not(.tele-stream) { display: inline; } }

/* 7. Ecosystem ------------------------------------------------------------- */
.ecosystem { background: linear-gradient(to bottom, transparent, rgba(12, 14, 28, 0.6) 30%, transparent); }
.eco { position: relative; }
.eco-bus { position: absolute; left: 7px; top: 12px; bottom: 60px; width: 1px; background: linear-gradient(var(--blue), var(--violet)); opacity: 0.45; }
.eco-pulse { position: absolute; left: -2px; top: 0; width: 5px; height: 40px; border-radius: 4px;
  background: linear-gradient(transparent, var(--blue), transparent); animation: busY 5s linear infinite; }
.eco-layers { position: relative; display: grid; gap: 8px; }
.eco-node {
  position: relative; padding: 18px 20px 18px 40px;
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline;
  border-radius: 12px; transition: background-color 0.3s;
}
.eco-node:hover { background: rgba(77, 163, 255, 0.04); }
.eco-dot {
  position: absolute; left: 2px; top: 24px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--blue); box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(77, 163, 255, 0.6);
  transition: background-color 0.3s;
}
.eco-node:hover .eco-dot { background: var(--blue); }
.eco-num { font: 400 12px var(--f-mono); color: var(--text-3); letter-spacing: 0.1em; }
.eco-name { font: 600 16px/1.3 var(--f-display); letter-spacing: 0.14em; }
.eco-items, .eco-tags { grid-column: 2; }
.eco-items { margin-top: 6px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.eco-items li { display: inline; }
.eco-items li:not(:last-child)::after { content: ' · '; color: var(--text-3); }
.eco-tags { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 8px; }
.eco-tag {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; white-space: nowrap;
  font: 500 11.5px/1 var(--f-mono); letter-spacing: 0.1em; color: var(--blue); transition: color 0.2s;
}
.eco-tag::before { content: ''; width: 5px; height: 5px; transform: rotate(45deg); background: currentColor; box-shadow: 0 0 8px currentColor; }
.eco-tag:hover { color: #fff; }
.eco-loop { display: none; }
.eco-loop-label {
  margin: 20px 0 0 40px; font: 500 12px/1.5 var(--f-mono); letter-spacing: 0.14em; color: var(--text-3);
}
.eco-loop-label span { color: var(--violet); font-size: 16px; margin-right: 6px; }
@media (min-width: 700px) and (max-width: 1159px) {
  .eco-node { grid-template-columns: 40px 180px 1fr; }
  .eco-items { grid-column: 3; margin-top: 0; }
  .eco-tags { grid-column: 3; }
}
@media (min-width: 1160px) {
  .eco-bus { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--blue), var(--violet)); }
  .eco-pulse { top: -2px; left: 0; width: 60px; height: 5px; background: linear-gradient(90deg, transparent, var(--blue), transparent); animation: busX 6s linear infinite; }
  .eco-layers { grid-template-columns: repeat(8, 1fr); gap: 0; }
  .eco-node { display: block; padding: 34px 14px 20px 0; }
  .eco-node:hover { background: none; }
  .eco-dot { left: 0; top: 2px; }
  .eco-num { display: block; margin-bottom: 8px; }
  .eco-name { font-size: 15px; letter-spacing: 0.1em; }
  .eco-items { font-size: 14px; }
  .eco-items { min-height: 6em; } /* keeps product tags aligned across columns */
  .eco-items li { display: block; }
  .eco-items li::after { display: none; }
  .eco-tags { flex-direction: column; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); margin-right: 8px; }
  .eco-tag { min-height: 26px; font-size: 11px; }
  .eco-loop { display: block; height: 34px; margin-top: 8px; }
  .eco-loop svg { width: 100%; height: 100%; overflow: visible; }
  .eco-loop path { fill: none; stroke: rgba(139, 108, 255, 0.45); stroke-width: 1; stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; animation: dash 30s linear infinite; }
  .eco-loop-label { margin: 14px 0 0; text-align: center; }
}

/* 8. Product Lab ------------------------------------------------------------ */
.lab-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.lab-head .section-head { margin-bottom: 0; }
.lab-controls { display: flex; align-items: center; gap: 10px; }
.lab-count { font: 400 13px var(--f-mono); color: var(--text-3); margin-right: 8px; letter-spacing: 0.1em; }
.lab-count b { color: var(--text); font-weight: 500; }
@media (max-width: 767px) { .lab-controls { display: none; } }

.lab-track {
  display: flex; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 10px var(--edge) 28px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.lab-track::-webkit-scrollbar { display: none; }
.lab-track::after { content: ''; flex: 0 0 1px; }
.lab-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.lab-track.is-dragging .p-card { pointer-events: none; }
.lab-track:focus-visible { outline-offset: -2px; border-radius: 0; }
.lab-item { flex: 0 0 min(84vw, 400px); scroll-snap-align: start; display: flex; }
@media (min-width: 768px) { .lab-item { flex-basis: 420px; } .lab-track { gap: 20px; } }
@media (min-width: 1280px) { .lab-item { flex-basis: 440px; } }

.p-card {
  position: relative; width: 100%;
  display: flex; flex-direction: column;
  padding: 18px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(20, 25, 46, 0.72), rgba(10, 12, 22, 0.9));
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  cursor: pointer;
}
.p-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 30px 70px -30px rgba(47, 90, 255, 0.35); }
.p-card--flagship { border-color: rgba(77, 163, 255, 0.35); }
.p-card--flagship::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(77, 163, 255, 0.8), transparent 35%, transparent 65%, rgba(139, 108, 255, 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.p-card--muted { border-style: dashed; background: linear-gradient(180deg, rgba(16, 18, 30, 0.6), rgba(8, 9, 16, 0.9)); }
.p-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.p-label { font: 500 11.5px/1.3 var(--f-mono); letter-spacing: 0.14em; color: var(--text-3); }
.p-visual { height: 250px; margin-bottom: 20px; }
.p-body { display: flex; flex-direction: column; flex: 1; padding-inline: 4px; }
.p-cat { font: 500 11.5px/1.4 var(--f-mono); letter-spacing: 0.14em; color: var(--blue); }
.p-name { margin-top: 8px; font: 600 1.6rem/1.1 var(--f-display); letter-spacing: 0.04em; }
.p-partof {
  align-self: flex-start; margin-top: 10px; padding: 5px 9px; border-radius: 6px;
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.12em; color: var(--violet); background: rgba(139, 108, 255, 0.1); border: 1px solid rgba(139, 108, 255, 0.3);
}
.p-headline { margin-top: 12px; font: 500 1.08rem/1.4 var(--f-display); }
.p-desc { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.p-features { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.p-features li { font: 400 11.5px/1 var(--f-mono); color: var(--text-2); padding: 6px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.p-actions { display: flex; gap: 8px; align-items: center; margin-top: 20px; padding-inline: 4px; }

.status {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 6px 10px; border-radius: 999px;
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.12em; white-space: nowrap;
  --c: var(--text-2);
  color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 9%, transparent);
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.status--blue { --c: var(--blue); }
.status--blue i { animation: blink 2s ease-in-out infinite; }
.status--violet { --c: #a48cff; }
.status--cyan { --c: var(--cyan); }
.status--neutral { --c: #d7dcee; }
.status--muted { --c: var(--text-3); border-style: dashed; }
.status--muted i { box-shadow: none; }

.lab-foot { display: flex; align-items: center; gap: 20px; }
.lab-progress { position: relative; flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.lab-progress i { position: absolute; inset: 0 auto 0 0; width: 20%; background: var(--grad); border-radius: 2px; transition: width 0.15s linear; }
.lab-dots { display: flex; }
.lab-dot { width: 28px; height: 32px; display: grid; place-items: center; }
.lab-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); transition: background-color 0.25s, transform 0.25s; }
.lab-dot.is-active::before { background: var(--blue); transform: scale(1.3); box-shadow: 0 0 10px var(--blue); }
.lab-note { margin-top: 24px; font-size: 14px; color: var(--text-3); }

/* 9. Visual mockups ---------------------------------------------------------- */
.viz {
  position: relative; height: 100%; overflow: hidden;
  padding: 14px; border-radius: 12px; border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 100% 0%, rgba(91, 63, 217, 0.14), transparent 60%), #070912;
  font: 400 11px/1.3 var(--f-mono); color: var(--text-2);
}
.viz::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(140, 160, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
}
.viz > * { position: relative; }
.viz-title { font: 500 11px/1 var(--f-mono); letter-spacing: 0.16em; color: var(--text); }
.viz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.viz-live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); letter-spacing: 0.14em; }
.viz-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1.6s infinite; }
.viz-note { position: absolute; right: 12px; bottom: 9px; font-size: 9.5px; letter-spacing: 0.14em; color: var(--text-3); opacity: 0.8; }
.i-arrow { width: 12px; height: 8px; flex: none; color: var(--text-3); }

.mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mc-kpi { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 8px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); overflow: hidden; }
.mc-label { font-size: 10px; letter-spacing: 0.08em; color: var(--text-3); text-transform: uppercase; }
.mc-value { font: 600 16px/1.1 var(--f-display); color: var(--text); }
.mc-kpi--main .mc-value { font-size: 18px; }
.mc-delta { font-size: 10px; color: var(--green); }
.spark { position: absolute; right: 0; bottom: 0; width: 55%; height: 60%; opacity: 0.9; }
.mc-inv { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.mc-meter { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.mc-meter i { display: block; height: 100%; background: var(--grad); }
.mc-inv-val { color: var(--text); }
.mini-pipe { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; margin-top: 10px; font-size: 9.5px; letter-spacing: 0.08em; color: var(--text-3); }
.mini-pipe .is-end { color: var(--blue); }

.viz-dh { display: flex; align-items: center; gap: 18px; }
.dh-score { position: relative; flex: none; width: 118px; height: 118px; }
.dh-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.dh-track { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 6; }
.dh-fill { fill: none; stroke: #8b6cff; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(139, 108, 255, 0.8)); }
.dh-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dh-num strong { font: 600 34px/1 var(--f-display); color: var(--text); }
.dh-num span { font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.dh-side { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.dh-side .viz-title { margin-bottom: 2px; }
.dh-metric { display: flex; flex-direction: column; gap: 5px; font-size: 10.5px; }
.dh-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.dh-bar i { display: block; height: 100%; background: linear-gradient(90deg, #6a4ff0, #a48cff); }

.viz-roi { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.roi-row { display: flex; align-items: center; gap: 14px; }
.roi-row > div { display: flex; flex-direction: column; gap: 4px; }
.roi-row strong { font: 600 38px/1 var(--f-display); color: var(--text); }
.roi-row span { font-size: 10px; letter-spacing: 0.14em; color: var(--text-3); }
.roi-row .i-arrow { width: 24px; height: 12px; color: var(--cyan); }
.roi-year strong { background: linear-gradient(90deg, var(--cyan), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.roi-weeks { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; }
.roi-weeks i { aspect-ratio: 1; border-radius: 2px; background: rgba(70, 214, 232, 0.55); animation: cell 3.2s ease-in-out infinite; }
.roi-weeks i:nth-child(3n) { animation-delay: -1s; }
.roi-weeks i:nth-child(5n) { animation-delay: -2s; }
.roi-weeks i:nth-child(7n) { background: rgba(77, 163, 255, 0.55); }
.roi-caption { font-size: 11px; letter-spacing: 0.08em; color: var(--text-2); }

.viz-bw { display: flex; flex-direction: column; gap: 10px;
  background: radial-gradient(90% 80% at 0% 0%, rgba(139, 108, 255, 0.35), transparent 60%), radial-gradient(90% 80% at 100% 100%, rgba(47, 123, 255, 0.28), transparent 60%), #0a0918; }
.bw-eyebrow { font-size: 10.5px; letter-spacing: 0.18em; color: #cfc6ff; }
.bw-hero { display: flex; align-items: baseline; justify-content: space-between; }
.bw-hero span { font-size: 11px; color: var(--text-2); }
.bw-hero strong { font: 600 36px/1 var(--f-display); color: var(--text); }
.bw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bw-row > div { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
.bw-row span { font-size: 9.5px; letter-spacing: 0.14em; color: var(--text-3); }
.bw-row strong { font: 600 14px/1.1 var(--f-display); color: var(--text); }
.bw-days { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; align-items: end; min-height: 44px; }
.bw-days span { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; font-size: 9.5px; color: var(--text-3); }
.bw-days i { display: block; width: 100%; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.bw-days .is-top { color: var(--text); }
.bw-days .is-top i { background: linear-gradient(#a48cff, #4da3ff); box-shadow: 0 0 12px rgba(139, 108, 255, 0.6); }

.viz-relay { display: flex; flex-direction: column; gap: 12px; }
.relay-msg p { margin-top: 8px; display: inline-block; padding: 9px 12px; border-radius: 12px 12px 12px 3px; background: rgba(255, 255, 255, 0.07); color: var(--text); font: 400 13px/1.3 var(--f-body); }
.relay-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 0.12em; }
.relay-flow span { padding: 5px 7px; border-radius: 5px; border: 1px dashed var(--line-2); }
.relay-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.relay-actions li { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-2); }
.relay-actions i { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 1px solid var(--blue);
  background: radial-gradient(circle, var(--blue) 0 2.5px, transparent 3px); }

/* 10. Modal --------------------------------------------------------------- */
.modal {
  padding: 0; border: 0; background: transparent; color: var(--text);
  width: 100%; max-width: 100%; max-height: 100%; height: 100%;
  margin: 0; inset: 0; overflow: hidden;
}
.modal[open] { display: flex; align-items: flex-end; justify-content: center; }
.modal::backdrop { background: rgba(3, 4, 9, 0.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; width: 100%; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, #0d1122, #080a14 40%);
  border: 1px solid var(--line-2); border-bottom: 0; border-radius: 20px 20px 0 0;
  box-shadow: 0 -30px 80px -20px rgba(47, 90, 255, 0.25);
}
.modal[open] .modal-panel { animation: sheetIn 0.4s var(--ease) both; }
@media (min-width: 760px) {
  .modal[open] { align-items: center; padding: 24px; }
  .modal-panel { max-width: 940px; max-height: calc(100dvh - 48px); border-bottom: 1px solid var(--line-2); border-radius: 20px; }
  .modal[open] .modal-panel { animation-name: modalIn; }
}
.modal-head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px 14px 24px; border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 26, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.modal-head .p-label { margin-right: auto; }
.modal-close { width: 44px; height: 44px; }
.modal-body { padding: 24px 24px 8px; }
.modal-body > p { color: var(--text-2); }
.modal-title { margin-top: 8px; font: 600 clamp(2rem, 5vw, 3rem)/1.05 var(--f-display); letter-spacing: 0.03em; }
.modal-headline { margin-top: 12px; font: 500 1.25rem/1.35 var(--f-display); color: var(--text); }
.modal-grid { display: grid; gap: 24px; margin-top: 28px; }
.modal-visual { height: 270px; }
.modal-copy p { color: var(--text-2); }
.m-h { margin: 28px 0 10px; font: 500 12px/1.3 var(--f-mono); letter-spacing: 0.16em; color: var(--blue); }
.modal-copy .m-h:first-child { margin-top: 0; }
.m-caps { display: grid; gap: 8px; }
.m-caps li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.02); font-size: 15px; }
.m-caps li::before { content: ''; width: 6px; height: 6px; flex: none; transform: rotate(45deg); background: var(--grad); }
.m-layers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.m-layers li { padding: 6px 9px; border-radius: 6px; font: 500 11px/1 var(--f-mono); letter-spacing: 0.1em; color: var(--text-3); border: 1px solid var(--line); }
.m-layers li.is-on { color: #fff; border-color: rgba(77, 163, 255, 0.6); background: rgba(77, 163, 255, 0.14); box-shadow: 0 0 14px -4px rgba(77, 163, 255, 0.8); }
.m-status { margin-top: 24px; padding: 14px 16px; border-radius: 10px; border: 1px dashed var(--line-2); font-size: 14px; }
.m-status strong { font: 500 12px var(--f-mono); letter-spacing: 0.12em; color: var(--text); }
.m-fine { margin-top: 10px; font-size: 13px; color: var(--text-3); }
.modal-foot {
  position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: rgba(8, 10, 20, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
@media (max-width: 520px) { .modal-foot .btn { flex: 1 1 100%; } .modal-foot-close { display: none; } .modal-body { padding-inline: 20px; } .modal-head { padding-left: 20px; } }
@media (min-width: 760px) {
  .modal-grid { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .m-caps { grid-template-columns: 1fr 1fr; }
  .modal-body { padding: 32px 36px 8px; }
  .modal-head, .modal-foot { padding-inline: 36px 20px; }
}

.roi-calc { margin-top: 28px; padding: 20px; border-radius: 14px; border: 1px solid rgba(70, 214, 232, 0.3); background: rgba(70, 214, 232, 0.04); }
.roi-calc .m-h { margin-top: 0; color: var(--cyan); }
.roi-inputs { display: grid; gap: 14px; }
.roi-inputs label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
.roi-inputs .opt { color: var(--text-3); }
.roi-inputs input {
  height: 48px; padding: 0 14px; border-radius: 10px; font-size: 16px;
  border: 1px solid var(--line-2); background: #070912; color: var(--text);
}
.roi-inputs input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(70, 214, 232, 0.2); }
.roi-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.roi-out div { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); min-width: 0; }
.roi-out span { font: 500 10.5px/1.3 var(--f-mono); letter-spacing: 0.1em; color: var(--text-3); }
.roi-out strong { font: 600 clamp(1.2rem, 4vw, 1.6rem)/1 var(--f-display); overflow-wrap: anywhere; }
@media (min-width: 620px) { .roi-inputs { grid-template-columns: 1fr 1fr; } }

/* Spotlight ------------------------------------------------------------------ */
.spotlight { border-block: 1px solid var(--line); background:
  radial-gradient(50rem 30rem at 85% 0%, rgba(91, 63, 217, 0.12), transparent 70%),
  radial-gradient(40rem 26rem at 0% 100%, rgba(47, 123, 255, 0.1), transparent 70%), var(--bg-2); }
.spot-head { display: grid; gap: 24px; margin-bottom: clamp(44px, 6vw, 72px); }
.spot-title { font-size: clamp(2.4rem, 7vw, 5.2rem); line-height: 1; letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff 40%, #aebcff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spot-meta .section-lead { margin-top: 0; }
.spot-status { display: flex; align-items: center; gap: 10px; margin: 20px 0 20px; font: 500 12px var(--f-mono); letter-spacing: 0.16em; color: var(--blue); }
.spot-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); animation: blink 2s infinite; }
@media (min-width: 900px) { .spot-head { grid-template-columns: 1.1fr 1fr; align-items: end; } }

.mcf { display: grid; justify-items: stretch; }
.mcf-col { display: flex; flex-direction: column; gap: 10px; }
.mcf-h { font: 500 11.5px var(--f-mono); letter-spacing: 0.16em; color: var(--text-3); }
.mcf-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mcf-list li {
  padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025);
  font: 500 13px/1 var(--f-mono); letter-spacing: 0.08em;
}
.mcf-steps { flex-direction: column; flex-wrap: nowrap; }
.mcf-steps li { display: flex; gap: 12px; align-items: center; border-color: rgba(77, 163, 255, 0.28); }
.mcf-steps li span { color: var(--text-3); font-size: 11px; }
.mcf-outputs li { border-color: rgba(139, 108, 255, 0.35); color: #d6ceff; }
.mcf-link { position: relative; height: 44px; width: 1px; margin-inline: auto; background: linear-gradient(var(--blue), var(--violet)); opacity: 0.6; }
.mcf-link i { position: absolute; left: -2px; top: 0; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--blue); animation: packetY 1.8s linear infinite; }
.mcf-core {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 28px 20px; border-radius: 16px; border: 1px solid rgba(77, 163, 255, 0.5);
  background: radial-gradient(circle at 50% 30%, rgba(77, 163, 255, 0.2), transparent 70%), #0a0e1e;
  box-shadow: 0 0 60px -12px rgba(77, 120, 255, 0.55), inset 0 0 30px rgba(77, 163, 255, 0.08);
}
.mcf-core .constellation { width: 42px; color: var(--text); }
.mcf-core strong { font: 600 18px/1.1 var(--f-display); letter-spacing: 0.14em; }
.mcf-core span { font: 400 11px var(--f-mono); letter-spacing: 0.16em; color: var(--blue); }
@media (min-width: 1000px) {
  .mcf { grid-template-columns: 1fr 56px 1.1fr 56px 1fr 56px 1fr; align-items: center; }
  .mcf-list { flex-direction: column; flex-wrap: nowrap; }
  .mcf-link { width: 100%; height: 1px; background: linear-gradient(90deg, var(--blue), var(--violet)); }
  .mcf-link i { top: -2px; left: 0; animation-name: packetX; }
  .mcf-core { padding: 40px 20px; }
}

/* 11. Why Lyra ------------------------------------------------------------ */
.why { padding-block: calc(var(--section-y) * 0.7); }
.why .section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.why-list { display: grid; gap: 16px; }
.why-item { position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.why-item::before { content: ''; position: absolute; left: 24px; top: -1px; width: 48px; height: 1px; background: var(--grad); box-shadow: 0 0 12px var(--blue); }
.why-num { font: 500 13px var(--f-mono); letter-spacing: 0.14em; color: var(--blue); }
.why-item h3 { margin-top: 18px; font: 600 1.35rem/1.25 var(--f-display); text-wrap: balance; }
.why-item p { margin-top: 12px; color: var(--text-2); }
@media (min-width: 900px) { .why-list { grid-template-columns: repeat(3, 1fr); gap: 20px; } .why-item { padding: 36px 30px; } }


/* 12. Contact card ---------------------------------------------------------- */
.card {
  position: relative; max-width: 880px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 26px 18px;
  border-radius: 22px; border: 1px solid var(--line-2);
  background:
    radial-gradient(80% 90% at 100% 0%, rgba(91, 63, 217, 0.22), transparent 60%),
    radial-gradient(70% 80% at 0% 100%, rgba(47, 123, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #0e1226, #080a15);
  box-shadow: 0 40px 100px -40px rgba(47, 90, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image: linear-gradient(rgba(140, 160, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 160, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%); mask-image: linear-gradient(135deg, #000, transparent 70%);
}
.card > * { position: relative; }
.card-brand { display: flex; align-items: center; gap: 14px; }
.card-brand img { width: 30px; height: auto; }
.card-company { font: 600 15px/1.2 var(--f-display); letter-spacing: 0.2em; }
.card-tagline { margin-top: 5px; font: 500 11px var(--f-mono); letter-spacing: 0.24em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-person { margin-top: 32px; }
.card-name { font: 600 clamp(2rem, 5vw, 2.6rem)/1 var(--f-display); }
.card-role { margin-top: 8px; color: var(--text-2); }
.card-lines { margin-top: 24px; display: grid; gap: 12px; }
.card-lines div { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: baseline; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.card-lines dt { font: 500 11px var(--f-mono); letter-spacing: 0.16em; color: var(--text-3); }
.card-lines dd { font-size: 16px; overflow-wrap: anywhere; }
.card-lines a { display: inline-block; padding-block: 6px; }
.card-lines a:hover { color: var(--blue); }
.card-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-frame { padding: 10px; background: #fff; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 40px -8px rgba(77, 163, 255, 0.6); }
.qr-frame img { width: 150px; height: 150px; image-rendering: pixelated; }
.card-qr figcaption { font: 500 11px var(--f-mono); letter-spacing: 0.16em; color: var(--text-3); }
.card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card-actions .btn { padding-inline: 10px; gap: 8px; font-size: 12px; letter-spacing: 0.08em; min-width: 0; }
.card-actions > :first-child { grid-column: 1 / -1; }
@media (max-width: 479px) {
  .card-lines div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding-top: 10px; }
  .card-lines dd { font-size: 17px; }
}
@media (min-width: 760px) {
  .card { grid-template-columns: minmax(0, 1fr) auto; padding: 44px 44px 36px; column-gap: 48px; }
  .card-actions .btn { padding-inline: 16px; font-size: 12.5px; letter-spacing: 0.12em; }
  .card-qr { align-self: center; }
  .card-actions { grid-column: 1 / -1; grid-template-columns: repeat(5, auto); justify-content: start; }
  .card-actions > :first-child { grid-column: auto; }
  .qr-frame img { width: 168px; height: 168px; }
}

/* 13. Footer, toast ----------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 14px; font-size: 14px; color: var(--text-3); }
.footer-name { font: 600 13px var(--f-display); letter-spacing: 0.2em; color: var(--text); }
.footer-tag { margin-top: 6px; font: 500 11px var(--f-mono); letter-spacing: 0.22em; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1fr auto auto; align-items: center; gap: 40px; } }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(14, 18, 34, 0.95); font: 500 12px var(--f-mono); letter-spacing: 0.12em;
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast::before { content: '✓ '; color: var(--green); }

/* 14. Motion ------------------------------------------------------------------ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes bars { 0%, 100% { height: 20%; } 50% { height: 100%; } }
@keyframes flowX { from { left: 32px; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { left: 88%; opacity: 0; } }
@keyframes busY { from { top: 0; } to { top: calc(100% - 40px); } }
@keyframes busX { from { left: 0; } to { left: calc(100% - 60px); } }
@keyframes dash { to { stroke-dashoffset: -400; } }
@keyframes cell { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes packetY { from { top: 0; opacity: 0; } 20% { opacity: 1; } to { top: 100%; opacity: 0; } }
@keyframes packetX { from { left: 0; opacity: 0; } 20% { opacity: 1; } to { left: 100%; opacity: 0; } }
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
@keyframes modalIn { from { transform: translateY(16px) scale(0.98); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .eco-pulse, .mcf-link i { display: none; }
}
