/* Round 3 overlays: load cover, dialogs (reel, player, menu). */
.cover {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  background: var(--paper);
  clip-path: inset(0 0 0 0);
}
html.is-loading .cover { display: grid; }
html.is-loading { overflow: hidden; }
.cover__k { overflow: visible; }
html.is-loading .cover__k { opacity: 0; }

.dlg {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--paper);
  --focus: var(--paper);
}
.dlg[open] { display: grid; place-items: center; }
.dlg::backdrop { background: rgba(10, 26, 63, 0.94); }
.dlg__panel {
  position: relative;
  width: min(1200px, calc(100vw - var(--m) * 2));
  max-height: 100dvh;
  padding: 80px 0 24px;
}
.dlg__close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.dlg__close:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.08); }
.dlg__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.dlg__video {
  display: block;
  width: min(100%, calc((100dvh - 160px) * 16 / 9));
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}
.dlg__label { width: min(100%, calc((100dvh - 160px) * 16 / 9)); margin: 16px auto 0; color: rgba(255, 255, 255, 0.72); }

.player__stage {
  width: min(100%, calc((100dvh - 200px) * 16 / 9));
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}
.player__stage iframe, .player__stage video { display: block; width: 100%; height: 100%; border: 0; background: var(--ink); }
.player__stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.player__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 24px;
  width: min(100%, calc((100dvh - 200px) * 16 / 9));
  margin: 22px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--hair-w);
}
.player__text { flex: 1 1 260px; min-width: 0; }
.player__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.375rem, 2.2vw, 1.875rem); line-height: 1.15; }
.player__service { margin-top: 6px; color: rgba(255, 255, 255, 0.7); }
.player__gallery-nav { display: flex; align-items: center; gap: 24px; }
.player__meta [hidden] { display: none !important; }

.dlg--menu { background: var(--paper); color: var(--ink); --focus: var(--blue); }
.dlg--menu::backdrop { background: var(--paper); }
.dlg--menu .dlg__close { border-color: var(--hair-strong); color: var(--ink); }
.dlg--menu .dlg__close:hover { border-color: var(--ink); background: var(--wash); }
.menu__panel { display: flex; flex-direction: column; justify-content: space-between; min-height: 100dvh; padding-top: 104px; padding-bottom: 32px; }
.menu__list { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.menu__list a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.125rem, 8vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.25s ease;
}
.menu__list a:hover { color: var(--blue); }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  .dlg__close, .menu__list a { transition: none; }
}
