:root {
  --black: #000;
  --white: #fff;
  --gray: #8a8a8a;
  --border: rgba(255, 255, 255, 0.4);
  --mono: "Space Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --logo-font: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden; /* the filmstrip is the whole page — no vertical page scroll */
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--white);
  color: var(--black);
  padding: 0.5rem 1rem;
  z-index: 100;
}

/* ---------- Header / footer chrome ----------
   Fixed over the filmstrip at all times. A dark gradient scrim sits behind
   each bar so the white text stays legible over any photo/video — relying on
   mix-blend-mode alone broke down over light or mid-gray backgrounds, where
   "difference" against white produces another gray with poor contrast. */
.site-header,
.site-footer {
  position: fixed;
  left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
}

.site-header {
  top: 0;
  justify-content: center;
  gap: 1.75rem;
}

.site-footer { bottom: 0; }

.site-header::before,
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  z-index: -1;
  pointer-events: none;
}

.site-header::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
}

.site-footer::before {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
}

/* The Djodje wordmark — bold geometric sans, Greek letters standing in for
   O and E (DJ-theta-DJ-sigma), same substitution as the reference logo. */
.logo-mark {
  font-family: var(--logo-font);
  font-weight: 700;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
}

.logo-o {
  width: 0.74em;
  height: 0.74em;
  margin: 0 0.02em;
  color: currentColor;
  flex-shrink: 0;
}

/* Header instance: sits inline in the nav list, same size/font/weight as
   the other links around it — just swapping in the wordmark where a plain
   nav label would go, the way beyonce.com drops a star between its links.
   The whole header row (nav + logo + language switch) is centered as one
   group via .site-header's justify-content: center. */
.logo-nav-item {
  display: inline-flex;
  align-items: center;
}

/* Slow per-letter glow: each letter's position never moves — only its
   brightness breathes, lighting up and fading on its own delay so the glow
   ripples gently across the wordmark. */
.logo-char {
  display: inline-block;
  color: var(--white);
  animation: logo-glow 2.8s ease-in-out infinite;
}

svg.logo-o.logo-char {
  animation-name: logo-glow-icon;
}

.logo-char:nth-child(1) { animation-delay: 0s; }
.logo-char:nth-child(2) { animation-delay: 0.25s; }
.logo-char:nth-child(3) { animation-delay: 0.5s; }
.logo-char:nth-child(4) { animation-delay: 0.75s; }
.logo-char:nth-child(5) { animation-delay: 1s; }
.logo-char:nth-child(6) { animation-delay: 1.25s; }

@keyframes logo-glow {
  0%, 100% { text-shadow: 0 0 3px rgba(255, 255, 255, 0.25); }
  50% {
    text-shadow:
      0 0 6px rgba(255, 255, 255, 1),
      0 0 14px rgba(255, 255, 255, 0.9),
      0 0 26px rgba(255, 255, 255, 0.7),
      0 0 40px rgba(255, 255, 255, 0.4);
  }
}

@keyframes logo-glow-icon {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.25)); }
  50% {
    filter:
      drop-shadow(0 0 6px rgba(255, 255, 255, 1))
      drop-shadow(0 0 16px rgba(255, 255, 255, 0.8))
      drop-shadow(0 0 28px rgba(255, 255, 255, 0.5));
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav {
  display: flex;
  gap: 1.75rem;
}

/* Hamburger toggle — hidden on desktop, where .main-nav shows inline. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lang-switch {
  background: transparent;
  border: 1px solid var(--white);
  color: var(--white);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1.5rem 0.3rem 0.6rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='white' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 8px 5px;
}

.lang-switch option {
  background: var(--black);
  color: var(--white);
}

.main-nav a {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width 0.25s ease;
}

.main-nav a:hover::after { width: 100%; }

.footer-link {
  background: none;
  border: none;
  font-family: var(--mono);
  color: var(--white);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0;
}

.footer-link:hover { text-decoration: underline; }

.filmstrip-controls {
  display: flex;
  gap: 1rem;
}

.arrow-btn {
  background: none;
  border: 1px solid var(--white);
  color: var(--white);
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.arrow-btn:hover { background: var(--white); color: var(--black); }

/* ---------- Decorative stars ----------
   Fixed over the viewport, independent of the scrolled content. */
.star {
  position: fixed;
  z-index: 40;
  font-size: 14px;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  animation: twinkle 3.2s ease-in-out infinite;
}
.star-1 { top: 18%; left: 6%; animation-delay: 0s; }
.star-2 { top: 50%; right: 6%; font-size: 11px; animation-delay: 0.8s; }
.star-3 { bottom: 22%; left: 46%; font-size: 18px; animation-delay: 1.6s; }
.star-4 { top: 72%; right: 30%; font-size: 10px; animation-delay: 2.4s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}

/* ---------- Filmstrip ---------- */
.filmstrip {
  display: flex;
  height: 100dvh;
  width: 100vw;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.filmstrip::-webkit-scrollbar { display: none; }

.panel {
  flex: 0 0 auto;
  height: 100%;
  margin: 0;
  position: relative;
}

.panel--full       { width: 100vw; }
.panel--wide       { width: 62vw; }
.panel--half       { width: 50vw; }
.panel--narrow     { width: 36vw; }
.panel--xnarrow    { width: 28vw; }
.panel--embed-wide { width: 60vw; }

/* ---------- Media ----------
   Each panel's <img>/<video> fills its box; swap the files in assets/ for
   your own photos and clips whenever you're ready. */
.panel-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0a0a0a;
}

.panel-media--bw {
  filter: grayscale(100%);
}

.video-controls {
  position: absolute;
  bottom: 5.5rem;
  left: 2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mute-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.mute-toggle:hover {
  background: var(--white);
  color: var(--black);
  transform: scale(1.12);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
}

.mute-toggle:active { transform: scale(0.94); }

.speaker-icon {
  width: 19px;
  height: 19px;
  overflow: visible;
}

/* Sound-wave arcs gently pulse to signal "live audio" while unmuted. */
.speaker-wave {
  transform-origin: 9px 12px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  animation: wave-pulse 1.8s ease-in-out infinite;
}

.speaker-wave-2 { animation-delay: 0.25s; }

.speaker-mute {
  opacity: 0;
  transform: scale(0.6);
  transform-origin: 18px 12px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes wave-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* .is-muted toggled by script.js: waves fold away, the mute slash draws in */
.mute-toggle.is-muted .speaker-wave {
  opacity: 0;
  transform: scale(0.5);
  animation: none;
}

.mute-toggle.is-muted .speaker-mute {
  opacity: 1;
  transform: scale(1);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--white) 0%,
    var(--white) var(--vol, 100%),
    rgba(255, 255, 255, 0.25) var(--vol, 100%),
    rgba(255, 255, 255, 0.25) 100%
  );
  cursor: pointer;
  flex-shrink: 0;
  transition: box-shadow 0.2s ease;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.volume-slider:hover::-webkit-slider-thumb,
.volume-slider:active::-webkit-slider-thumb {
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.volume-slider:hover::-moz-range-thumb,
.volume-slider:active::-moz-range-thumb {
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
}

.volume-slider::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: transparent;
}

/* Embedded Facebook reel — the plugin iframe brings its own player chrome,
   so just let it fill the panel edge to edge. */
.panel--embed {
  background: #0a0a0a;
  display: flex;
}

.panel-embed-frame {
  width: 100%;
  height: 100%;
}

/* Show-date slide: plain black card, no photo */
.panel--date {
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.date-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 0 2rem;
  text-align: center;
}

.date-line {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 1.6vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

/* Final panel: legal / footer content instead of imagery */
.panel--end {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  border-left: 1px solid var(--border);
}

.end-content { text-align: center; }

.end-title {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 1.5rem;
}

.end-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 0 0 1.5rem;
  padding: 0;
}

.end-links a {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.end-links a:hover { text-decoration: underline; }

.end-copy {
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  margin: 0;
}

/* ---------- Buttons (modal) ---------- */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border: 1px solid var(--white);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--white);
  color: var(--black);
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn:hover { background: var(--black); color: var(--white); }

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}

.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--black);
  border: 1px solid var(--white);
  padding: 2.5rem 2rem;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-title {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 14px;
  margin: 0 0 2rem;
}

.field {
  display: block;
  text-align: left;
  margin-bottom: 1.5rem;
}

.field-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--white);
  font-family: var(--mono);
  font-size: 14px;
  padding: 0.4rem 0;
  resize: vertical;
}

.field select {
  background: var(--black);
}

.field select option {
  background: var(--black);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-bottom-color: var(--white);
}

.modal-fineprint {
  font-size: 10px;
  color: var(--gray);
  margin: 1.25rem 0 0;
}

.form-status {
  font-size: 12px;
  color: var(--white);
  margin: 0.75rem 0 0;
  text-align: center;
}

.form-status--error {
  color: #ff6b6b;
}

.modal-fineprint a { text-decoration: underline; }

/* ---------- Responsive ----------
   Extreme vw-based widths get unwieldy on narrow screens, so panels
   fall back to near-fullscreen slides users swipe through one at a time. */
@media (max-width: 700px) {
  .site-header { padding: 1.25rem 1.5rem; }

  .nav-toggle { display: flex; order: -1; }

  .main-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.75rem 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--border);
  }

  .main-nav.is-open { display: flex; }

  .site-footer { padding: 1.25rem 1.5rem; }

  .panel--full,
  .panel--wide,
  .panel--half,
  .panel--narrow,
  .panel--xnarrow,
  .panel--embed-wide,
  .panel--video {
    width: 88vw;
  }
}
