/* ==========================================================================
   HSWRK.COM - Architectural Animations & Transitions
   Broadwick Live Aesthetic: Clean, subtle, performance-first transitions.
   ========================================================================== */

/* Visibility Guarantee */
.reveal-brush,
.fade-in-up,
.card-brush-enter {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle Hover Lift */
.hover-lift {
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

/* Minimalist Marquee Ticker */
.bw-marquee-strip {
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.bw-marquee-inner {
  display: inline-flex;
  gap: 3rem;
  animation: bwMarquee 32s linear infinite;
}

.bw-marquee-strip:hover .bw-marquee-inner {
  animation-play-state: paused;
}

.bw-marquee-item {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}

.bw-marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan);
  display: inline-block;
}

@keyframes bwMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Image Scale Transition */
.media-scale-hover {
  overflow: hidden;
}

.media-scale-hover img,
.media-scale-hover video {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-scale-hover:hover img,
.media-scale-hover:hover video {
  transform: scale(1.05);
}

/* Clean Row Slide Accent */
.bw-row-hover {
  position: relative;
  transition: background-color var(--transition-fast), padding var(--transition-fast);
}

.bw-row-hover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand-cyan);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.bw-row-hover:hover::before {
  opacity: 1;
}

/* ==========================================================================
   Broadwick Live Style Cinematic Intro Curtain (Upward Wipe)
   Logo is fixed in position at center screen, upward swipe hides it
   ========================================================================== */
.intro-curtain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-clip-path: inset(0 0 0% 0);
  clip-path: inset(0 0 0% 0);
  transition: -webkit-clip-path 1.6s cubic-bezier(0.76, 0, 0.24, 1), clip-path 1.6s cubic-bezier(0.76, 0, 0.24, 1);
  will-change: clip-path;
  pointer-events: all;
}

.intro-curtain.wipe-up {
  -webkit-clip-path: inset(0 0 100% 0);
  clip-path: inset(0 0 100% 0);
}

.intro-curtain.hidden {
  display: none !important;
  pointer-events: none;
}

.intro-curtain-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.intro-curtain-logo {
  width: clamp(140px, 18vw, 240px);
  height: auto;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .intro-curtain {
    display: none !important;
  }
  .bw-marquee-inner {
    animation: none;
  }
  .hero-stage-subpage .hero-bg-media::after {
    display: none !important;
  }
  .hero-stage-subpage .hero-content {
    animation: none !important;
  }
}

/* ==========================================================================
   Subpage Hero Media Swipe-Up Load Animation
   Fast, snappy upward swipe directly on the hero media on subpage load (no preceding logo)
   ========================================================================== */
.hero-stage-subpage .hero-bg-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #08080C;
  z-index: 5;
  pointer-events: none;
  -webkit-clip-path: inset(0 0 0% 0);
  clip-path: inset(0 0 0% 0);
  animation: heroMediaSwipeUp 0.85s cubic-bezier(0.76, 0, 0.24, 1) 0.05s forwards;
  will-change: clip-path;
}

@keyframes heroMediaSwipeUp {
  0% {
    -webkit-clip-path: inset(0 0 0% 0);
    clip-path: inset(0 0 0% 0);
  }
  100% {
    -webkit-clip-path: inset(0 0 100% 0);
    clip-path: inset(0 0 100% 0);
  }
}

.hero-stage-subpage .hero-content {
  animation: heroContentFadeIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes heroContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

