/* ========================================
   RAINIER — Director Portfolio
   Dark / Moody / Cinematic
   ======================================== */

/* --- Loading Screen --- */
.loader {
  position: fixed;
  inset: 0;
  background: #0a0a0a;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

.loader.done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.loader-initials {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  font-weight: 300;
  letter-spacing: 16px;
  color: #fff;
  text-indent: 16px;
  transition: opacity 0.5s ease;
}

.loader.fading-text .loader-initials,
.loader.fading-text .loader-bar-track {
  opacity: 0;
}

.loader-bar-track {
  width: 240px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.loader-bar-fill {
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.3s ease;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  background: #0a0a0a;
  color: #f0f0f0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
}


/* --- Film Grain Overlay --- */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
}

.grain svg {
  display: block;
  width: 100%;
  height: 100%;
}


/* --- Navigation --- */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 44px;
  z-index: 1000;
  pointer-events: none;
  mix-blend-mode: difference;
  transition: opacity 0.4s ease;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 5px;
  color: #fff;
  transition: letter-spacing 0.3s ease;
  white-space: nowrap;
  pointer-events: auto;
}

.nav-logo:hover {
  letter-spacing: 8px;
}

.nav-subtitle {
  display: inline;
  opacity: 0;
}

.btn-passcode {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  pointer-events: auto;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #fff;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.btn-passcode:hover {
  border-color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.04);
}

.btn-passcode-icon {
  font-size: 7px;
  color: #4ade80;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}


/* --- Passcode Modal --- */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 440px;
  padding: 48px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.50);
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 800;
  font-size: 32px;
  letter-spacing: 4px;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 32px;
}

.passcode-form {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.passcode-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  letter-spacing: 6px;
  padding: 16px 20px;
  outline: none;
  text-transform: uppercase;
}

.passcode-input::placeholder {
  color: rgba(255, 255, 255, 0.19);
  letter-spacing: 4px;
}

.btn-submit {
  padding: 16px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.50);
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.btn-submit:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.passcode-error {
  font-size: 12px;
  letter-spacing: 2px;
  color: #ef4444;
  margin-top: 16px;
  min-height: 20px;
}


/* ========================================
   UPWARD JOURNEY — Top Landing + Video Scene
   ======================================== */
/* Mirrored sections (upward journey) use same styles as originals */
.footer-mirror { position: relative; z-index: 200; }
.brands-mirror {
  position: relative;
  z-index: 200;
  padding: 140px 60px;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-mirror {
  position: relative;
  z-index: 200;
  padding: 44px 60px;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Spacer for upward campaign view */
/* campaign-spacer-up: NO z-index — must sit BELOW the landing overlay (z-index 100)
   so the overlay covers it, same as how campaigns covers the downward spacer */
.campaign-spacer-up {
  /* no position or z-index — let the fixed overlay paint on top */
}

/* Upward landing overlay — mirrors #campaigns behavior */
.landing-up-overlay {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.landing-up-overlay.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  touch-action: pan-y;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.landing-up-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

/* Dim background when a layer is selected */
.landing-up-overlay.layer-active .landing-up-image {
  opacity: 0.5;
}

/* ─── Tech Hotspot System ─────────────────────────── */
.tech-hotspots {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.tech-hotspot {
  position: absolute;
  cursor: pointer;
}

/* Layer image — full-size PNG overlay, shown on hover/active */
.tech-layer-img {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  pointer-events: none;
  z-index: 2;
  /* Base: no opacity/filter set here — idle animation controls default state.
     Hover/active use transitions to override smoothly. */
}

/* Per-layer transform origins — scale from each layer's content center */
.tech-hotspot[data-layer="4"] .tech-layer-img { transform-origin: 50.4% 26.5%; }
.tech-hotspot[data-layer="3"] .tech-layer-img { transform-origin: 50.4% 37.6%; }
.tech-hotspot[data-layer="2"] .tech-layer-img { transform-origin: 50.3% 47.5%; }
.tech-hotspot[data-layer="1"] .tech-layer-img { transform-origin: 50.5% 58.2%;
}

/* Hover: transitions smoothly from fixed idle baseline */
.tech-hotspot:hover .tech-layer-img {
  opacity: 1;
  filter: brightness(1.4) drop-shadow(0 0 75px rgba(140, 220, 255, 0.31)) drop-shadow(0 0 150px rgba(140, 220, 255, 0.13));
  transform: scale(1.2);
  animation: none;
}

/* Selected: 120% scale, stronger glow, rare flicker */
.tech-hotspot.active .tech-layer-img {
  opacity: 1;
  filter: brightness(1.4) drop-shadow(0 0 75px rgba(140, 220, 255, 0.31)) drop-shadow(0 0 150px rgba(140, 220, 255, 0.13));
  transform: scale(1.2);
  animation: layer-flicker 24s ease-in-out infinite;
}

@keyframes layer-flicker {
  0%, 100% { filter: brightness(1.4) drop-shadow(0 0 75px rgba(140, 220, 255, 0.31)) drop-shadow(0 0 150px rgba(140, 220, 255, 0.13)); }
  /* First flicker ~7% in */
  6.8% { filter: brightness(1.15) drop-shadow(0 0 50px rgba(140, 220, 255, 0.2)); }
  7.2% { filter: brightness(1.5) drop-shadow(0 0 95px rgba(140, 220, 255, 0.36)); }
  7.6% { filter: brightness(1.4) drop-shadow(0 0 75px rgba(140, 220, 255, 0.31)) drop-shadow(0 0 150px rgba(140, 220, 255, 0.13)); }
  /* Second flicker ~38% in */
  37.5% { filter: brightness(1.2) drop-shadow(0 0 55px rgba(140, 220, 255, 0.22)); }
  38.0% { filter: brightness(1.45) drop-shadow(0 0 88px rgba(140, 220, 255, 0.34)); }
  38.3% { filter: brightness(1.4) drop-shadow(0 0 75px rgba(140, 220, 255, 0.31)) drop-shadow(0 0 150px rgba(140, 220, 255, 0.13)); }
  /* Third flicker ~71% in */
  70.8% { filter: brightness(1.1) drop-shadow(0 0 48px rgba(140, 220, 255, 0.18)); }
  71.1% { filter: brightness(1.48) drop-shadow(0 0 92px rgba(140, 220, 255, 0.35)); }
  71.5% { filter: brightness(1.4) drop-shadow(0 0 75px rgba(140, 220, 255, 0.31)) drop-shadow(0 0 150px rgba(140, 220, 255, 0.13)); }
}

/* Diamond marker — SVG for animated trace stroke */
.diamond-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%) rotate(45deg);
  z-index: 3;
  border: 1px solid rgba(140, 220, 255, 0.12);
  background: transparent;
  transition: all 0.3s ease;
  /* Trace glow animation via box-shadow */
  animation: diamond-trace 3s ease-in-out infinite;
}

@keyframes diamond-trace {
  0%, 100% {
    box-shadow: 0 0 6px rgba(140, 220, 255, 0.05), inset 0 0 4px rgba(140, 220, 255, 0.03);
    border-color: rgba(140, 220, 255, 0.12);
  }
  50% {
    box-shadow: 0 0 16px rgba(140, 220, 255, 0.2), inset 0 0 8px rgba(140, 220, 255, 0.06);
    border-color: rgba(140, 220, 255, 0.4);
  }
}

/* Stagger the trace animation per layer */
.tech-hotspot:nth-child(1) .diamond-marker { animation-delay: 0s; }
.tech-hotspot:nth-child(2) .diamond-marker { animation-delay: 0.75s; }
.tech-hotspot:nth-child(3) .diamond-marker { animation-delay: 1.5s; }
.tech-hotspot:nth-child(4) .diamond-marker { animation-delay: 2.25s; }

.tech-hotspot:hover .diamond-marker {
  border-color: rgba(140, 220, 255, 0.6);
  background: rgba(140, 220, 255, 0.06);
  box-shadow: 0 0 24px rgba(140, 220, 255, 0.2);
  animation: none;
}

/* When ANY hotspot is active, stop ALL trace animations */
.tech-hotspots.has-active .diamond-marker {
  animation: none;
}

.tech-hotspot.active .diamond-marker {
  border-color: rgba(140, 220, 255, 0.9);
  background: rgba(140, 220, 255, 0.1);
  box-shadow: 0 0 30px rgba(140, 220, 255, 0.25);
  animation: none;
}

/* Arm: line + label extending from the hotspot */
.hotspot-arm {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
  white-space: nowrap;
}

.hotspot-arm-right {
  left: calc(100% + 20px);
}

.hotspot-arm-left {
  right: calc(100% + 20px);
  flex-direction: row-reverse;
}

.hotspot-arm svg {
  width: 100px;
  height: 2px;
  flex-shrink: 0;
}

.hotspot-arm line {
  stroke: rgba(140, 220, 255, 0.15);
  stroke-width: 1;
  transition: stroke 0.3s ease;
}

.tech-hotspot:hover .hotspot-arm line,
.tech-hotspot.active .hotspot-arm line {
  stroke: rgba(140, 220, 255, 0.5);
}

.hotspot-arm span {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  color: rgba(140, 220, 255, 0.25);
  transition: color 0.3s ease;
}

.tech-hotspot:hover .hotspot-arm span,
.tech-hotspot.active .hotspot-arm span {
  color: rgba(140, 220, 255, 0.8);
}

/* Prompt text — right side, bright, with animated connector */
.tech-prompt {
  position: absolute;
  right: 20%;
  top: 50%;
  transform: translate(50%, -50%);
  width: 340px;
  padding: 36px;
  background: rgba(5, 8, 15, 0.92);
  border: 1px solid rgba(140, 220, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10;
  transition: opacity 0.4s ease;
}

.tech-prompt-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(140, 220, 255, 0.4);
  display: block;
  margin-bottom: 10px;
}

.tech-prompt-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 3px;
  color: rgba(140, 220, 255, 0.9);
  margin-bottom: 14px;
}

.tech-prompt-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  margin-bottom: 20px;
}

.tech-prompt-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  color: rgba(140, 220, 255, 0.5);
  animation: prompt-pulse 2.5s ease-in-out infinite;
}

@keyframes prompt-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.tech-prompt.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Animated connector line from prompt to layers */
.tech-prompt-line {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tech-prompt-line line {
  stroke: rgba(140, 220, 255, 0.3);
  stroke-width: 1;
  stroke-dasharray: 6 4;
  transition: all 1s ease, opacity 0.8s ease;
  opacity: 0;
}

/* Idle state: fixed opacity/transform, animation ONLY on filter (glow) */
.tech-hotspot .tech-layer-img {
  opacity: 0.35;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
  animation: layer-outline-trace 5s ease-in-out infinite;
}

/* Stagger the glow pulse */
.tech-hotspot:nth-child(1) .tech-layer-img { animation-delay: 0s; }
.tech-hotspot:nth-child(2) .tech-layer-img { animation-delay: 1.25s; }
.tech-hotspot:nth-child(3) .tech-layer-img { animation-delay: 2.5s; }
.tech-hotspot:nth-child(4) .tech-layer-img { animation-delay: 3.75s; }

@keyframes layer-outline-trace {
  0%, 100% {
    filter: brightness(1.0) saturate(0.3) drop-shadow(0 0 12px rgba(140, 220, 255, 0.1));
  }
  50% {
    filter: brightness(1.3) saturate(0.5) drop-shadow(0 0 35px rgba(140, 220, 255, 0.3));
  }
}

/* When a layer is selected, hide all idle outlines */
.tech-hotspots.has-active .tech-hotspot .tech-layer-img {
  animation: none !important;
  opacity: 0 !important;
  filter: none !important;
  transform: scale(1) !important;
}

/* But show the ACTIVE layer's image (overrides the hide above) */
.tech-hotspots.has-active .tech-hotspot.active .tech-layer-img {
  opacity: 1 !important;
  filter: brightness(1.4) drop-shadow(0 0 75px rgba(140, 220, 255, 0.31)) drop-shadow(0 0 150px rgba(140, 220, 255, 0.13)) !important;
  transform: scale(1.2) !important;
  animation: layer-flicker 24s ease-in-out infinite !important;
}

/* Connecting line from layer to detail panel */
.tech-connector {
  position: absolute;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tech-connector.visible {
  opacity: 1;
}

.tech-connector line {
  stroke: rgba(140, 220, 255, 0.3);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

/* Detail panel */
.tech-detail {
  position: absolute;
  right: 20%;
  top: 50%;
  transform: translate(50%, -50%);
  width: 340px;
  padding: 36px;
  background: rgba(5, 8, 15, 0.92);
  border: 1px solid rgba(140, 220, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tech-detail.active {
  opacity: 1;
  visibility: visible;
}

.tech-detail-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.4);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.tech-detail-close:hover {
  color: #fff;
}

.tech-detail-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: rgba(140, 220, 255, 0.4);
  display: block;
  margin-bottom: 10px;
}

.tech-detail-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 3px;
  color: rgba(140, 220, 255, 0.9);
  margin-bottom: 14px;
}

.tech-detail-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
}

.tech-detail-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: rgba(140, 220, 255, 0.85);
  border: 1px solid rgba(140, 220, 255, 0.3);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tech-detail-link:hover {
  color: #fff;
  border-color: rgba(140, 220, 255, 0.7);
  background: rgba(140, 220, 255, 0.08);
  box-shadow: 0 0 20px rgba(140, 220, 255, 0.1);
}

#scene-up {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

#scene-video-up {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Both videos overlap — JS toggles which is on top based on scroll direction */
#scene-video { z-index: 2; }
#scene.scrolling-up #scene-video-up { z-index: 2; }
#scene.scrolling-up #scene-video { z-index: 1; }

/* Start indicator — centered between UP and DOWN at starting scroll position */
.start-indicator {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.start-indicator.hidden {
  opacity: 0;
}

.start-indicator-up,
.start-indicator-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.3);
}

.start-indicator-up span,
.start-indicator-down span {
  font-size: 10px;
  letter-spacing: 4px;
  font-weight: 400;
}

.start-indicator-up svg {
  animation: bob-up 2s ease-in-out infinite;
}

.start-indicator-down svg {
  animation: bob-down 2s ease-in-out infinite;
}

@keyframes bob-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes bob-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}


/* ========================================
   SCENE — Living Room (Wireframe Storyboard)
   ======================================== */
#scene {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000000 url('../assets/video/first-frame.jpg') center/cover no-repeat;
}

@media (max-width: 768px) {
  #scene {
    background-image: url('../assets/video/frames/frame-121.jpg');
    background-size: cover;
    background-position: center;
  }
}

#scene-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}

/* Room background — subtle dark gradient */
.layer-room {
  background:
    radial-gradient(ellipse at 50% 40%, #0d1117 0%, #050508 70%);
  z-index: 1;
}

/* Ambient lighting — warm/cool wash */
.layer-ambient {
  background:
    radial-gradient(ellipse at 25% 30%, rgba(100, 150, 220, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 65%, rgba(220, 140, 80, 0.04) 0%, transparent 40%);
  opacity: 0;
  z-index: 2;
}

/* Floor — perspective grid lines (wireframe) */
.layer-floor {
  z-index: 3;
}

.layer-floor::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background:
    /* Horizontal lines */
    repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 58px,
      rgba(255, 255, 255, 0.04) 58px,
      rgba(255, 255, 255, 0.04) 60px
    );
  mask-image: linear-gradient(to bottom, transparent 0%, white 40%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, white 40%);
}

.layer-floor::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 45%;
  background:
    /* Converging vertical lines (perspective) */
    linear-gradient(to right, transparent 8%, rgba(255,255,255,0.03) 8.2%, transparent 8.4%),
    linear-gradient(to right, transparent 18%, rgba(255,255,255,0.025) 18.2%, transparent 18.4%),
    linear-gradient(to right, transparent 30%, rgba(255,255,255,0.02) 30.2%, transparent 30.4%),
    linear-gradient(to right, transparent 42%, rgba(255,255,255,0.02) 42.2%, transparent 42.4%),
    linear-gradient(to right, transparent 58%, rgba(255,255,255,0.02) 58.2%, transparent 58.4%),
    linear-gradient(to right, transparent 70%, rgba(255,255,255,0.02) 70.2%, transparent 70.4%),
    linear-gradient(to right, transparent 82%, rgba(255,255,255,0.025) 82.2%, transparent 82.4%),
    linear-gradient(to right, transparent 92%, rgba(255,255,255,0.03) 92.2%, transparent 92.4%);
  mask-image: linear-gradient(to bottom, transparent 0%, white 40%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, white 40%);
}

/* Wall — wireframe architectural lines */
.layer-wall {
  z-index: 3;
  pointer-events: none;
}

/* Room outline — wireframe box */
.layer-wall::before {
  content: '';
  position: absolute;
  top: 8%;
  left: 5%;
  right: 5%;
  bottom: 45%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: none;
}

/* Ceiling line */
.layer-wall::after {
  content: '';
  position: absolute;
  top: 8%;
  left: 5%;
  right: 5%;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.wall-art {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Small inner frame */
.wall-art::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* TV — wireframe rectangle with glow */
.layer-tv {
  z-index: 5;
}

.tv-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-8%);
  will-change: transform;
}

.tv-frame {
  width: 320px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  background: #000000;
}

/* CRT scan lines on TV */
.tv-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 1px,
    rgba(0, 0, 0, 0.08) 1px,
    rgba(0, 0, 0, 0.08) 2px
  );
  pointer-events: none;
  z-index: 2;
}

.tv-screen {
  position: absolute;
  inset: 0;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* TV glow effect */
.tv-screen::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(100, 80, 200, 0.08) 0%, transparent 70%);
  z-index: -1;
}

.tv-text {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 300;
  font-size: 32px;
  letter-spacing: 14px;
  color: rgba(255, 255, 255, 0.62);
  animation: tv-flicker 4s ease infinite;
  text-indent: 14px;
}

@keyframes tv-flicker {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.7; }
  92% { opacity: 0.5; }
  93% { opacity: 0.15; }
  94% { opacity: 0.6; }
}

.tv-console {
  width: 180px;
  height: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  margin-top: -1px;
}

/* Furniture — wireframe outlines */
.layer-furniture {
  z-index: 4;
  pointer-events: none;
}

.furniture-couch {
  position: absolute;
  bottom: 28%;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px 3px 0 0;
}

/* Couch back */
.furniture-couch::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -5px;
  right: -5px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: none;
  border-radius: 3px 3px 0 0;
}

/* Couch legs */
.furniture-couch::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 20px;
  width: calc(100% - 40px);
  height: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.04);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.furniture-table {
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Table legs */
.furniture-table::before {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 8px;
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: calc(140px - 18px) 0 0 rgba(255, 255, 255, 0.04);
}

/* People — wireframe silhouettes */
.layer-people {
  z-index: 6;
  pointer-events: none;
}

.person {
  position: absolute;
  bottom: 22%;
  width: 55px;
  height: 155px;
  color: rgba(255, 255, 255, 0.10);
}

.person svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.person-left {
  left: 34%;
}

.person-right {
  right: 34%;
}

/* Ambient particles */
.layer-particles {
  z-index: 7;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: float-up var(--duration, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes float-up {
  0%, 100% {
    transform: translateY(0) scale(0);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
    transform: scale(1);
  }
  85% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-120px) scale(0.3);
    opacity: 0;
  }
}

/* Vignette */
.layer-vignette {
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 8;
  pointer-events: none;
}

/* Scroll Indicator */
/* Dual scroll indicators — UP (technologist) and DOWN (film director) */
.scroll-indicator {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 9;
  transition: opacity 0.6s ease;
}

.scroll-indicator.hidden { opacity: 0; pointer-events: none; }

.scroll-indicator-up {
  top: 36px;
  z-index: 1001;
}

.scroll-indicator-down {
  bottom: 36px;
  color: rgba(0, 0, 0, 0.5);
}

.scroll-indicator-down svg {
  color: rgba(0, 0, 0, 0.4);
}

.scroll-indicator-down span {
  color: rgba(0, 0, 0, 0.5);
}

.scroll-indicator span {
  font-size: 13px;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.scroll-indicator svg {
  color: rgba(255, 255, 255, 0.3);
}

.scroll-indicator-up svg { animation: bob-up 2s ease-in-out infinite; }
.scroll-indicator-down svg { animation: bob-down 2s ease-in-out infinite; }

@keyframes bob-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes bob-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.scroll-line {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  animation: scroll-pulse-down 2s ease infinite;
}

.scroll-line-up::after {
  animation: scroll-pulse-up 2s ease infinite;
}

@keyframes scroll-pulse-down {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

@keyframes scroll-pulse-up {
  0% { top: 100%; }
  50% { top: 0%; }
  100% { top: -100%; }
}


/* ========================================
   CAMPAIGN VIEWER
   ======================================== */
#campaigns {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000000;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

#campaigns.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Scan lines (CRT effect, entering TV) */
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 8;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.campaigns-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.campaign-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.campaign-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.campaign-bg {
  position: absolute;
  inset: 0;
  transition: background 0.8s ease;
}

.campaign-info {
  position: absolute;
  bottom: 100px;
  left: 60px;
  z-index: 3;
  transition: opacity 0.4s ease;
}

.campaign-number {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.31);
  margin-bottom: 14px;
}

.campaign-client {
  display: block;
  font-size: 11px;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.44);
  margin-bottom: 10px;
  font-weight: 500;
}

.campaign-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 800;
  font-size: 80px;
  letter-spacing: 6px;
  line-height: 0.95;
  margin-bottom: 14px;
  color: #fff;
}

.campaign-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.50);
  font-weight: 300;
  letter-spacing: 1.5px;
}

.campaign-hero-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.campaign-hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  contain: layout size style;
  overflow: hidden;
}

.campaign-hero iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Always fill the viewport — pick the larger of viewport size or 16:9 cover size */
  width: max(100vw, 177.78vh);
  height: max(100vh, 56.25vw);
  border: none;
  will-change: transform;
}

/* Cinema Mode — hide overlays during video playback */
.cinema-mode .campaign-info,
.cinema-mode .campaign-arrow,
.cinema-mode .campaign-dots,
.cinema-mode .btn-bts,
.cinema-mode .version-btns,
.cinema-mode .scanlines {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#nav.cinema-mode {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.placeholder-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 44px 64px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.12);
  font-size: 13px;
  letter-spacing: 5px;
  font-weight: 400;
}

.placeholder-sub {
  font-size: 10px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.07);
}

/* Campaign Navigation Arrows */
.campaign-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
  z-index: 10;
}

.campaign-arrow:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.50);
  background: rgba(255, 255, 255, 0.04);
}

.arrow-left {
  left: 40px;
}

.arrow-right {
  right: 40px;
}

/* Campaign Dots */
.campaign-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.3);
}

/* BTS & Remix Buttons */
.btn-bts,
.btn-remix {
  position: absolute;
  bottom: 36px;
  z-index: 10;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 500;
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.btn-bts:hover,
.btn-remix:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.04);
}

.btn-bts {
  left: 60px;
}

/* Version buttons — to the right of BTS */
.version-btns {
  position: absolute;
  bottom: 36px;
  left: 150px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.version-btns:empty {
  display: none;
}

.btn-version {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 400;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.44);
  transition: all 0.3s ease;
}

.btn-version:hover {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 1.00);
}

.btn-version.active {
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-remix {
  right: 60px;
}

/* Remix indicator */
.remix-indicator {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.remix-indicator.visible {
  opacity: 1;
}

.remix-indicator-label {
  font-size: 10px;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.50);
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.6);
}

/* BTS Overlay */
.bts-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  overflow: hidden;
}

.bts-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bts-back {
  /* Match exactly the position of .btn-bts so it overlays in place */
  position: absolute;
  bottom: 36px;
  left: 60px;
  z-index: 30;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.62);
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.3s ease;
}

.bts-back:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.50);
  background: rgba(255, 255, 255, 0.06);
}

.bts-scatter {
  position: relative;
  width: 100%;
  height: 100%;
}

.bts-card {
  position: absolute;
  width: 260px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.bts-card:active {
  cursor: grabbing;
}

.bts-card-inner {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bts-card--video .bts-card-inner,
.bts-card--photo .bts-card-inner { aspect-ratio: 4 / 3; }

.bts-card:hover .bts-card-inner {
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.bts-play {
  position: absolute;
  width: 32px;
  height: 32px;
  fill: rgba(255, 255, 255, 0.15);
  z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transition: fill 0.3s ease, transform 0.3s ease;
}

.bts-card:hover .bts-play {
  fill: rgba(255, 255, 255, 0.7);
  transform: scale(1.15);
}

.bts-card video,
.bts-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* BTS Lightbox */
.bts-lightbox {
  position: absolute;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bts-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.bts-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.80);
}

.bts-lightbox-close {
  position: absolute;
  top: 60px;
  right: 60px;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.50);
  z-index: 52;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}

.bts-lightbox-close:hover {
  color: #fff;
}

.bts-lightbox-content {
  position: relative;
  z-index: 51;
  max-height: 85%;
  max-width: 85%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bts-lightbox-content video,
.bts-lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.bts-lightbox-content .bts-play {
  width: 56px;
  height: 56px;
  fill: rgba(255, 255, 255, 0.15);
}

.bts-card video + .bts-play {
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

@media (max-width: 1024px) {
  .bts-card { width: 200px; }
}

@media (max-width: 768px) {
  .bts-card { width: 150px; }
}

/* Remix Panel */
.remix-panel {
  position: absolute;
  bottom: 82px;
  right: 60px;
  z-index: 15;
  padding: 24px 28px;
  background: rgba(10, 10, 10, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.remix-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.remix-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 4px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.62);
}

.remix-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.remix-option {
  font-size: 11px;
  letter-spacing: 3px;
  padding: 10px 14px;
  text-align: left;
  color: rgba(255, 255, 255, 0.44);
  transition: all 0.2s;
  border-left: 2px solid transparent;
  font-weight: 400;
}

.remix-option:hover {
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.02);
}

.remix-option.active {
  color: #fff;
  border-left-color: #fff;
}


/* ========================================
   BRANDS SECTION
   ======================================== */
/* Spacer gives scroll room for the campaign viewer overlay */
.campaign-spacer {
  height: 250vh;
  background: #0a0a0a;
}

#brands {
  position: relative;
  z-index: 200;
  padding: 140px 60px;
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.brands-container {
  max-width: 1100px;
  margin: 0 auto;
}

.brands-tagline {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 300;
  font-size: 44px;
  letter-spacing: 2px;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 80px;
  color: rgba(255, 255, 255, 1.00);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.04);
}

.logo-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.brands-footer-links {
  margin-top: 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.brands-social {
  display: flex;
  gap: 24px;
}

.logo-grid-3 .logo-item span {
  font-size: 13px;
  letter-spacing: 6px;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 40px;
  background: #0a0a0a;
  transition: all 0.4s ease;
}

.logo-item img {
  object-fit: contain;
  filter: grayscale(100%) brightness(0) invert(1);
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.logo-item:hover {
  background: rgba(255, 255, 255, 0.015);
}

.logo-item:hover img {
  opacity: 0.7;
}


/* ========================================
   FOOTER
   ======================================== */
#footer {
  position: relative;
  z-index: 200;
  padding: 44px 60px;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 24px;
}

.footer-col {
  flex: 1;
}

.footer-center {
  text-align: center;
}

.footer-right {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}

.footer-name {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 4px;
  display: block;
}

.footer-role {
  display: block;
  font-size: 10px;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.31);
  margin-top: 4px;
}

.footer-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.50);
  letter-spacing: 2px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

.footer-social {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.31);
  transition: color 0.2s;
  font-weight: 500;
}

.footer-social:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 3px;
}


/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .campaign-title {
    font-size: 60px;
  }

  .bts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  #nav {
    padding: 18px 20px;
  }

  .nav-logo {
    font-size: 18px;
    letter-spacing: 4px;
  }

  .btn-passcode {
    font-size: 10px;
    padding: 8px 14px;
    gap: 6px;
  }

  /* Scene responsive */
  .tv-frame {
    width: 200px;
    height: 120px;
  }

  .tv-text {
    font-size: 22px;
    letter-spacing: 10px;
    text-indent: 10px;
  }

  .tv-console {
    width: 120px;
  }

  .furniture-couch {
    width: 240px;
    height: 35px;
  }

  .furniture-couch::before {
    top: -22px;
    height: 22px;
  }

  .furniture-table {
    width: 100px;
  }

  .person {
    width: 40px;
    height: 115px;
  }

  .person-left { left: 28%; }
  .person-right { right: 28%; }

  /* Campaign responsive */
  .campaign-info {
    left: 24px;
    bottom: 90px;
  }

  .campaign-title {
    font-size: 44px;
    letter-spacing: 3px;
  }

  .campaign-tagline {
    font-size: 12px;
  }

  .campaign-arrow {
    width: 40px;
    height: 40px;
  }

  .arrow-left { left: 16px; }
  .arrow-right { right: 16px; }

  .btn-bts { left: 24px; bottom: 28px; }
  .btn-remix { right: 24px; bottom: 28px; }

  .campaign-dots { bottom: 32px; }

  .bts-overlay { padding: 24px; }

  .remix-panel {
    right: 24px;
    bottom: 74px;
  }

  /* Brands responsive */
  #brands {
    padding: 80px 24px;
  }

  .brands-tagline {
    font-size: 28px;
  }

  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-item {
    padding: 36px 20px;
    font-size: 11px;
  }

  /* Footer responsive */
  #footer {
    padding: 32px 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-right {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .campaign-title {
    font-size: 36px;
  }

  .brands-tagline {
    font-size: 24px;
  }

  .brands-tagline br {
    display: none;
  }
}

/* ─── Mobile Fixes ───────────────────────────────────── */
/* Catch phones in BOTH orientations:
   - Portrait: width ≤ 1024px
   - Landscape: height ≤ 600px (phones have short height in landscape)
   pointer:coarse ensures we only target touch devices */
@media (pointer: coarse) and (max-width: 1024px),
       (pointer: coarse) and (max-height: 600px) {
  /* Disable film grain for performance */
  .grain { visibility: hidden !important; pointer-events: none !important; }

  /* Reduce backdrop-filter for performance */
  .bts-overlay {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(5, 5, 8, 0.97);
  }

  /* BTS: scrollable grid instead of scatter */
  .bts-scatter {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 60px 16px 100px;
    overflow-y: auto;
    height: 100%;
    -webkit-overflow-scrolling: auto;
    overscroll-behavior: contain;
  }

  .bts-overlay {
    overscroll-behavior: contain;
  }

  .bts-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    transform: none !important;
    touch-action: auto;
  }

  .bts-card-inner {
    aspect-ratio: 4 / 3;
  }

  /* BTS back button mobile positioning */
  .bts-back {
    bottom: 28px;
    left: 24px;
    padding: 10px 20px;
    font-size: 10px;
  }

  /* BTS lightbox close button - easier tap target */
  .bts-lightbox-close {
    top: 16px;
    right: 16px;
    font-size: 36px;
    padding: 10px;
  }

  /* Version buttons mobile */
  .version-btns {
    left: auto;
    right: 24px;
    bottom: 28px;
  }

  /* Hide dots on mobile */
  .campaign-dots {
    display: none;
  }

  /* Hide scroll scene and spacer completely on mobile */
  #scene,
  .campaign-spacer {
    display: none !important;
    height: 0 !important;
  }

  /* Campaigns: simple full-viewport section, always visible.
     No position:fixed, no JS toggling, no scroll tricks. */
  #campaigns {
    position: relative !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: auto !important;
    height: 100vh !important;
    height: 100svh !important;
    overflow: hidden !important;
    contain: layout style;
    transition: none !important;
  }

  .campaign-slide {
    transition: none !important;
  }

  .campaign-hero {
    position: absolute !important;
    inset: 0 !important;
  }

  .campaign-hero iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: unset !important;
    min-height: unset !important;
    transform: none !important;
  }

  /* Fix inline logo overflow */
  .logo-item img {
    max-width: 80%;
    height: auto !important;
    width: auto !important;
  }

  /* Campaign info tighter on mobile */
  .campaign-info {
    bottom: 80px;
    left: 24px;
  }
}

/* ─── Mobile Landscape ────────────────────────────────── */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 500px) {
  /* Same rules: scene hidden, campaigns visible, full viewport */
  #scene,
  .campaign-spacer {
    display: none !important;
    height: 0 !important;
  }

  #campaigns {
    position: relative !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: auto !important;
    height: 100vh !important;
    overflow: hidden !important;
    transition: none !important;
  }

  .campaign-hero iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: unset !important;
    min-height: unset !important;
    transform: none !important;
  }

  /* Compact layout for landscape */
  .campaign-info {
    bottom: 12px !important;
    left: 20px !important;
  }

  .campaign-title {
    font-size: 28px !important;
  }

  .campaign-tagline {
    display: none;
  }

  .btn-bts, .btn-remix {
    bottom: 10px !important;
    padding: 6px 12px !important;
    font-size: 9px !important;
  }

  .campaign-arrow {
    width: 32px !important;
    height: 32px !important;
  }
}

/* Kill ALL transitions/animations during orientation change.
   Applied via JS: document.documentElement.classList.add('orientation-changing') */
.orientation-changing *,
.orientation-changing *::before,
.orientation-changing *::after {
  transition: none !important;
  animation: none !important;
}
