/* ==========================================================================
   HOMME — Parallax Engine & Scroll Dynamics
   ========================================================================== */

.hero-parallax-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  background-color: var(--color-espresso);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Layer 1: Architecture Background */
.parallax-layer-bg {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 110%;
  height: 120%;
  background-size: cover;
  background-position: center 35%;
  opacity: 0.45;
  filter: grayscale(40%) contrast(105%) brightness(0.7);
  will-change: transform;
  pointer-events: none;
  z-index: 1;
  transition: transform 0.1s cubic-bezier(0.1, 0, 0.2, 1);
}

/* Layer 2: Portrait Layer (Middle) */
.parallax-layer-portrait {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.parallax-portrait-frame {
  position: relative;
  width: min(88vw, 860px);
  height: 86vh;
  min-height: 520px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(250, 248, 245, 0.08);
}

.parallax-portrait-img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  object-position: center 20%;
  filter: contrast(102%) brightness(0.92);
  will-change: transform;
  transform: translateY(0);
}

.portrait-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 12, 11, 0.1) 0%, rgba(13, 12, 11, 0.4) 70%, rgba(13, 12, 11, 0.85) 100%);
  pointer-events: none;
}

/* Layer 3: Foreground Typography */
.parallax-layer-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  padding: 0 var(--space-lg);
  margin-top: calc(var(--nav-height) / 2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  will-change: transform;
}

.hero-editorial-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.hero-number-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--color-stone-light);
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(250, 248, 245, 0.25);
  background: rgba(20, 19, 18, 0.4);
  backdrop-filter: blur(4px);
}

.hero-headline {
  color: #FAF8F5;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  margin-bottom: var(--space-md);
  max-width: 950px;
  overflow-wrap: break-word;
  word-break: normal;
}

.hero-headline span {
  display: block;
  max-width: 100%;
}

.hero-headline .serif-emphasis {
  font-style: italic;
  font-weight: 300;
  color: var(--color-stone-light);
}

.hero-intro-text {
  max-width: 580px;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  color: var(--color-stone);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Side Floating Vertical Label */
.hero-vertical-tag {
  position: absolute;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  z-index: 4;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 248, 245, 0.5);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-vertical-tag::before {
  content: '';
  width: 1px;
  height: 48px;
  background-color: var(--color-copper);
}

/* Scroll Prompt Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-stone-light);
  cursor: pointer;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.hero-scroll-indicator:hover {
  opacity: 1;
}

.scroll-text {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scroll-line-container {
  width: 1px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line-runner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--color-copper), transparent);
  animation: scrollRunner 2.2s infinite ease-in-out;
}

@keyframes scrollRunner {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Parallax story blocks in articles */
.parallax-break-section {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 440px;
  overflow: hidden;
  margin: var(--space-3xl) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-espresso);
}

.parallax-break-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65) contrast(105%);
  will-change: transform;
}

.parallax-break-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  padding: 0 var(--space-md);
  color: #FAF8F5;
}

.parallax-break-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.25;
  margin-bottom: var(--space-md);
}

/* Reduced Motion Mode Support */
@media (prefers-reduced-motion: reduce) {
  .parallax-layer-bg,
  .parallax-portrait-img,
  .parallax-layer-content,
  .parallax-break-bg {
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
  .scroll-line-runner {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 1024px) {
  .hero-parallax-container {
    min-height: 520px;
    height: 100svh;
    width: 100%;
    overflow: hidden;
    padding-top: calc(var(--nav-height) + 0.5rem);
    padding-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-vertical-tag {
    display: none !important;
  }

  .parallax-portrait-frame {
    width: min(92vw, 680px);
    max-width: 100%;
    height: 60vh;
    min-height: 320px;
    margin: 0 auto;
  }

  .parallax-layer-content {
    padding: 0 1.25rem;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
  }

  .hero-editorial-meta {
    gap: 0.4rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
  }

  .hero-number-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.45rem;
    letter-spacing: 0.15em;
  }

  .hero-headline {
    font-size: clamp(1.85rem, 6vw, 2.75rem);
    line-height: 1.14;
    letter-spacing: -0.015em;
    margin-bottom: 0.85rem;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-intro-text {
    font-size: 0.98rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    max-width: 100%;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    align-items: stretch;
    gap: 0.65rem;
  }

  .hero-actions .btn-editorial,
  .hero-actions .btn-editorial-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.72rem;
  }

  .hero-scroll-indicator {
    bottom: 0.75rem;
  }

  .scroll-text {
    font-size: 0.58rem;
    letter-spacing: 0.2em;
  }

  .scroll-line-container {
    height: 24px;
  }

  .parallax-break-section {
    min-height: 320px;
    height: 45vh;
    margin: var(--space-xl) 0;
  }

  .parallax-break-quote {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    line-height: 1.3;
  }
}

@media (max-width: 768px) {
  .parallax-portrait-frame {
    width: 92vw;
    height: 55vh;
    min-height: 300px;
  }

  .parallax-layer-content {
    padding: 0 1rem;
  }

  .hero-headline {
    font-size: clamp(1.75rem, 6.5vw, 2.35rem);
  }

  .hero-intro-text {
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .hero-parallax-container {
    min-height: 480px;
    padding-bottom: 2.5rem;
  }

  .parallax-portrait-frame {
    width: 94vw;
    height: 50vh;
    min-height: 260px;
  }

  .hero-headline {
    font-size: clamp(1.5rem, 7.5vw, 2rem);
    line-height: 1.15;
  }

  .hero-intro-text {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .hero-actions {
    max-width: 100%;
  }

  .parallax-break-quote {
    font-size: 1.25rem;
  }
}
