/* ==========================================================
   MEMPALACE — THE CRYSTALLINE PALACE
   Styles live behind .mempalace-landing so they don't leak
   onto the docs pages.
   ========================================================== */

/* When the landing component is mounted, hide VitePress chrome so our
   own folio header is the only one showing. The class is toggled
   via onMounted/onBeforeUnmount and does not affect other pages. */
body.mempalace-active .VPNav,
body.mempalace-active .VPLocalNav,
body.mempalace-active .VPFooter { display: none !important; }
body.mempalace-active .VPContent {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}
body.mempalace-active .VPPage,
body.mempalace-active .VPDoc {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
}
body.mempalace-active { overflow-x: hidden; }

.mempalace-landing {
  --void:        #080C18;
  --obsidian:    #0F1524;
  --obsidian-2:  #182033;
  --ink:         #1C2640;
  --hair:        rgba(56, 189, 248, 0.14);
  --hair-strong: rgba(56, 189, 248, 0.28);
  --ice:         #DBE7F5;
  --ice-dim:     #8B99B0;
  --ice-ghost:   rgba(219, 231, 245, 0.56);
  --prism:       #7DD3FC;
  --prism-core:  #38BDF8;
  --refract:     #A78BFA;
  --stellar:     #FBBF24;
  --ember:       #FF8B8B;

  --f-display: "Neue Machina", "Satoshi", sans-serif;
  --f-body:    "Onest", ui-sans-serif, system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 3vw, 2.5rem);
  --rule: 1px;

  background: var(--void);
  color: var(--ice);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}
.mempalace-landing * { box-sizing: border-box; }
.mempalace-landing ::selection { background: var(--prism-core); color: #080C18; }

.mempalace-landing::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(56,189,248,0.18), transparent 60%),
    radial-gradient(40% 40% at 85% 20%, rgba(167,139,250,0.08), transparent 70%),
    radial-gradient(50% 50% at 15% 80%, rgba(125,211,252,0.06), transparent 70%);
  z-index: 0;
}
.mempalace-landing::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  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.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.62 0 0 0 0 0.85 0 0 0 0 1 0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.mempalace-landing .page { position: relative; z-index: 2; padding-top: 54px; }

.mempalace-landing main,
.mempalace-landing header,
.mempalace-landing footer { position: relative; }

/* Folio */
.mempalace-landing .folio {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 14px var(--gutter);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice-ghost);
  background: linear-gradient(to bottom, rgba(5,7,10,0.92), rgba(5,7,10,0.72) 70%, rgba(5,7,10,0.4));
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: var(--rule) solid var(--hair);
}
.mempalace-landing .folio .right { display: flex; gap: 1.5rem; align-items: center; }
.mempalace-landing .folio .mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ice);
}
.mempalace-landing .folio .mark img {
  width: 22px; height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(74,163,255,0.45));
}
.mempalace-landing .folio a {
  color: var(--ice-ghost);
  text-decoration: none;
  transition: color 0.25s ease;
}
.mempalace-landing .folio a:hover { color: var(--prism); }

/* Typography helpers */
.mempalace-landing .eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--prism);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.mempalace-landing .eyebrow::before {
  content: "";
  display: inline-block;
  width: 36px; height: 1px;
  background: var(--prism);
  opacity: 0.6;
}
.mempalace-landing .eyebrow.no-rule::before { display: none; }
.mempalace-landing .display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.95;
  color: var(--ice);
}
.mempalace-landing .display em { font-style: italic; color: var(--prism-core); }
.mempalace-landing .lede {
  font-family: var(--f-display);
  /* font-style: italic; */
  font-weight: 400;
  color: var(--ice-dim);
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.45;
  max-width: 46ch;
}
.mempalace-landing section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8rem) var(--gutter);
}
.mempalace-landing section + section { border-top: var(--rule) solid var(--hair); }

.mempalace-landing .section-mark {
  position: absolute;
  top: clamp(1.5rem, 3vw, 2.5rem);
  left: var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ice-ghost);
}
.mempalace-landing .section-mark .roman {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--prism);
  letter-spacing: 0;
}

.mempalace-landing .corner-ticks {
  position: absolute;
  inset: clamp(1rem, 2vw, 2rem);
  pointer-events: none;
  z-index: 0;
}
.mempalace-landing .corner-ticks::before,
.mempalace-landing .corner-ticks::after,
.mempalace-landing .corner-ticks > span::before,
.mempalace-landing .corner-ticks > span::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: var(--rule) solid var(--hair-strong);
}
.mempalace-landing .corner-ticks::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.mempalace-landing .corner-ticks::after  { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.mempalace-landing .corner-ticks > span::before { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.mempalace-landing .corner-ticks > span::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* Hero */
.mempalace-landing .hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 54px);
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
}
.mempalace-landing .hero-inner {
  width: 100%;
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.mempalace-landing .hero-copy { position: relative; z-index: 3; }
.mempalace-landing .hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  margin: 0 0 1.25rem;
}
.mempalace-landing .hero h1 .line { display: block; }
.mempalace-landing .hero h1 .line-2 { font-style: normal; font-weight: 400; }
.mempalace-landing .hero h1 .is-accent { font-style: italic; color: var(--prism-core); font-weight: 300; }
.mempalace-landing .hero h1 .identity-white { color: #ffffff; }
.mempalace-landing .hero .lede { margin-bottom: 0; }
.mempalace-landing .hero .lede .mp-blue { color: var(--prism-core); font-weight: 500; }
.mempalace-landing .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
}

/* --- Waitlist form --- */
.mempalace-landing .waitlist {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.25rem 0.9rem;
  margin-top: 1.5rem;
  max-width: 560px;
  border: var(--rule) solid var(--hair-strong);
  background:
    linear-gradient(180deg, rgba(74,163,255,0.14), rgba(10,13,18,0.55)),
    var(--obsidian);
  box-shadow:
    inset 0 0 0 1px rgba(158,216,255,0.12),
    0 30px 70px -30px rgba(74,163,255,0.55),
    0 0 60px -30px rgba(74,163,255,0.4);
  isolation: isolate;
}
.mempalace-landing .waitlist::before,
.mempalace-landing .waitlist::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  border: var(--rule) solid var(--prism);
  opacity: 0.7;
  pointer-events: none;
}
.mempalace-landing .waitlist::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.mempalace-landing .waitlist::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.mempalace-landing .waitlist-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.mempalace-landing .waitlist-pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--prism);
  box-shadow: 0 0 10px var(--prism-core), 0 0 20px var(--prism-core);
  animation: mpl-breathe 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
.mempalace-landing .waitlist-eyebrow { color: var(--prism); }
.mempalace-landing .waitlist-meta {
  margin-left: auto;
  color: var(--ice-ghost);
  font-size: 9.5px;
  letter-spacing: 0.18em;
}

.mempalace-landing .waitlist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: stretch;
}
.mempalace-landing .waitlist-input {
  background: rgba(5,7,10,0.7);
  border: var(--rule) solid var(--hair-strong);
  padding: 0.75rem 0.9rem;
  color: var(--ice);
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  min-width: 0;
  width: 100%;
}
.mempalace-landing .waitlist-input::placeholder { color: var(--ice-ghost); }
.mempalace-landing .waitlist-input:hover { border-color: var(--prism); }
.mempalace-landing .waitlist-input:focus {
  outline: none;
  border-color: var(--prism);
  box-shadow: 0 0 0 3px rgba(74,163,255,0.2);
  background: rgba(10,13,18,0.9);
}
.mempalace-landing .waitlist-input:disabled { opacity: 0.6; cursor: not-allowed; }

.mempalace-landing .waitlist-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.1rem;
  border: var(--rule) solid var(--prism);
  background: rgba(158,216,255,0.14);
  color: var(--prism);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.25s;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(158,216,255,0.15),
              0 10px 40px -20px rgba(74,163,255,0.55);
}
.mempalace-landing .waitlist-submit:hover:not(:disabled) {
  background: rgba(158,216,255,0.22);
  color: var(--ice);
  transform: translateY(-1px);
}
.mempalace-landing .waitlist-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.mempalace-landing .waitlist-submit svg { width: 14px; height: 14px; }
.mempalace-landing .waitlist-submit .waitlist-label-pending,
.mempalace-landing .waitlist-submit .waitlist-check { display: none; }

.mempalace-landing .waitlist.is-pending .waitlist-submit .waitlist-label-default,
.mempalace-landing .waitlist.is-pending .waitlist-submit .waitlist-arrow { display: none; }
.mempalace-landing .waitlist.is-pending .waitlist-submit .waitlist-label-pending { display: inline; }

.mempalace-landing .waitlist.is-success .waitlist-submit .waitlist-label-default,
.mempalace-landing .waitlist.is-success .waitlist-submit .waitlist-label-pending,
.mempalace-landing .waitlist.is-success .waitlist-submit .waitlist-arrow { display: none; }
.mempalace-landing .waitlist.is-success .waitlist-submit .waitlist-check { display: inline; }
.mempalace-landing .waitlist.is-success .waitlist-submit {
  background: rgba(158,216,255,0.28);
  color: var(--ice);
}
.mempalace-landing .waitlist.is-success .waitlist-input { border-color: var(--prism); }

.mempalace-landing .waitlist-msg {
  margin: 0;
  min-height: 1.1em;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ice-ghost);
  transition: color 0.2s;
}
.mempalace-landing .waitlist.is-success .waitlist-msg {
  color: var(--prism);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0;
}
.mempalace-landing .waitlist.is-error .waitlist-msg { color: var(--ember); }

/* Secondary hero links (shown below the waitlist form) */
.mempalace-landing .hero-secondary {
  margin-top: 1rem;
  display: flex;
  gap: 0.9rem;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice-ghost);
}
.mempalace-landing .hero-secondary a {
  color: var(--ice-ghost);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.mempalace-landing .hero-secondary a:hover { color: var(--prism); border-color: var(--prism); }
.mempalace-landing .hero-secondary .sep { opacity: 0.5; }

/* Footer variant */
.mempalace-landing .waitlist-footer {
  max-width: 760px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
}

/* Buttons */
.mempalace-landing .btn {
  --bg: transparent;
  --fg: var(--ice);
  --bd: var(--hair-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.4rem;
  border: var(--rule) solid var(--bd);
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.mempalace-landing .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 60% at 50% 120%, rgba(74,163,255,0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.mempalace-landing .btn:hover { border-color: var(--prism); color: var(--ice); }
.mempalace-landing .btn:hover::after { opacity: 1; }
.mempalace-landing .btn svg { width: 14px; height: 14px; }
.mempalace-landing .btn-primary {
  --bg: rgba(158,216,255,0.08);
  --bd: var(--prism);
  color: var(--prism);
  box-shadow: inset 0 0 0 1px rgba(158,216,255,0.2),
              0 0 0 1px rgba(74,163,255,0.15),
              0 20px 60px -20px rgba(74,163,255,0.35);
}
.mempalace-landing .btn-primary:hover { background: rgba(158,216,255,0.14); color: var(--ice); }

.mempalace-landing .hero-stats {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: var(--rule) solid var(--hair);
  max-width: 560px;
}
.mempalace-landing .hero-stats dt {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice-ghost);
  margin-bottom: 0.4rem;
}
.mempalace-landing .hero-stats dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  color: var(--ice);
  letter-spacing: -0.01em;
}
.mempalace-landing .hero-stats dd em { font-style: italic; color: var(--prism); }

/* Palace visual */
.mempalace-landing .palace-stage {
  position: relative;
  aspect-ratio: 1 / 1.05;
  width: 100%;
  max-width: 640px;
  justify-self: end;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mempalace-landing .palace-stage .halo {
  position: absolute;
  inset: -12% -8% -5% -12%;
  background: radial-gradient(50% 45% at 50% 55%, rgba(74,163,255,0.35), transparent 70%);
  filter: blur(30px);
  opacity: 0.6;
  animation: mpl-haloPulse 7s ease-in-out infinite;
  z-index: 0;
}
@keyframes mpl-haloPulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 0.75;  transform: scale(1.06); }
}
.mempalace-landing .palace-stage .palace-video {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;

  --mask-left: linear-gradient(to right, transparent 0%, black 25%);
  --mask-right: linear-gradient(to left, transparent 0%, black 25%);
  --mask-top: linear-gradient(to bottom, transparent 0%, black 15%);
  --mask-bottom: linear-gradient(to top, transparent 0%, black 15%);

  -webkit-mask-image: var(--mask-left), var(--mask-right), var(--mask-top), var(--mask-bottom);
  -webkit-mask-composite: source-in;
  mask-image: var(--mask-left), var(--mask-right), var(--mask-top), var(--mask-bottom);
  mask-composite: intersect;
}
.mempalace-landing .palace-stage .stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mempalace-landing .palace-stage .stars i {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--ice);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 6px rgba(234,244,255,0.8);
  animation: mpl-twinkle var(--t, 5s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes mpl-twinkle {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50%      { opacity: 0.9; transform: scale(1); }
}

/* Forgetting */
.mempalace-landing .forgetting {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.mempalace-landing .forgetting-head {
  max-width: 820px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}
.mempalace-landing .forgetting-head .copy { max-width: 62ch; }
.mempalace-landing .forgetting-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  margin: 1rem 0 1.25rem;
}
.mempalace-landing .forgetting-head .replay {
  background: none;
  border: var(--rule) solid var(--hair-strong);
  color: var(--ice-ghost);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, color 0.2s, border-color 0.2s;
  display: inline-flex; align-items: center; gap: 0.5rem;
  white-space: nowrap;
}
.mempalace-landing .forgetting-head .replay.visible { opacity: 1; pointer-events: auto; }
.mempalace-landing .forgetting-head .replay:hover { color: var(--prism); border-color: var(--prism); }
.mempalace-landing .forgetting-head .replay svg { width: 11px; height: 11px; }
.mempalace-landing .forgetting-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 0;
  border: var(--rule) solid var(--hair-strong);
  background: linear-gradient(180deg, rgba(17,21,28,0.65), rgba(10,13,18,0.35));
  min-height: 540px;
  position: relative;
  overflow: hidden;
}
.mempalace-landing .forgetting-compare .divider {
  background: linear-gradient(180deg, transparent, var(--hair-strong) 20%, var(--hair-strong) 80%, transparent);
  position: relative;
}
.mempalace-landing .forgetting-compare .divider::before {
  content: "vs";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ice-ghost);
  background: var(--void);
  padding: 6px 10px;
  border: var(--rule) solid var(--hair-strong);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  box-sizing: border-box;
}
.mempalace-landing .demo-pane {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem 1.75rem;
  min-height: 540px;
}
.mempalace-landing .demo-pane > header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 0.9rem;
  margin-bottom: 1.25rem;
  border-bottom: var(--rule) solid var(--hair);
  gap: 1rem;
}
.mempalace-landing .demo-pane .pane-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ice);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.mempalace-landing .demo-pane.demo-forget .pane-tag::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 6px var(--ember);
}
.mempalace-landing .demo-pane.demo-remember .pane-tag::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--prism);
  box-shadow: 0 0 6px var(--prism-core);
}
.mempalace-landing .demo-pane .pane-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ice-ghost);
  text-align: right;
}
.mempalace-landing .demo-pane.demo-forget .pane-meta em    { color: var(--ember); font-style: normal; }
.mempalace-landing .demo-pane.demo-remember .pane-meta em  { color: var(--prism); font-style: normal; }
.mempalace-landing .chat {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  position: relative;
  overflow: hidden;
  min-height: 380px;
}
.mempalace-landing .msg {
  display: flex;
  gap: 0.85rem;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ice-dim);
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  animation: mpl-msg-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.mempalace-landing .msg.you { color: var(--ice); }
.mempalace-landing .msg.ai  { color: var(--ice-dim); }
.mempalace-landing .msg .who {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  flex: 0 0 52px;
  padding-top: 3px;
  color: var(--prism);
  opacity: 0.85;
}
.mempalace-landing .msg.ai .who { color: var(--ember); }
.mempalace-landing .demo-remember .msg.ai .who { color: var(--prism); }
.mempalace-landing .msg .body {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}
.mempalace-landing .msg .body strong {
  color: var(--prism);
  font-weight: 500;
  background: linear-gradient(180deg, transparent 60%, rgba(158,216,255,0.2) 60%);
  padding: 0 1px;
}
.mempalace-landing .demo-forget .msg.ai .body { color: var(--ember); }
.mempalace-landing .demo-remember .msg.ai .body { color: var(--ice); }
@keyframes mpl-msg-in { to { opacity: 1; transform: translateY(0); } }
.mempalace-landing .msg.typing .body::after {
  content: "";
  display: inline-block;
  width: 7px; height: 1.1em;
  margin-left: 3px;
  background: currentColor;
  vertical-align: -2px;
  animation: mpl-caret 0.9s steps(2) infinite;
}
@keyframes mpl-caret { 50% { opacity: 0; } }
.mempalace-landing .chat .divider-time {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--ice-ghost);
  font-size: 0.95rem;
  text-align: center;
  padding: 0.4rem 0;
  position: relative;
  opacity: 0;
  animation: mpl-msg-in 0.5s ease 0.05s forwards;
}
.mempalace-landing .chat .divider-time::before,
.mempalace-landing .chat .divider-time::after {
  content: "";
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--hair-strong);
  vertical-align: middle;
  margin: 0 0.8rem;
}
.mempalace-landing .chat .retrieval {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  border: 1px dashed var(--hair-strong);
  background: rgba(74,163,255,0.05);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice-ghost);
  opacity: 0;
  transform: translateY(4px);
  animation: mpl-msg-in 0.5s ease forwards;
}
.mempalace-landing .chat .retrieval .who { color: var(--prism); }
.mempalace-landing .chat .retrieval .l   { color: var(--ice); letter-spacing: 0.22em; }
.mempalace-landing .chat .retrieval .r   { color: var(--prism); }
.mempalace-landing .chat .stamp {
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: var(--rule) solid var(--hair);
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.15rem;
  opacity: 0;
  animation: mpl-msg-in 0.6s ease forwards;
  display: flex; justify-content: space-between; align-items: baseline;
}
.mempalace-landing .chat .stamp .call {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ice-ghost);
  text-transform: uppercase;
}
.mempalace-landing .demo-forget   .chat .stamp { color: var(--ember); }
.mempalace-landing .demo-remember .chat .stamp { color: var(--prism); }
.mempalace-landing .dust-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}
.mempalace-landing .dust-overlay .dust {
  position: absolute;
  will-change: transform, opacity, filter;
  transition-property: transform, opacity, filter;
  transition-timing-function: cubic-bezier(0.2, 0.55, 0.3, 1);
}

/* Anatomy */
.mempalace-landing .anatomy { padding-top: clamp(5rem, 9vw, 7rem); }
.mempalace-landing .anatomy-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  align-items: end;
}
.mempalace-landing .anatomy h2 {
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  margin: 1rem 0 0;
}
.mempalace-landing .anatomy h2 em { font-style: italic; color: var(--prism); }
.mempalace-landing .anatomy-diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.2vw, 1.75rem);
  padding: 2rem 0;
}
@media (max-width: 1200px) {
  .mempalace-landing .anatomy-diagram { grid-template-columns: repeat(2, 1fr); }
}
.mempalace-landing .stratum {
  position: relative;
  border: var(--rule) solid var(--hair);
  padding: 1.75rem 1.25rem;
  background: linear-gradient(180deg, rgba(17,21,28,0.6), rgba(10,13,18,0.2));
  min-height: 340px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.mempalace-landing .stratum:hover { border-color: var(--prism); transform: translateY(-4px); }
.mempalace-landing .stratum::before {
  content: "";
  position: absolute;
  top: -1px; left: 24px; right: 24px;
  height: 2px;
  background: var(--prism);
  opacity: 0.4;
}
.mempalace-landing .stratum .n {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--prism);
}
.mempalace-landing .stratum h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 2vw, 2.1rem);
  letter-spacing: -0.01em;
  margin: 1.25rem 0 0.25rem;
  color: var(--ice);
}
.mempalace-landing .stratum h3 em { font-style: italic; color: var(--prism); font-weight: 300; }
.mempalace-landing .stratum .sub {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ice-dim);
  margin-bottom: 1.5rem;
}
.mempalace-landing .stratum p {
  color: var(--ice-dim);
  font-size: 14.5px;
  margin: 0 0 1.5rem;
}
.mempalace-landing .stratum .diagram {
  margin-top: auto;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: var(--rule) solid var(--hair);
  padding-top: 1rem;
}
.mempalace-landing .stratum .diagram svg { width: 100%; height: 100%; }

/* Dialect */
.mempalace-landing .dialect-head { max-width: 780px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.mempalace-landing .dialect-head h2 { font-size: clamp(2.25rem, 5vw, 4rem); margin: 1rem 0 1.5rem; }
.mempalace-landing .dialect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
.mempalace-landing .slab {
  position: relative;
  border: var(--rule) solid var(--hair);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: linear-gradient(180deg, rgba(17,21,28,0.65), rgba(10,13,18,0.35));
  min-height: 420px;
}
.mempalace-landing .slab .card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--rule) solid var(--hair);
  padding-bottom: 0.9rem;
  margin-bottom: 1.4rem;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice-ghost);
}
.mempalace-landing .slab .card-head .l { color: var(--prism); }
.mempalace-landing .slab .label {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--ice);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.mempalace-landing .slab p {
  font-family: var(--f-display);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ice-dim);
  margin: 0 0 1rem;
}
.mempalace-landing .slab p strong {
  color: var(--ice);
  font-weight: 500;
  font-style: italic;
}
.mempalace-landing .slab.mono pre {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ice-dim);
  margin: 0;
  white-space: pre-wrap;
}
.mempalace-landing .slab.mono pre .k { color: var(--prism); }
.mempalace-landing .slab.mono pre .t { color: var(--refract); }
.mempalace-landing .slab.mono pre .v { color: var(--stellar); }
.mempalace-landing .slab.mono pre .c { color: var(--ice-ghost); opacity: 0.6; }
.mempalace-landing .dialect-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-top: var(--rule) solid var(--hair);
  border-bottom: var(--rule) solid var(--hair);
}
.mempalace-landing .dialect-arrow svg { width: 28px; height: 28px; color: var(--prism); }
.mempalace-landing .dialect-arrow span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ice-ghost);
}
.mempalace-landing .dialect-caption {
  margin-top: 1.5rem;
  font-family: var(--f-display);
  font-style: italic;
  color: var(--ice-ghost);
  font-size: 1rem;
  max-width: 60ch;
}

/* Mechanics */
.mempalace-landing .mechanics-head { max-width: 780px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.mempalace-landing .mechanics-head h2 { font-size: clamp(2.25rem, 5vw, 4rem); margin: 1rem 0 1.5rem; }
.mempalace-landing .mechanics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: var(--rule) solid var(--hair);
}
.mempalace-landing .mech {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-right: var(--rule) solid var(--hair);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.4s ease;
}
.mempalace-landing .mech:last-child { border-right: 0; }
.mempalace-landing .mech:hover { background: rgba(158,216,255,0.03); }
.mempalace-landing .mech .n { color: var(--prism); }
.mempalace-landing .mech h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.75rem;
  margin: 0.5rem 0 0;
  letter-spacing: -0.005em;
}
.mempalace-landing .mech h3 em { font-style: italic; color: var(--prism); }
.mempalace-landing .mech p {
  color: var(--ice-dim);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.mempalace-landing .mech .icon {
  width: 48px; height: 48px;
  color: var(--prism);
  opacity: 0.85;
}
.mempalace-landing .mech .icon svg { width: 100%; height: 100%; }
.mempalace-landing .mech .metric {
  margin-top: auto;
  padding-top: 1rem;
  border-top: var(--rule) solid var(--hair);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ice-ghost);
  text-transform: uppercase;
}
.mempalace-landing .mech .metric b { color: var(--prism); font-weight: 500; }

/* Install */
.mempalace-landing .install {
  text-align: center;
  padding: clamp(6rem, 12vw, 10rem) var(--gutter);
  background: radial-gradient(60% 80% at 50% 100%, rgba(74,163,255,0.18), transparent 70%);
}
.mempalace-landing .install h2 {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  margin: 1rem 0 1.5rem;
}
.mempalace-landing .install h2 em { font-style: italic; color: var(--prism); }
.mempalace-landing .install .lede { margin: 0 auto 3rem; }
.mempalace-landing .terminal {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  border: var(--rule) solid var(--hair-strong);
  background: linear-gradient(180deg, rgba(17,21,28,0.9), rgba(10,13,18,0.7));
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(234,244,255,0.04),
              0 30px 80px -30px rgba(74,163,255,0.3),
              0 0 0 1px rgba(158,216,255,0.06);
}
.mempalace-landing .terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  border-bottom: var(--rule) solid var(--hair);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ice-ghost);
  text-transform: uppercase;
}
.mempalace-landing .terminal-head .lights { display: flex; gap: 6px; }
.mempalace-landing .terminal-head .lights i {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid rgba(158,216,255,0.25);
  background: rgba(158,216,255,0.08);
}
.mempalace-landing .terminal pre {
  margin: 0;
  padding: 1.5rem 1.5rem 2rem;
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.9;
  color: var(--ice);
  white-space: pre-wrap;
}
.mempalace-landing .terminal .prompt { color: var(--prism); user-select: none; }
.mempalace-landing .terminal .c      { color: var(--ice-ghost); }
.mempalace-landing .terminal .ok     { color: var(--prism); }
.mempalace-landing .terminal .dim    { color: var(--ice-ghost); }
.mempalace-landing .install-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Footer */
.mempalace-landing footer.catalog {
  position: relative;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter);
  border-top: var(--rule) solid var(--hair);
}
.mempalace-landing .catalog-card {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: var(--rule) solid var(--hair-strong);
  border-bottom: var(--rule) solid var(--hair-strong);
}
.mempalace-landing .catalog-card h4 {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ice-ghost);
  margin: 0 0 1rem;
  font-weight: 400;
}
.mempalace-landing .catalog-card ul { list-style: none; margin: 0; padding: 0; }
.mempalace-landing .catalog-card li {
  font-family: var(--f-display);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ice-dim);
}
.mempalace-landing .catalog-card li a {
  color: var(--ice-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.mempalace-landing .catalog-card li a:hover { color: var(--prism); border-color: var(--prism); }
.mempalace-landing .catalog-title {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ice);
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.mempalace-landing .catalog-title em { font-style: italic; color: var(--prism); }
.mempalace-landing .catalog-desc {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--ice-dim);
  font-size: 1rem;
  margin: 0;
  max-width: 38ch;
}

/* Responsive */
@media (max-width: 1100px) {
  .mempalace-landing .mechanics { grid-template-columns: repeat(2, 1fr); }
  .mempalace-landing .mech:nth-child(2) { border-right: 0; }
  .mempalace-landing .mech:nth-child(1),
  .mempalace-landing .mech:nth-child(2) { border-bottom: var(--rule) solid var(--hair); }
}
@media (max-width: 900px) {
  .mempalace-landing .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .mempalace-landing .palace-stage { justify-self: center; max-width: 400px; order: -1; aspect-ratio: 1 / 0.85; }
  .mempalace-landing .anatomy-head { grid-template-columns: 1fr; }
  .mempalace-landing .anatomy-diagram { grid-template-columns: 1fr; }
  .mempalace-landing .forgetting-head { grid-template-columns: 1fr; }
  .mempalace-landing .forgetting-compare { grid-template-columns: 1fr; min-height: 0; }
  .mempalace-landing .forgetting-compare .divider { display: none; }
  .mempalace-landing .demo-pane { min-height: 0; }
  .mempalace-landing .demo-pane + .demo-pane { border-top: var(--rule) solid var(--hair-strong); }
  .mempalace-landing .dialect-grid { grid-template-columns: 1fr; }
  .mempalace-landing .dialect-arrow { padding: 1rem 0; border-left: 0; border-right: 0; }
  .mempalace-landing .dialect-arrow span { writing-mode: initial; transform: none; }
  .mempalace-landing .catalog-card { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .mempalace-landing .folio { gap: 1rem; padding: 14px 1.25rem; }
  .mempalace-landing .folio .right { gap: 1rem; }
  .mempalace-landing .folio .right .hide-mobile { display: none; }
  .mempalace-landing .hero-stats { grid-template-columns: 1fr 1fr; }
  .mempalace-landing .catalog-card { grid-template-columns: 1fr; }
  .mempalace-landing .waitlist-row { grid-template-columns: 1fr; }
  .mempalace-landing .waitlist-meta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mempalace-landing *,
  .mempalace-landing *::before,
  .mempalace-landing *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* ================================================================
   ICON ANIMATIONS — Anatomy diagrams + Mechanics icons
   ================================================================ */
.mempalace-landing .anatomy-diagram .stratum .diagram svg rect,
.mempalace-landing .anatomy-diagram .stratum .diagram svg circle,
.mempalace-landing .mech .icon svg * {
  transform-box: fill-box;
  transform-origin: center;
}

/* Wing — only the outer wing outline pulses brighter */
.mempalace-landing .stratum:nth-child(1) .diagram svg rect[opacity] {
  animation: mpl-wing-light 3.6s ease-in-out infinite;
}
@keyframes mpl-wing-light {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* Room — four rooms light up in sequence */
.mempalace-landing .stratum:nth-child(2) .diagram svg rect {
  fill: var(--prism);
  fill-opacity: 0;
  animation: mpl-room-light 4.5s ease-in-out infinite;
}
.mempalace-landing .stratum:nth-child(2) .diagram svg rect:nth-of-type(2) { animation-delay: 0.25s; }
.mempalace-landing .stratum:nth-child(2) .diagram svg rect:nth-of-type(3) { animation-delay: 0.5s; }
.mempalace-landing .stratum:nth-child(2) .diagram svg rect:nth-of-type(4) { animation-delay: 0.75s; }
@keyframes mpl-room-light {
  0%, 40%, 100% { fill-opacity: 0; }
  10%, 30%      { fill-opacity: 0.4; }
}

/* Closet — three closets do a gentle vertical wave, staggered 180ms apart */
.mempalace-landing .stratum:nth-child(3) .diagram svg .closet {
  transform-box: fill-box;
  transform-origin: center;
  animation: mpl-closet-wave 3.6s ease-in-out infinite;
}
.mempalace-landing .stratum:nth-child(3) .diagram svg .closet:nth-of-type(2) { animation-delay: 0.18s; }
.mempalace-landing .stratum:nth-child(3) .diagram svg .closet:nth-of-type(3) { animation-delay: 0.36s; }
@keyframes mpl-closet-wave {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.mempalace-landing .stratum:nth-child(3) .diagram svg circle {
  fill: currentColor;
}

/* Drawer — drawers slide out rhythmically; handles pulse */
.mempalace-landing .stratum:nth-child(4) .diagram svg rect {
  animation: mpl-drawer-slide 4.2s ease-in-out infinite;
}
.mempalace-landing .stratum:nth-child(4) .diagram svg rect:nth-of-type(2) { animation-delay: 0.3s; }
.mempalace-landing .stratum:nth-child(4) .diagram svg rect:nth-of-type(3) { animation-delay: 0.6s; }
@keyframes mpl-drawer-slide {
  0%, 100%   { transform: translateX(0); }
  25%, 40%   { transform: translateX(10px); }
}
.mempalace-landing .stratum:nth-child(4) .diagram svg circle {
  fill: currentColor;
  animation: mpl-dot-pulse 2.2s ease-in-out infinite;
}
.mempalace-landing .stratum:nth-child(4) .diagram svg circle:nth-of-type(2) { animation-delay: 0.18s; }
.mempalace-landing .stratum:nth-child(4) .diagram svg circle:nth-of-type(3) { animation-delay: 0.36s; }

/* Mechanics #1 — data bars pulse like activity; status LED breathes */
.mempalace-landing .mech:nth-child(1) .icon svg .mech-bars path {
  stroke-opacity: 0.35;
  animation: mpl-bar-pulse 2.4s ease-in-out infinite;
}
.mempalace-landing .mech:nth-child(1) .icon svg .mech-bars path:nth-of-type(2) {
  animation-delay: 0.45s;
}
@keyframes mpl-bar-pulse {
  0%, 100% { stroke-opacity: 0.35; }
  50%      { stroke-opacity: 1; }
}
.mempalace-landing .mech:nth-child(1) .icon svg .mech-led {
  animation: mpl-led-blink 1.8s ease-in-out infinite;
}
@keyframes mpl-led-blink {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 1; }
}

/* Mechanics #2 — ring breathes, slash pulses */
.mempalace-landing .mech:nth-child(2) .icon svg .mech-ring {
  animation: mpl-ring-breathe 4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes mpl-ring-breathe {
  0%, 100% { transform: scale(1);    stroke-opacity: 0.85; }
  50%      { transform: scale(1.05); stroke-opacity: 1; }
}
.mempalace-landing .mech:nth-child(2) .icon svg .mech-slash {
  stroke-opacity: 0.55;
  animation: mpl-slash-pulse 2.6s ease-in-out infinite;
}
@keyframes mpl-slash-pulse {
  0%, 100% { stroke-opacity: 0.45; }
  50%      { stroke-opacity: 1; }
}

/* Mechanics #3 — gear rotates; house stays still */
.mempalace-landing .mech:nth-child(3) .icon svg .mech-gear {
  animation: mpl-gear-spin 12s linear infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes mpl-gear-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Mechanics #4 — nodes pulse in sequence, edges shimmer */
.mempalace-landing .mech:nth-child(4) .icon svg .mech-nodes circle {
  transform-origin: center;
  transform-box: fill-box;
  stroke-opacity: 0.7;
  animation: mpl-graph-node 3.2s ease-in-out infinite;
}
.mempalace-landing .mech:nth-child(4) .icon svg .mech-nodes circle:nth-of-type(2) { animation-delay: 0.3s; }
.mempalace-landing .mech:nth-child(4) .icon svg .mech-nodes circle:nth-of-type(3) { animation-delay: 0.6s; }
.mempalace-landing .mech:nth-child(4) .icon svg .mech-nodes circle:nth-of-type(4) { animation-delay: 0.9s; }
.mempalace-landing .mech:nth-child(4) .icon svg .mech-nodes circle:nth-of-type(5) { animation-delay: 1.2s; }
@keyframes mpl-graph-node {
  0%, 100% { transform: scale(1);   stroke-opacity: 0.55; }
  50%      { transform: scale(1.35); stroke-opacity: 1; }
}
.mempalace-landing .mech:nth-child(4) .icon svg .mech-edges {
  animation: mpl-edge-shimmer 3.2s ease-in-out infinite;
}
@keyframes mpl-edge-shimmer {
  0%, 100% { stroke-opacity: 0.35; }
  50%      { stroke-opacity: 0.9; }
}

/* Hover: mechanics icons react with extra glow */
.mempalace-landing .mech:hover .icon svg {
  filter: drop-shadow(0 0 8px rgba(74,163,255,0.4));
  transition: filter 0.3s ease;
}
