/* ============================================================
   MaestroPulse — control-room / signal aesthetic
   ============================================================ */

:root {
  --bg:        #07090d;
  --bg-2:      #0a0e15;
  --surface:   #11161f;
  --surface-2: #161d28;
  --line:      #1e2733;
  --line-2:    #2a3645;

  --text:      #e9edf3;
  --muted:     #8a96a6;
  --dim:       #5a6675;

  --signal:    #b6ff3c;   /* phosphor green */
  --signal-dim:#7ba82a;
  --signal-glow: rgba(182, 255, 60, 0.35);
  --amber:     #ffb454;

  --font-display: "Bricolage Grotesque", "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

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

::selection { background: var(--signal); color: #06210a; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; }

/* ---------------- texture overlays ---------------- */
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
}
.noise-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.scanline {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,0.18) 3px 4px);
}

/* keep content above overlays */
.nav, main, .footer { position: relative; z-index: 5; }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 52px);
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding-top: 12px; padding-bottom: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand-mark { color: var(--signal); display: grid; place-items: center; filter: drop-shadow(0 0 6px var(--signal-glow)); }
.brand-pulse { stroke-dasharray: 60; stroke-dashoffset: 0; }
.brand-accent { color: var(--signal); }
.brand-word { color: var(--text); }

.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-links a { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  border: 1px solid var(--line-2); color: var(--text) !important;
  padding: 8px 16px; border-radius: 2px; transition: all .25s var(--ease) !important;
}
.nav-cta:hover { border-color: var(--signal); background: var(--signal); color: #06210a !important; box-shadow: 0 0 24px var(--signal-glow); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); width: 42px; height: 38px; border-radius: 2px; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); transition: .25s; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500;
  padding: 14px 24px; border-radius: 2px; cursor: pointer;
  transition: all .28s var(--ease); border: 1px solid transparent;
  letter-spacing: 0.01em;
}
.btn span { transition: transform .28s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-primary { background: var(--signal); color: #06210a; box-shadow: 0 0 0 var(--signal-glow); }
.btn-primary:hover { box-shadow: 0 0 30px var(--signal-glow); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }
.btn-block { width: 100%; justify-content: center; }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(20px, 5vw, 52px) 60px;
  max-width: var(--maxw); margin: 0 auto;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.9; }
.hero-inner { position: relative; z-index: 3; max-width: 920px; }

.kicker {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  color: var(--signal); text-transform: lowercase; margin-bottom: 22px;
}

.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 0.98; letter-spacing: -0.03em;
  margin-bottom: 30px;
}
.hero-title .line { display: block; }
.hero-title em { font-style: italic; color: var(--signal); font-weight: 600; }

.hero-sub { max-width: 600px; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--muted); margin-bottom: 38px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); border-top: 1px solid var(--line); padding-top: 28px; }
.hero-stats > div { display: flex; align-items: baseline; gap: 14px; }
.hero-stats dt { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; color: var(--signal); line-height: 1; letter-spacing: -0.02em; }
.hero-stats dd { font-size: 0.82rem; color: var(--text); line-height: 1.35; }
.hero-stats dd span { color: var(--dim); font-family: var(--font-mono); font-size: 0.72rem; }

.hero-foot {
  position: relative; z-index: 3; max-width: var(--maxw); margin: 40px auto 0;
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--dim);
  display: flex; align-items: center; gap: 10px;
}
.blip { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px var(--signal); animation: blip 1.6s infinite; }
@keyframes blip { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.7); } }

/* ---------------- marquee ---------------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; align-items: center; gap: 28px; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; color: var(--text); }
.marquee-track .dot { color: var(--signal); font-size: 0.7rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- sections ---------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 52px); }
.section-alt { max-width: none; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section-head { max-width: 760px; margin-bottom: clamp(48px, 7vw, 84px); }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: -0.025em; margin: 16px 0 22px; }
.section-lead { font-size: clamp(1rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 620px; }
.section-lead strong { color: var(--text); }

/* ---------------- service cards ---------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--surface); padding: 38px 30px 32px; position: relative;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.card:hover { background: var(--surface-2); }
.card-no { font-family: var(--font-mono); font-size: 0.72rem; color: var(--signal-dim); letter-spacing: 0.05em; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.42rem; margin: 16px 0 12px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.card .tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.card .tags li { font-family: var(--font-mono); font-size: 0.7rem; color: var(--dim); border: 1px solid var(--line-2); padding: 4px 9px; border-radius: 2px; }
.card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--signal); transition: width .35s var(--ease); box-shadow: 0 0 14px var(--signal-glow); }
.card:hover::after { width: 100%; }

/* ---------------- stack grid ---------------- */
.stack-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stack-col { background: var(--surface); padding: 28px 22px; }
.stack-col h4 { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--signal); margin-bottom: 16px; }
.stack-col ul { list-style: none; }
.stack-col li { font-size: 0.9rem; color: var(--text); padding: 7px 0; border-top: 1px solid var(--line); }
.stack-col li:first-child { border-top: none; }

/* ---------------- meridian ---------------- */
.meridian-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.meridian-detail { color: var(--muted); font-size: 0.98rem; margin: 20px 0 32px; }
.feature-list { list-style: none; display: grid; gap: 20px; }
.feature-list li { display: flex; gap: 14px; }
.fl-mark { flex: none; width: 10px; height: 10px; margin-top: 7px; background: var(--signal); box-shadow: 0 0 10px var(--signal-glow); transform: rotate(45deg); }
.feature-list strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.feature-list p { color: var(--muted); font-size: 0.9rem; }

.meridian-panel {
  background: #05070a; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.8), 0 0 0 1px rgba(182,255,60,0.05);
  position: sticky; top: 100px;
}
.panel-head { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.panel-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.panel-dot:nth-child(1) { background: #ff5f57; }
.panel-dot:nth-child(2) { background: var(--amber); }
.panel-dot:nth-child(3) { background: var(--signal); }
.panel-title { margin-left: auto; font-family: var(--font-mono); font-size: 0.72rem; color: var(--dim); }
.panel-body { font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.75; padding: 22px 20px; color: var(--text); overflow-x: auto; white-space: pre; }
.c-com { color: var(--dim); }
.c-key { color: var(--text); }
.c-dim { color: var(--amber); }
.c-ok { color: var(--signal-dim); }
.blink { color: var(--signal); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------- meridian animated product preview ---------------- */
.mp-monitor {
  margin-bottom: clamp(40px, 6vw, 72px);
  border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden;
  background: #04060a;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(182,255,60,0.04);
}
.mp-bar {
  display: flex; align-items: center; gap: 16px;
  padding: 11px 18px; background: var(--surface); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em;
}
.mp-rec { display: flex; align-items: center; gap: 7px; color: #ff5f57; font-weight: 600; }
.mp-rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; box-shadow: 0 0 8px #ff5f57; animation: blip 1.3s infinite; }
.mp-cam { color: var(--text); }
.mp-time { margin-left: auto; color: var(--signal); }

.mp-scene {
  position: relative; aspect-ratio: 2.3 / 1; overflow: hidden;
  background:
    radial-gradient(120% 90% at 70% 120%, #0c1822 0%, #060a10 55%, #04060a 100%);
}
/* faint cctv grain + grid already global; add a vignette */
.mp-scene::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 120px 20px rgba(0,0,0,0.7);
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0,0,0,0.16) 3px 4px);
}
.mp-spotlight {
  position: absolute; left: 18%; top: -10%; width: 46%; height: 130%;
  background: radial-gradient(ellipse at 50% 40%, rgba(120,180,210,0.16), transparent 60%);
  filter: blur(8px);
}
.mp-counter {
  position: absolute; left: 8%; right: 8%; bottom: 0; height: 26%;
  background: linear-gradient(180deg, #16242f, #0b141c);
  border-top: 1px solid #253a48;
  transform: perspective(420px) rotateX(34deg); transform-origin: bottom;
}
/* POS terminal on the counter — focal point */
.mp-terminal {
  position: absolute; left: 50%; bottom: 18%;
  transform: translateX(-50%) perspective(420px) rotateX(34deg);
  width: 120px; height: 62px; border-radius: 4px;
  background: linear-gradient(180deg, #0e2730, #0a181e);
  border: 1px solid #1d3a44;
  box-shadow: 0 0 34px rgba(182,255,60,0.12);
}
.mp-terminal::after {
  content: ""; position: absolute; inset: 9px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(182,255,60,0.20), rgba(182,255,60,0.04));
  border: 1px solid rgba(182,255,60,0.28);
  animation: mp-screen 3.2s ease-in-out infinite;
}
@keyframes mp-screen { 0%,100% { opacity: .7; } 50% { opacity: 1; } }

/* conveyor lane: products slide through the scanner as each item is rung up */
.mp-lane {
  position: absolute; left: 0; right: 0; bottom: 19%; height: 56px;
  overflow: hidden; pointer-events: none;
}
.mp-lane::before { /* belt surface */
  content: ""; position: absolute; left: 5%; right: 5%; bottom: 9px; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(120,160,180,0.28), transparent);
}
.mp-products { position: absolute; inset: 0; }
.mp-product {
  position: absolute; bottom: 11px; left: 100%;
  width: 30px; height: 26px; border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 7px 16px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.12);
  animation: mp-slide 1.7s linear forwards;
}
@keyframes mp-slide { from { left: 102%; } to { left: -14%; } }

.mp-beam {
  position: absolute; left: 50%; top: 2px; bottom: 2px; width: 2px; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, #ff5f57 35%, #ff5f57 65%, transparent);
  box-shadow: 0 0 12px #ff5f57; opacity: 0.45;
}
.mp-beam.flash { animation: mp-beam-flash 0.32s ease; }
@keyframes mp-beam-flash {
  0% { opacity: .45; }
  28% { opacity: 1; box-shadow: 0 0 24px 2px #ff5f57; }
  100% { opacity: .45; }
}

/* scan sweep */
.mp-scan {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(182,255,60,0.10) 48%, rgba(182,255,60,0.22) 50%, transparent 52%, transparent);
  mix-blend-mode: screen;
  animation: mp-sweep 7s linear infinite;
}
@keyframes mp-sweep { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* POS transaction overlay — populated line-by-line by JS as items "scan" */
.mp-txn {
  position: absolute; right: 5%; top: 12%; width: min(45%, 270px);
  background: rgba(5, 9, 13, 0.82); backdrop-filter: blur(6px);
  border: 1px solid var(--signal-dim); border-left: 3px solid var(--signal);
  border-radius: 3px; padding: 14px 16px 12px;
  font-family: var(--font-mono); color: var(--text);
  box-shadow: 0 18px 50px -18px rgba(0,0,0,0.8), 0 0 24px rgba(182,255,60,0.12);
}
.mp-txn-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; font-weight: 600; color: var(--signal);
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.mp-live { display: inline-flex; align-items: center; gap: 5px; font-size: 0.6rem; color: var(--muted); letter-spacing: 0.08em; }
.mp-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 6px var(--signal); animation: blip 1.2s infinite; }

/* line items: hidden until JS adds .show as each product scans */
.mp-items { list-style: none; display: grid; gap: 6px; margin-bottom: 8px; min-height: 104px; align-content: start; }
.mp-items li {
  display: flex; justify-content: space-between; font-size: 0.74rem; color: var(--muted);
  opacity: 0; transform: translateX(8px);
  transition: opacity .22s ease, transform .22s ease, color .22s ease;
}
.mp-items li.show { opacity: 1; transform: none; }
.mp-items li span:last-child { color: var(--text); transition: color .22s ease, text-shadow .22s ease; }
.mp-items li.beep { color: var(--signal); }
.mp-items li.beep span:last-child { color: var(--signal); text-shadow: 0 0 10px var(--signal-glow); }

.mp-total {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.92rem; font-weight: 600; color: var(--text);
  padding-top: 8px; border-top: 1px solid var(--line);
}
.mp-total span:last-child { color: var(--signal); font-family: var(--font-display); font-size: 1.15rem; transition: text-shadow .3s ease; }
.mp-total.hot span:last-child { text-shadow: 0 0 18px var(--signal-glow); }

.mp-match {
  margin-top: 9px; font-size: 0.6rem; color: var(--signal-dim); letter-spacing: 0.02em;
  opacity: 0; transition: opacity .4s ease;
}
.mp-match.show { opacity: 1; }

.mp-foot {
  padding: 11px 18px; background: var(--surface); border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--dim);
}

@media (max-width: 680px) {
  .mp-scene { aspect-ratio: 1.5 / 1; }
  .mp-txn { width: 64%; top: 8%; right: 4%; }
  .mp-terminal { bottom: 14%; }
}

/* ---------------- why grid ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why-item { background: var(--bg-2); padding: 40px 34px; transition: background .3s; }
.why-item:hover { background: var(--surface); }
.why-item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.why-item h3::before { content: "◆ "; color: var(--signal); font-size: 0.8em; }
.why-item p { color: var(--muted); }

/* ---------------- steps ---------------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; padding-top: 28px; border-top: 2px solid var(--line); }
.step-no { font-family: var(--font-mono); font-size: 0.8rem; color: var(--signal); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: 0.92rem; }
.step::before { content: ""; position: absolute; top: -2px; left: 0; width: 36px; height: 2px; background: var(--signal); box-shadow: 0 0 12px var(--signal-glow); }

/* ---------------- contact ---------------- */
.contact { max-width: 760px; }
.contact-inner { text-align: center; }
.contact-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -0.03em; margin: 16px 0 22px; }
.contact-lead { color: var(--muted); max-width: 520px; margin: 0 auto 44px; font-size: 1.1rem; }

.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.74rem; color: var(--signal); text-transform: uppercase; letter-spacing: 0.06em; }
.field input, .field textarea {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 2px;
  padding: 14px 16px; color: var(--text); font-family: var(--font-body); font-size: 1rem;
  transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-glow); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.contact-form .btn-block { grid-column: 1 / -1; margin-top: 6px; }
.form-note { grid-column: 1 / -1; font-family: var(--font-mono); font-size: 0.8rem; color: var(--signal); min-height: 1.2em; text-align: center; }
.contact-alt { margin-top: 30px; font-family: var(--font-mono); font-size: 0.85rem; color: var(--dim); }
.contact-alt a { color: var(--signal); border-bottom: 1px solid var(--signal-dim); }

/* ---------------- footer ---------------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px clamp(20px, 5vw, 52px) 30px; }
.footer-top { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer-tag { color: var(--muted); max-width: 360px; font-size: 0.92rem; }
.footer-bottom { max-width: var(--maxw); margin: 24px auto 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 0.76rem; color: var(--dim); }

/* ---------------- reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { transition-duration: .8s; }
.hero-title .line { opacity: 0; transform: translateY(28px); animation: rise .9s var(--ease) forwards; }
.hero-title .line:nth-child(1) { animation-delay: .15s; }
.hero-title .line:nth-child(2) { animation-delay: .28s; }
.hero-title .line:nth-child(3) { animation-delay: .41s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* stagger groups */
.cards .reveal:nth-child(2){transition-delay:.06s}
.cards .reveal:nth-child(3){transition-delay:.12s}
.cards .reveal:nth-child(4){transition-delay:.18s}
.cards .reveal:nth-child(5){transition-delay:.24s}
.cards .reveal:nth-child(6){transition-delay:.30s}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  /* keep the meridian overlay readable when its animations are off */
  .mp-items li, .mp-match { opacity: 1 !important; transform: none !important; }
  .mp-scan { display: none; }
}

/* ---------------- responsive ---------------- */
@media (max-width: 940px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(3, 1fr); }
  .meridian-grid { grid-template-columns: 1fr; }
  .meridian-panel { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7,9,13,0.97); backdrop-filter: blur(14px);
    padding: 24px clamp(20px,5vw,52px) 30px; border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: flex; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  .cards, .why-grid, .steps, .contact-form { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 24px; }
  .hero-stats > div { width: 100%; }
}
