/* ==========================================================================
   DIWEDDING — Bespoke Wedding Case Monograph Stylesheet
   Tailored for High-End European & Ukrainian Wedding Case Presentations
   ========================================================================== */

/* --- Case Presentation Variables --- */
:root {
  --case-bg: #FFFFFF;
  --case-bg-silk: #F8F7F5;
  --case-bg-subtle: #F3F1ED;
  --case-text-main: #141414;
  --case-text-muted: #6B6762;
  --case-text-light: #949089;
  --case-border: rgba(20, 20, 20, 0.08);
  --case-border-soft: rgba(20, 20, 20, 0.04);
  --case-accent: #141414;
}

/* --- Majestic Page Entrance --- */
@keyframes casePageEntrance {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

html.case-study-html,
body.case-study-page {
  overflow-x: clip;
  max-width: 100%;
}

.case-study-page {
  animation: casePageEntrance 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* --- Header & Navigation Bar --- */
@keyframes caseHeaderDescend {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: transparent;
  border-bottom: 1px solid transparent;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  animation: caseHeaderDescend 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.case-header.scrolled,
.case-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.case-header-inner {
  width: 100%;
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 3.5vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: 100%;
}

.case-header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.case-back-link {
  display: inline-flex;
  align-items: center;
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.84rem;
  font-weight: 300 !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.35rem 0;
  position: relative;
  white-space: nowrap;
  transition: opacity 0.35s ease, letter-spacing 0.35s ease, color 0.35s ease;
  opacity: 0.95;
}

.case-header.scrolled .case-back-link,
.case-header.is-scrolled .case-back-link {
  color: var(--case-text-main);
  opacity: 0.95;
}

.case-back-link:hover {
  opacity: 1;
}

.case-back-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 1px;
  background-color: #FFFFFF;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.case-header.scrolled .case-back-link::after,
.case-header.is-scrolled .case-back-link::after {
  background-color: var(--case-text-main);
}

.case-back-link:hover::after {
  transform: scaleX(1);
}

.case-brand-center {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #FFFFFF;
  height: 100%;
  transition: color 0.3s ease;
}

.case-header.scrolled .case-brand-center,
.case-header.is-scrolled .case-brand-center {
  color: var(--case-text-main);
}

.case-brand-center .brand-title {
  font-family: 'Cormorant Garamond', 'Cinzel', serif;
  font-size: 1.45rem;
  letter-spacing: 0.22em;
  font-weight: 400;
  line-height: 1;
  margin: 0;
  padding: 0;
  display: block;
}

.case-header-right {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.case-header .lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  font-weight: 300 !important;
  text-transform: uppercase;
  line-height: 1;
}

.case-header .lang-btn {
  background: none;
  border: none;
  padding: 0.35rem 0.25rem;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  font-weight: 300 !important;
  text-transform: uppercase;
  color: #FFFFFF;
  opacity: 0.40;
  cursor: pointer;
  transition: opacity 0.3s ease, color 0.3s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.case-header .lang-btn:hover {
  color: #FFFFFF;
  opacity: 0.85;
}

.case-header .lang-btn.is-active {
  color: #FFFFFF;
  opacity: 1;
  font-weight: 300 !important;
}

.case-header .lang-btn::after {
  display: none !important;
}

.case-header .lang-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  opacity: 0.35;
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1;
  margin: 0 0.1rem;
  user-select: none;
}

.case-header.scrolled .lang-btn,
.case-header.is-scrolled .lang-btn {
  color: #141414;
  opacity: 0.38;
}

.case-header.scrolled .lang-btn:hover,
.case-header.is-scrolled .lang-btn:hover {
  color: #141414;
  opacity: 0.85;
}

.case-header.scrolled .lang-btn.is-active,
.case-header.is-scrolled .lang-btn.is-active {
  color: #141414;
  opacity: 1;
  font-weight: 300 !important;
}

.case-header.scrolled .lang-divider,
.case-header.is-scrolled .lang-divider {
  color: #141414;
  opacity: 0.30;
}

/* --- Hero Showcase (Exact 1:1 match with Baloga gallery hero) --- */
.case-hero {
  position: relative;
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  background: #000000;
  color: #FFFFFF;
  overflow: hidden;
}

.case-hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

@keyframes heroImgCinemaGlide {
  0% {
    transform: scale(1.08);
    filter: blur(5px) brightness(0.8);
    opacity: 0.7;
  }
  45% {
    opacity: 1;
    filter: blur(0) brightness(1);
  }
  100% {
    transform: scale(1);
    filter: blur(0) brightness(1);
    opacity: 1;
  }
}

.case-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  animation: heroImgCinemaGlide 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, filter, opacity;
}

@keyframes heroOverlayCinemaFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.case-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 2;
  animation: heroOverlayCinemaFade 1.2s ease forwards;
}

@keyframes heroContentCinemaRise {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem clamp(2.5rem, 5vh, 3.5rem);
  animation: heroContentCinemaRise 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.case-hero-description {
  text-align: center;
  margin-bottom: clamp(1.2rem, 3.5vh, 2.5rem);
}

.case-hero-title {
  max-width: 900px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: normal;
  margin: 0 auto clamp(0.75rem, 1.8vh, 1.25rem);
  color: #FFFFFF;
  text-align: center;
  text-shadow: none;
}

.case-hero-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(0.85rem, 1.1vw, 1.02rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  text-align: center;
  text-shadow: none;
}

.case-hero-scroll {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  padding: 0.6rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
  animation: caseBounce 2.4s infinite ease-in-out;
}

.case-hero-scroll:hover {
  opacity: 1;
  color: #FFFFFF;
  transform: translateY(3px);
}

@keyframes caseBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- Wedding Passport / Meta Bar --- */
.case-passport-bar {
  background: #111113;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(2rem, 4vw, 2.8rem) clamp(1.5rem, 4vw, 3.5rem);
  position: relative;
  z-index: 5;
}

.case-passport-inner {
  max-width: 960px;
  margin: 0 auto;
}

.case-passport {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
}

.passport-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.passport-label {
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.4rem;
}

.passport-val {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}

/* --- Editorial Monograph Intro --- */
.case-intro-section,
.case-intro-narrative {
  padding: clamp(5rem, 8vw, 8rem) clamp(1.5rem, 4vw, 3.5rem);
  background: var(--case-bg);
  border-bottom: 1px solid var(--case-border);
}

.intro-kicker {
  display: none !important;
}

.case-intro-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(2.5rem, 6vw, 6.5rem);
  align-items: start;
}

.intro-lead-title,
.intro-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.15;
  font-weight: 400;
  color: var(--case-text-main);
  margin: 0;
}

.intro-lead-title em,
.intro-title em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
}

.intro-narrative {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.intro-narrative p {
  font-family: 'Manrope', sans-serif;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--case-text-muted);
  font-weight: 350;
  margin: 0;
}

.intro-narrative .highlight-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--case-text-main);
  border-left: 2px solid var(--case-text-main);
  padding-left: 1.5rem;
}

/* --- Chapters Architecture --- */
.case-chapter {
  padding: clamp(5rem, 9vw, 9rem) 0;
  border-bottom: 1px solid var(--case-border);
}

.case-chapter--silk {
  background: var(--case-bg-silk);
}

.chapter-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 3.5vw, 3rem);
}

.chapter-header {
  margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 820px;
}

.chapter-num {
  display: none !important;
}

.chapter-title-wrap {
  display: flex;
  flex-direction: column;
}

.chapter-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 2.85rem);
  line-height: 1.18;
  color: var(--case-text-main);
  font-weight: 400;
}

.chapter-desc {
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--case-text-muted);
  margin-top: 0.35rem;
  max-width: 760px;
  font-weight: 350;
}

/* --- Gallery Spreads & Compositions --- */

/* 1. Balanced & Asymmetric Diptych */
.spread-diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  align-items: center;
}

.spread-diptych--asym {
  grid-template-columns: 1fr 1.35fr;
}

.spread-diptych--reverse {
  grid-template-columns: 1.35fr 1fr;
}

/* 2. Triptych Grid (3 balanced columns) */
.spread-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.8rem);
}

/* 3. Quad Grid (4 compact detail columns) */
.spread-quad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.85rem, 1.6vw, 1.4rem);
}

/* 4. Grand Panoramic Frame & Hero Feature */
.spread-panoramic,
.spread-hero-feature {
  margin-top: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: clamp(2rem, 3vw, 2.8rem);
  width: 100%;
}

.spread-panoramic .case-photo-frame,
.spread-hero-feature .case-photo-frame {
  height: clamp(320px, 44vh, 480px);
  max-height: 480px;
}

/* 5. Quad Mosaic */
.spread-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.2rem, 2vw, 2rem);
}

.mosaic-span-7 {
  grid-column: span 7;
}

.mosaic-span-5 {
  grid-column: span 5;
}

.mosaic-span-6 {
  grid-column: span 6;
}

.mosaic-span-4 {
  grid-column: span 4;
}

.mosaic-span-8 {
  grid-column: span 8;
}

/* Photo Frames & Micro-Interactions */
.case-photo-frame {
  position: relative;
  overflow: hidden;
  background: #EFEFEF;
  border-radius: 2px;
  cursor: pointer;
}

.case-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s ease;
}

.case-photo-frame:hover img {
  transform: none;
}

.case-photo-caption {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--case-text-muted);
  margin-top: 0.65rem;
  line-height: 1.4;
}

/* Aspect Ratio Utilities */
.ratio-portrait {
  aspect-ratio: 3 / 4;
}

.ratio-tall {
  aspect-ratio: 2 / 3;
}

.ratio-square {
  aspect-ratio: 1 / 1;
}

.ratio-landscape {
  aspect-ratio: 16 / 10;
}

.ratio-cinematic,
.ratio-panorama {
  aspect-ratio: 21 / 9;
}

/* Frame Zoom Cue Overlay */
.frame-zoom-cue {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.35s ease;
  pointer-events: none;
  color: #141414;
}

.case-photo-frame:hover .frame-zoom-cue {
  opacity: 1;
  transform: scale(1);
}

/* --- Quote Interludes --- */
.case-interlude {
  padding: clamp(5.5rem, 8.5vw, 8.5rem) clamp(1.5rem, 4vw, 3.5rem);
  background: var(--case-bg);
  text-align: center;
}

.interlude-container {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.interlude-quote-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: #141414;
  opacity: 0.28;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.interlude-quote-icon svg {
  width: 38px;
  height: 28px;
  display: block;
}

.case-interlude:hover .interlude-quote-icon {
  opacity: 0.7;
  transform: translateY(-2px);
}

.interlude-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 2.7vw, 2.35rem);
  line-height: 1.48;
  color: var(--case-text-main);
  margin-bottom: 1.75rem;
}

.interlude-author {
  font-family: 'Manrope', sans-serif;
  font-size: 0.8rem;
  font-weight: 350;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--case-text-muted);
}

/* --- Creative Credits & Vendors Section --- */
.case-credits-section {
  padding: clamp(5rem, 8vw, 7.5rem) clamp(1.5rem, 4vw, 3.5rem);
  background: var(--case-bg-silk);
  border-bottom: 1px solid var(--case-border);
}

.credits-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.credit-item {
  display: flex;
  flex-direction: column;
}

.credit-role {
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--case-text-light);
  margin-bottom: 0.4rem;
}

.credit-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  color: var(--case-text-main);
  text-decoration: none;
}

.credit-name a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(20, 20, 20, 0.25);
  transition: text-decoration-color 0.3s ease;
}

.credit-name a:hover {
  text-decoration-color: var(--case-text-main);
}

/* --- Hide Legacy Next Case Bar --- */
.case-next-nav {
  display: none !important;
}

/* --- Consultation / Journal Bottom Call to Action (Luxus Events Exact Style & Fixed Parallax) --- */
.case-inquiry-section,
.case-closing-cta {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  min-height: 88vh;
  height: 92vh;
  max-height: 980px;
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 4vw, 3.5rem);
  background-color: #EAE5DD;
  background-image: none !important;
  color: #FFFFFF;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
}

.case-inquiry-media {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100lvh !important;
  z-index: 1;
  pointer-events: none;
  background-position: center center;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  transform: none !important;
  will-change: auto !important;
}

.case-inquiry-bg-img {
  display: none !important;
}

.case-inquiry-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(28, 25, 22, 0.16) 0%,
    rgba(28, 25, 22, 0.24) 50%,
    rgba(28, 25, 22, 0.20) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.inquiry-container,
.case-inquiry-box,
.closing-cta-inner {
  position: relative;
  z-index: 3;
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.inquiry-kicker,
.inquiry-lead,
.closing-cta-desc {
  display: none !important;
}

.inquiry-title,
.closing-cta-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.95rem, 3.2vw, 2.75rem);
  line-height: 1.24;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 auto 2.2rem auto;
  color: #FFFFFF;
  text-shadow: none;
  max-width: 860px;
}

.inquiry-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.btn-case-discuss,
.case-inquiry-section .btn,
.case-closing-cta .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.15rem;
  min-width: 176px;
  background: transparent;
  color: #FFFFFF;
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 0;
  outline: none;
  box-shadow: none;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.btn-case-discuss:hover,
.case-inquiry-section .btn:hover,
.case-closing-cta .btn:hover {
  background: #FFFFFF;
  color: #141414;
  border-color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

@media (max-width: 1024px) {
  .case-inquiry-section,
  .case-closing-cta,
  .case-fullbleed-parallax {
    background-image: none !important;
    position: relative;
    overflow: hidden;
    clip-path: inset(0);
    -webkit-clip-path: inset(0);
  }

  .case-inquiry-media,
  .case-closing-media,
  .case-fullbleed-parallax-inner,
  .case-fullbleed-parallax-media {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100lvh !important;
    background-attachment: scroll !important;
    background-position: center center;
    background-size: cover !important;
    will-change: auto !important;
    pointer-events: none;
    transform: none !important;
  }

  .case-inquiry-section,
  .case-closing-cta {
    min-height: 62svh;
    height: 68svh;
  }
}

/* --- Fullscreen Lightbox for Case Study --- */
.case-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.case-lightbox.is-open {
  display: flex;
  opacity: 1;
}

.case-lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.case-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

.case-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10001;
}

.case-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.08);
}

.case-lightbox-nav.nav-prev {
  left: 2rem;
}

.case-lightbox-nav.nav-next {
  right: 2rem;
}

.case-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.case-lightbox-img {
  max-width: 88vw;
  max-height: 78vh;
  object-fit: contain;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.case-lightbox-info {
  margin-top: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0.04em;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 1024px) {
  .case-passport {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .case-intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .spread-diptych,
  .spread-diptych--asym,
  .spread-diptych--reverse {
    grid-template-columns: 1fr;
  }

  .spread-triptych {
    grid-template-columns: repeat(2, 1fr);
  }

  .spread-quad-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spread-mosaic {
    grid-template-columns: 1fr;
  }

  .mosaic-span-7,
  .mosaic-span-5,
  .mosaic-span-6,
  .mosaic-span-4,
  .mosaic-span-8 {
    grid-column: span 1;
  }

  .credits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .case-header {
    height: 64px;
  }

  .case-header-inner {
    padding: 0 1.15rem;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .case-back-link {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    padding: 0.25rem 0;
  }

  .case-brand-center .brand-title {
    font-size: 1.2rem;
    letter-spacing: 0.18em;
  }

  .case-header .lang-switcher {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    gap: 0.25rem;
  }

  .case-header .lang-btn {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    padding: 0.25rem 0.2rem;
  }

  .case-header .lang-divider {
    font-size: 0.72rem;
  }

  .case-hero {
    padding-top: 64px;
    min-height: 100svh;
    height: 100svh;
  }

  .case-hero.case-hero--landscape {
    min-height: clamp(420px, 64svh, 540px);
    height: clamp(420px, 64svh, 540px);
  }

  .case-hero-title {
    font-size: 2.6rem;
  }

  .case-passport {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .chapter-container {
    padding: 0 1rem !important;
  }

  .chapter-header {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-bottom: 1.75rem !important;
  }

  /* Spreads & Grids: Full-width single column on mobile */
  .spread-diptych,
  .spread-diptych--asym,
  .spread-diptych--reverse,
  .spread-triptych,
  .spread-quad-grid,
  .spread-mosaic,
  .spread-monolith,
  .spread-hero-feature,
  .spread-panoramic {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    margin-top: 1.25rem !important;
    margin-bottom: 1.25rem !important;
    width: 100% !important;
  }

  .mosaic-span-7,
  .mosaic-span-5,
  .mosaic-span-6,
  .mosaic-span-4,
  .mosaic-span-8 {
    grid-column: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* ==========================================================================
     MOBILE ADAPTIVE PHOTOGRAPHY: ZERO UNWANTED CROPPING
     Photos adapt to their natural proportions so 100% of the image is visible
     ========================================================================== */
  .case-photo-frame,
  .spread-hero-feature .case-photo-frame,
  .spread-panoramic .case-photo-frame,
  .case-photo-frame.ratio-portrait,
  .case-photo-frame.ratio-tall,
  .case-photo-frame.ratio-landscape,
  .case-photo-frame.ratio-cinematic,
  .case-photo-frame.ratio-panorama,
  .case-photo-frame.ratio-square {
    aspect-ratio: auto !important;
    height: auto !important;
    max-height: none !important;
    width: 100% !important;
    display: block !important;
    overflow: hidden !important;
    background: transparent !important;
  }

  .case-photo-frame img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
  }

  .case-lightbox-nav {
    display: none;
  }

  .credits-grid {
    grid-template-columns: 1fr;
  }

  .case-cta-btn {
    display: none;
  }
}

/* ==========================================================================
   FULL-BLEED PANORAMIC PARALLAX STATEMENT BREAK (LUXUS FIXED PARALLAX WINDOW)
   ========================================================================== */
.case-fullbleed-parallax,
.portfolio-fullbleed-parallax {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
  overflow: hidden;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  min-height: 76vh;
  height: 82vh;
  max-height: 880px;
  background-color: #0E0C0A;
  background-image: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: clamp(4rem, 8vw, 8rem);
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.case-fullbleed-parallax-media,
.portfolio-fullbleed-parallax-media,
.case-fullbleed-parallax-inner,
.portfolio-fullbleed-parallax-inner {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  height: 100lvh !important;
  z-index: 1;
  pointer-events: none;
  background-position: center center;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  transform: none !important;
  will-change: auto !important;
}

.case-fullbleed-parallax-img,
.portfolio-fullbleed-parallax-img {
  display: none !important;
}

.case-fullbleed-parallax-overlay,
.portfolio-fullbleed-parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(14, 12, 10, 0.25) 0%,
    rgba(14, 12, 10, 0.42) 50%,
    rgba(14, 12, 10, 0.72) 100%
  );
  z-index: 2;
}

.case-fullbleed-parallax-content,
.portfolio-fullbleed-parallax-content {
  position: relative;
  z-index: 3;
  max-width: 920px;
  padding: 0 2rem;
  color: #FFFFFF;
}

.case-fullbleed-parallax-tag,
.portfolio-fullbleed-parallax-tag,
.case-fullbleed-eyebrow {
  display: none !important;
}

.case-fullbleed-parallax-quote,
.portfolio-fullbleed-parallax-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  margin: 0;
  text-shadow: none;
}

.case-fullbleed-parallax-quote em,
.portfolio-fullbleed-parallax-quote em {
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
}

@media (max-width: 768px) {
  .case-inquiry-section,
  .case-closing-cta {
    clip-path: inset(0) !important;
    -webkit-clip-path: inset(0) !important;
    overflow: hidden !important;
  }
  .case-inquiry-media,
  .case-closing-media {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100lvh !important;
    background-attachment: scroll !important;
    background-size: cover !important;
    transform: none !important;
    will-change: auto !important;
  }

  .case-fullbleed-parallax,
  .portfolio-fullbleed-parallax {
    position: relative !important;
    clip-path: inset(0) !important;
    -webkit-clip-path: inset(0) !important;
    height: clamp(380px, 52svh, 480px) !important;
    min-height: clamp(380px, 52svh, 480px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    margin-top: 3rem;
    margin-bottom: 3rem;
    background-image: none !important;
  }
  .case-fullbleed-parallax-inner,
  .portfolio-fullbleed-parallax-inner {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100lvh !important;
    background-size: cover !important;
    background-position: center 25%;
    background-attachment: scroll !important;
    transform: none !important;
    will-change: auto !important;
  }
  .case-fullbleed-parallax-img,
  .portfolio-fullbleed-parallax-img {
    display: none !important;
  }
  .case-fullbleed-parallax-overlay,
  .portfolio-fullbleed-parallax-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
      180deg,
      rgba(14, 12, 10, 0.45) 0%,
      rgba(14, 12, 10, 0.65) 50%,
      rgba(14, 12, 10, 0.85) 100%
    ) !important;
    z-index: 2 !important;
  }
  .case-fullbleed-parallax-content,
  .portfolio-fullbleed-parallax-content {
    position: relative !important;
    z-index: 3 !important;
    padding: 2.5rem 1.5rem !important;
    text-align: center !important;
  }
  .case-fullbleed-parallax-quote,
  .portfolio-fullbleed-parallax-quote {
    font-size: clamp(1.24rem, 4.8vw, 1.7rem) !important;
    line-height: 1.35 !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5) !important;
  }
  .case-inquiry-section,
  .case-closing-cta {
    min-height: clamp(380px, 54svh, 480px) !important;
    height: auto !important;
    background-image: none !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-fullbleed-parallax-img,
  .portfolio-fullbleed-parallax-img {
    transform: none !important;
    will-change: auto;
  }
  .case-inquiry-section,
  .case-closing-cta,
  .case-inquiry-media {
    background-attachment: scroll !important;
  }
  .cs-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Smooth Editorial Scroll Reveals on Case Studies (Desktop & Mobile) */
.cs-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.cs-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

