/* greeting splash + content */

html:has(.greeting-page:not(.greeting-loaded)) {
  overflow: hidden !important;
  height: 100%;
}

.greeting-page:not(.greeting-loaded) {
  overflow: hidden !important;
  height: 100dvh;
  max-height: 100dvh;
}

.greeting-page:not(.greeting-loaded) .greeting-content {
  visibility: hidden;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.greeting-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  z-index: 40;
  background: #071a2d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.greeting-splash__inner {
  width: 100%;
  padding: 0 20px;
  text-align: center;
}

.greeting-splash__title,
.greeting-splash__sub {
  opacity: 0;
  visibility: hidden;
}

.greeting-content {
  visibility: hidden;
}

.greeting-loaded .greeting-splash {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.greeting-loaded .greeting-content {
  visibility: visible;
}

.greeting-hero {
  position: relative;
  background-color: #000;
  color: #fff;
}

.greeting-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/sub/greeting_hero.png") center / cover no-repeat;
  z-index: 0;
}

.greeting-hero > * {
  position: relative;
  z-index: 1;
}

.greeting-photos {
  position: relative;
}

.greeting-photos__deco {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 620px;
  pointer-events: none;
}

.greeting-quote {
  position: relative;
  background-color: #000;
  color: #fff;
}

.greeting-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/sub/greeting_sec2_bg.png") center / cover no-repeat;
  z-index: 0;
}

.greeting-quote > * {
  position: relative;
  z-index: 1;
}

.greeting-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 39px;
  padding: 0;
  background: none;
  font-size: 18px;
  font-weight: 500;
  color: #212121;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

.greeting-tab.is-active {
  border-bottom-color: #c9a45d;
}

.greeting-panel[hidden] {
  display: none;
}

.vision-hero {
  position: relative;
  background-color: #000;
  color: #fff;
}

.vision-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/sub/vision_hero.png") center / cover no-repeat;
  z-index: 0;
}

.vision-hero > * {
  position: relative;
  z-index: 1;
}

.vision-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  height: 43px;
  padding: 0 8px;
  border: 1px solid #fff;
  color: #fff;
  font-family: "NanumSquare", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 31px;
}

.vision-net-card {
  width: 100%;
  padding: 20px;
  border-radius: 7px;
  background: rgba(45, 150, 255, 0.1);
}

.vision-biz {
  position: relative;
  background-color: #000;
  color: #fff;
}

.vision-biz::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/sub/vision_sec2_bg.png") center / cover no-repeat;
  z-index: 0;
}

.vision-biz > * {
  position: relative;
  z-index: 1;
}

.vision-circle {
  width: 180px;
  height: 180px;
  border-radius: 9999px;
  border: 1px solid rgba(159, 160, 160, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.vision-channel {
  width: 100%;
  padding: 32px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.13);
}

.location-hero {
  width: 100%;
  min-height: 200px;
  background: url("../img/sub/location_hero.png") center / cover no-repeat;
}

.location-map {
  overflow: hidden;
  border: 1px solid #f3f4f8;
  border-radius: 10px;
  min-height: 280px;
}

.location-map .root_daum_roughmap,
.location-map .root_daum_roughmap .wrap_map {
  width: 100% !important;
  max-width: 100%;
}

.location-map .root_daum_roughmap .wrap_map {
  height: 280px !important;
}

@media (min-width: 1024px) {
  .greeting-hero {
    min-height: 900px;
  }

  .greeting-tab {
    font-size: 22px;
  }

  .greeting-photos {
    width: 698px;
    height: 560px;
    flex-shrink: 0;
  }

  .greeting-sec1-bg {
    background-image: url("../img/sub/greeting_sec1_img_deco.png");
    background-position: right 0 bottom 0;
    background-size: auto;
    background-repeat: no-repeat;
  }

  .vision-net-bg {
    position: relative;
    /* opacity: 0.99; /* 강제로 레이어 형성 (필요시) */
  }

  /* 별 배경을 투명하게 넣기 위해 가상 요소 사용 */
  .vision-net-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../img/sub/vision_sec1_deco.png");
    background-position: right 0 top 0;
    background-size: auto;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
  }

  .greeting-photos__img {
    position: absolute;
    width: 216px;
    height: 460px;
    object-fit: cover;
  }

  .greeting-photos__img--1 {
    left: 0;
    top: 100px;
  }

  .greeting-photos__img--2 {
    left: 241px;
    top: 50px;
  }

  .greeting-photos__img--3 {
    left: 482px;
    top: 0;
  }

  .greeting-quote {
    min-height: 450px;
  }

  .vision-hero {
    min-height: 740px;
  }

  .vision-chip {
    font-size: 22px;
  }

  .vision-net-card {
    width: 182px;
    height: 104px;
    padding: 20px;
  }

  .vision-biz {
    min-height: 750px;
  }

  .vision-circle {
    width: 264px;
    height: 264px;
    gap: 8px;
  }

  .vision-channel {
    width: 454px;
    height: 348px;
    padding: 50px 80px;
    flex-shrink: 0;
  }

  .location-hero {
    min-height: 440px;
  }

  .location-map {
    min-height: 650px;
  }

  .location-map .root_daum_roughmap .wrap_map {
    height: 650px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .greeting-splash,
  .greeting-content {
    transition: none;
  }
}
