/* ==========================================================================
   2ND SECTION: 100VH VIEWPORT LOCKED EDITORIAL CANVAS
   Scroll-driven in-place story switcher (4 Offers)
   Modeled after 2nd-section.png
   ========================================================================== */

.white-screen-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden; /* Strict 100vh lock - no vertical page scroll */
  z-index: 10;
  background-color: #FAF9F6 !important;
  color: #0A0B0D;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  box-sizing: border-box;
  touch-action: pan-y;
}

/* Editorial Section Inner Container (100% Height Flex Layout) */
.editorial-section-container {
  width: 100%;
  max-width: 500px;
  height: 100%;
  height: 100dvh;
  margin: 0 auto;
  padding: 108px 10px 14px 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}

@media (min-width: 769px) {
  .editorial-section-container {
    max-width: 720px;
    padding: 118px 16px 20px 16px;
  }
  .editorial-headline-line1,
  .editorial-headline-line2 {
    font-size: clamp(68px, 6.6vw, 96px);
  }
}

/* Giant Condensed Headline (Line 1) */
.editorial-headline-line1 {
  font-family: 'Anton', 'Bebas Neue', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(52px, 13.6vw, 92px);
  line-height: 0.84;
  font-weight: 900;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: #0A0B0D;
  margin: 0 0 4px 0;
  padding: 0;
  user-select: none;
  display: block;
  width: 100%;
  text-align: center;
  position: relative;
  top: -10px;
  left: 5px;
}

/* Editorial Media Wrapper & Notched Frame (Extends to bottom) */
.editorial-media-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.notched-media-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: #121418;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
  user-select: none;
  clip-path: url(#notchedVideoShape);
  -webkit-clip-path: url(#notchedVideoShape);
  border-radius: 20px 20px 24px 24px;
  overflow: hidden;
}

/* Embedded Video Player inside Notched Frame */
.notched-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.notched-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, transparent 22%, rgba(0, 0, 0, 0.25) 45%, rgba(0, 0, 0, 0.72) 70%, rgba(0, 0, 0, 0.94) 90%, #0A0B0D 100%);
  pointer-events: none;
  z-index: 2;
}

/* Top-Right Notch Headline Container (Holds Line 2) */
.notch-headline-box {
  position: absolute;
  top: 0;
  right: 0;
  width: 62%;
  height: 14%;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 4px 0 4px;
  box-sizing: border-box;
  z-index: 5;
  pointer-events: none;
}

.editorial-headline-line2 {
  font-family: 'Anton', 'Bebas Neue', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(52px, 13.6vw, 92px);
  line-height: 0.84;
  font-weight: 900;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: #0A0B0D;
  margin: 0;
  padding: 0;
  text-align: right;
  display: block;
  white-space: nowrap;
  user-select: none;
  transform: translateX(0px);
}

/* IN-PLACE STORY BOX (OVERLAID ON VIDEO WITH LUXURY SCRIM CONTRAST) */
.editorial-story-box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px 20px;
  box-sizing: border-box;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: auto;
  overflow: hidden; /* Strict mask inside video container */
}

/* HORIZONTAL SLIDING CONTENT (HEADLINE & BODY COPY) */
.editorial-story-content {
  width: 100%;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.editorial-story-content.slide-out-left {
  opacity: 0;
  transform: translateX(-35px);
}

.editorial-story-content.slide-out-right {
  opacity: 0;
  transform: translateX(35px);
}

.editorial-story-content.slide-in-prep-right {
  opacity: 0;
  transform: translateX(35px);
  transition: none !important;
}

.editorial-story-content.slide-in-prep-left {
  opacity: 0;
  transform: translateX(-35px);
  transition: none !important;
}

/* PINNED BUTTON TEXT DISSOLVE/SWAP */
.story-cta-text {
  display: inline-block;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.story-cta-text.fade-out {
  opacity: 0;
  transform: translateY(4px);
}

.story-cta-text.fade-in-prep {
  opacity: 0;
  transform: translateY(-4px);
  transition: none !important;
}

.editorial-subheadline {
  font-family: 'Anton', 'Bebas Neue', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 6vw, 32px);
  line-height: 1.0;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #FAF9F6;
  margin: 0 0 8px 0;
  padding: 0;
  user-select: none;
  text-align: left;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.editorial-body-copy {
  font-family: var(--font-editorial);
  font-size: clamp(13px, 3.2vw, 14.5px);
  line-height: 1.48;
  font-weight: 500;
  color: rgba(250, 249, 246, 0.94);
  letter-spacing: 0.012em;
  margin: 0 0 16px 0;
  padding: 0;
  text-align: left;
  min-height: 42px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.92);
}

/* STORY CTA ACTION ROW */
.story-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.editorial-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 24px;
  background-color: #FAF9F6;
  color: #0A0B0D;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.editorial-cta-btn:hover {
  background-color: #FFFFFF;
  color: #9A7B38;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}

.editorial-cta-btn:active {
  transform: scale(0.98);
}
