/* =========================================================================
   CHUNG JU-YUNG 2-ACT CINEMA DIALOGUE SECTION (#chungFeature)
   Act 1: Pure Centered Dialogue Alone in Mist ("이봐, 젊은이")
   Act 2: Centered "아산 정주영 / 해봤어?" Intimately Above Restored Chairman Chung
   ========================================================================= */

.chung-feature {
  position: relative;
  z-index: 6;
  width: 100%;
  height: 245svh;
  background: #F1F3F6;
  isolation: isolate;
}

.cf-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #F1F3F6;
  isolation: isolate;
}

/* Archival B&W 1976 Hyundai Ulsan Shipyard — Deepens Quietly in Act 2 */
.cf-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cf-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
  filter: grayscale(100%) contrast(1.06) brightness(1.08);
  opacity: var(--cf-bg-op, 0.1);
  transform: scale(var(--cf-bg-scale, 1.04));
  will-change: transform, opacity;
}

/* Luminous Harbor Mist Veil */
.cf-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 72% 46% at 50% 24%, rgba(250, 251, 253, 0.92) 0%, rgba(244, 246, 249, 0.56) 54%, rgba(238, 241, 246, 0.22) 100%),
    linear-gradient(180deg, rgba(245, 247, 250, 0.9) 0%, rgba(242, 245, 249, 0.42) 48%, rgba(236, 239, 244, 0.2) 82%, rgba(236, 239, 244, 0.56) 100%);
}

.cf-mist {
  position: absolute;
  inset: -12% -10%;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 38% at 50% 28%, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(ellipse 56% 40% at 50% 78%, rgba(236, 240, 246, 0.62) 0%, rgba(255, 255, 255, 0) 74%);
  filter: blur(34px);
  animation: cfMistDrift 15s ease-in-out infinite alternate;
}

@keyframes cfMistDrift {
  0% { transform: translate3d(-2%, 0, 0) scale(1); opacity: 0.82; }
  100% { transform: translate3d(2%, -1.5%, 0) scale(1.04); opacity: 0.96; }
}

/* Act 1: Solo Centered Voice Alone in White Mist */
.cf-act1 {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  pointer-events: none;
}

.cf-beat-1 {
  margin: 0;
  text-align: center;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-size: clamp(38px, 5.4vw, 80px);
  font-weight: 660;
  line-height: 1.15;
  letter-spacing: -0.052em;
  word-break: keep-all;
  background-image: linear-gradient(
    180deg,
    #0C0F14 0%,
    #252B35 56%,
    rgba(60, 68, 80, 0.68) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: var(--cf-b1-opacity, 1);
  filter: blur(var(--cf-b1-blur, 0px)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.94));
  transform: translate3d(0, var(--cf-b1-y, 0px), 0) scale(var(--cf-b1-scale, 1));
  will-change: opacity, transform, filter;
}

/* Act 2: Unified Centered Vertical Stack — Guarantees Tight, Balanced Title-to-Head Spacing on PC & Mobile */
.cf-act2 {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 76px 20px 0;
  pointer-events: none;
}

.cf-shell {
  position: relative;
  z-index: 6;
  width: 100%;
  max-width: 780px;
  margin-bottom: clamp(18px, 3vh, 34px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.cf-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 560;
  letter-spacing: 0.22em;
  color: #6B7482;
  opacity: var(--cf-kicker-op, 0);
  transform: translate3d(0, var(--cf-kicker-y, 14px), 0);
  filter: blur(var(--cf-kicker-blur, 6px));
  will-change: opacity, transform, filter;
}

.cf-stage-text {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-stage-text::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 135%;
  height: 190%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(244, 246, 250, 0.44) 48%,
    rgba(244, 246, 250, 0) 76%
  );
  filter: blur(22px);
  z-index: -1;
  pointer-events: none;
  opacity: var(--cf-b2-opacity, 0);
}

.cf-beat-2 {
  margin: 0;
  text-align: center;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-size: clamp(50px, 6.2vw, 94px);
  font-weight: 720;
  line-height: 1.06;
  letter-spacing: -0.056em;
  white-space: nowrap;
  background-image: linear-gradient(
    180deg,
    #0B0E13 0%,
    #232933 56%,
    rgba(56, 64, 76, 0.68) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: var(--cf-b2-opacity, 0);
  filter: blur(var(--cf-b2-blur, 14px)) drop-shadow(0 0 22px rgba(255, 255, 255, 0.95));
  transform: translate3d(0, var(--cf-b2-y, 26px), 0) scale(var(--cf-b2-scale, 0.94));
  will-change: opacity, transform, filter;
}

/* Centered Restored-Arm Chairman Chung Portrait Directly Below Title */
.cf-portrait-wrap {
  position: relative;
  z-index: 4;
  height: clamp(360px, 58svh, 560px);
  margin-bottom: -14px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
}

.cf-portrait {
  height: 100%;
  width: auto;
  max-width: min(92vw, 680px);
  object-fit: contain;
  object-position: center bottom;
  display: block;
  user-select: none;
  transform-origin: center bottom;
  opacity: var(--cf-p-op, 0);
  transform: translate3d(0, var(--cf-p-y, 34px), 0) scale(var(--cf-p-scale, 0.95));
  filter:
    grayscale(100%)
    contrast(1.08)
    brightness(0.98)
    blur(var(--cf-p-blur, 12px))
    drop-shadow(0 20px 38px rgba(15, 23, 42, 0.15));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0, 0, 0, 0.45) 89%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, rgba(0, 0, 0, 0.45) 89%, transparent 100%);
  will-change: transform, opacity, filter;
}

/* Mobile Tuning — Intimate Gap Above Portrait, Zero Horizontal Overflow */
@media (max-width: 900px) {
  .chung-feature {
    height: 195svh;
  }

  .cf-beat-1 {
    font-size: clamp(36px, 10.5vw, 54px);
  }

  .cf-act2 {
    padding: 68px 16px 0;
  }

  .cf-shell {
    margin-bottom: clamp(14px, 2.6vh, 24px);
  }

  .cf-kicker {
    margin-bottom: 8px;
    font-size: 11.5px;
    letter-spacing: 0.18em;
  }

  .cf-beat-2 {
    font-size: clamp(44px, 13vw, 66px);
  }

  .cf-portrait-wrap {
    height: clamp(320px, 52svh, 450px);
    margin-bottom: -10px;
  }

  .cf-portrait {
    max-width: 92vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chung-feature {
    height: auto;
  }

  .cf-sticky {
    position: relative;
    height: 92svh;
  }

  .cf-act1 {
    display: none;
  }

  .cf-portrait,
  .cf-kicker,
  .cf-beat-2 {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .cf-portrait {
    filter: grayscale(100%) contrast(1.08) brightness(0.98) !important;
  }
}
