/* ============================================================
   Home: full-screen vertical swiper
   ============================================================ */

html, body {
  width: 100%; height: 100%;
  overflow: hidden; overscroll-behavior: none;
}

/* ---- Loader ---- */
#loader {
  position: fixed; inset: 0; background: #060606;
  z-index: 9000; display: flex; align-items: center; justify-content: center;
}
#loader-logo { display: flex; align-items: center; justify-content: center; opacity: 0; }
#loader-logo img { width: auto; height: 160px; display: block; }

/* ---- Overlays ---- */
#noise {
  position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: 0.8;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}
#vignette {
  position: fixed; inset: 0; z-index: 11; pointer-events: none;
  background: radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.65) 100%);
}

/* ---- Cursor CTA badge ---- */
#cursor-cta {
  position: fixed; top: 0; left: 0; z-index: 9003; pointer-events: none;
  width: 50px; height: 50px; background: #fff200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translate(-50%, -50%);
}
#cursor-cta span {
  font-size: 7px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #060606; font-weight: 700;
}
#cursor.cur-hide, #cursor-ring.cur-hide { display: none !important; }

/* ---- Swiper ---- */
#hero { position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%; }
.swiper-slide { width: 100%; height: 100%; position: relative; overflow: hidden; }

.slide-media { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Invisible shield so the Vimeo iframe cannot steal the scroll in Safari. */
.slide-media::after { content: ''; position: absolute; inset: 0; z-index: 5; }
.slide-media picture { display: block; width: 100%; height: 100%; }
.slide-media img {
  width: 100%; height: 100%; object-fit: cover; pointer-events: none;
}
.slide-media iframe {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 177.78vh; height: 100%; min-width: 100%;
  pointer-events: none; border: none;
}

/* ---- Work info ---- */
#work-info { position: fixed; bottom: 80px; left: 52px; z-index: 50; pointer-events: none; }
#work-eyebrow {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.28); margin-bottom: 10px;
}
#work-title-wrap { overflow: hidden; margin-bottom: 10px; padding-bottom: 20px; }
#work-title {
  font-size: 49px; font-weight: 500; letter-spacing: -0.02em;
  color: #fff; display: inline-block; pointer-events: auto;
}
#work-artist-wrap { overflow: hidden; }
#work-artist { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.65); display: inline-block; }

/* ---- Swipe hint (mobile only) ---- */
#swipe-hint {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 50; display: none; flex-direction: column; align-items: center; gap: 5px;
  pointer-events: none;
}
#swipe-hint span {
  font-size: 7px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.22);
}
.swipe-arrow {
  width: 1px; height: 22px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  transform-origin: top;
  animation: swipePulse 1.8s ease-in-out infinite;
}
@keyframes swipePulse {
  0%   { transform: scaleY(0) translateY(-8px); opacity: 0; }
  50%  { transform: scaleY(1) translateY(0);    opacity: 1; }
  100% { transform: scaleY(0) translateY(8px);  opacity: 0; }
}

/* ---- Empty state ---- */
#home-empty {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  padding: 40px; text-align: center;
  color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.7;
}

/* ---- Video modal ---- */
#modal {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  padding: 60px;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#modal.open { opacity: 1; pointer-events: all; visibility: visible; }
#modal-inner { position: relative; width: 100%; max-width: min(100%, calc((100vh - 160px) * 16 / 9)); }
#modal-close {
  position: absolute; top: -50px; right: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; line-height: 1;
  color: rgba(255,255,255,0.4); cursor: pointer;
  border: 0.5px solid rgba(255,255,255,0.12); border-radius: 50%;
  background: rgba(255,255,255,0.04);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
#modal-close:hover { color: #fff; background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.28); }
#modal-video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: 6px; overflow: hidden; background: #000;
}
#modal-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }
#modal-meta { margin-top: 18px; display: flex; align-items: baseline; justify-content: space-between; }
#modal-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
#modal-client { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.25); }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 768px) {
  #cursor-cta { display: none !important; }
  #loader-logo img { width: 80vw; height: auto; }

  #work-info { bottom: 100px; left: 24px; right: 24px; }
  #work-eyebrow { font-size: 9px; margin-bottom: 8px; }
  #work-title { font-size: 29px; letter-spacing: -0.03em; }
  #work-artist { font-size: 10px; }

  #swipe-hint { display: flex; }
  #progress { height: 3px; }
  #vignette {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.8) 100%);
  }

  #modal { padding: 24px; }
  #modal-close { top: -44px; }
  #modal-title { font-size: 16px; }
}
