/* The website's top bar extras, built by site-nav.js: the "Who it's for" floor directory on desktop,
   and the venue links in the ☰ menu on phones. Brass and velvet, like a hotel lift. */

/* The trigger sits in the bar like the other links, with a little caret. */
header.top nav a.nav-venues { display: inline-flex; align-items: center; gap: 6px; }
header.top nav a.nav-venues .caret { width: 7px; height: 7px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0.75; transition: transform 0.25s, margin 0.25s; }
header.top nav a.nav-venues[aria-expanded="true"] { background: rgba(255, 255, 255, 0.12); }
header.top.light nav a.nav-venues[aria-expanded="true"] { background: color-mix(in srgb, var(--ink) 8%, transparent); }
header.top nav a.nav-venues[aria-expanded="true"] .caret { transform: rotate(-135deg); margin-top: 4px; }
@media (max-width: 760px) { header.top nav a.nav-venues { display: none; } }

/* ---------- The floor directory ---------- */
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(1000px, calc(100vw - 32px)); box-sizing: border-box;
  max-height: calc(100vh - 100px); overflow-x: hidden; overflow-y: auto; pointer-events: auto; isolation: isolate;
  padding: 22px 24px 18px; border-radius: 28px; color: #fff; font-family: var(--font);
  background: radial-gradient(120% 90% at 0% 0%, rgba(240, 194, 122, 0.12), transparent 55%), linear-gradient(160deg, #2A1519, #170C0F 70%);
  border: 1px solid rgba(240, 194, 122, 0.35);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: mega-in 0.3s cubic-bezier(.2, .8, .3, 1); }
.mega[hidden] { display: none; }
@keyframes mega-in { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } }

/* Brass lift doors that slide apart as it opens. */
.mega::before, .mega::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; z-index: 5; pointer-events: none; transform: translateX(-101%);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 14px, rgba(255, 255, 255, 0.12) 14px 15px), linear-gradient(90deg, #8A5A1C, #E9BE6E 45%, #B7832F); }
.mega::before { left: 0; box-shadow: inset -2px 0 0 rgba(60, 30, 5, 0.5); }
.mega::after { right: 0; transform: translateX(101%); box-shadow: inset 2px 0 0 rgba(60, 30, 5, 0.5); }
.mega.doors::before { animation: door-left 0.6s 0.05s cubic-bezier(.6, 0, .25, 1) backwards; }
.mega.doors::after { animation: door-right 0.6s 0.05s cubic-bezier(.6, 0, .25, 1) backwards; }
@keyframes door-left { from { transform: none; } to { transform: translateX(-101%); } }
@keyframes door-right { from { transform: none; } to { transform: translateX(101%); } }

.mega-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; }
.mega-kicker { margin: 0; font: 700 1.5rem/1 var(--display); letter-spacing: -0.01em; color: #fff; }
.mega-sub { margin: 0; color: rgba(255, 255, 255, 0.62); font-size: 0.92rem; }
.mega-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) 270px; gap: 18px; align-items: stretch; }

/* The dial: a brass plate with a needle that swings to the floor you're pointing at. */
.mega-dial { display: grid; align-content: center; gap: 6px; padding: 18px 14px 16px; border-radius: 20px; text-align: center;
  background: radial-gradient(80% 60% at 50% 0%, rgba(255, 230, 170, 0.18), transparent 70%), linear-gradient(180deg, #3A2117, #23130F);
  border: 1px solid rgba(240, 194, 122, 0.3); box-shadow: inset 0 1px 0 rgba(255, 230, 170, 0.15); }
.dial-face { position: relative; aspect-ratio: 200 / 118; }
.dial-face svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial-face .arc { fill: none; stroke: #D9A956; stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(240, 194, 122, 0.35)); }
.dial-face .tick { stroke: #F0C27A; stroke-width: 2.5; stroke-linecap: round; }
.dial-face .needle { transform-box: view-box; transform-origin: 100px 104px; transition: transform 0.7s cubic-bezier(.34, 1.56, .64, 1); }
.dial-face .needle path { fill: #C1272D; }
.dial-face .needle circle { fill: #E3B567; stroke: #8A5A1C; stroke-width: 2; }
.dial-em { position: absolute; transform: translate(-50%, -50%) scale(0.85); font-size: 0.95rem; line-height: 1; opacity: 0.5; filter: grayscale(0.6); transition: transform 0.3s, opacity 0.3s, filter 0.3s; }
.dial-em.lit { opacity: 1; filter: none; transform: translate(-50%, -50%) scale(1.3); }
.going { margin: 4px 0 0; display: grid; gap: 4px; }
.going small { font: 700 0.66rem/1 var(--font); letter-spacing: 0.24em; text-transform: uppercase; color: #F0C27A; }
.going strong { font: 700 1.2rem/1.1 var(--display); color: #fff; }

/* The floors: a lift button per venue page. */
.mega-floors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: center; }
.mega .floor { display: flex; align-items: center; gap: 12px; height: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 16px; color: #fff; text-decoration: none;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(240, 194, 122, 0.14); transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.mega .floor.lit { background: rgba(240, 194, 122, 0.1); border-color: rgba(240, 194, 122, 0.45); transform: translateX(3px); }
.mega .floor:focus-visible { outline: 2px solid #F0C27A; outline-offset: 2px; }
.fbtn { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 0.92rem/1 var(--display); color: #4A2C10;
  background: radial-gradient(circle at 35% 30%, #FFF4DA, #E3B567 48%, #9C6B23); box-shadow: inset 0 -2px 3px rgba(80, 40, 0, 0.35), 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.25s, background 0.25s, color 0.25s; }
.floor.lit .fbtn { color: #5A2A00; background: radial-gradient(circle at 40% 35%, #FFFFFF, #FFD98A 42%, #F2A33A);
  box-shadow: 0 0 0 3px rgba(255, 196, 100, 0.22), 0 0 20px rgba(255, 180, 70, 0.85), inset 0 -2px 3px rgba(150, 70, 0, 0.3); }
.ftext { min-width: 0; display: grid; gap: 2px; }
.ftext b { font-size: 0.98rem; font-weight: 700; }
.ftext small { font-size: 0.78rem; line-height: 1.3; color: rgba(255, 255, 255, 0.62); }
.fem { display: inline-block; transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1); }
.floor.lit .fem { transform: scale(1.2) rotate(-8deg); }

/* A peek at the floor: its photo, and a guest question Otis answers there. */
.mega-peek { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 230px; padding: 14px; border-radius: 20px; overflow: hidden;
  color: #fff; text-decoration: none; isolation: isolate; border: 1px solid rgba(240, 194, 122, 0.3); }
.mega-peek img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.mega-peek:hover img { transform: scale(1.04); }
.mega-peek::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(23, 12, 15, 0.05) 20%, rgba(23, 12, 15, 0.88)); }
.pchat { display: grid; gap: 6px; }
.pchat p { margin: 0; max-width: 88%; padding: 7px 11px; border-radius: 14px; font-size: 0.8rem; line-height: 1.35; }
.pq { justify-self: end; background: #A4232A; border-bottom-right-radius: 5px; }
.pa { justify-self: start; background: #FBF6EE; color: #2A1A14; border-bottom-left-radius: 5px; }
.pgo { margin-top: 4px; font-weight: 700; font-size: 0.86rem; color: #F0C27A; }
.mega-peek.swap .pq { animation: bubble-in 0.35s both; }
.mega-peek.swap .pa { animation: bubble-in 0.35s 0.18s both; }
.mega-peek.swap img { animation: peek-in 0.45s both; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(6px) scale(0.97); } }
@keyframes peek-in { from { opacity: 0.4; } }

.mega-foot { margin: 16px 2px 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); }
.mega-foot a { color: #F0C27A; font-weight: 700; text-decoration: none; }
.mega-foot a:hover { text-decoration: underline; }

/* Narrower desktops: the peek goes, the dial and floors stay. */
@media (max-width: 1020px) {
  .mega-body { grid-template-columns: 170px minmax(0, 1fr); }
  .mega-peek { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mega, .mega.doors::before, .mega.doors::after, .mega-peek.swap .pq, .mega-peek.swap .pa, .mega-peek.swap img { animation: none; }
  .dial-face .needle { transition: none; }
}

/* ---------- Phones: the venues in the ☰ menu ---------- */
@media (max-width: 760px) {
  .nav-menu { max-height: calc(100svh - 84px); overflow-y: auto; }
  .nav-menu .nav-menu-label { margin: 10px 16px 6px; font: 700 0.7rem/1 var(--font); letter-spacing: 0.22em; text-transform: uppercase; color: #F0C27A; }
  .nav-menu .nav-menu-venues { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 4px 4px; }
  .nav-menu .nav-menu-venues a { display: flex; align-items: center; gap: 8px; padding: 11px 12px; font-size: 0.95rem; border-radius: 14px;
    background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(240, 194, 122, 0.16); }
}
