/* ==========================================================================
   CAZA ARC — Projects Page / Selected Works Hero
   Scoped stylesheet: does NOT touch index.html, style.css, or any homepage rule.
   ========================================================================== */

/* --------------------------------------------------------------------------
   PROJECTS HERO — Full-bleed Cinematic Container
   -------------------------------------------------------------------------- */
.projects-hero {
  position: relative;
  width: 100%;
  height: 90svh;
  min-height: 560px;
  overflow: hidden;
  background-color: #11110F;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* --------------------------------------------------------------------------
   Hero Background Image
   -------------------------------------------------------------------------- */
.projects-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.projects-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  will-change: transform, opacity;
  transform: scale(1.03);
  opacity: 0;
  transition: transform 2.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-hero__img.is-loaded {
  transform: scale(1.00);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Gradient Scrim
   -------------------------------------------------------------------------- */
.projects-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      to top,
      rgba(10,10,9,0.80) 0%,
      rgba(10,10,9,0.52) 22%,
      rgba(10,10,9,0.24) 42%,
      rgba(10,10,9,0.10) 62%,
      rgba(10,10,9,0.00) 80%
    ),
    linear-gradient(
      to bottom,
      rgba(10,10,9,0.38) 0%,
      rgba(10,10,9,0.12) 12%,
      transparent 28%
    );
}

/* --------------------------------------------------------------------------
   Hero Inner Layout
   -------------------------------------------------------------------------- */
.projects-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem,6.5vw,7rem) clamp(3.5rem,6.5vh,6rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  flex: 1;
}

/* --------------------------------------------------------------------------
   Eyebrow Label
   -------------------------------------------------------------------------- */
.projects-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: clamp(1.1rem,2.2vh,1.75rem);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 800ms cubic-bezier(0.22,1,0.36,1), transform 800ms cubic-bezier(0.22,1,0.36,1);
  transition-delay: 300ms;
}

.projects-hero__eyebrow.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.projects-hero__eyebrow-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #B18A55;
  flex-shrink: 0;
}

.projects-hero__eyebrow-text {
  font-family: 'Space Grotesk','Courier New',monospace;
  font-size: clamp(10px,0.75vw,12px);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(177,138,85,0.90);
}

/* --------------------------------------------------------------------------
   Main Headline — Masked Reveal
   -------------------------------------------------------------------------- */
.projects-hero__headline-wrap {
  overflow: hidden;
  margin-bottom: clamp(1.25rem,2.5vh,2rem);
}

.projects-hero__headline {
  font-family: 'Cormorant Garamond',Garamond,'Times New Roman',serif;
  font-size: clamp(3.2rem,7.5vw,8.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.94;
  color: #FFFFFF;
  display: block;
  transform: translateY(100%);
  transition: transform 1100ms cubic-bezier(0.22,1,0.36,1);
  transition-delay: 120ms;
}

.projects-hero__headline .italic-word {
  font-style: italic;
  color: rgba(255,255,255,0.88);
}

.projects-hero__headline.is-revealed {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Supporting Paragraph
   -------------------------------------------------------------------------- */
.projects-hero__body {
  max-width: clamp(280px,40vw,520px);
  font-family: 'Plus Jakarta Sans',-apple-system,BlinkMacSystemFont,sans-serif;
  font-size: clamp(0.875rem,1.1vw,1.0625rem);
  font-weight: 300;
  line-height: 1.72;
  color: rgba(245,242,236,0.68);
  margin-bottom: clamp(1.5rem,3vh,2.5rem);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 900ms cubic-bezier(0.22,1,0.36,1), transform 900ms cubic-bezier(0.22,1,0.36,1);
  transition-delay: 480ms;
}

.projects-hero__body.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Location Micro-label
   -------------------------------------------------------------------------- */
.projects-hero__location {
  font-family: 'Space Grotesk','Courier New',monospace;
  font-size: clamp(9px,0.68vw,11px);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(177,138,85,0.72);
  margin-bottom: clamp(2rem,4.5vh,3.5rem);
  opacity: 0;
  transition: opacity 800ms cubic-bezier(0.22,1,0.36,1);
  transition-delay: 640ms;
}

.projects-hero__location.is-revealed {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Scroll Indicator
   -------------------------------------------------------------------------- */
.projects-hero__scroll {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  transition: opacity 800ms cubic-bezier(0.22,1,0.36,1);
  transition-delay: 820ms;
}

.projects-hero__scroll.is-revealed {
  opacity: 1;
}

.projects-hero__scroll-line {
  display: block;
  width: 36px;
  height: 1px;
  background-color: rgba(177,138,85,0.55);
  transform-origin: left;
  animation: scroll-line-pulse 2.4s ease-in-out infinite;
}

@keyframes scroll-line-pulse {
  0%,100% { opacity: 0.55; width: 36px; }
  50%      { opacity: 1.00; width: 50px; }
}

.projects-hero__scroll-label {
  font-family: 'Space Grotesk','Courier New',monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.45);
}

/* --------------------------------------------------------------------------
   Bottom-Right Edition Tag (desktop only)
   -------------------------------------------------------------------------- */
.projects-hero__edition {
  position: absolute;
  right: clamp(1.25rem,6.5vw,7rem);
  bottom: clamp(3.5rem,6.5vh,6rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  opacity: 0;
  transition: opacity 900ms cubic-bezier(0.22,1,0.36,1);
  transition-delay: 900ms;
}

.projects-hero__edition.is-revealed {
  opacity: 1;
}

.projects-hero__edition-num {
  font-family: 'Cormorant Garamond',Garamond,serif;
  font-size: clamp(3.5rem,5vw,6rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(255,255,255,0.07);
  letter-spacing: -0.02em;
  user-select: none;
  pointer-events: none;
}

.projects-hero__edition-label {
  font-family: 'Space Grotesk','Courier New',monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(177,138,85,0.40);
}

/* --------------------------------------------------------------------------
   Hero Listing Transition Ledge
   -------------------------------------------------------------------------- */
.projects-hero__ledge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 clamp(1.25rem,6.5vw,7rem) clamp(1.25rem,2.2vh,2rem);
  pointer-events: none;
}

.projects-hero__ledge-tag {
  font-family: 'Space Grotesk','Courier New',monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.32);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 800ms cubic-bezier(0.22,1,0.36,1), transform 800ms cubic-bezier(0.22,1,0.36,1);
  transition-delay: 1000ms;
}

.projects-hero__ledge-tag.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.projects-hero__ledge-rule {
  width: clamp(40px,8vw,120px);
  height: 1px;
  background-color: rgba(245,242,236,0.10);
  opacity: 0;
  transition: opacity 800ms cubic-bezier(0.22,1,0.36,1);
  transition-delay: 1100ms;
}

.projects-hero__ledge-rule.is-revealed {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   RESPONSIVE — Tablet 768–1024px
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .projects-hero { height: 88svh; }
  .projects-hero__body { max-width: min(460px,72vw); }
  .projects-hero__edition { display: none; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — Mobile 767px
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .projects-hero { height: 92svh; min-height: 580px; }
  .projects-hero__img { object-position: center 35%; }
  .projects-hero__scrim {
    background:
      linear-gradient(to top, rgba(10,10,9,0.88) 0%, rgba(10,10,9,0.60) 28%, rgba(10,10,9,0.28) 50%, rgba(10,10,9,0.10) 68%, transparent 82%),
      linear-gradient(to bottom, rgba(10,10,9,0.50) 0%, rgba(10,10,9,0.18) 14%, transparent 30%);
  }
  .projects-hero__inner {
    padding-left: clamp(1.25rem,5.5vw,1.75rem);
    padding-right: clamp(1.25rem,5.5vw,1.75rem);
    padding-bottom: clamp(3rem,8vh,5rem);
  }
  .projects-hero__eyebrow { margin-bottom: 1rem; }
  .projects-hero__headline { font-size: clamp(2.7rem,11.5vw,4.2rem); line-height: 0.96; }
  .projects-hero__body { max-width: 100%; font-size: clamp(0.875rem,3.8vw,1rem); line-height: 1.64; margin-bottom: 1.25rem; }
  .projects-hero__location { font-size: 9px; margin-bottom: 1.75rem; }
  .projects-hero__scroll-line { width: 28px; }
  .projects-hero__edition { display: none; }
  .projects-hero__ledge { padding-left: clamp(1.25rem,5.5vw,1.75rem); padding-right: clamp(1.25rem,5.5vw,1.75rem); padding-bottom: 1rem; }
}

/* --------------------------------------------------------------------------
   RESPONSIVE — Small Mobile 430px
   -------------------------------------------------------------------------- */
@media (max-width: 430px) {
  .projects-hero { height: 100svh; min-height: 600px; }
  .projects-hero__headline { font-size: clamp(2.5rem,13vw,3.5rem); }
}

/* --------------------------------------------------------------------------
   Prefers Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .projects-hero__img { transform: none !important; transition: opacity 0.3s ease !important; }
  .projects-hero__img.is-loaded { transform: none !important; opacity: 1 !important; }
  .projects-hero__eyebrow,
  .projects-hero__headline,
  .projects-hero__body,
  .projects-hero__location,
  .projects-hero__scroll,
  .projects-hero__edition,
  .projects-hero__ledge-tag,
  .projects-hero__ledge-rule { opacity: 1 !important; transform: none !important; transition: none !important; }
  .projects-hero__scroll-line { animation: none !important; }
}
