/* ================================
   RESET & BASE
================================ */
* {
    box-sizing: border-box;
  }
  
  html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
  }
  
  body {
    font-family: 'Orbitron', sans-serif;
    background-color: black;
    color: white;
  }
  
  h1, h2 {
    color: #ffffff;
    font-family: 'Orbitron';
    margin: 0;
    /* transform: translateY(-32px); */
  }
  
  ::selection {
    color: rgb(255, 255, 255);
    background: rgb(0, 0, 0);
  }
  ::-moz-selection {
    color: rgb(255, 255, 255);
    background: rgb(0, 0, 0);
  }
  
  svg {
    display: block;
  }
  
  .link {
    text-decoration: none;
  }
  
  
  /* ================================
     NAVBAR
  ================================ */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 990;
    transition:
      transform 0.45s cubic-bezier(.22, 1, .36, 1),
      opacity 0.3s ease,
      background 0.3s ease;
    will-change: transform, opacity;
    height: 64px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }
  
  .navbar.hidden {
    transform: translateY(-120%);
    opacity: 0;
  }
  
  .navbar.transparent {
    background: transparent;
  }
  
  .navbar.scrolled {
    background: rgba(0, 0, 0, 0.85);
  }
  
  .dropdown-button {
    position: relative;
    z-index: 10000;
    font-family: 'Orbitron', sans-serif;
    background-color: rgba(0, 0, 0, 0);
    color: rgb(2, 0, 146);
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
  }
  
  .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    cursor: pointer;
  }
  
  .bar {
    height: 2.3px;
    width: 100%;
    background-color: rgb(255, 255, 255);
  }
  
  .toplogo img {
    height: 100%;
    max-height: 40px;
    width: auto;
    justify-self: center;
  }
  
  .overlay-logo {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
  }
  
  .overlay-logo img {
    height: 100%;
    max-height: 40px;
    width: auto;
  }
  
  .nav-actions {
    justify-self: end;
    padding-right: 40px;
  }
  
  
  /* ================================
     OVERLAY MENU
  ================================ */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgb(0, 0, 0);
    overflow: hidden;
    transition: height 0.5s ease;
    z-index: 1000;
  }
  
  .overlay-content {
    position: relative;
    top: 15%;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 0px;
    font-family: 'Orbitron';
  }
  
  .overlay-content a {
    position: relative;
    font-size: 4em;
    color: white;
    padding: 30px 20px;
    text-decoration: none;
    overflow: hidden;
    z-index: 9999;
    display: inline-block;
    transition: color 0.4s ease;
  }
  
  .overlay-content a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
    z-index: -1;
  }
  
  .overlay-content a:hover::before {
    transform: translateX(-50%) scaleX(1);
  }
  
  .overlay-content a:hover {
    color: rgb(0, 0, 0);
  }
  
  .closebtn {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3em;
    text-decoration: none;
    color: white;
  }
  
  @media screen and (max-height: 450px) {
    .overlay a { font-size: 20px; }
    .overlay .closebtn {
      font-size: 40px;
      top: 15px;
      right: 35px;
    }
  }
  
  
  /* ================================
     PANEL / SCROLL SECTIONS
  ================================ */
  .container {
    position: relative;
    height: 100vh;
  }
  
  .panel {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding-top: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 3rem;
    opacity: 0;
    transition: opacity 0.8s ease;
    box-sizing: border-box;
  }
  
  .panel.active {
    opacity: 1;
  }
  
  /* Background image fills the panel */
  .back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    flex-shrink: 0;
    pointer-events: none;
  }
  
  /* Text sits above background */
  .panel h1,
  .panel h2 {
    position: relative;
    z-index: 1;
  }
  
  .panel .link {
    position: relative;
    z-index: 1;
  }
  
  .info {
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--white);
    text-transform: uppercase;
    padding-top: 0.7vh;
  }
  
  .film-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 0);  /* no vertical centering of the whole block */
    z-index: 1;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
  }
  .film-info h2 {
    transform: none;
    margin: 0;
  line-height: 1;
  
  }
  .film-info .info {
    margin: 0;
    line-height: 1;
    /* margin-top: -16px; */
  }
  
  .film-info .link {
    transform: translateY(-50%); /* only the title sits at the 50% line */
    display: block; /* removes inline baseline gap */
  line-height: 1;
  }
  
  
  
  /* ================================
     LAST PANEL — desktop
  ================================ */
  #last-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 64px;
  }
  
  #last-panel .site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
  }
  
  .site-footer {
    border-top: 1px solid var(--line);
    padding: 24px 60px;
  }
  
  .footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .footer-content p {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--grey);
  }
  
  .footer-icons { display: flex; gap: 20px; }
  
  .footer-icons a {
    color: var(--grey);
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-flex;
  }
  
  .footer-icons a:hover { color: var(--white); transform: translateY(-2px); }
  .footer-icons svg { width: 20px; height: 20px; }
  
  .site-footer:hover .footer-content p {color: var(--white); transition: color 0.2s ease;}
  /* ================================
     SCROLL INDICATOR ARROW
  ================================ */
  .fixed-close {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 10;
    cursor: pointer;
  }
  
  
  /* ================================
     DOTS
  ================================ */
  #scroll-dots {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
  }
  
  .sdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.3s, transform 0.3s;
    cursor: pointer;
  }
  
  .sdot.active {
    background: #ffffff;
    transform: scale(1.35);
  }
  
  
  /* ================================
     MOBILE
  ================================ */
  @media (max-width: 768px) {
  
    /* General panels */
    .panel {
      font-size: 1rem;
      padding: 20px;
      padding-top: 64px;
    }
  
    .panel h1,
    .panel h2 {
      position: relative;
      top: auto;
      left: auto;
      transform: none;
      z-index: 2;
      text-align: center;
      width: 100%;
      margin: 0;
      padding: 0 20px;
      font-size: clamp(1.2rem, 5vw, 2rem);
    }
  
    .panel h2.info {
      font-size: clamp(0.6rem, 2vw, 1rem);
      padding: 0 20px;
    }
  
    
    .film-info {
        top: 50%;
        transform: translate(-50%, -50%);
      }
      .film-info .info {
        /* margin-top: 16px; */
      }
    
      .film-info h2 {
        transform: none;
        
      }
  
    .panel .back {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
    }
  
    .panel .link {
      position: relative;
      z-index: 2;
    }
  
    /* ── Last panel: switch out of absolute so footer is reachable ── */
    #last-panel {
      /* Override the inherited position:absolute from .panel */
      position: fixed !important;
      inset: 0 !important;
      width: 100% !important;
      height: 100% !important;
  
      /* Stack children top-to-bottom, push footer to bottom */
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 64px 20px 0 20px !important;
      overflow: hidden;
    }
  
    #last-panel h1 {
      /* Give it some breathing room above the footer */
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      transform: none;
      font-size: clamp(1rem, 5vw, 2rem);
      text-align: center;
    }
  
    /* Footer: no longer absolute, sits naturally at the bottom */
    #last-panel .site-footer {
      position: static;
      width: 100%;
      margin-top: auto;
      padding: 16px 24px;
      border-top: 1px solid var(--line);
    }
  
    #last-panel .footer-content {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
  
    #last-panel .footer-content p {
      font-size: 9px;
    }
  
    /* Overlay links smaller on mobile */
    .overlay-content a {
      font-size: 2em;
      padding: 16px 20px;
    }
  }

  @media (min-width: 769px) {
    .film-info h2 {
      margin-bottom: -4px;
    }
  
    .film-info .info {
      margin-top: -6px;
    }
    .info + .info {
        margin-top: 0.3vh; /* only affects the second info line */
      }
  }

  @media (max-width: 769px) {
    .info + .info {
      margin-top: 1vh; /* only affects the second info line */
    }
  }


  /* ================================
     MOBILE for iPad
  ================================ */
  @media (min-width: 800px) and (max-width: 1100px) {
  
    /* General panels */
    .panel {
      font-size: 1rem;
      padding: 20px;
      padding-top: 64px;
    }
  
    .panel h1,
    .panel h2 {
      position: relative;
      top: auto;
      left: auto;
      transform: none;
      z-index: 2;
      text-align: center;
      width: 100%;
      margin: 0;
      padding: 0 20px;
      font-size: clamp(1.2rem, 5vw, 2rem);
    }
  
    .panel h2.info {
      font-size: clamp(0.6rem, 2vw, 1rem);
      padding: 0 20px;
    }
  
    
    .film-info {
        top: 50%;
        transform: translate(-50%, -50%);
      }
      .film-info .info {
        /* margin-top: 16px; */
      }
    
      .film-info h2 {
        transform: none;
        
      }
  
    .panel .back {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
    }
  
    .panel .link {
      position: relative;
      z-index: 2;
    }
  
    /* ── Last panel: switch out of absolute so footer is reachable ── */
    #last-panel {
      /* Override the inherited position:absolute from .panel */
      position: fixed !important;
      inset: 0 !important;
      width: 100% !important;
      height: 100% !important;
  
      /* Stack children top-to-bottom, push footer to bottom */
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 64px 20px 0 20px !important;
      overflow: hidden;
    }
  
    #last-panel h1 {
      /* Give it some breathing room above the footer */
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      transform: none;
      font-size: clamp(1rem, 5vw, 2rem);
      text-align: center;
    }
  
    /* Footer: no longer absolute, sits naturally at the bottom */
    #last-panel .site-footer {
      position: static;
      width: 100%;
      margin-top: auto;
      padding: 16px 24px;
      border-top: 1px solid var(--line);
    }
  
    #last-panel .footer-content {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
  
    #last-panel .footer-content p {
      font-size: 9px;
    }
  
    /* Overlay links smaller on mobile */
    .overlay-content a {
      font-size: 2em;
      padding: 16px 20px;
    }
  }

  @media (min-width: 800px) and (max-width: 1100px) {
    .film-info h2 {
      margin-bottom: -4px;
    }
  
    .film-info .info {
      margin-top: -6px;
    }
    .info + .info {
        margin-top: 0.3vh; /* only affects the second info line */
      }
  }

  @media (min-width: 800px) and (max-width: 1100px) {
    .info + .info {
      margin-top: 1vh; /* only affects the second info line */
    }
  }