/* ==========================================================================
   DESIGN TOKENS & RESET
   ========================================================================== */
:root {
  --bg-color: #F4F3F1;       /* Warm off-white background */
  --text-main: #242424;      /* Main dark text */
  --text-sec: #5F5F5F;       /* Secondary grey text */
  --line-color: #1E1E1E;     /* Details & underline color */
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition-smooth: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.3s ease;
}

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

/* ==========================================================================
   LOADER SCREEN
   ========================================================================== */
.loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-main);
  opacity: 0;
  transform: translateY(10px);
  animation: loaderLogoReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.loader-bar-container {
  width: 150px;
  height: 1px;
  background-color: rgba(30, 30, 30, 0.1);
  overflow: hidden;
  position: relative;
}

.loader-bar {
  width: 0%;
  height: 100%;
  background-color: var(--line-color);
  animation: loaderProgressAnim 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes loaderLogoReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loaderProgressAnim {
  0% { width: 0%; }
  45% { width: 45%; }
  85% { width: 85%; }
  100% { width: 100%; }
}

.loader-wrapper.loaded {
  opacity: 0;
  pointer-events: none;
}

body.loading-active {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2 {
  font-weight: 300;
  color: var(--text-main);
  text-transform: none;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-sec);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Underline decoration for specific title words */
.underlined-word {
  display: inline-block;
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 2px;
  margin-bottom: 6px;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
#main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(244, 243, 241, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: transform 0.3s ease;
}

.header-container {
  max-width: 100%;
  padding: 30px 2.7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-main);
}

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

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-sec);
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--line-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ==========================================================================
   LAYOUT STRUCTURE (ASIMMETRIC GRID)
   ========================================================================== */
.section-grid {
  display: grid;
  grid-template-columns: 17.2% 67%;
  column-gap: 10.4%;
  width: 100%;
  max-width: 100%;
  padding: 120px 2.7%;
  align-items: start;
}

.left-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.right-col {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Combined Editorial Grid Section */
.section-grid-editorial {
  display: grid;
  grid-template-columns: 23.9% 63.3%;
  column-gap: 3.7%;
  width: 100%;
  max-width: 100%;
  padding: 120px 2.7% 120px 6.4%;
  align-items: stretch; /* Stretch columns to match heights */
}

.left-col-editorial {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.right-col-editorial {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Specific Section Paddings for Scroll Rhythm */
#hero {
  padding-top: 220px; /* Leave space for fixed header */
  padding-bottom: 120px;
}

#editorial {
  padding-top: 80px;
  padding-bottom: 80px;
}

#making-of {
  padding-top: 120px;
  padding-bottom: 140px;
}

#posters-section {
  padding: 80px 2.7% 160px 2.7%;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Titles */
.hero-title {
  font-size: 72px;
  margin-bottom: 40px;
}

.hero-desc {
  max-width: 320px;
  text-align: justify;
}

.section-title {
  font-size: 64px;
}

/* Image Wrapper with Parallax capability */
.image-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: #E2E1DF; /* Subtle placeholder color */
}

/* Sharp image edges, modern editorial feel */
.image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.1s ease-out; /* Smooth follow-up for scroll parallax */
}

/* Specific layouts */
.hero-media-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
}

.hero-media-wrapper .image-wrapper {
  height: 100%;
}

.poster-vertical-wrapper {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 0.2258; /* Width: 826px, Height: 3657px */
}

.poster-vertical-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stacked-media-editorial {
  display: flex;
  flex-direction: column;
  gap: 150px; /* Space between images */
  width: 100%;
}

.woman-smiling-wrapper {
  aspect-ratio: 1.76;
  width: 82.1%;
  align-self: flex-end;
}

.art-house-wrapper {
  aspect-ratio: 1.76;
  width: 55.5%;
  align-self: flex-start;
}

.art-interior-wrapper {
  aspect-ratio: 1.76;
  width: 55.5%;
  align-self: flex-start;
}

.art-sketches-wrapper {
  aspect-ratio: 1.76;
  width: 55.5%;
  align-self: flex-start;
}

.making-of-media-wrapper {
  position: relative;
  aspect-ratio: 1.76;
}

.making-of-media-wrapper .image-wrapper {
  height: 100%;
}

/* Play button overlay */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  outline: none;
}

.play-svg {
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.play-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2.5;
  transition: stroke 0.3s ease, fill 0.3s ease;
}

.play-triangle {
  fill: rgba(255, 255, 255, 0.85);
  transition: fill 0.3s ease;
}

/* Hover effects for play buttons */
.play-btn:hover .play-svg {
  transform: scale(1.08);
}

.play-btn:hover .play-circle {
  stroke: #FFFFFF;
  fill: rgba(255, 255, 255, 0.15);
}

.play-btn:hover .play-triangle {
  fill: #FFFFFF;
}

/* ==========================================================================
   POSTERS GRID (SECTION 04)
   ========================================================================== */
.posters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 80px;
  row-gap: 120px;
  width: 100%;
}

.poster-item {
  width: 100%;
  aspect-ratio: 0.776; /* Cinema poster ratio */
  overflow: hidden;
  background-color: #E2E1DF;
}

.poster-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.poster-item:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
#main-footer {
  width: 100%;
  background-color: var(--bg-color);
  padding: 100px 2.7% 60px 2.7%;
}

.footer-container {
  border-top: 1px solid rgba(30, 30, 30, 0.1);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-email {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-sec);
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.footer-email:hover {
  color: var(--text-main);
}

.footer-right {
  display: flex;
  gap: 30px;
}

.footer-right a {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-sec);
  letter-spacing: 0.05em;
  position: relative;
  padding-bottom: 2px;
}

.footer-right a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--line-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-right a:hover {
  color: var(--text-main);
}

.footer-right a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (bloomparis.tv feel)
   ========================================================================== */
/* Initial Hidden State */
.reveal-text,
.reveal-media {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Special slower fade-in for headers/footers */
.fade-in {
  opacity: 0;
  transition: opacity 1.2s ease-out;
}

.fade-in.active {
  opacity: 1;
}

/* Active Revealed State */
.reveal-text.active,
.reveal-media.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger reveals */
.title-block .reveal-text:nth-child(1) {
  transition-delay: 0s;
}

.title-block .reveal-text:nth-child(2) {
  transition-delay: 0.15s;
}

/* ==========================================================================
   VIDEO OVERLAY
   ========================================================================== */
#video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.98);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#video-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.close-overlay-btn {
  position: absolute;
  top: 40px;
  right: 60px;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--font-family);
  padding: 10px;
  transition: opacity 0.3s ease;
}

.close-overlay-btn:hover {
  opacity: 0.6;
}

.video-container {
  width: 85%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
  background-color: #000000;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   RESPONSIVENESS / MEDIA QUERIES
   ========================================================================== */

/* Tablet (Large & Portrait) */
@media screen and (max-width: 1024px) {
  .section-grid,
  .section-grid-editorial {
    padding: 80px 5%;
    gap: 40px;
  }
  
  .section-grid-editorial {
    grid-template-columns: 3.5fr 6.5fr;
  }

  .woman-smiling-wrapper,
  .art-house-wrapper,
  .art-interior-wrapper,
  .art-sketches-wrapper {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .header-container {
    padding: 30px 5%;
  }
  
  #hero {
    padding-top: 180px;
  }
  
  .hero-title {
    font-size: 56px;
  }
  
  .section-title {
    font-size: 48px;
  }
  
  .posters-grid {
    column-gap: 40px;
    row-gap: 80px;
  }
  
  #posters-section {
    padding: 60px 5% 120px 5%;
  }
  
  #main-footer {
    padding: 80px 5% 40px 5%;
  }
}

/* Mobile & Small Tablets */
@media screen and (max-width: 768px) {
  .section-grid,
  .section-grid-editorial {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 30px;
  }
  
  .left-col, .right-col,
  .left-col-editorial, .right-col-editorial {
    width: 100%;
  }
  
  #hero {
    padding-top: 140px;
    padding-bottom: 60px;
  }
  
  .hero-desc {
    max-width: 100%;
    margin-top: 20px;
  }
  
  .hero-title {
    font-size: 48px;
    margin-bottom: 20px;
  }
  
  .section-title {
    font-size: 40px;
  }
  
  .poster-vertical-wrapper {
    height: auto;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 0.65; /* Sane poster ratio on mobile */
    max-height: 480px;
  }

  .poster-vertical-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .stacked-media-editorial {
    gap: 60px;
  }

  .woman-smiling-wrapper,
  .art-house-wrapper,
  .art-interior-wrapper,
  .art-sketches-wrapper {
    width: 100% !important;
    margin-left: 0 !important;
  }
  
  /* Posters Grid becomes 2 columns */
  .posters-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 40px;
  }
  
  #posters-section {
    padding: 40px 30px 80px 30px;
  }
  
  .header-container {
    padding: 20px 30px;
  }
  
  .nav-links {
    gap: 15px;
  }
  
  #main-footer {
    padding: 60px 30px 30px 30px;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  
  .close-overlay-btn {
    top: 20px;
    right: 20px;
    font-size: 11px;
  }
}

/* Very Small Mobile Screens */
@media screen and (max-width: 480px) {
  .posters-grid {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }
  
  .nav-links a {
    font-size: 11px;
  }
  
  .logo {
    font-size: 12px;
    letter-spacing: 0.1em;
  }
}
