/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #000000;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden; /* Locked by default for scroll-jacking */
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #333;
}

/* Page Container - Fluid full-bleed layout */
.page-container {
  width: 100%;
  position: relative;
  background-color: #000000;
}

/* Scroll Wrapper */
.scroll-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Fixed Viewport for Intro Slides */
.sticky-viewport {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: #000000;
  z-index: 10;
}

/* Viewport content - fills the viewport, centering inline text overlays */
.viewport-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Screen Slide Layout with hardware acceleration */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: opacity, transform, filter;
  z-index: 1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.screen.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Render SVG text and vector paths centered on top of background */
.screen svg {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  z-index: 1;
}

/* Individual Screen Backgrounds */
#screen-1 {
  background-color: #ffffff;
}

#screen-2 {
  background-color: #AA3B55;
}

#screen-3 {
  position: relative;
  overflow: hidden;
}

#screen-3::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/onthirdscroll_img_0.webp');
  background-size: cover;
  background-position: center;
  z-index: 0;
  will-change: transform;
}

#screen-3.active::before {
  animation: kenBurns 8s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05); /* Subtle 5% zoom */
  }
}

#screen-4 {
  background-image: url('assets/04.webp');
  will-change: filter, transform;
}

/* Continuous cinematic distortion pulse for screen 4 */
#screen-4.active {
  animation: distortionPulse 7s infinite ease-in-out;
}

@keyframes distortionPulse {
  0% {
    filter: blur(3px) contrast(105%) brightness(1);
    transform: scale(1.01);
  }
  50% {
    filter: blur(10px) contrast(135%) brightness(0.85);
    transform: scale(1.05);
  }
  100% {
    filter: blur(3px) contrast(105%) brightness(1);
    transform: scale(1.01);
  }
}

/* Hide background rectangles in the SVGs to let full-bleed CSS backgrounds show through */
#screen-1 svg rect:first-of-type {
  display: none !important;
}

#screen-2 svg g rect:nth-of-type(1),
#screen-2 svg g rect:nth-of-type(2),
#screen-2 svg g rect:nth-of-type(3) {
  display: none !important;
}

#screen-3 svg g rect:nth-of-type(1),
#screen-3 svg g rect:nth-of-type(2) {
  display: none !important;
}

/* Distortion Overlay for Screen 3 -> Screen 4 */
.distortion-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: color-dodge;
  opacity: 0;
}

/* ---------------------------------------------------- */
/* ACTUAL SEMANTIC HTML WEBSITE HOMEPAGE */
/* ---------------------------------------------------- */

.actual-website {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #000000;
  z-index: 15;
  opacity: 0;
  visibility: hidden;
  will-change: opacity;
}

/* When active, website sits relative in flow and scrolls naturally */
.actual-website.scrollable {
  position: relative;
  top: 0;
  height: auto;
  overflow: visible;
  opacity: 1;
  visibility: visible;
}

/* Sticky Header styling */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-box {
  width: 50px;
  height: 50px;
  background-color: #C04365;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
}

.logo-icon {
  width: 32px;
  height: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
}

.header-nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: #C04365;
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Sections Base */
.actual-website section {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Section (Fold 1) */
.hero-fold {
  height: 100vh;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  height: 100%;
  padding: 0 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 50px;
}

.hero-logo-large {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  animation: pulseLogo 3s infinite ease-in-out;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.hero-title {
  font-size: 82px;
  font-weight: 300;
  letter-spacing: 12px;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  color: rgba(255,255,255,0.8);
  border-top: 1px solid rgba(255,255,255,0.3);
  padding-top: 10px;
  width: 250px;
  text-align: center;
}

.hero-footer {
  position: absolute;
  bottom: 40px;
  width: 90%;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
}

.footer-scroll {
  border-bottom: 1px solid rgba(255,255,255,0.5);
  padding-bottom: 5px;
  animation: bounceScroll 2s infinite;
}

@keyframes bounceScroll {
  0%, 100%, 20%, 50%, 80% { transform: translateY(0); }
  40% { transform: translateY(-5px); }
  60% { transform: translateY(-2px); }
}

/* Collection Section (Fold 2) */
.collection-fold {
  height: 961px;
}

.fold-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.fold-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  text-align: center;
  padding: 0 40px;
}

.fold-title {
  font-size: 46px;
  font-weight: 300;
  letter-spacing: 5px;
  color: #ffffff;
  margin-bottom: 20px;
}

.fold-description {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.cta-button {
  display: inline-block;
  background-color: #C04365;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 16px 36px;
  border-radius: 2px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background-color: #aa3351;
  transform: translateY(-2px);
}

/* Craft Section (Fold 3) */
.craft-fold {
  height: 962px;
}

.craft-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  z-index: 1;
}

.craft-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1440px;
  padding: 0 5%;
}

.craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.craft-text-card {
  background-color: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 60px;
  border-radius: 4px;
  max-width: 550px;
}

.craft-title {
  font-size: 38px;
  font-weight: 300;
  letter-spacing: 4px;
  color: #ffffff;
  margin-bottom: 20px;
}

.craft-description {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}

.craft-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.media-frame {
  width: 320px;
  height: 450px;
  border: 1px solid rgba(255,255,255,0.15);
  padding: 10px;
  background-color: rgba(5, 5, 5, 0.4);
  backdrop-filter: blur(5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  transform: rotate(2deg);
  transition: transform 0.5s ease;
}

.media-frame:hover {
  transform: rotate(0deg) scale(1.02);
}

.craft-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------------------------------------------- */
/* Sleek Glassmorphic Audio Controller Button */
/* ---------------------------------------------------- */
.audio-control {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background-color: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 24px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.audio-control:hover {
  background-color: rgba(20, 20, 20, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.audio-text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  user-select: none;
}

/* Sound Wave Animation */
.sound-wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  width: 17px;
}

.sound-wave span {
  display: block;
  width: 2px;
  background-color: #C04365;
  border-radius: 1px;
  height: 2px;
  transition: height 0.15s ease;
}

/* Playing animation state */
.audio-control.playing .sound-wave span {
  background-color: #C04365;
  animation: waveAnim 1s infinite ease-in-out;
}

.audio-control.playing .sound-wave span:nth-child(1) { animation-delay: 0.1s; height: 12px; }
.audio-control.playing .sound-wave span:nth-child(2) { animation-delay: 0.3s; height: 8px; }
.audio-control.playing .sound-wave span:nth-child(3) { animation-delay: 0.6s; height: 14px; }
.audio-control.playing .sound-wave span:nth-child(4) { animation-delay: 0.2s; height: 6px; }

@keyframes waveAnim {
  0%, 100% { height: 3px; }
  50% { height: 14px; }
}

.audio-control.muted .sound-wave span {
  height: 3px;
  background-color: rgba(255,255,255,0.4);
}

/* SVG Text Path Animations */
.animate-text-main,
.animate-text-scroll {
  will-change: filter, opacity;
}

.screen:not(.active) .animate-text-main,
.screen:not(.active) .animate-text-scroll {
  opacity: 0;
}

.screen.settled .animate-text-main,
.screen.settled .animate-text-scroll {
  animation: svgBlur 10s ease-out infinite;
  -webkit-animation: svgBlur 10s ease-out infinite;
}

.screen.settled .animate-text-main {
  animation-delay: 0.2s;
  -webkit-animation-delay: 0.2s;
}

.screen.settled .animate-text-scroll {
  animation-delay: 0.8s;
  -webkit-animation-delay: 0.8s;
}

@keyframes svgBlur {
  0% {
    filter: blur(40px);
    -webkit-filter: blur(40px);
    opacity: 0;
  }
  5% {
    filter: blur(30px);
    -webkit-filter: blur(30px);
  }
  15% {
    opacity: 1;
  }
  20% {
    filter: blur(0px);
    -webkit-filter: blur(0px);
  }
  80% {
    filter: blur(0px);
    -webkit-filter: blur(0px);
  }
  85% {
    opacity: 1;
  }
  95% {
    filter: blur(30px);
    -webkit-filter: blur(30px);
  }
  100% {
    filter: blur(40px);
    -webkit-filter: blur(40px);
    opacity: 0;
  }
}

@-webkit-keyframes svgBlur {
  0% {
    filter: blur(40px);
    -webkit-filter: blur(40px);
    opacity: 0;
  }
  5% {
    filter: blur(30px);
    -webkit-filter: blur(30px);
  }
  15% {
    opacity: 1;
  }
  20% {
    filter: blur(0px);
    -webkit-filter: blur(0px);
  }
  80% {
    filter: blur(0px);
    -webkit-filter: blur(0px);
  }
  85% {
    opacity: 1;
  }
  95% {
    filter: blur(30px);
    -webkit-filter: blur(30px);
  }
  100% {
    filter: blur(40px);
    -webkit-filter: blur(40px);
    opacity: 0;
  }
}


