/* 1. ROOT VIEWPORT: Black canvas, zero scroll traps */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #000;
  margin: 0;
  padding: 0;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 2. BODY: Minimal runway so Safari collapses URL bar smoothly */
body {
  background: #000;
  font-family: -apple-system, Helvetica Neue, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  min-height: calc(100lvh + 10px);
}
/* Close 'X' button inside the drawer */
.menu-close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  background: transparent;
  border: 1px solid transparent;
  color: #ffffff;
  font-size: 26px;
  font-family: inherit;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  pointer-events: auto !important;
  transition: border-color 0.25s ease;
}

.menu-close-btn:hover {
  border-color: #ffffff; /* Box outline on hover */
}

#stage,
#track,
.slide {
  touch-action: pan-y !important;
}
/* ===================================================
   3-BAR HAMBURGER BUTTON & 'X' ANIMATION
   =================================================== */

.menu-drawer,
.menu-drawer * {
  pointer-events: auto !important;
}
/* ===================================================
   ULTRA-SLENDER 1PX HAMBURGER
   =================================================== */
/* Just make sure your existing hamburger can be clicked above the drawer */
.hamburger {
  cursor: pointer;
  z-index: 10001;
}

/* Subtle hover brightness */
.hamburger:hover span {
  background-color: #ffffff;
}

/* Crisp 1px 'X' transformation */
.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Morph 3 bars into an 'X' when open */
.hamburger.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===================================================
   SLIDE-OUT MENU DRAWER (Optimized for iPhone Portrait)
   =================================================== */
.menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 270px;
  max-width: 85vw;
  
  /* Support for modern iPhone browser bars */
  height: 100vh;
  height: 100dvh; 
  
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
  
  /* Hidden offscreen by default */
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10000;
  
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Starts cleanly under the close button */
  
  /* Reduced top padding from 60px -> 45px, safe space at bottom */
  padding: 45px 25px calc(env(safe-area-inset-bottom, 20px) + 15px);
  box-sizing: border-box;
  
  /* Ensures smooth scrolling on touch screens if ever needed */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Slide in when active */
.menu-drawer.open {
  transform: translateX(0);
}

/* Close 'X' button inside the drawer */
.menu-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: 1px solid transparent;
  color: #ffffff;
  font-size: 24px;
  font-family: inherit;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  pointer-events: auto !important;
  transition: border-color 0.25s ease;
}

.menu-close-btn:hover {
  border-color: #ffffff;
}

/* Drawer Links Styling */
.menu-links {
  display: flex;
  flex-direction: column;
  gap: 5px; /* Tightened from 12px so all 11 fit cleanly */
  margin-top: 15px; /* Clean gap below the 'X' */
  pointer-events: auto !important;
}

.menu-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  
  /* Compact tab height */
  padding: 3px 8px;
  border: 1px solid transparent;
  display: inline-block;
  width: fit-content;
  line-height: 1.3;
  pointer-events: auto !important;
  transition: border-color 0.25s ease, color 0.2s ease;
}

/* Thin white box outline on hover and active page */
.menu-links a:hover,
.menu-links a.active {
  border-color: #ffffff;
}
/* Prevent body scrolling when menu is open */
body.menu-locked {
  overflow: hidden;
}

/* --- Base setup for all interactive links --- */
.top a:not(.logo-link),
.persistent-play a,
.badges a {
  display: inline-block;
  color: #ffffff;
  border: 1px solid transparent; /* Invisible by default to prevent layout jump */
  padding: 3px 6px;             /* Clean mobile spacing between text and outline */
  white-space: nowrap;          /* Prevents text from breaking onto multiple lines */
  transition: border-color 0.25s ease, opacity 0.2s ease;
}

/* Slimmer, snug hover/active boxes specifically for the 5 award badges */
.badges a {
  padding: 2px 3px;             /* Hugs badge text neatly so Platinum never overflows */
}

/* 1. DEFAULT STATE: Both Top Links and Badges are UNDERLINED by default */
.top a:not(.logo-link),
.badges a {
  text-decoration: underline;
  text-underline-offset: 3px;     /* Clean, modern gap beneath text */
}

/* Keep play movie without underline */
.persistent-play a {
  text-decoration: none;
}

/* Ensure the logo link stays clean without border or underline */
.top a.logo-link {
  border: none;
  padding: 0;
  text-decoration: none;
  display: inline-flex;
}

/* 2. HOVER, ACTIVE & SELECTED: White box appears AND underline is REMOVED */
.top a:not(.logo-link):hover,
.top a:not(.logo-link).active,
.top a:not(.logo-link):focus,
.persistent-play a:hover,
.persistent-play a.active,
.persistent-play a:focus,
.badges a:hover,
.badges a.active,
.badges a:focus {
  border-color: #ffffff !important;
  text-decoration: none !important; /* Strictly removes underline when active/hovered */
}

/* 3. STAGE: 100lvh renders full size upfront */
.stage {
  width: 100vw;
  max-width: 100%;
  height: 100lvh;
  position: sticky;
  top: 0;
  overflow: hidden;
  background: #000;
  touch-action: pan-y; 
}

/* 4. TRACK & SLIDES: Slides background image and movie description together */
.track {
  display: flex;
  height: 100%;
  will-change: transform;
  position: relative;
}
.slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100lvh;
  position: relative;
  overflow: hidden;
}
.slide img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

/* --- PRESERVED BARTENDER FRAMING VALUES --- */
.slide img.bg.bartender-bg {
  object-position: 80% 20%;
}

/* DYNAMIC MOVIE DESCRIPTION: Lowered to +46px for clean breathing room below boxed top bar */
.movie-desc {
  position: absolute;
  top: calc(max(10px, env(safe-area-inset-top, 10px)) + 46px);
  left: 14px;
  font-size: 11px;
  line-height: 1.22;
  letter-spacing: .1px;
  z-index: 4;
  color: #fff;
  pointer-events: none;
}
.movie-desc i {
  font-style: italic;
}

/* =========================================================
   5. PERSISTENT OVERLAY: CONSTANT INFO (Never leaves screen)
   ========================================================= */
.persistent-overlay { 
  position: absolute; 
  inset: 0; 
  z-index: 10; 
  color: #fff; 
  pointer-events: none;
}
.top, .persistent-play, .arrow-left-btn, .arrow-right-btn, .play-tri, .hero, .bottom, .copyr {
  pointer-events: auto;
}

/* TOP BAR: Mobile sizes */
.top { 
  position: absolute; 
  top: max(10px, env(safe-area-inset-top, 10px)); 
  left: 14px; 
  right: 14px; 
  display: flex; 
  align-items: center; 
  gap: 6px; 
  z-index: 20; 
}
.logo { 
  width: 26px; 
  height: 26px; 
  border: 1px solid rgba(255,255,255,.75); 
  display: grid; 
  place-items: center; 
  font-weight: 900; 
  font-size: 18px; 
  line-height: 1; 
}
.top a { 
  color: #fff; 
  font-size: 10.5px; 
  letter-spacing: .3px; 
  opacity: .95; 
  white-space: nowrap; 
  transition: opacity 0.2s ease;
}
.top a:hover {
  opacity: 0.7;
}
.hamburger { 
  margin-left: auto; 
  width: 18px; 
  height: 10px; 
  border-top: 1.5px solid #fff; 
  border-bottom: 1.5px solid #fff; 
  position: relative; 
  cursor: pointer; 
}
.hamburger:after { 
  content: ''; 
  position: absolute; 
  top: 50%; 
  left: 0; 
  right: 0; 
  height: 1.5px; 
  background: #fff; 
  transform: translateY(-50%); 
}

/* CONSTANT PLAY LINK: Optical Left-Alignment with Movie Description */
.persistent-play {
  position: absolute;
  top: calc(max(10px, env(safe-area-inset-top, 10px)) + 46px + 4.88em + 5px);
  left: 7px; /* 14px minus 7px padding/border aligns text flush with movie-desc */
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .2px;
  z-index: 20;
}
.persistent-play a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}
.persistent-play a:hover {
  opacity: 0.7;
}

/* CENTER CONTROLS (Mobile Base) */
.arrow-left-btn, .arrow-right-btn { 
  position: absolute; 
  top: calc(22% + 100px); 
  transform: translateY(-50%); 
  cursor: pointer; 
  font-size: 64px; 
  font-weight: 100; 
  color: #fff; 
  opacity: .85; 
  user-select: none; 
  padding: 10px; 
  z-index: 40; 
  line-height: 1;
}
.arrow-left-btn { left: 2px !important; right: auto !important; }
.arrow-right-btn { right: 2px !important; left: auto !important; }

.play-tri { 
  position: absolute; 
  top: calc(22% + 100px); 
  left: 50%; 
  transform: translate(-50%, -50%); 
  cursor: pointer; 
  width: 0; 
  height: 0; 
  border-left: 22px solid rgba(255,255,255,.9); 
  border-top: 14px solid transparent; 
  border-bottom: 14px solid transparent; 
  z-index: 40; 
}

/* HERO: Let's Make Magic & Badges */
.hero { 
  position: absolute; 
  left: 14px; 
  top: calc(38% + 100px); 
  right: 14px; 
}
.hero h1 { 
  font-size: 45px; 
  font-weight: 600; 
  line-height: .95; 
  letter-spacing: -.5px; 
}
.badges { 
  margin-top: 10px; 
  display: flex; 
  justify-content: space-between; 
  gap: 0; 
  flex-wrap: nowrap; 
  font-size: 12.4px; /* 100% Original Font Size */
  width: 100%; 
}
.badges a { 
  padding: 2px 3px; /* Compact box padding */
  color: #fff; 
  white-space: nowrap; 
  transition: opacity 0.2s ease, border-color 0.25s ease;
}
.badges a:hover {
  opacity: 0.7;
}

/* BOTTOM TEXT (Mobile) */
.bottom { 
  position: absolute; 
  left: 14px; 
  right: 14px; 
  bottom: calc(max(16px, env(safe-area-inset-bottom, 16px)) + 14px); 
  font-size: 14px; 
  line-height: 1.3; 
  max-width: 280px; 
  opacity: .92; 
}
.copyr { 
  position: absolute; 
  left: 0; 
  right: 0; 
  bottom: max(6px, env(safe-area-inset-bottom, 6px)); 
  text-align: center; 
  font-size: 9px; 
  opacity: .6; 
  letter-spacing: .2px; 
}
.reg-symbol { 
  display: inline-block; 
  font-size: inherit; 
  vertical-align: inherit; 
}

/* =========================================================
   6. FULLSCREEN THEATER MODAL (Vimeo Embed)
   ========================================================= */
.sl-video-dialog {
  margin: 0;
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100lvh;
  max-height: 100lvh;
  border: none;
  background: #000;
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow: hidden;
}
.sl-video-dialog::backdrop {
  background: #000;
}
.video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.sl-dialog-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top, 14px));
  right: max(18px, env(safe-area-inset-right, 18px));
  width: 44px;
  height: 44px;
  font-size: 34px;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 100000;
  line-height: 1;
}

/* =========================================================
   7. RESPONSIVE: DESKTOP
   ========================================================= */
@media (min-width: 1024px) {
  .stage, .slide { height: 100vh; }
  
  /* Top Bar */
  .top { top: 28px; left: 34px; right: 34px; gap: 34px; } 
  .logo { width: 54px; height: 54px; font-size: 34px; border-width: 1.5px; } 
  .top a { font-size: 29px; letter-spacing: .7px; text-underline-offset: 4px; } 
  .hamburger { width: 36px; height: 20px; border-top-width: 3px; border-bottom-width: 3px; } 
  .hamburger:after { height: 3px; } 
  
  /* Movie Title & Credits */
  .movie-desc { top: 100px; left: 34px; font-size: 31px; line-height: 1.25; } 
  
  /* PLAY MOVIE link */
  .persistent-play { top: calc(100px + 4 * 1.25 * 31px + 18px); left: 34px; font-size: 34px; } 
  .persistent-play a { text-underline-offset: 4px; }

  /* Navigation Arrows & Play Button */
  .arrow-left-btn, .arrow-right-btn { 
    font-size: 134px; 
    top: calc(22% + 210px); 
    padding: 14px; 
  } 
  .arrow-left-btn { left: 16px !important; right: auto !important; }
  .arrow-right-btn { right: 16px !important; left: auto !important; }
  
  .play-tri { 
    border-left-width: 46px; 
    border-top-width: 29px; 
    border-bottom-width: 29px; 
    top: calc(22% + 210px); 
  }
  
  /* Hero Heading & Badges */
  .hero { left: 34px; top: calc(36% + 250px); right: 34px; } 
  .hero h1 { font-size: 100px; letter-spacing: -1.8px; line-height: .95; } 
  .badges { margin-top: 25px; font-size: 35px; gap: 34px; justify-content: flex-start; } 
  .badges a { text-underline-offset: 4px; }
  
  /* Bottom Text & Copyright */
  .bottom { left: 34px; bottom: 360px; font-size: 42px; max-width: 1000px; position: absolute; top: auto; line-height: 1.22; } 
  .copyr { left: 0 !important; right: 0 !important; width: 100% !important; bottom: 42px; font-size: 18px; text-align: center !important; position: absolute; top: auto; } 
  .reg-symbol { font-size: 0.5em; vertical-align: super; } 

  /* Modal Close Button */
  .sl-dialog-close { width: 62px; height: 62px; font-size: 48px; top: 20px; right: 26px; }
}

/* =========================================================
   8A. RESPONSIVE: PHONE LANDSCAPE ONLY (Under 1024px)
   ========================================================= */
@media (orientation: landscape) and (max-width: 1023px) {
  .stage { height: auto !important; min-height: 100lvh !important; position: relative !important; } 
  .slide { height: auto !important; min-height: 100lvh !important; overflow: hidden !important; } 
  
  /* Matches exact portrait iPhone height (subtracts the 47px notch difference) */
  .slide img.bg { 
    position: relative !important; 
    height: calc(100vmax - env(safe-area-inset-left, 47px)) !important;
    min-height: calc(100vmax - env(safe-area-inset-left, 47px)) !important;
    width: auto !important;
    min-width: calc(100vmax - env(safe-area-inset-left, 47px)) !important; 
    max-width: none !important; 
    display: block !important; 
    object-fit: cover !important; 
    object-position: left top !important; 
  } 

  /* Preserves bartender framing on phone landscape */
  .slide img.bg.bartender-bg,
  .slide.bartender-bg img.bg {
    object-position: 80% 20% !important;
  }

  /* Raised 15px closer to movie-desc and properly left-aligned */
  .persistent-play {
    top: calc(max(10px, env(safe-area-inset-top, 10px)) + 46px + 4.88em - 10px) !important;
    left: 7px !important;
  }

  .persistent-overlay { position: absolute; height: 100lvh; } 
  
  /* Phone Landscape arrows */
  .arrow-left-btn { 
    left: max(38px, calc(env(safe-area-inset-left, 0px) - 20px)) !important; 
    right: auto !important;
  } 
  .arrow-right-btn { 
    right: max(38px, calc(env(safe-area-inset-right, 0px) - 20px)) !important; 
    left: auto !important;
  }

  .arrow-left-btn, .arrow-right-btn, .play-tri { top: 48%; } 
  .hero { top: 62%; } 

  /* Phone Landscape sizes */
  .badges { font-size: 12.4px; justify-content: flex-start; gap: 12px; width: auto; } 
  .movie-desc { font-size: 11px; } 
  .top a { font-size: 10.5px; } 
  .bottom { position: absolute; left: 14px; top: calc(150vh - 75px); bottom: auto; font-size: 14px; max-width: 420px; } 
  .copyr { position: absolute; left: 14px; text-align: left; top: calc(150vh - 35px); bottom: auto; } 
}

/* =========================================================
   8B. RESPONSIVE: DESKTOP LANDSCAPE (1024px and wider)
   ========================================================= */
@media (orientation: landscape) and (min-width: 1024px) {
  .stage { height: auto !important; min-height: 100lvh !important; position: relative !important; } 
  .slide { height: auto !important; min-height: 100lvh !important; overflow: visible !important; } 
  .slide img.bg { 
    position: relative !important; 
    width: 100vw !important; 
    min-width: 100vw !important; 
    height: auto !important; 
    min-height: 150vh !important; 
    display: block !important; 
    object-fit: cover !important; 
    object-position: center top !important; 
  } 

  /* Preserves bartender framing on desktop */
  .slide img.bg.bartender-bg,
  .slide.bartender-bg img.bg {
    object-position: 80% 20% !important;
  }

  .persistent-overlay { position: absolute; height: 100lvh; } 

  .arrow-left-btn, .arrow-right-btn { 
    font-size: 134px !important; 
    top: calc(22% + 210px) !important; 
  } 
  .arrow-left-btn {
    left: 16px !important;
    right: auto !important;
  }
  .arrow-right-btn {
    right: 16px !important;
    left: auto !important;
  }
  
  .play-tri { 
    border-left-width: 46px !important; 
    border-top-width: 29px !important; 
    border-bottom-width: 29px !important; 
    top: calc(22% + 210px) !important; 
  }

  .hero { top: calc(36% + 250px) !important; } 
  .hero h1 { font-size: 100px; }
  .badges { font-size: 35px; gap: 34px; } 
  .movie-desc { font-size: 31px; top: 100px; left: 34px; } 
  .persistent-play { font-size: 34px; left: 34px; top: calc(100px + 4 * 1.25 * 31px + 18px); }
  .top a { font-size: 29px; } 
  .logo { width: 54px; height: 54px; font-size: 34px; }
  .hamburger { width: 36px; height: 20px; }

  /* Bottom Text */
  .bottom { 
    left: 34px; 
    max-width: 1000px; 
    top: calc(150vh - 450px) !important; 
    bottom: auto !important; 
    font-size: 42px; 
    line-height: 1.22; 
  } 

  /* Copyright */
  .copyr { 
    left: 0 !important; 
    right: 0 !important; 
    width: 100% !important; 
    top: calc(150vh - 48px) !important; 
    bottom: auto !important; 
    text-align: center !important; 
    font-size: 18px; 
  } 
}