/* Copied site menu styles; Home Arrival keeps its own header and stage. */
:root {
  /* Scale the 1920 × 1080 sketch by height, not by the viewport width. */
  --menu-unit: 0.092592593vh;
  --menu-left: calc(50 * var(--menu-unit));
  --menu-right: calc(73 * var(--menu-unit));
  --menu-top: calc(132 * var(--menu-unit));
  /* Resonate is about 4.56em wide in Jeko Bold; leave a small width reserve. */
  --menu-font-size: min(calc(100 * var(--menu-unit)), calc((100vw - var(--menu-left) - var(--menu-right)) / 4.65));
}
.topbar:has(#site-ham) { z-index: 300; }
.topbar #nav-lang-btn { color: var(--ink); }
.topbar #nav-lang-btn:hover, .topbar #nav-lang-btn.open { color: var(--ink); }
.topbar #site-ham span { background: var(--ink); }
.topbar:has(#site-ham.open) {
  background: var(--purple);
  padding-left: var(--menu-left);
  padding-right: var(--menu-right);
}
.topbar:has(#site-ham.open) .mark {
  opacity: 1;
  height: clamp(14px, calc(28 * var(--menu-unit)), 28px);
}
.topbar:has(#site-ham.open) #site-ham span { background: var(--ink); }
.topbar:has(#site-ham.open) #nav-lang-btn { color: var(--ink); }
#site-ham-overlay > div { flex-shrink: 0; width: 100%; }

/* Hide legacy nav elements immediately so there is no flash */
#topbar,
#bottom-nav,
#bnav,
#bottomBar { display: none !important; }

/* ── TOP NAV OVERLAY ──────────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0; bottom: auto; left: 0; right: 0;
  height: 56px;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  pointer-events: none;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}
#site-nav.scrolled {
  background: rgba(14,12,11,0.90);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid rgba(247,246,240,0.06);
}
#site-nav.dark.scrolled {
  background: rgba(247,246,240,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 0.5px solid rgba(14,12,11,0.08);
}

/* Logo */
.site-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  pointer-events: all;
}
.site-logo {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.82;
  transition: opacity 0.25s ease;
}
.site-logo-link:hover .site-logo { opacity: 1; }

/* Hamburger button */
#site-ham {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  pointer-events: all;
}
#site-ham span {
  display: block;
  width: 18px;
  height: 1px;
  background: rgba(247,246,240,0.55);
  transition: transform 0.3s, opacity 0.3s, background 0.2s;
}
#site-ham:hover span { background: rgba(247,246,240,0.9); }
#site-nav.dark #site-ham span {
  background: rgba(14,12,11,0.40);
}
#site-ham.open span:nth-child(1) { transform: rotate(45deg) translate(3px,3px); }
#site-ham.open span:nth-child(2) { transform: rotate(-45deg) translate(3px,-3px); }

/* ── HAMBURGER OVERLAY ────────────────────────────────────────────────── */
#site-ham-overlay {
  position: fixed;
  inset: 0;
  z-index: 290;
  background: var(--purple);
  backdrop-filter: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: var(--menu-top) var(--menu-right) max(32px, calc(54 * var(--menu-unit))) var(--menu-left);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1);
}
#site-ham-overlay.open { opacity: 1; pointer-events: all; }

.sham-item {
  display: block;
  text-decoration: none;
  font-family: 'Jeko', sans-serif;
  font-size: var(--menu-font-size);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--paper);
  line-height: 1;
  transition: color 0.25s;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  padding: 0;
}
.sham-item:hover { color: var(--paper); }

.sham-sub {
  display: none;
  padding-left: clamp(20px, calc(32 * var(--menu-unit)), 32px);
  margin-top: 4px;
  margin-bottom: 8px;
}
.sham-sub.open { display: block; }
.sham-sub-item {
  display: block;
  text-decoration: none;
  font-family: 'Jeko', sans-serif;
  font-size: calc(var(--menu-font-size) * 0.4);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--paper);
  line-height: 1.25;
  transition: color 0.2s;
}
.sham-sub-item:hover { color: var(--paper); }

.sham-divider {
  display: none;
}
.sham-item-sm {
  display: block;
  text-decoration: none;
  font-family: 'Jeko', sans-serif;
  font-size: calc(var(--menu-font-size) * 0.5);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--paper);
  line-height: 1;
  /* Optical gap: 116 sketch pixels below Echo's capitals, not its line box. */
  margin-top: calc(88.2 * var(--menu-unit));
  text-transform: uppercase;
  transition: color 0.2s;
}
.sham-item-sm:hover { color: var(--paper); }

/* ── BOTTOM NAV (6 world pages only) ─────────────────────────────────── */
#site-bnav {
  position: fixed;
  top: auto; bottom: 0; left: 0; right: 0;
  height: 48px;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border-top: 0.5px solid rgba(247,246,240,0.06);
  background: rgba(14,12,11,0.90);
  backdrop-filter: blur(8px);
  animation: none;
  pointer-events: all;
}
#site-bnav a {
  display: flex;
  align-items: center;
  padding: 0 28px;
  font-family: 'Questa Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(247,246,240,0.68);
  text-decoration: none;
  border-right: 0.5px solid rgba(247,246,240,0.08);
  transition: color 0.25s;
}
#site-bnav a:last-child { border-right: none; }
#site-bnav a:hover { color: rgba(247,246,240,0.90); }
#site-bnav a.active { color: rgba(247,246,240,0.86); }

/* ── RIGHT-SIDE NAV GROUP (lang selector + hamburger) ────────────────── */
#nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: all;
}

/* ── TOPBAR LANGUAGE SELECTOR ─────────────────────────────────────────── */
#nav-lang {
  position: relative;
}

#nav-lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 5px 2px;
  cursor: pointer;
  color: rgba(247,246,240,0.55);
  font-family: 'Questa Sans',sans-serif;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.2s;
  pointer-events: all;
  line-height: 1;
}
#nav-lang-btn:hover,
#nav-lang-btn.open {
  color: rgba(247,246,240,0.9);
}
#site-nav.dark #nav-lang-btn {
  color: rgba(14,12,11,0.35);
}
#site-nav.dark #nav-lang-btn:hover,
#site-nav.dark #nav-lang-btn.open {
  color: rgba(14,12,11,0.75);
}

#nav-lang-pop {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 148px;
  background: rgba(10,8,4,0.95);
  border: 0.5px solid rgba(247,246,240,0.14);
  border-radius: 2px;
  backdrop-filter: blur(12px);
  padding: 5px 0;
  z-index: 9100;
}
#nav-lang-pop.open {
  display: block;
}

.nav-lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-family: 'Questa Sans',sans-serif;
  text-align: left;
  transition: background 0.15s;
}
.nav-lang-item:hover {
  background: rgba(247,246,240,0.06);
}
.nav-lang-code {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,246,240,0.45);
  transition: color 0.15s;
  min-width: 20px;
}
.nav-lang-name {
  font-size: 9px;
  letter-spacing: 0.10em;
  color: rgba(247,246,240,0.28);
  transition: color 0.15s;
}
.nav-lang-item:hover .nav-lang-code,
.nav-lang-item:hover .nav-lang-name {
  color: rgba(247,246,240,0.85);
}
.nav-lang-item.active .nav-lang-code {
  color: rgba(247,246,240,0.90);
}
.nav-lang-item.active .nav-lang-name {
  color: rgba(247,246,240,0.55);
}

/* ── MOBILE ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #site-nav { padding: 0 20px; height: 52px; }
  .site-logo { height: 18px; }
  #site-bnav { display: none; }
  #nav-right { gap: 12px; }
}

/* ── MOBILE YOUTUBE THUMBNAIL PLAYER — shared across all pages ────────── */
.yt-player {
  position: absolute; inset: 0;
  cursor: pointer; overflow: hidden;
}
.yt-thumb {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  filter: brightness(0.58);
  transition: filter 0.35s;
}
.yt-player:hover .yt-thumb { filter: brightness(0.72); }
.yt-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.yt-play-circle {
  width: 54px; height: 54px; border-radius: 50%;
  border: 0.5px solid rgba(247,246,240,0.32);
  background: rgba(8,8,6,0.58);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: border-color 0.3s, background 0.3s;
}
.yt-player:hover .yt-play-circle {
  border-color: rgba(247,246,240,0.60);
  background: rgba(247,246,240,0.10);
}
.video-sm .yt-play-circle { width: 40px; height: 40px; }

/* ── MOBILE TYPOGRAPHY — shared across all pages ─────────────────────── */
@media (max-width: 768px) {
  /* Project pages — about / body text */
  .ap-body { font-size: 16px; line-height: 1.65; }

  /* Project pages — cast / credits: name above role on mobile */
  .cast-item { font-size: 14px; flex-direction: column-reverse; gap: 2px; }
  .cast-role { font-size: 13px; line-height: 1.2; }
  .cast-name { font-size: 14px; line-height: 1.2; }

  /* Project pages — tour rows: stacked date | info block on mobile */
  .ptour-row { grid-template-columns: 60px 1fr; gap: 2px 16px; align-items: start; padding: 12px 0; }
  .ptour-date { grid-column: 1; grid-row: 1; align-self: start; font-size: 14px; }
  .ptour-venue { grid-column: 2; display: block; font-size: 11px; }
  .ptour-venue::after { content: ''; }
  .ptour-city { grid-column: 2; display: block; font-size: 10px; }
  .ptour-note { grid-column: 2; font-size: 10px; }
  .ptour-link { display: none; }

  /* Bookings — hero subtitle */
  .hero-sub { font-size: 15px; line-height: 1.7; }

  /* Bookings — section description */
  .sec-desc { font-size: 13px; line-height: 1.65; }

  /* Bookings — card typography */
  .card-title { font-size: clamp(18px,5vw,22px); }
  .card-tag { font-size: 9px; letter-spacing: 0.16em; }
  .card-tagline { font-size: 13px; }

  /* Bookings — fact / detail rows */
  .fact-row { font-size: 13px; }
  .fact-key { font-size: 13px; }
  .fact-val { font-size: 14px; }
}
