/* =========================================================================
   SECTION 5 FINALE: SEAMLESS HANDPRINT + 5-HERO STUDIO GATHERING ENSEMBLE
   Flows Directly Out of Section 4 Mist · Zero Hard Cutoffs · Pure White Studio
   ========================================================================= */

.hero-finale {
  position: relative;
  z-index: 12;
  width: 100%;
  height: 225svh;
  margin-top: -1px;
  background: #FFFFFF;
}

.fn-sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(64px, 7.5vh, 88px) clamp(16px, 4vw, 48px) clamp(24px, 4vh, 44px);
  background: #FFFFFF;
  isolation: isolate;
}

/* Soft Continuous Studio Atmosphere Echoing Section 4 Mist */
.fn-studio-light {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 44% at 50% 0%, rgba(235, 240, 248, 0.42) 0%, rgba(255, 255, 255, 0) 68%),
    radial-gradient(ellipse 64% 40% at 50% 58%, rgba(224, 232, 244, 0.3) 0%, rgba(255, 255, 255, 0) 74%);
}

.fn-mist {
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: min(1140px, 94vw);
  height: 38vh;
  transform: translate3d(-50%, 0, 0);
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(222, 230, 242, 0.38) 0%,
    rgba(235, 240, 247, 0.14) 48%,
    rgba(255, 255, 255, 0) 76%
  );
  filter: blur(42px);
  z-index: 1;
  pointer-events: none;
  opacity: var(--fn-mist-op, 0.74);
}

/* Monumental Real Handprint Seal Positioned High Behind Title & Upper Portraits */
.fn-handprint {
  position: absolute;
  left: 50%;
  top: 39%;
  height: clamp(340px, 56svh, 520px);
  width: auto;
  max-width: none;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply;
  opacity: var(--fn-stamp-op, 0.12);
  transform: translate3d(-50%, -50%, 0) scale(var(--fn-stamp-scale, 1.02));
  filter: blur(var(--fn-stamp-blur, 1.2px)) contrast(1.06);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 99%);
  will-change: opacity, transform, filter;
}

.fn-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Top Monumental Closing Copy */
.fn-copy {
  position: relative;
  z-index: 9;
  max-width: 760px;
  margin: 0 auto clamp(14px, 2.4vh, 28px);
}

.fn-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.22em;
  color: #77808E;
  opacity: var(--fn-kicker-op, 0.6);
  transform: translate3d(0, var(--fn-kicker-y, 8px), 0);
  will-change: opacity, transform;
}

.fn-title {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.044em;
  word-break: keep-all;
  text-wrap: balance;
}

.fn-clause {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.24em;
}

.fn-clause:last-child {
  margin-right: 0;
}

.fn-word {
  display: inline-block;
  margin-right: 0.22em;
  background-image: linear-gradient(
    115deg,
    #12151B 0%,
    #363D49 40%,
    #788191 74%,
    #1A1E26 100%
  );
  background-size: 200% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: var(--w-op, 0.45);
  transform: translate3d(0, var(--w-y, 8px), 0);
  filter: blur(var(--w-blur, 2.5px));
  will-change: opacity, transform, filter;
}

.fn-word:last-child {
  margin-right: 0;
}

/* Central Proportional 5-Hero Stage — Zero White Box, Per-Hero Seamless Alpha Fade */
.fn-stage {
  position: relative;
  width: min(920px, 100%);
  height: min(clamp(220px, 30vw, 345px), 42svh);
  margin: 0 auto;
  overflow: visible;
  isolation: isolate;
}

/* 5 Real Hero Cutouts — Soft Bottom Alpha Mask Dissolves Every Waist Seamlessly Into White */
.fn-hero {
  position: absolute;
  width: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
  transform-origin: bottom center;
  opacity: var(--h-op, 0);
  transform: translate3d(calc(var(--eh-x, -50%) + var(--h-dx, 0px)), var(--h-dy, 18px), 0) scale(var(--h-scale, 0.95));
  filter:
    blur(var(--h-blur, 8px))
    saturate(0.76)
    contrast(1.05)
    brightness(0.98)
    drop-shadow(0 12px 22px rgba(15, 23, 42, 0.12));
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 46%, rgba(0, 0, 0, 0.52) 70%, rgba(0, 0, 0, 0.12) 86%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 0%, #000 46%, rgba(0, 0, 0, 0.52) 70%, rgba(0, 0, 0, 0.12) 86%, transparent 95%);
  will-change: opacity, transform, filter;
}

/* Park & Chung Bust Cutouts Fade Gently Earlier So Straight Bottom Edge Completely Vanishes */
.fn-hero--park {
  left: 19%;
  top: 19%;
  height: 58%;
  z-index: 2;
  --eh-x: -50%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.48) 66%, rgba(0, 0, 0, 0.1) 83%, transparent 93%);
  mask-image: linear-gradient(180deg, #000 0%, #000 40%, rgba(0, 0, 0, 0.48) 66%, rgba(0, 0, 0, 0.1) 83%, transparent 93%);
}

.fn-hero--yi {
  left: 34.5%;
  top: 14%;
  height: 78%;
  z-index: 4;
  --eh-x: -50%;
}

.fn-hero--ahn {
  left: 50%;
  top: 16%;
  height: 76%;
  z-index: 6;
  --eh-x: -50%;
  filter:
    blur(var(--h-blur, 8px))
    saturate(0.78)
    contrast(1.06)
    brightness(0.98)
    drop-shadow(0 14px 26px rgba(15, 23, 42, 0.16));
}

.fn-hero--paik {
  left: 66.5%;
  top: 7%;
  height: 86%;
  z-index: 4;
  --eh-x: -38%;
}

.fn-hero--chung {
  left: 81%;
  top: 20%;
  height: 62%;
  z-index: 2;
  --eh-x: -50%;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0, 0, 0, 0.48) 68%, rgba(0, 0, 0, 0.1) 84%, transparent 94%);
  mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0, 0, 0, 0.48) 68%, rgba(0, 0, 0, 0.1) 84%, transparent 94%);
}

/* Tactile 3D Sculpted White CTA Buttons Cleanly Below Ensemble */
.fn-actions {
  position: relative;
  z-index: 9;
  margin-top: clamp(14px, 2.2vh, 26px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  opacity: var(--fn-cta-op, 0);
  transform: translate3d(0, var(--fn-cta-y, 14px), 0);
  pointer-events: var(--fn-cta-pe, none);
  will-change: opacity, transform;
}

.fn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 26px;
  border-radius: 11px;
  text-decoration: none;
  font-family: inherit;
  font-size: 14.5px;
  letter-spacing: -0.022em;
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.2s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.fn-btn--primary {
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: linear-gradient(180deg, #FFFFFF 0%, #F3F5F8 100%);
  color: #12151B;
  font-weight: 640;
  box-shadow:
    0 8px 18px -5px rgba(15, 23, 42, 0.15),
    0 2px 5px -1px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 #FFFFFF,
    inset 0 -2px 0 rgba(15, 23, 42, 0.08);
}

.fn-btn--primary:hover {
  transform: translateY(-1.5px);
  border-color: rgba(15, 23, 42, 0.26);
  box-shadow:
    0 12px 24px -6px rgba(15, 23, 42, 0.19),
    0 3px 8px -1px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 #FFFFFF,
    inset 0 -2px 0 rgba(15, 23, 42, 0.09);
}

.fn-btn--primary:active {
  transform: translateY(0.5px);
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.1),
    inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.fn-btn--secondary {
  border: 1px solid rgba(15, 23, 42, 0.11);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 100%);
  color: #4A525F;
  font-weight: 540;
  box-shadow:
    0 3px 8px -2px rgba(15, 23, 42, 0.08),
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 #FFFFFF,
    inset 0 -1.5px 0 rgba(15, 23, 42, 0.05);
}

.fn-btn--secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.18);
  color: #14181F;
  box-shadow:
    0 7px 16px -4px rgba(15, 23, 42, 0.13),
    0 2px 5px -1px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 #FFFFFF,
    inset 0 -1.5px 0 rgba(15, 23, 42, 0.06);
}

.fn-btn--secondary:active {
  transform: translateY(0.5px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.07),
    inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* Responsive Mobile Studio Proportions — High Handprint, Zero Clipping, Balanced 5-Hero Row */
@media (max-width: 720px) {
  .hero-finale {
    height: 185svh;
  }

  .fn-sticky {
    padding: 64px 12px 28px;
  }

  .fn-handprint {
    top: 37%;
    height: clamp(230px, 44svh, 320px);
  }

  .fn-copy {
    margin-bottom: 16px;
  }

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

  .fn-title {
    font-size: clamp(21px, 5.8vw, 27px);
    line-height: 1.34;
  }

  .fn-stage {
    width: 100%;
    height: min(clamp(168px, 46vw, 214px), 31svh);
  }

  .fn-hero--park { left: 16%; top: 22%; height: 50%; }
  .fn-hero--yi { left: 33%; top: 15%; height: 70%; }
  .fn-hero--ahn { left: 50%; top: 17%; height: 68%; }
  .fn-hero--paik { left: 68%; top: 9%; height: 78%; --eh-x: -40%; }
  .fn-hero--chung { left: 84%; top: 22%; height: 54%; }

  .fn-actions {
    margin-top: 18px;
    gap: 10px;
  }

  .fn-btn {
    height: 43px;
    padding: 0 20px;
    font-size: 13.5px;
  }
}

@media (max-width: 350px) {
  .fn-clause {
    white-space: normal;
  }
}

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

  .fn-sticky {
    position: relative;
    height: auto;
    min-height: 76svh;
  }

  .fn-kicker,
  .fn-word,
  .fn-hero,
  .fn-actions {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
  }

  .fn-hero {
    transform: translate3d(var(--eh-x, -50%), 0, 0) !important;
    filter: saturate(0.76) contrast(1.05) brightness(0.98) drop-shadow(0 12px 22px rgba(15, 23, 42, 0.12)) !important;
  }

  .fn-handprint {
    opacity: 0.09 !important;
    transform: translate3d(-50%, -50%, 0) scale(0.96) !important;
    filter: none !important;
  }
}
