:root {
  --hero-header-offset: 126px;
  --hero-side-padding: clamp(20px, 4vw, 48px);
  --hero-white: #ffffff;
  --hero-soft-white: rgba(255, 255, 255, 0.82);
  --hero-shadow: 0 12px 48px rgba(0, 0, 0, 0.24);

  /* network-story 웹 톤과 맞춤 */
  --hero-wash-top: #f2f6fb;
  --hero-wash-mid: #f4f7fb;
  --hero-wash-bottom: #ffffff;
}

.hero-scene {
  position: relative;
  height: 100vh;
  height: 100svh;
  height: var(--app-height, 100svh);
  background: #000;
  isolation: isolate;
  z-index: 30;
  margin-bottom: -1px;
}

.hero-scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 16px;
  background: #edf4fb;
  z-index: 20;
  pointer-events: none;
}

.hero-scene__stage {
  position: relative;
  height: 100vh;
  height: 100svh;
  height: var(--app-height, 100svh);
  overflow: hidden;
  background: #000;
}

.hero-scene__media,
.hero-scene__content,
.hero-scene__shade,
.hero-scene__vignette,
.hero-scene__wash {
  position: absolute;
  inset: 0;
}

.hero-scene__media {
  z-index: 1;
  overflow: hidden;
  background: #000;
}

.hero-scene__video {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  display: block;
  transform-origin: center center;
  z-index: 1;
  will-change: transform, opacity, filter;
  filter: saturate(1.02) contrast(1.02) brightness(1);
}

.hero-scene__shade--base {
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.06) 0%,
    rgba(0, 0, 0, 0.10) 30%,
    rgba(0, 0, 0, 0.16) 100%
  );
}

.hero-scene__shade--dynamic {
  z-index: 3;
  background: #000;
  opacity: 0.02;
  will-change: opacity;
}

.hero-scene__vignette {
  z-index: 4;
  background: radial-gradient(circle at center, rgba(0,0,0,0) 30%, rgba(0,0,0,0.08) 68%, rgba(0,0,0,0.22) 100%);
}

/* 화면 전체 밝아짐 */
.hero-scene__wash {
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  will-change: opacity;
}

.hero-scene__wash-glow,
.hero-scene__wash-fill {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-scene__wash-glow {
  background:
    radial-gradient(circle at 50% 58%, rgba(242, 246, 251, 0.26) 0%, rgba(242, 246, 251, 0.14) 30%, rgba(242, 246, 251, 0) 68%);
  filter: blur(44px);
  opacity: 0.72;
  
}

.hero-scene__wash-fill {
  background:
    radial-gradient(circle at 14% 14%, rgba(49,130,246,0.07) 0%, rgba(49,130,246,0) 31%),
    radial-gradient(circle at 86% 14%, rgba(49,130,246,0.07) 0%, rgba(49,130,246,0) 31%),
    linear-gradient(
      180deg,
      #edf4fb 0%,
      #edf4fb 48%,
      #edf4fb 100%
    );
}

.hero-scene__content {
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--hero-side-padding);
  pointer-events: none;
}

.hero-scene__copy {
  position: relative;
  width: min(100%, 980px);
  min-height: clamp(260px, 42vh, 500px);
  transform: translateY(calc(var(--hero-header-offset) * 0.18));
}

.hero-scene__message {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vh, 20px);
  text-align: center;
  opacity: 0;
  transform: translate3d(0, 48px, 0) scale(0.985);
  filter: blur(14px);
  pointer-events: none;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.hero-scene__message.is-current {
  opacity: 1;
}

.hero-scene__eyebrow {
  margin: 0;
  font-family: "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.4;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  font-weight: 600;
}

.hero-scene__eyebrow--final {
  color: rgba(255, 255, 255, 0.56);
}

.hero-scene__headline {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.02em;
  font-family: "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 4.95rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  color: var(--hero-white);
  text-shadow: var(--hero-shadow);
  word-break: keep-all;
}

.hero-scene__headline--hero {
  font-size: clamp(2.35rem, 6vw, 5.6rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.hero-scene__headline--final {
  font-size: clamp(2.3rem, 5.8vw, 5.9rem);
  line-height: 0.88;
  letter-spacing: -0.072em;
}

.hero-scene__subcopy {
  margin: 0;
  max-width: min(92vw, 760px);
  font-family: "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.75;
  color: var(--hero-soft-white);
  word-break: keep-all;
  font-weight: 500;
}

.hero-scene__progress {
  position: absolute;
  left: clamp(16px, 2vw, 24px);
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: min(30vh, 240px);
  z-index: 12;
}

.hero-scene__progress-track,
.hero-scene__progress-bar {
  position: absolute;
  left: 0;
  width: 100%;
  border-radius: 999px;
}

.hero-scene__progress-track {
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.18);
}

.hero-scene__progress-bar {
  top: 0;
  height: 0%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
}

.hero-scene__scroll-indicator {
  position: absolute;
  right: clamp(16px, 2vw, 24px);
  bottom: clamp(18px, 3vw, 32px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 12;
  opacity: 1;
}

.hero-scene__scroll-label {
  font-family: "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 600;
}

.hero-scene__scroll-line {
  display: block;
  width: 42px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  position: relative;
  overflow: hidden;
}

.hero-scene__scroll-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-100%);
  animation: heroSceneScrollLine 1.6s ease-in-out infinite;
}

@media (min-width: 1024px) {
  .hero-scene__headline {
    line-height: 0.98;
  }

  .hero-scene__headline--hero,
  .hero-scene__headline--final {
    line-height: 1.02;
  }
}

@keyframes heroSceneScrollLine {
  0% { transform: translateX(-100%); opacity: 0; }
  30% { transform: translateX(-15%); opacity: 1; }
  70% { transform: translateX(45%); opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

@media (max-width: 1024px) {
  :root {
    --hero-header-offset: 118px;
  }

  .hero-scene__headline {
    letter-spacing: -0.06em;
    line-height: 0.94;
  }

  .hero-scene__headline--hero,
  .hero-scene__headline--final {
    letter-spacing: -0.065em;
    line-height: 0.9;
  }

  .hero-scene__wash-glow {
    filter: blur(36px);
  }
}

/* =========================================================
   Mobile-only layers (default: 비표시) — PC에서는 노출 X
   ========================================================= */
.hero-scene__mobile,
.hero-scene__mobile-copy,
.hero-scene__mobile-arrow {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --hero-header-offset: 108px;
    --hero-side-padding: 18px;
  }

  /* 긴 스크롤 트랙 — pin 없음, fixed 배경 + 자연 흐름 카피 */
  .hero-scene {
    position: relative;
    height: auto;
    min-height: 360svh;
    overflow: visible;
  }

  .hero-scene::after {
    display: none; /* PC 전용 bottom 라인 미사용 */
  }

  .hero-scene__stage {
    position: relative;
    height: auto;
    min-height: 360svh;
    overflow: visible;
    background: #000;
  }

  /* PC 전용 미디어/콘텐츠는 모바일에서 숨김 */
  .hero-scene__media,
  .hero-scene__content {
    display: none !important;
  }

  /* ----- Mobile background layer (fixed — 화면 고정) ----- */
  .hero-scene__mobile {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100svh;
    z-index: 1;
    overflow: hidden;
    background: #000;
    pointer-events: none;
  }

  .hero-scene__mobile-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform-origin: center center;
    will-change: opacity, transform;
  }

  .hero-scene__mobile-bg--one {
    background-image: url("/images/hero01.jpg");
  }

  .hero-scene__mobile-bg--two {
    background-image: url("/images/hero02.jpg");
    opacity: 0;
  }

  .hero-scene__mobile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.48);
    will-change: opacity;
  }

  .hero-scene__mobile-blackout {
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    will-change: opacity;
  }

  /* ----- Mobile copy (실제 문서 흐름으로 위로 스크롤) ----- */
  .hero-scene__mobile-copy {
    display: block;
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 360svh;
    margin-top: 0;
    padding: 0;
    pointer-events: none;
  }

  .hero-scene__mobile-messages {
    position: relative;
    width: 100%;
    height: auto;
  }

  /* 각 문구 = 한 화면, 자연 스크롤로 위로 흘러감 */
  .hero-scene__mobile-message {
    position: relative;
    inset: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100svh;
    padding: 0 24px;
    opacity: 1;
    transform: none;
    filter: none;
    will-change: auto;
    backface-visibility: visible;
    transform-style: flat;
  }

  /* 첫 화면: 카피를 하단에 두어 화살표 공간 확보 (토스 스타일) */
  .hero-scene__mobile-message--1 {
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: clamp(110px, 18vh, 160px);
    gap: 28px;
  }

  .hero-scene__mobile-headline {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #ffffff;
    font-family: "Wanted Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    font-size: clamp(2.25rem, 10vw, 3.6rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    word-break: keep-all;
  }

  .hero-scene__mobile-headline--final {
    font-size: clamp(1.95rem, 8.6vw, 3.1rem);
    letter-spacing: -0.045em;
  }

  /* ----- Mobile scroll arrow — 첫 메시지 내부에서 카피 아래에 배치 ----- */
  .hero-scene__mobile-arrow {
    display: block;
    position: relative;
    width: 28px;
    height: 16px;
    color: rgba(255, 255, 255, 0.86);
    pointer-events: none;
    will-change: transform;
    animation: heroMobileArrowBounce 1.8s ease-in-out infinite;
  }

  .hero-scene__mobile-arrow svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  @keyframes heroMobileArrowBounce {
    0%,
    100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero-scene__mobile-arrow {
      animation: none;
    }
  }
}
