/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ── */
:root {
  --charcoal:    #181818;
  --near-black:  #0d0d0d;
  --white-neon:  #f0efe8;
  --gold:        #c9a84c;
  --red-hover:   #c41a1a;
  --tile-bg:        rgba(235, 232, 218, 0.88);
  --tile-border:    rgba(180, 174, 155, 0.5);
  --tile-text:      #111111;
  --tile-glow:      rgba(255, 252, 235, 0.25);
  --nav-text:    rgba(240, 239, 232, 0.65);

  --mq-left:   190;
  --mq-top:    413;
  --mq-width:  692;
  --mq-height: 163;

  /* Height reserved at the bottom for the company scroll strip */
  --scroll-strip-h: 72px;

  /* Vertical position of the laurels block — distance from bottom of cinema-scene. */
  --laurels-bottom: 28vh;
}

html { scroll-behavior: auto; }

body {
  background: var(--near-black);
  color: var(--white-neon);
  font-family: 'Oswald', sans-serif;
  overflow-x: hidden;
  height: 280vh;
}

/* ── Top nav ── */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 1rem 2.5rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75) 0%, transparent 100%);
}
.top-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
}
.top-nav a {
  color: var(--nav-text);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  transition: color 0.2s;
}
.top-nav a:hover,
.top-nav a:focus { color: var(--white-neon); outline: none; }

/* ── Homepage mobile hamburger toggle ── */
.top-nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(240,239,232,0.4);
  color: var(--nav-text);
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  position: absolute;
  right: 1.5rem;
  top: 1rem;
}

/* ── Cinema scene ── */
.cinema-scene {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform-origin: 50% 64%;
  will-change: transform;
  z-index: 1;
}

.sky-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #0a0d14;
}

.image-frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 100vh;
  max-width: 100vw;
}

.cinema-frontage {
  display: block;
  max-height: 100vh;
  max-width: 100vw;
  width: auto; height: auto;
  object-fit: contain;
}

/* ── Marquee overlay ── */
.marquee-nav {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.marquee-row {
  position: absolute;
  left: 0; right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1px;
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
}
.marquee-row:hover .tile:not(.space),
.marquee-row:focus .tile:not(.space) { color: var(--red-hover); }
.marquee-row:focus { outline: none; }

/* ── Letter tiles ── */
.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tile-bg);
  color: var(--tile-text);
  border: 1px solid var(--tile-border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(0,0,0,0.1),
    0 0 6px var(--tile-glow);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  transition: color 0.12s ease;
  user-select: none;
  flex-shrink: 0;
}
.tile.space { background: transparent; border-color: transparent; box-shadow: none; }

/* ── Award laurels ── */
.laurels-row {
  position: absolute;
  bottom: var(--laurels-bottom);
  left: 0;
  width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
  transition: opacity 0.2s;
}
.laurels-top,
.laurels-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2.5vw, 2rem);
}
.laurels-top img {
  height: clamp(80px, 9vw, 136px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.7));
}
.laurels-bottom img {
  height: clamp(64px, 7.2vw, 109px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

/* ── Scroll hint — sits just below the laurels ── */
.scroll-hint {
  position: absolute;
  bottom: calc(var(--laurels-bottom) - 6rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 1;
  transition: opacity 0.4s;
  pointer-events: none;
}
.scroll-hint span {
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--white-neon);
  text-shadow: 0 0 18px rgba(201,168,76,0.5);
  white-space: nowrap;
}
.scroll-arrow {
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: hint-pulse 2s ease-in-out infinite;
}
@keyframes hint-pulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ── Black overlay ── */
.scene-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

/* ── Scroll spacer ── */
.scroll-spacer { height: 280vh; pointer-events: none; }

/* ── Home company scroll strip ── */
.home-company-scroll {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: var(--scroll-strip-h);
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.3rem 0 0.4rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
  border-top: 1px solid rgba(180,174,155,0.08);
}
.home-company-label {
  font-size: 0.42rem;
  letter-spacing: 0.24em;
  color: rgba(240,239,232,0.18);
  text-align: center;
  margin-bottom: 0.2rem;
}
.home-company-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.home-company-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: hc-scroll 35s linear infinite;
}
.home-company-track-wrap:hover .home-company-track { animation-play-state: paused; }
@keyframes hc-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.hc-item {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1.75rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: rgba(240,239,232,0.3);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
  border-left: 1px solid rgba(180,174,155,0.1);
}
.hc-item:hover { color: var(--gold); }
.hc-item img {
  height: 18px;
  width: auto; max-width: 80px;
  object-fit: contain;
  opacity: 0.45;
  transition: opacity 0.2s;
}
.hc-item img.co-invert { filter: invert(1); }
.hc-item:hover img { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .home-company-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .top-nav { padding: 0.9rem 1.25rem; background: rgba(0,0,0,0.85); }
  .top-nav-toggle { display: block; }
  .top-nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 0.75rem 0 0.5rem;
    margin-top: 0.5rem;
  }
  .top-nav.is-open ul { display: flex; }
  .top-nav ul li a {
    display: block;
    padding: 0.6rem 0.25rem;
    font-size: 0.7rem;
    border-bottom: 1px solid rgba(240,239,232,0.08);
    text-align: left;
  }
  .cinema-frontage { max-height: 100vh; }

  /* Marquee stays visible on mobile — positionMarquee() in main.js already
     scales tile size/position off the rendered image rect, so it adapts. */

  /* Laurels: full-width so justify-content:center works, moved up */
  .laurels-row {
    bottom: 26vh;
    left: 0;
    width: 100%;
    gap: 0.4rem;
  }
  .laurels-top img  { height: clamp(52px, 12vw, 72px); }
  .laurels-bottom img { height: clamp(36px, 8.5vw, 52px); }

  /* Scroll hint: anchor just above company strip, smaller text */
  .scroll-hint {
    bottom: calc(var(--scroll-strip-h) + 2.5rem);
    left: 50%;
    transform: translateX(-50%);
  }
  .scroll-hint span {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
  }
  .scroll-arrow { height: 1.75rem; }
}
