@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800;900&display=swap');

:root {
  --bg-color: #000000;
  --text-primary: #FFFFFF;
  --text-secondary: #888888;
  --brand-orange: #FF5F1F;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  overflow-x: hidden;
  overscroll-behavior: none;
  /* Smooth scrolling for anchor links */
  scroll-behavior: smooth;
  cursor: none; /* Hide default cursor */
}

/* Ensure links also have no cursor since we use custom */
a, button, .social-btn {
  cursor: none !important;
}

/* Custom Music Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: difference;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-orange);
  border-radius: 50%;
  transition: transform 0.1s ease-out;
}

/* Audio wave bars around cursor */
.cursor-waves {
  position: absolute;
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.cursor-wave {
  width: 3px;
  height: 10px;
  background-color: var(--brand-orange);
  border-radius: 2px;
  animation: cursorPulse 1s ease-in-out infinite;
}

.cursor-wave:nth-child(1) { animation-delay: 0.0s; height: 15px; }
.cursor-wave:nth-child(2) { animation-delay: 0.2s; height: 25px; }
.cursor-wave:nth-child(3) { animation-delay: 0.4s; height: 35px; }
.cursor-wave:nth-child(4) { animation-delay: 0.2s; height: 25px; }
.cursor-wave:nth-child(5) { animation-delay: 0.0s; height: 15px; }

@keyframes cursorPulse {
  0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
  50% { transform: scaleY(1); opacity: 1; }
}

.custom-cursor.hovering .cursor-dot {
  transform: scale(3);
  background-color: white;
}
.custom-cursor.hovering .cursor-waves {
  transform: scale(1.5) rotate(15deg);
  opacity: 1;
}

/* Horizontal Sideways Scroll Setup */
.horizontal-scroll-wrapper {
  height: 400vh; /* Long scroll creates the 'pause' effect */
  position: relative;
  width: 100%;
}

.horizontal-scroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.horizontal-track {
  display: flex;
  gap: 8vw;
  padding: 0 10vw;
  height: 70vh;
  align-items: center;
  will-change: transform;
}

/* Individual framing inside track */
.gallery-img-container {
  flex: 0 0 clamp(300px, 45vw, 700px);
  height: 60vh;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 40px rgba(255, 95, 31, 0.2);
  transform-style: preserve-3d;
  will-change: transform, opacity;
  background: #111;
  margin: 0;
}

.gallery-img-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.5));
  pointer-events: none;
}

.gallery-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* Show heads/faces, not center-cropped */
  display: block;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gallery-img-container:hover img {
  transform: scale(1.05); /* Internal parallax */
}

.flex-spacer {
  flex: 0 0 20vw !important;
  background: transparent !important;
  box-shadow: none !important;
}

.text-frame {
  background: transparent !important;
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Typography Cards for Story Sequence */
.text-story-card {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 4rem clamp(2rem, 5vw, 4rem);
  background: linear-gradient(145deg, #121212, #050505) !important;
  border: 1px solid rgba(255,255,255,0.05);
  border-left: 2px solid var(--brand-orange);
  border-radius: 12px !important;
  overflow: visible !important;
}

.text-story-card p {
  font-size: clamp(1.4rem, 3.5vw, 2.8rem);
  line-height: 1.5;
  color: #CCCCCC;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.highlight-text {
  color: #FFFFFF;
  font-weight: 800;
  background: linear-gradient(270deg, #FF5F1F, #FFFFFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}



/* Background Canvas Layer */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* Sits precisely between the background gallery (-2) and content text */
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Container for all content to sit above the fixed canvas */
.content-wrapper {
  position: relative;
  z-index: 10;
}

/* Apple-style hero section */
.section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 2rem;
}

.hero {
  text-align: center;
}

/* Background Photo with Smoke Effect Setup */
.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2; /* Placed deeper so the background canvas waves can float above it */
  overflow: hidden;
  background-color: transparent; /* Allow bg-canvas waves to shine through */
  opacity: 0;
  transform: scale(1.05); /* Slight scale for reveal animation */
  transition: opacity 2s ease, transform 2s cubic-bezier(0.16, 1, 0.3, 1);
  /* Smoothly fade the bottom of the image into the black background to prevent hard cuts */
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.hero-bg-wrapper.reveal {
  opacity: 1;
  transform: scale(1);
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* Show the top of the image */
  /* Extreme contrast — deep blacks with the orange smoke creating the colour */
  filter: grayscale(100%) contrast(1.8) brightness(0.6);
  opacity: 0.55;
}

/* Duotone Orange Overlay filter */
.hero-bg-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--brand-orange);
  mix-blend-mode: multiply;
  opacity: 0.35; /* Warm orange tint — black dominates but orange adds atmosphere */
  z-index: 1;
}

/* Canvas Smoke Overlay */
.smoke-overlay {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  pointer-events: none;
}

/* Signature Handwriting Animation */
.signature-container {
  position: relative;
  z-index: 5;
  width: 80vw;
  max-width: 900px;
  transform: rotate(-6deg); /* Angled like a real signature */
}

.signature-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  /* GPU saver: Apply expensive drop-shadow only once per SVG string */
  animation: signatureGlow 4s ease-in-out 2s infinite alternate;
  will-change: filter;
}

.signature-path, .signature-line {
  stroke: #FFFFFF;
  stroke-width: 1.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  fill: rgba(255, 255, 255, 0);
  will-change: stroke-dashoffset, fill;
}

/* Timing sequence for main drawing (Total active time: roughly 4s) */
.path-left {
  animation: signatureDraw 2.5s cubic-bezier(0.45, 0, 0.15, 1) 0.2s forwards,
             signatureFillIn 1.5s ease 2.2s forwards;
}

.path-right {
  animation: signatureDraw 2.5s cubic-bezier(0.45, 0, 0.15, 1) 1.5s forwards,
             signatureFillIn 1.5s ease 3.5s forwards;
}

@keyframes signatureDraw {
  to { stroke-dashoffset: 0; }
}

/* Pulse styles */
.signature-pulse {
  fill: none;
  stroke: #ff7033;
  stroke-width: 7px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px var(--brand-orange)) drop-shadow(0 0 35px var(--brand-orange));
  stroke-dasharray: 0.2 1.3;
  stroke-dashoffset: 1.3;
  opacity: 0; 
  will-change: stroke-dashoffset, opacity;
}

/* Pulse animation timing (6 seconds loop)
   0-3s: path-left
   3-6s: path-right
*/
.pulse-left {
  animation: pulseLoopLeft 6s linear infinite;
  animation-delay: 5s;
}
.pulse-right {
  animation: pulseLoopRight 6s linear infinite;
  animation-delay: 5s;
}

@keyframes pulseLoopLeft {
  0% { opacity: 0; stroke-dashoffset: 1.3; }
  5% { opacity: 1; stroke-dashoffset: 1.3; }
  45% { opacity: 1; stroke-dashoffset: -0.3; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes pulseLoopRight {
  0% { opacity: 0; stroke-dashoffset: 1.3; }
  40% { opacity: 0; stroke-dashoffset: 1.3; }
  45% { opacity: 1; stroke-dashoffset: 1.3; }
  90% { opacity: 1; stroke-dashoffset: -0.3; }
  95% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes signatureFillIn {
  0% {
    fill: rgba(255, 255, 255, 0);
    stroke: #FFFFFF;
  }
  100% {
    fill: rgba(255, 255, 255, 1);
    stroke: rgba(255, 255, 255, 0.3);
  }
}

@keyframes signatureGlow {
  0% {
    filter: drop-shadow(0px 0px 10px rgba(255, 95, 31, 0.4));
  }
  100% {
    filter: drop-shadow(0px 0px 25px rgba(255, 95, 31, 0.8));
  }
}

.hero p.subtitle {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: #FFFFFF;
  margin-top: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.hero p.subtitle.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Typography styles for other sections */
h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -0.04em;
}

/* Specific text styling */
.reveal-text {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* Removed .audio-waves-container and #audio-canvas per user request */

/* Streaming Platform Cards */
.platform-card {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111111, #000000);
  border: 1px solid rgba(255, 95, 31, 0.2);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.platform-card:hover {
  box-shadow: 0 0 30px rgba(255, 95, 31, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.platform-title {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(270deg, #FF5F1F, #FFFFFF);
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.5s ease;
}

.platform-card:hover .platform-title {
  background-position: 100% 50%;
}

/* Links and buttons */
.links-section {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease 0.5s, transform 1s ease 0.5s;
}

.links-section.reveal {
  opacity: 1;
  transform: translateY(0);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--bg-color);
  background-color: var(--text-primary);
  border-radius: 50px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.social-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--brand-orange);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-btn:hover {
  color: var(--text-primary);
  box-shadow: 0 0 20px rgba(255, 95, 31, 0.4);
}

.social-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 0.9rem;
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: var(--brand-orange);
  z-index: 100;
  width: 0%;
  box-shadow: 0 0 10px rgba(255, 95, 31, 0.8);
}


