/* ═══════════════════════════════════════════════════════════════════════════
   nav.css — the control bar, the menu, the footer.
   The bar floats over every page like a piece of studio equipment: a white
   pill, blurred glass, the wordmark on the left, the black Book pill on the
   right. Under 900px the links move into a full-screen menu.
   ═══════════════════════════════════════════════════════════════════════ */
.bar {
  position: fixed; top: var(--bar-gap); left: var(--bar-gap); right: var(--bar-gap); z-index: 200;
  height: var(--bar-h); padding: 0 8px 0 18px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(14, 17, 24, .08); border-radius: 999px;
  box-shadow: 0 1px 2px rgba(14, 17, 24, .04), 0 12px 40px -18px rgba(14, 17, 24, .25);
  transition: transform .45s var(--ease-out), box-shadow .3s, background .3s;
}
.bar.bar--hide { transform: translateY(calc(-100% - var(--bar-gap) - 4px)); }
.dark-bar .bar, .bar.bar--dark { background: rgba(10, 12, 18, .72); border-color: rgba(255, 255, 255, .1); color: var(--on-black); }
.bar.bar--dark .bar-links a, .bar.bar--dark .mark, .bar.bar--dark .sound { color: var(--on-black); }
.bar.bar--dark .btn-book { background: var(--cyc); color: var(--ink); }
.bar.bar--dark .menu-btn span { background: var(--on-black); }

.mark { display: flex; flex-direction: column; justify-content: center; text-decoration: none; color: var(--ink); line-height: 1; gap: 2px; }
.mark-a { font-family: var(--f-display); font-variation-settings: 'opsz' 24, 'wdth' 100, 'wght' 760; font-size: 1.12rem; letter-spacing: -.02em; white-space: nowrap; }
.mark-a i { font-style: normal; color: var(--live); }
.mark-b { font-size: .72rem; color: var(--ink-2); letter-spacing: .01em; }

.bar-links { display: flex; justify-content: center; gap: 4px; }
.bar-links a {
  position: relative; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px; transition: background var(--dur-1), color var(--dur-1);
}
.bar-links a:hover { background: var(--cyc-2); color: var(--ink); }
.bar-links a[aria-current="page"] { color: var(--sound); }
.bar-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 6' preserveAspectRatio='none'%3E%3Cpath d='M0 3h18l2-2 2 4 2-3 2 2 2-1h32' fill='none' stroke='%232457F5' stroke-width='1.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.bar-actions { display: flex; align-items: center; gap: 6px; }
.live { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink); font-size: .82rem; padding: 6px 10px; border-radius: 999px; }
.live:hover { background: var(--cyc-2); color: var(--ink); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(232, 53, 43, .5); animation: live-pulse 2.4s ease-out infinite; }
.live b { font-family: var(--f-display); font-variation-settings: 'opsz' 12, 'wdth' 95, 'wght' 700; font-variant-numeric: tabular-nums; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(232, 53, 43, .55); } 70% { box-shadow: 0 0 0 8px rgba(232, 53, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 53, 43, 0); } }

.sound { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: background var(--dur-1); }
.sound:hover { background: var(--cyc-2); }
.sound svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sound .spk { fill: currentColor; stroke: none; }
.sound .w1, .sound .w2 { opacity: 0; transition: opacity .25s; }
.sound .x { transition: opacity .25s; }
.sound[aria-pressed="true"] { color: var(--sound); }
.sound[aria-pressed="true"] .w1, .sound[aria-pressed="true"] .w2 { opacity: 1; }
.sound[aria-pressed="true"] .x { opacity: 0; }
.sound[aria-pressed="true"] .w1 { animation: wave 1.6s ease-in-out infinite; }
.sound[aria-pressed="true"] .w2 { animation: wave 1.6s ease-in-out .3s infinite; }
@keyframes wave { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.btn-book { padding: 12px 18px; font-size: .95rem; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease-out), top .35s var(--ease-out); top: 17px; }
.menu-btn span + span { top: 25px; }
.menu-btn[aria-expanded="true"] span { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span + span { transform: rotate(-45deg); }

/* the full-screen menu */
.menu { position: fixed; inset: 0; z-index: 190; background: var(--cyc); overflow: auto; }
.menu[hidden] { display: none; }
.menu-inner { min-height: 100%; padding: calc(var(--bar-h) + var(--bar-gap) * 2 + 8px) var(--gutter) 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.menu-links { display: flex; flex-direction: column; gap: 2px; }
.menu-links a {
  text-decoration: none; color: var(--ink); font-family: var(--f-display);
  font-size: clamp(2.6rem, 11vw, 5.5rem); line-height: 1.05; letter-spacing: -.03em;
  font-variation-settings: 'opsz' 96, 'wdth' 100, 'wght' 760;
  clip-path: inset(0 100% 0 0); animation: menu-wipe .6s var(--ease-out) calc(var(--i, 0) * 60ms + 60ms) both;
}
.menu-links a b { color: var(--live); font-weight: inherit; }
.menu-links a[aria-current="page"] { color: var(--sound); }
.menu-book { color: var(--ink); }
@keyframes menu-wipe { to { clip-path: inset(0); } }
.menu-more { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; }
.menu-more a { color: var(--ink-2); text-decoration: none; }
.menu-more a:hover { color: var(--ink); }
html.menu-open { overflow: hidden; }

@media (max-width: 900px) {
  .bar { grid-template-columns: auto 1fr auto; padding: 0 6px 0 14px; }
  .bar-links { display: none; }
  .live, .sound { display: none; }
  .btn-book-x { display: none; }
  .menu-btn { display: block; }
  .mark-b { display: none; }
}
@media (min-width: 901px) { .menu { display: none !important; } }

/* ── footer ──────────────────────────────────────────────────────────────── */
.foot { background: var(--cyc); border-top: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0 32px; color: var(--ink); }
.foot-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.foot-brand .mark-a { font-size: 1.5rem; margin: 0 0 8px; }
.foot-line { color: var(--ink-2); max-width: 32ch; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-cols a { display: block; color: var(--ink); text-decoration: none; padding: 5px 0; font-size: .95rem; }
.foot-cols a:hover { color: var(--sound); }
.foot-h { font-family: var(--f-display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; font-variation-settings: 'opsz' 12, 'wdth' 90, 'wght' 650; }
.foot-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }
.foot-legal a { color: var(--ink-2); text-decoration: none; margin-right: 16px; }
.foot-legal a:hover { color: var(--ink); }
@media (max-width: 760px) {
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
