/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Fonts */
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;

  /* Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-muted: rgba(255, 255, 255, 0.45);
  --color-brand-red: #fe0000; /* Saturated, bright red matching the mockup */
  
  /* Transitions */
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  background-color: #050505; /* Deep fallback black */
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden; /* Prevent horizontal scroll, allow vertical scroll */
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   BACKGROUND WRAPPER (Hardware Accelerated, Anchored to Hero)
   ========================================================================== */
.background-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  background-color: #000;
}

.hero-bg {
  position: absolute;
  inset: -8%; /* Margins for smooth parallax translation */
  width: 116%;
  height: 116%;
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transform: scale(1.02);
}


/* Film Grain Noise for luxurious texture */
.noise-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   MAIN HERO CONTAINER
   ========================================================================== */
.hero-container {
  position: relative;
  z-index: 12; /* Stack above .red-section so the overflowing cloud divider renders on top */
  width: 100%;
  min-height: 100dvh;
  padding: 0;
  overflow: visible; /* Crucial to let the cloud divider bleed out */
}

.hero-foreground-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
  pointer-events: none; /* Let clicks pass through to background/clouds if needed */
  will-change: transform;
}

/* ==========================================================================
   NAVBAR / HEADER
   ========================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 50px 80px 20px 80px;
  width: 100%;
  position: relative;
  z-index: 30;
  pointer-events: auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  user-select: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  color: var(--color-text-primary);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
}

.logo-line {
  display: block;
}

.logo-line.highlighted {
  color: var(--color-text-primary);
  font-weight: 500;
}

/* Button "GET STARTED" in Ellipse shape */
.nav-action {
  display: flex;
  align-items: center;
}

.btn-get-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50% / 50%; /* Ellipse */
  color: var(--color-text-primary);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-decoration: none;
  background: transparent;
  transition: background-color 0.6s var(--ease-premium), 
              border-color 0.6s var(--ease-premium), 
              color 0.6s var(--ease-premium), 
              box-shadow 0.6s var(--ease-premium);
  will-change: transform;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-get-started::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-text-primary);
  border-radius: 50% / 50%;
  transform: scale(0);
  transition: transform 0.6s var(--ease-premium);
  z-index: -1;
}

.btn-get-started:hover {
  color: #000000;
  border-color: var(--color-text-primary);
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.15);
}

.btn-get-started:hover::before {
  transform: scale(1.05);
}

.btn-get-started:active {
  transform: scale(0.96) !important;
}

/* ==========================================================================
   HERO CONTENT
   ========================================================================== */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 60px;
  padding: 0 80px 140px 80px; /* Increased bottom padding to accommodate clouds */
  flex-grow: 1;
  align-items: flex-end;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

/* Left Column: Paragraphs */
.paragraphs-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 360px;
  align-self: center;
  margin-bottom: 2vh;
}

.para-wrap {
  overflow: hidden;
}

.hero-desc {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: var(--color-text-secondary);
  text-align: left;
  text-wrap: pretty;
  opacity: 0.9;
}

.highlight-text {
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.block-title {
  display: block;
  margin-bottom: 12px;
}

.block-title.small-margin {
  margin-bottom: 8px;
}

/* Right Column: Main Serif Title */
.title-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  justify-content: flex-end;
  user-select: none;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 5.8vw, 6.2rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: var(--color-text-primary);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.title-line {
  display: block;
  overflow: hidden;
  white-space: nowrap;
}

.title-line.font-accent {
  font-style: normal;
}

.title-line .word {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  will-change: transform, opacity;
}

/* Precise Text Alignment */
h1 {
  text-box: trim-both cap alphabetic;
}

/* ==========================================================================
   CLOUD DIVIDER (Transition Layer)
   ========================================================================== */
.cloud-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform: translateY(50%);
  z-index: 25; /* Sits on top of everything, including the red-section boundary */
  pointer-events: none;
  display: block;
}

/* ==========================================================================
   RED SECTION (Centered Premium Layout)
   ========================================================================== */
.red-section {
  position: relative;
  background-color: var(--color-brand-red);
  min-height: 100dvh;
  display: flex;
  align-items: flex-start; /* Align content to the top so top padding is strictly respected */
  justify-content: center;
  padding: calc(22vw + 180px) 40px calc(15vw + 120px) 40px;
  z-index: 10;
}

/* ==========================================================================
   FOOTER (Full-width Image Banner)
   ========================================================================== */
.site-footer {
  position: relative;
  background-color: var(--color-brand-red);
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  overflow: hidden;
}

.footer-image-wrap {
  width: 100%;
  max-width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform, opacity;
}

.footer-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.red-content {
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #ffffff;
}

/* Logo in Red Section */
.red-logo {
  width: 48px;
  height: 48px;
  color: #ffffff;
  margin-bottom: 45px;
}

.red-logo svg {
  width: 100%;
  height: 100%;
}

/* Uppercase Taglines */
.red-tagline-wrap {
  margin-bottom: 45px;
}

.red-tagline {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.85);
}

/* Cursive Signature */
.red-signature {
  font-family: 'Great Vibes', cursive;
  font-size: 88px;
  font-weight: 400;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 50px;
  user-select: none;
}

/* Narrative Copy Blocks */
.red-desc-wrap {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.red-desc {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  text-wrap: pretty;
}

/* ==========================================================================
   SCROLL ANIMATIONS INITIAL STATES (For JS reveals)
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  will-change: transform, opacity;
}

.scale-in {
  transform: scale(0.6);
}

.slide-up {
  transform: translateY(40px);
}

.fade-scale {
  transform: scale(0.85);
}

/* ==========================================================================
   RESPONSIVENESS (Mobile Collapse & Adjustments)
   ========================================================================== */
@media (max-width: 1024px) {
  .navbar {
    padding: 40px 40px 10px 40px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 40px 120px 40px;
    align-items: flex-end;
  }
  
  .paragraphs-col {
    align-self: flex-start;
    max-width: 480px;
    margin-bottom: 0;
    order: 2;
  }
  
  .title-col {
    order: 1;
    align-items: flex-start;
    text-align: left;
  }
  
  .hero-title {
    align-items: flex-start;
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    line-height: 1.0;
  }
  
  .title-line {
    white-space: normal;
    overflow: visible;
  }


  .red-section {
    padding: 120px 30px;
  }

  .red-signature {
    font-size: 72px;
    margin-bottom: 40px;
  }

  .red-desc {
    font-size: 15px;
    line-height: 1.65;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 30px 24px 10px 24px;
  }
  
  .logo-text {
    display: none; /* Simplify navbar */
  }
  
  .hero-content {
    padding: 0 24px 100px 24px;
    gap: 30px;
  }
  
  .hero-title {
    font-size: 2.4rem;
    line-height: 1.05;
  }
  
  .hero-desc {
    font-size: 12px;
    line-height: 1.6;
  }


  .red-section {
    padding: 120px 20px 180px 20px;
  }



  .red-signature {
    font-size: 60px;
    margin-bottom: 30px;
  }

  .red-desc {
    font-size: 14px;
  }
}
