/* A consistent route out of every conceptual demo, with each demo's own palette. */
body { --demo-exit-bg: #17201b; --demo-exit-fg: #f7f7f2; --demo-exit-action-bg: #b7ffe2; --demo-exit-action-fg: #17201b; }
.demo-aurea { --demo-exit-bg: #eee5d4; --demo-exit-fg: #231e18; --demo-exit-action-bg: #231e18; --demo-exit-action-fg: #eee5d4; }
.demo-norte { --demo-exit-bg: #111; --demo-exit-fg: #ebe6dc; --demo-exit-action-bg: #ebe6dc; --demo-exit-action-fg: #111; }
.demo-vanta { --demo-exit-bg: #0c100d; --demo-exit-fg: #e5f5d8; --demo-exit-action-bg: #cfff3e; --demo-exit-action-fg: #10120b; }
.demo-motion { --demo-exit-bg: #ddd2bc; --demo-exit-fg: #0a0a0a; --demo-exit-action-bg: #0a0a0a; --demo-exit-action-fg: #f4f5f2; }
.demo-marea { --demo-exit-bg: #ffd84a; --demo-exit-fg: #111318; --demo-exit-action-bg: #111318; --demo-exit-action-fg: #fff; }
.demo-bruma { --demo-exit-bg: #243129; --demo-exit-fg: #f3efe5; --demo-exit-action-bg: #d6c7ae; --demo-exit-action-fg: #182019; }

.demo-exit {
  position: sticky;
  top: 0;
  z-index: 250;
  width: 100%;
  min-height: 56px;
  padding: 6px clamp(12px, 2.2vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--demo-exit-bg);
  color: var(--demo-exit-fg);
  border-bottom: 1px solid currentColor;
  font-family: Arial, Helvetica, sans-serif;
  isolation: isolate;
}
.demo-exit__label {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.demo-exit__label::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
.demo-exit__brand { opacity: .75; }
.demo-exit__action {
  min-height: 44px;
  padding: .55rem .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--demo-exit-action-bg);
  color: var(--demo-exit-action-fg);
  border: 1px solid var(--demo-exit-action-bg);
  border-radius: 2px;
  font-size: .85rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.demo-exit__action:hover { background: var(--demo-exit-bg); color: var(--demo-exit-fg); box-shadow: inset 0 0 0 1px currentColor; }
.demo-exit__action:focus-visible { outline: 3px solid var(--demo-exit-fg); outline-offset: 2px; }
.demo-exit__action:active { box-shadow: inset 0 0 0 2px currentColor; }

/* The older demos have fixed navigation; place it below the persistent exit. */
.demo-aurea nav, .demo-norte nav, .demo-vanta nav { top: 56px; }
.demo-aurea .progress, .demo-norte .progress, .demo-vanta .progress, .demo-motion .progress { top: 56px; }
.demo-motion nav { top: 78px; }
.demo-bruma nav { top: 56px; }
.demo-aurea [id], .demo-norte [id], .demo-vanta [id], .demo-motion [id], .demo-marea [id], .demo-bruma [id] { scroll-margin-top: 136px; }
.demo-aurea .demo-skip:focus, .demo-norte .demo-skip:focus, .demo-vanta .demo-skip:focus, .demo-motion .demo-skip:focus, .demo-marea .skip:focus, .demo-bruma .skip:focus { top: 60px; z-index: 300; }

@media (max-width: 780px) {
  .demo-motion nav { top: 66px; }
  .demo-exit__label { font-size: .65rem; letter-spacing: .08em; }
  .demo-exit__qualifier { display: none; }
  .demo-exit__action { font-size: .78rem; padding-inline: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-exit__action { transition: none; }
}
