/* ============================================
   SNAPPENED — Components
   ============================================ */

/* --- Preloader --- */
.snp-preloader {
  position: fixed;
  inset: 0;
  z-index: var(--snp-z-preloader);
  background: var(--snp-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--snp-space-md);
  transition: opacity 0.8s var(--snp-ease-out), visibility 0.8s;
}

.snp-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.snp-preloader__logo {
  font-family: var(--snp-font-heading);
  font-size: var(--snp-text-xl);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--snp-white);
}

.snp-preloader__progress {
  font-family: var(--snp-font-mono);
  font-size: clamp(3rem, 2rem + 4vw, 6rem);
  font-weight: 700;
  color: var(--snp-white);
  line-height: 1;
  letter-spacing: -0.02em;
}

.snp-preloader__pct::after {
  content: '%';
  font-size: 0.5em;
  opacity: 0.4;
  margin-left: 2px;
}

.snp-preloader__bar-wrap {
  width: min(300px, 60vw);
  height: 2px;
  background: var(--snp-gray-800);
  border-radius: 1px;
  overflow: hidden;
}

.snp-preloader__bar {
  height: 100%;
  width: 0%;
  background: var(--snp-accent);
  border-radius: 1px;
  transition: width 0.15s linear;
}

/* --- Grain Overlay (disabled) --- */
.snp-grain {
  display: none;
}

/* --- Custom Cursor (disabled) --- */
.snp-cursor {
  display: none !important;
}

/* --- Header --- */
.snp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--snp-z-header);
  padding: var(--snp-space-sm) var(--snp-container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.3);
  transition: transform 0.4s var(--snp-ease-out);
}

.snp-header.is-hidden {
  transform: translateY(-100%);
}

.snp-header__logo {
  font-family: var(--snp-font-heading);
  font-size: var(--snp-text-sm);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--snp-white);
  text-decoration: none;
}

.snp-header__nav {
  display: flex;
  align-items: center;
  gap: var(--snp-space-md);
}

.snp-header__nav a {
  font-family: var(--snp-font-mono);
  font-size: var(--snp-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--snp-gray-300);
  text-decoration: none;
  transition: color var(--snp-duration-fast) var(--snp-ease-out);
  position: relative;
}

.snp-header__nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--snp-accent);
  transition: width 0.3s var(--snp-ease-out);
}

.snp-header__nav a:hover {
  color: var(--snp-white);
}

.snp-header__nav a:hover::after {
  width: 100%;
}

.snp-header__sound {
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--snp-gray-300);
  transition: color var(--snp-duration-fast);
}

.snp-header__sound:hover {
  color: var(--snp-white);
}

.snp-header__sound svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Hero --- */
.snp-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.snp-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.snp-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.1) 60%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

.snp-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--snp-space-md);
}

.snp-hero__title {
  font-size: var(--snp-text-hero);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: var(--snp-space-sm);
}

.snp-hero__subtitle {
  font-family: var(--snp-font-mono);
  font-size: var(--snp-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--snp-gray-300);
}

/* Hero counter (bottom right) */
.snp-hero__counter {
  position: absolute;
  bottom: var(--snp-space-lg);
  right: var(--snp-container-padding);
  z-index: 2;
  text-align: right;
}

.snp-hero__counter-num {
  display: block;
  font-family: var(--snp-font-heading);
  font-size: var(--snp-text-2xl);
  font-weight: 700;
  line-height: 1;
  color: var(--snp-white);
}

.snp-hero__counter-label {
  font-family: var(--snp-font-mono);
  font-size: var(--snp-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--snp-gray-400);
}

/* Hero scroll indicator */
.snp-hero__scroll {
  position: absolute;
  bottom: var(--snp-space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--snp-gray-400);
  animation: snp-scroll-pulse 2s ease-in-out infinite;
}

.snp-hero__scroll-text {
  font-family: var(--snp-font-mono);
  font-size: var(--snp-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.snp-hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--snp-gray-400), transparent);
}

/* ============================================
   Work Section — Fullscreen Cinematic Panels
   ============================================ */
.snp-work {
  padding: 0;
}

.snp-work__list {
  display: flex;
  flex-direction: column;
}

.snp-work__item {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  cursor: pointer;
}

/* Video background — visible by default, brightens when in viewport */
.snp-work__item-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  transition: opacity 1s var(--snp-ease-out);
}

.snp-work__item.is-in-view .snp-work__item-bg {
  opacity: 1;
}

.snp-work__item-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Loading spinner — shown until video plays */
.snp-work__item-loader {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.6s ease-out;
}

.snp-work__item-loader::after {
  content: '';
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: snp-spin 0.7s linear infinite;
}

.snp-work__item-bg.is-playing .snp-work__item-loader {
  opacity: 0;
}

@keyframes snp-spin {
  to { transform: rotate(360deg); }
}

.snp-work__item-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.2) 40%,
    rgba(0, 0, 0, 0.05) 60%,
    rgba(0, 0, 0, 0.3) 100%
  );
}

/* Content — positioned at bottom */
.snp-work__item-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--snp-space-lg);
  width: 100%;
  padding: var(--snp-space-xl) var(--snp-container-padding);
}

.snp-work__item-info {
  flex: 1;
}

.snp-work__item-index {
  display: inline-block;
  font-family: var(--snp-font-mono);
  font-size: var(--snp-text-xs);
  color: var(--snp-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--snp-space-sm);
}

.snp-work__item-title {
  font-size: var(--snp-text-3xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--snp-white);
  margin-bottom: var(--snp-space-xs);
}

.snp-work__item-tagline {
  font-size: var(--snp-text-sm);
  color: var(--snp-gray-300);
  font-style: italic;
  max-width: 500px;
}

/* Play button */
.snp-work__item-play {
  color: var(--snp-white);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.6s var(--snp-ease-out), transform 0.6s var(--snp-ease-out);
  flex-shrink: 0;
}

.snp-work__item.is-in-view .snp-work__item-play {
  opacity: 0.6;
  transform: scale(1);
}

.snp-work__item:hover .snp-work__item-play {
  opacity: 1;
  transform: scale(1.05);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .snp-work__item {
    height: 80vh;
  }

  .snp-work__item-content {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--snp-space-md);
  }

  .snp-work__item-title {
    font-size: var(--snp-text-2xl);
  }

  .snp-work__item-play {
    display: none;
  }

  /* Always show video on mobile (no hover) */
  .snp-work__item-bg {
    opacity: 0.6;
  }
}

/* ============================================
   Vertical Showcase — native aspect ratio
   ============================================ */
.snp-showcase {
  padding: var(--snp-space-2xl) var(--snp-container-padding);
  display: flex;
  justify-content: center;
}

.snp-showcase__inner {
  display: flex;
  align-items: center;
  gap: var(--snp-space-xl);
  max-width: 900px;
  width: 100%;
}

.snp-showcase__video {
  width: auto;
  height: clamp(400px, 60vh, 700px);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.snp-showcase__meta {
  flex: 1;
}

.snp-showcase__title {
  font-size: var(--snp-text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--snp-white);
  margin-bottom: var(--snp-space-sm);
}

.snp-showcase__tagline {
  font-size: var(--snp-text-sm);
  color: var(--snp-gray-400);
  font-style: italic;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .snp-showcase__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .snp-showcase__video {
    height: clamp(350px, 55vh, 550px);
  }
}

/* ============================================
   Statement Section — Fullscreen Manifesto
   ============================================ */
.snp-statement {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--snp-space-2xl) var(--snp-container-padding);
  text-align: center;
}

.snp-statement__content {
  max-width: 900px;
  margin: 0 auto;
}

.snp-statement__text {
  font-family: var(--snp-font-heading);
  font-size: var(--snp-text-3xl);
  font-weight: 700;
  line-height: 1.2;
  color: var(--snp-white);
  margin-bottom: var(--snp-space-md);
}

.snp-statement__text em {
  color: var(--snp-accent);
  font-style: normal;
}

.snp-statement__sub {
  font-family: var(--snp-font-mono);
  font-size: var(--snp-text-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--snp-gray-400);
}

/* ============================================
   About Section
   ============================================ */
.snp-about {
  padding: var(--snp-space-2xl) 0;
}

.snp-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--snp-space-xl);
  align-items: center;
}

@media (max-width: 768px) {
  .snp-about__grid {
    grid-template-columns: 1fr;
    gap: var(--snp-space-lg);
  }
}

.snp-about__content {
  max-width: 560px;
}

.snp-about__label {
  font-family: var(--snp-font-mono);
  font-size: var(--snp-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--snp-accent);
  margin-bottom: var(--snp-space-md);
}

.snp-about__heading {
  font-size: var(--snp-text-2xl);
  margin-bottom: var(--snp-space-md);
}

.snp-about__text {
  color: var(--snp-gray-300);
  font-size: var(--snp-text-md);
  line-height: 1.8;
}

.snp-about__portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 4px;
  filter: grayscale(30%);
  transition: filter 0.6s var(--snp-ease-out);
}

.snp-about__portrait:hover {
  filter: grayscale(0%);
}

.snp-about__stats {
  display: flex;
  gap: var(--snp-space-lg);
  margin-top: var(--snp-space-xl);
  padding-top: var(--snp-space-md);
  border-top: 1px solid var(--snp-gray-800);
}

.snp-about__stat {
  text-align: left;
}

.snp-about__stat-num {
  display: block;
  font-family: var(--snp-font-heading);
  font-size: var(--snp-text-xl);
  font-weight: 700;
  color: var(--snp-accent);
  line-height: 1.2;
}

.snp-about__stat-label {
  font-family: var(--snp-font-mono);
  font-size: var(--snp-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--snp-gray-500);
}

/* ============================================
   Contact Section — Fullscreen CTA
   ============================================ */
.snp-contact {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--snp-space-2xl) var(--snp-container-padding);
}

.snp-contact__label {
  font-family: var(--snp-font-mono);
  font-size: var(--snp-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--snp-accent);
  margin-bottom: var(--snp-space-md);
}

.snp-contact__heading {
  font-size: var(--snp-text-3xl);
  margin-bottom: var(--snp-space-lg);
}

.snp-contact__email {
  font-size: var(--snp-text-xl);
  color: var(--snp-white);
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.snp-contact__email::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--snp-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--snp-ease-out);
}

.snp-contact__email:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.snp-contact__social {
  display: flex;
  justify-content: center;
  gap: var(--snp-space-md);
  margin-top: var(--snp-space-lg);
}

.snp-contact__social-link {
  font-family: var(--snp-font-mono);
  font-size: var(--snp-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--snp-gray-400);
  text-decoration: none;
  transition: color var(--snp-duration-fast) var(--snp-ease-out);
}

.snp-contact__social-link:hover {
  color: var(--snp-accent);
}

/* ============================================
   Video Player Overlay
   ============================================ */
.snp-player {
  position: fixed;
  inset: 0;
  z-index: var(--snp-z-player);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--snp-ease-out), visibility 0.4s;
}

.snp-player.is-active {
  opacity: 1;
  visibility: visible;
}

.snp-player__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.snp-player__container {
  position: relative;
  width: 90vw;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  z-index: 1;
}

.snp-player__container iframe,
.snp-player__container video {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
}

.snp-player__close {
  position: absolute;
  top: var(--snp-space-md);
  right: var(--snp-space-md);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid var(--snp-gray-600);
  background: rgba(0, 0, 0, 0.5);
  color: var(--snp-white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all var(--snp-duration-fast);
}

.snp-player__close:hover {
  border-color: var(--snp-accent);
  background: var(--snp-accent);
}

.snp-player__meta {
  position: absolute;
  bottom: -48px;
  left: 0;
  z-index: 1;
  display: flex;
  gap: var(--snp-space-md);
}

.snp-player__meta-item {
  font-family: var(--snp-font-mono);
  font-size: var(--snp-text-xs);
  color: var(--snp-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   Footer
   ============================================ */
.snp-footer {
  padding: var(--snp-space-lg) var(--snp-container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--snp-gray-900);
}

.snp-footer__copy {
  font-family: var(--snp-font-mono);
  font-size: var(--snp-text-xs);
  color: var(--snp-gray-500);
}

.snp-footer__label {
  font-family: var(--snp-font-mono);
  font-size: var(--snp-text-xs);
  color: var(--snp-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ============================================
   Mobile Header
   ============================================ */
.snp-header__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--snp-white);
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.snp-header__toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: all 0.3s var(--snp-ease-out);
}

@media (max-width: 768px) {
  .snp-header__toggle {
    display: flex;
  }

  .snp-header__nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--snp-black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--snp-space-lg);
    transform: translateY(-100%);
    transition: transform 0.5s var(--snp-ease-out);
  }

  .snp-header__nav.is-open {
    transform: translateY(0);
  }

  .snp-header__nav a {
    font-size: var(--snp-text-lg);
  }

  .snp-header__sound {
    display: none;
  }
}
