:root {
  --bg: #080806;
  --text: #f7f2e8;
  --muted: rgba(247, 242, 232, .72);
  --gold: #d6aa62;
  --gold-soft: rgba(214, 170, 98, .72);
  --header-h: 74px;
  --footer-h: 86px;
  --nav-font: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body-font: "Inter", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
}

body.home-page {
  overflow-x: hidden;
}

.homepage-shell {
  position: relative;
  width: 100%;
  min-height: 100svh;
  background: #050504;
}

.lobby-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050504;
}

.lobby-frame {
  position: relative;
  width: min(100vw, calc(100svh * var(--image-ratio)));
  height: min(100svh, calc(100vw / var(--image-ratio)));
  --image-ratio: 1.75;
}

.lobby-background {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.poster-wall {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Desktop poster coordinates based on uploaded desktop plate */
.poster-hotspot {
  position: absolute;
  display: block;
  overflow: hidden;
  color: transparent;
  text-decoration: none;
  border-radius: 1px;
  background: transparent;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.04),
    0 18px 36px rgba(0,0,0,.22);
}

.poster-hotspot:hover,
.poster-hotspot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.poster-hotspot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.poster-hotspot.is-missing::after {
  content: attr(data-title);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  color: rgba(255, 244, 225, .72);
  text-align: center;
  font-family: var(--nav-font);
  font-size: clamp(14px, 1.1vw, 20px);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .55;
}

/* Desktop: 1792 x 1024 source image */
.poster-1 { left: 21.37%; top: 35.84%; width: 13.28%; height: 35.16%; }
.poster-2 { left: 37.83%; top: 35.84%; width: 13.28%; height: 35.16%; }
.poster-3 { left: 54.30%; top: 35.84%; width: 13.28%; height: 35.16%; }
.poster-4 { left: 70.76%; top: 35.84%; width: 13.28%; height: 35.16%; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(18px, 4vw, 64px);
  background: linear-gradient(to bottom, rgba(3,3,3,.70), rgba(3,3,3,.34) 72%, rgba(3,3,3,0));
  backdrop-filter: blur(10px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  color: #111;
  background: #fff;
  padding: 10px 12px;
  z-index: 30;
}

.skip-link:focus {
  top: 12px;
}

.primary-nav {
  width: min(100%, 1040px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4.2vw, 78px);
  font-family: var(--nav-font);
  font-size: clamp(13px, .92vw, 16px);
  font-weight: 650;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.nav-link,
.language-toggle a {
  color: rgba(255,255,255,.90);
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,.70);
}

.nav-link {
  position: relative;
  padding: 26px 0 23px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .18s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-item {
  position: relative;
}

.films-dropdown {
  position: absolute;
  left: 50%;
  top: calc(100% - 4px);
  transform: translateX(-50%) translateY(8px);
  min-width: 190px;
  padding: 12px;
  display: grid;
  gap: 2px;
  background: rgba(10, 9, 7, .88);
  border: 1px solid rgba(214, 170, 98, .24);
  box-shadow: 0 20px 60px rgba(0,0,0,.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  backdrop-filter: blur(14px);
}

.has-dropdown:hover .films-dropdown,
.has-dropdown:focus-within .films-dropdown,
.has-dropdown.is-open .films-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.films-dropdown a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  padding: 10px 12px;
  font-size: 13px;
  letter-spacing: .035em;
}

.films-dropdown a:hover,
.films-dropdown a:focus-visible {
  color: #fff;
  background: rgba(214, 170, 98, .12);
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.64);
}

.home-main {
  position: relative;
  z-index: 3;
  min-height: 100svh;
}

.site-footer {
  position: fixed;
  z-index: 10;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: var(--footer-h);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 12px 18px 18px;
  background: linear-gradient(to top, rgba(3,3,3,.76), rgba(3,3,3,.34) 72%, rgba(3,3,3,0));
  color: rgba(255,255,255,.76);
  font-family: var(--body-font);
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 5vw, 58px);
}

.social-link {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

.social-link svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
  display: block;
}

.social-link:hover,
.social-link:focus-visible {
  color: #f0c879;
  transform: translateY(-1px);
}

.social-text {
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
}

.copyright {
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(255,255,255,.56);
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px,1px,1px,1px) !important;
  white-space: nowrap !important;
}

/* Mobile plate and mobile poster coordinates based on uploaded mobile plate */
@media (max-width: 760px) {
  :root {
    --header-h: 64px;
    --footer-h: 78px;
  }

  .lobby-frame {
    --image-ratio: 0.562799;
    width: min(100vw, calc(100svh * var(--image-ratio)));
    height: min(100svh, calc(100vw / var(--image-ratio)));
  }

  .lobby-background.desktop-bg {
    display: none;
  }

  .lobby-background.mobile-bg {
    display: block;
  }

  .primary-nav {
    justify-content: space-between;
    gap: 13px;
    width: 100%;
    font-size: 11px;
    letter-spacing: .035em;
  }

  .nav-link {
    padding: 22px 0 20px;
  }

  .nav-link::after {
    bottom: 14px;
  }

  .site-header {
    padding: 0 12px;
    background: linear-gradient(to bottom, rgba(3,3,3,.78), rgba(3,3,3,.30) 84%, rgba(3,3,3,0));
  }

  .language-toggle {
    gap: 4px;
  }

  .films-dropdown {
    right: 0;
    left: auto;
    transform: translateY(8px);
  }

  .has-dropdown:hover .films-dropdown,
  .has-dropdown:focus-within .films-dropdown,
  .has-dropdown.is-open .films-dropdown {
    transform: translateY(0);
  }

  /* Mobile source image: 941 x 1672 */
  .poster-1 { left: 17.43%; top: 16.45%; width: 29.86%; height: 26.62%; }
  .poster-2 { left: 53.67%; top: 16.45%; width: 29.86%; height: 26.62%; }
  .poster-3 { left: 17.43%; top: 45.22%; width: 29.86%; height: 26.62%; }
  .poster-4 { left: 53.67%; top: 45.22%; width: 29.86%; height: 26.62%; }

  .poster-hotspot.is-missing::after {
    font-size: 12px;
    letter-spacing: .045em;
  }

  .site-footer {
    padding-bottom: max(14px, env(safe-area-inset-bottom));
  }

  .social-links {
    gap: 22px;
  }

  .social-link {
    width: 22px;
    height: 22px;
  }

  .copyright {
    font-size: 10.5px;
  }
}

@media (min-width: 761px) {
  .lobby-background.mobile-bg {
    display: none;
  }

  .lobby-background.desktop-bg {
    display: block;
  }
}

@media (max-width: 520px) {
  .primary-nav {
    font-size: 10px;
    gap: 9px;
  }

  .nav-link[href="dayyan-eng/"] {
    display: none;
  }

  .site-footer {
    min-height: 70px;
  }

  .copyright {
    max-width: 90vw;
  }
}
