/* 메인 히어로 비주얼 슬라이더 섹션 스타일시트 */
/* ===== Hero ===== */
.section-hero {
  position: relative;
  justify-content: flex-end;
  margin-top: calc(
    -1 * var(--site-sticky-offset, var(--site-header-height, 120px))
  );
  padding: 0;
  color: var(--color-white);
  overflow: hidden;
  opacity: 1;
  transform: none;
  min-height: clamp(680px, 88vh, 920px);
  transition: margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-hero__slider {
  position: relative;
  width: 100%;
  min-height: inherit;
}
.section-hero__slides {
  position: relative;
  width: 100%;
  min-height: inherit;
}
.section-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.85s ease,
    visibility 0.85s ease;
  z-index: 1;
}
.section-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}
.section-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.section-hero__image {
  position: absolute;
  inset: 0;
  background-color: #000;
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.92;
}
/* 첫 번째 슬라이드 전용: 모바일에서만 노출 (데스크톱은 비디오 패널 사용) */
.section-hero__image--mobile {
  display: none;
}
.hero-animated-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  background: #0b0c10;
}
.hero-animated-bg svg {
  position: absolute;
  top: 50%;
  left: -200px;
  width: 800px;
  height: 800px;
  transform: translateY(-50%);
  overflow: visible;
}
.hero-animated-bg__rings {
  pointer-events: none;
}
.section-hero__gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.02) 38%,
      rgba(0, 0, 0, 0.42) 72%,
      rgba(0, 0, 0, 0.88) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.08) 42%,
      rgba(0, 0, 0, 0.18) 100%
    );
}
.section-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
  pointer-events: none;
  will-change: transform;
}
.section-hero__orb--green {
  top: 0;
  left: 0;
  width: min(42vw, 460px);
  height: min(42vw, 460px);
  background: radial-gradient(
    circle,
    rgba(74, 222, 128, 0.75) 0%,
    rgba(34, 197, 94, 0.4) 42%,
    rgba(16, 185, 129, 0.12) 68%,
    transparent 78%
  );
  animation: hero-orb-green 20s ease-in-out infinite;
}
.section-hero__orb--blue {
  top: 0;
  left: 0;
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  background: radial-gradient(
    circle,
    rgba(125, 211, 252, 0.8) 0%,
    rgba(69, 178, 207, 0.45) 42%,
    rgba(56, 189, 248, 0.14) 68%,
    transparent 78%
  );
  animation: hero-orb-blue 24s ease-in-out infinite;
}
@keyframes hero-orb-green {
  0%,
  100% {
    transform: translate(8vw, 18vh) scale(1);
  }
  25% {
    transform: translate(52vw, 8vh) scale(1.08);
  }
  50% {
    transform: translate(68vw, 52vh) scale(0.94);
  }
  75% {
    transform: translate(22vw, 62vh) scale(1.04);
  }
}
@keyframes hero-orb-blue {
  0%,
  100% {
    transform: translate(72vw, 58vh) scale(1);
  }
  33% {
    transform: translate(38vw, 28vh) scale(1.1);
  }
  66% {
    transform: translate(12vw, 48vh) scale(0.92);
  }
}
.section-hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.section-hero__inner {
  position: absolute;
  left: 50%;
  top: calc(var(--site-sticky-offset, var(--site-header-height, 120px)) + 32px);
  bottom: 112px;
  z-index: 4;
  width: 100%;
  max-width: var(--container-width);
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.section-hero__inner a,
.section-hero__inner button {
  pointer-events: auto;
}
.section-hero__layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(380px, 1.5fr);
  gap: 32px 48px;
  align-items: center;
  width: 100%;
}
.section-hero__layout.is-media-hidden {
  grid-template-columns: minmax(340px, 0.85fr) minmax(380px, 1.5fr);
}
.section-hero__layout.is-media-hidden .section-hero__media {
  visibility: hidden;
  pointer-events: none;
}
.section-hero__layout.is-media-hidden .section-hero__content {
  max-width: 860px;
}
[data-hero-video="off"] .section-hero__layout {
  grid-template-columns: 1fr;
}
[data-hero-video="off"] .section-hero__content {
  max-width: 860px;
}
[data-hero-video="off"] .section-hero__media {
  display: none;
}
.section-hero__content {
  display: grid;
  min-width: 0;
  max-width: 860px;
  text-align: left;
}
.section-hero__panel {
  grid-area: 1 / 1;
  width: 100%;
  max-width: none;
  opacity: 0;
  transform: translateX(-48px);
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    visibility 0.45s ease;
}
.section-hero__panel.is-active {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
  animation: hero-content-enter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.section-hero__panel.is-active .section-hero__label,
.section-hero__panel.is-active .section-hero__title,
.section-hero__panel.is-active .section-hero__meta,
.section-hero__panel.is-active .section-hero__btns {
  animation: hero-content-item-enter 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.section-hero__panel.is-active .section-hero__label {
  animation-delay: 0.08s;
}
.section-hero__panel.is-active .section-hero__title {
  animation-delay: 0.16s;
}
.section-hero__panel.is-active .section-hero__meta {
  animation-delay: 0.25s;
}
.section-hero__panel.is-active .section-hero__btns {
  animation-delay: 0.34s;
}
.section-hero__media {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  min-width: 0;
  opacity: 0;
  transform: translateX(56px);
  will-change: opacity, transform;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}
.section-hero__layout.is-media-active .section-hero__media {
  opacity: 1;
  transform: translateX(0);
  animation: hero-media-enter 0.75s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes hero-content-enter {
  from {
    opacity: 0;
    transform: translateX(-48px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes hero-content-item-enter {
  from {
    opacity: 0;
    transform: translate3d(-32px, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes hero-media-enter {
  from {
    opacity: 0;
    transform: translate3d(76px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.section-hero__media-frame {
  position: relative;
  width: 100%;
  max-width: 880px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  will-change: transform, filter, box-shadow;
}
.section-hero__layout.is-media-active .section-hero__media-frame {
  animation: hero-media-frame-enter 0.82s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes hero-media-frame-enter {
  from {
    filter: blur(7px);
    transform: perspective(1000px) scale(0.9) rotateY(-7deg);
    box-shadow:
      0 10px 24px rgba(0, 0, 0, 0.22),
      0 0 28px rgba(var(--color-point-rgb), 0.22);
  }
  65% {
    filter: blur(0);
    transform: perspective(1000px) scale(1.02) rotateY(0);
  }
  to {
    filter: blur(0);
    transform: perspective(1000px) scale(1) rotateY(0);
  }
}
.section-hero__media-frame.is-showing-video.is-video-ready {
  overflow: visible;
}
.section-hero__video,
.section-hero__media-fallback,
.section-hero__media-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.45s ease;
}
.section-hero__video {
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.section-hero__media-fallback {
  opacity: 1;
  z-index: 0;
}
.section-hero__media-frame.is-showing-video.is-video-ready
  .section-hero__video {
  opacity: 1;
  pointer-events: auto;
  object-fit: cover;
}
.section-hero__media-frame.is-showing-video.is-video-ready
  .section-hero__video::-webkit-media-controls-panel {
  background: rgba(0, 0, 0, 0.72);
}
.section-hero__media-frame.is-showing-video.is-video-ready
  .section-hero__media-fallback {
  opacity: 0;
}
.section-hero__media-frame.is-showing-image .section-hero__video {
  opacity: 0;
  pointer-events: none;
}
.section-hero__media-frame.is-showing-image .section-hero__media-fallback {
  opacity: 1;
}
.section-hero__arrow {
  position: absolute;
  top: 55%;
  z-index: 5;
  transform: translateY(-50%);
}
.section-hero__arrow--prev {
  /* + 10px 대신 - 20px 처럼 마이너스 값을 주면 컨테이너 바깥으로 나갑니다 */
  left: max(20px, calc((100% - var(--container-width, 1400px)) / 2 - 140px));
}

.section-hero__arrow--next {
  right: max(20px, calc((100% - var(--container-width, 1400px)) / 2 - 140px));
}
.section-hero__controls {
  position: absolute;
  right: max(16px, calc((100% - var(--container-width)) / 2));
  bottom: 36px;
  left: auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.section-hero__pagination {
  position: static;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  transform: none;
}
.section-hero__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  transition:
    width 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}
.section-hero__dot.is-active {
  width: 28px;
  border-radius: 999px !important;
  border-color: var(--color-point);
  background: var(--color-point);
}
.section-hero__dot:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.4);
}
.section-hero__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}
.section-hero__pause:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
}
.section-hero__pause.is-paused {
  color: #fff;
  background: rgba(var(--color-point-rgb), 0.28);
  border-color: rgba(var(--color-point-rgb), 0.55);
}
.section-hero__pause-icon {
  font-size: 16px;
  line-height: 1;
}
.section-hero__pause-icon--play {
  display: none;
}
.section-hero__pause.is-paused .section-hero__pause-icon--pause {
  display: none;
}
.section-hero__pause.is-paused .section-hero__pause-icon--play {
  display: inline-block;
}
@media (prefers-reduced-motion: reduce) {
  .section-hero__slide,
  .section-hero__panel,
  .section-hero__media {
    transition: none;
  }
  .section-hero__panel.is-active,
  .section-hero__layout.is-media-active .section-hero__media,
  .section-hero__layout.is-media-active .section-hero__media-frame,
  .section-hero__panel.is-active .section-hero__label,
  .section-hero__panel.is-active .section-hero__title,
  .section-hero__panel.is-active .section-hero__meta,
  .section-hero__panel.is-active .section-hero__btns {
    animation: none;
  }
}
.section-hero__label {
  font-family: "Chakra Petch", sans-serif;
  margin-bottom: 18px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.88);
}
.section-hero__title {
  font-family: "pretendard", "Chakra Petch", sans-serif;
  margin-bottom: 22px;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--color-white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  word-break: keep-all;
}
.section-hero__subtitle {
  font-family: "Chakra Petch", sans-serif;
  display: inline-block;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--color-white);
}
.section-hero__meta {
  font-family: "Chakra Petch", sans-serif;
  margin-bottom: 30px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.82);
}
.section-hero__meta p {
  margin: 0;
}
.section-hero__desc {
  font-family: "Chakra Petch", sans-serif;
  margin-bottom: 36px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(69, 178, 207, 0.92);
}
.section-hero__btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
[data-pic-mode="active"] .section-hero__btns--archive {
  display: none;
}
[data-pic-mode="archive"] .section-hero__btns--active {
  display: none;
}
.section-hero__btn[hidden] {
  display: none;
}
.section-hero__btn {
  font-family: "pretendard", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}
.section-hero__btn--fill {
  color: var(--color-black);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.section-hero__btn--fill:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-black);
}
.section-hero__btn--outline {
  color: var(--color-black);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.section-hero__btn--outline:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--color-white);
}
.section-hero__btn-arrow {
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}
/* 영문 히어로의 긴 텍스트가 상하로 잘리지 않도록 콘텐츠 영역을 확보한다. */
@media (min-width: 1025px) {
  /* 포럼 슬라이드(패널 0)만 영문 제목이 길어 축소가 필요하므로 해당 패널에만 적용 */
  html[lang="en"] .section-hero__panel[data-hero-panel="0"] .section-hero__title {
    margin-bottom: 18px;
    font-size: clamp(40px, 3.2vw, 48px);
    line-height: 1.2;
  }

  html[lang="en"] .section-hero__label {
    margin-bottom: 14px;
  }

  /* 연계전시 슬라이드의 영문 eyebrow가 유독 길어 줄바꿈되므로, 폰트를 줄이는 대신
     좌측 콘텐츠 영역 자체를 넓혀 다른 슬라이드와 동일한 글자 크기를 유지한다. */
  html[lang="en"] .section-hero__layout {
    grid-template-columns: minmax(340px, 1fr) minmax(380px, 1.3fr);
  }

  html[lang="en"] .section-hero__panel[data-hero-panel="0"] .section-hero__meta {
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.65;
  }

  html[lang="en"] .section-hero__btn {
    padding: 12px 28px;
  }
}

@media (max-width: 768px) {
  .hero-animated-bg svg {
    width: 500px;
    height: 500px;
    left: -150px;
  }
}

@media (min-width: 1025px) {
  /* 이 구간부터 비디오 패널(.section-hero__media)이 노출되어 텍스트 컬럼이 좁아지므로,
     궤도를 도는 색상 점이 헤드라인 위로 지나가는 것을 막는다. */
  .hero-animated-bg__dots {
    display: none;
  }
}

@media (hover: none) and (pointer: coarse) {
  .section-hero__panel {
    transform: none;
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease;
  }
  .section-hero__panel.is-active {
    transform: none;
    animation: none;
  }
  .section-hero__panel.is-active .section-hero__label,
  .section-hero__panel.is-active .section-hero__title,
  .section-hero__panel.is-active .section-hero__meta,
  .section-hero__panel.is-active .section-hero__btns {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-hero__orb--green,
  .section-hero__orb--blue {
    animation: none;
  }
  .section-hero__orb--green {
    transform: translate(20vw, 25vh);
  }
  .section-hero__orb--blue {
    transform: translate(60vw, 45vh);
  }
}
