/* ===================================================================
   AWARD-WINNING GSAP MOTION DESIGN SYSTEM — STUDIO L
   Hardware Accelerated, 3D Perspective, Kinetic Interactions
=================================================================== */

/* ===== Smooth Scrolling Container Core ===== */
#smooth-wrapper {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

#smooth-content {
  overflow: visible;
  width: 100%;
  max-width: 100vw;
  position: relative;
  will-change: transform;
}

/* ===== Premium Typography System ===== */
:root {
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'Space Grotesk', monospace;
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.headline {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

/* ===== Ambient Particle Canvas ===== */
.particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

/* ===== 3D Perspective Framework ===== */
.perspective-stage {
  perspective: 1200px;
  perspective-origin: center center;
}

.preserve-3d {
  transform-style: preserve-3d;
  will-change: transform;
}

.card-3d {
  transform-style: preserve-3d;
  transition: box-shadow 0.4s ease;
  will-change: transform;
}

.card-3d:hover {
  box-shadow: 0 25px 60px rgba(255, 90, 31, 0.18);
}

/* ===== SplitText & Typography Dynamics ===== */
.split-line {
  overflow: hidden;
  display: block;
}

.split-char {
  display: inline-block;
  will-change: transform, opacity, filter;
  transform-style: preserve-3d;
}

.scatter-ready {
  display: inline-block;
  cursor: default;
}

/* Kinetic rotating headline container */
.rotating-words {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  overflow: hidden;
  height: 1.15em;
}

.rotating-word {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%) rotateX(-60deg);
  transform-origin: 50% 100%;
  color: var(--orange-2);
}

/* ===== Image Clip-Path Reveal System ===== */
.reveal-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

.reveal-inner {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  will-change: transform, clip-path;
}

/* Curtains / Shutter lines */
.reveal-curtain {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1f0703, #0a0201);
  z-index: 3;
  pointer-events: none;
  transform-origin: top;
}



/* ===== Kinetic Marquee Dynamic Skew ===== */
.kinetic-marquee-track {
  will-change: transform;
  display: flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
}

/* ===== FLIP Expandable Modal System ===== */
.flip-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  z-index: 9000;
  display: none;
  opacity: 0;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.flip-modal-backdrop.open {
  display: flex;
}

.flip-modal-card {
  position: relative;
  width: 100%;
  max-width: 840px;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #1f0b06, #0d0402 70%);
  border: 1px solid rgba(255, 90, 31, 0.4);
  border-radius: 24px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 50px rgba(255, 90, 31, 0.2);
  padding: 40px;
  will-change: transform, width, height, top, left;
}

.flip-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
}

.flip-close-btn:hover {
  background: var(--orange);
  transform: rotate(90deg) scale(1.05);
}

/* ===== Cinematic Page Transition Overlay ===== */
.transition-curtain {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.curtain-panel {
  flex: 1;
  width: 100%;
  background: #080302;
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}

.curtain-logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
}

.curtain-logo-ring,
.curtain-logo-img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 30px rgba(255, 90, 31, 0.85));
}

.curtain-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
}

/* ===== Universal Studio L Brand Mark ===== */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  z-index: 10;
}

.logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(255, 90, 31, 0.4));
}

.logo-mark span {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

/* ===== UI Helpers ===== */
[data-magnetic] {
  display: inline-block;
}

/* ===== Responsive Adaptations for Mobile ===== */
@media (max-width: 900px) {
  .flip-modal-backdrop {
    padding: 12px;
  }
  .flip-modal-card {
    padding: 22px 18px;
    border-radius: 18px;
    max-height: 94vh;
  }
}

@media (max-width: 480px) {
  .curtain-logo-ring,
  .curtain-logo-img {
    width: 52px;
    height: 52px;
  }
  .curtain-logo-text {
    font-size: 20px;
    letter-spacing: 2px;
  }
}
