/* ------------------------------------------------*/
/* Base CSS Styles Start */
/* ------------------------------------------------*/
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

button {
  background: none;
  border: none;
}
button:active,
button:focus {
  outline: none;
}
button::-moz-focus-inner {
  border: 0;
}

input::-moz-focus-inner {
  border: 0;
}

::-moz-selection {
  background-color: #343434;
  color: #b6b6b6;
  text-shadow: none;
}

::selection {
  background-color: #343434;
  color: #b6b6b6;
  text-shadow: none;
}

html {
  font-size: 52.5%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-user-select: none;
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

@media only screen and (min-width: 1200px) {
  html {
    font-size: 58%;
  }
}

@media only screen and (min-width: 1400px) {
  html {
    font-size: 62.5%;
  }
}

body {
  min-width: 320px;
  font:
    normal 400 1.6rem/1.7 "Pretendard",
    sans-serif;
  background-color: #ffffff;
  color: #292929;
  overflow: auto !important;
  line-height: 1;
}

html,
body {
  height: 100%;
}

/* ====== 로딩 오버레이 ====== */
#loading {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  inset: 0;
  z-index: 9999;
  background: #0f1115; /* 다크톤 배경 */
  color: #dfe3ea;
  transition: opacity 0.5s ease;
}
#loading.close {
  opacity: 0;
  pointer-events: none;
}

.loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

/* 1줄: 브랜드명 – 은은한 그라데이션 + 살짝 반짝임 */
.loader-title {
  font-family: "HeirofLight", serif;
  font-size: min(5rem, 90vw);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: transparent;
  background: linear-gradient(90deg, #a8b5ff, rgb(254, 154, 68));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 2줄: 타이핑처럼 한 글자씩 뜨고 사라지는 루프 */
.loader-typing {
  display: inline-flex;
  align-items: baseline;
}

.letters {
  display: inline-flex;
}

.letters span {
  font-size: 2rem;
  font-weight: 200;
  letter-spacing: 0.04em;
  color: #b9c2cf;
  opacity: 0;
  transform: translateY(6px);
  filter: blur(2px);
  /* 각 글자 애니메이션 – 순차 노출 후 사라짐 */
  animation: type 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}

@keyframes type {
  0% {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(2px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
    filter: blur(2px);
  }
}

img {
  text-decoration: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

a {
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  outline: 0;
  color: #fff;
}
a:hover,
a:active,
a:visited {
  text-decoration: none;
}

.btn-style {
  --item-color: rgba(0, 0, 0, 0.8);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.8rem 2rem;
  background-color: rgba(0, 0, 0, 0);
  border-radius: 0.6rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: all 0.3s ease-in-out;
}
.btn-style::after {
  content: "";
  position: absolute;
  bottom: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 1px;
  background-color: var(--item-color);
  border-radius: 500px;
  transition: all 0.3s ease-in-out;
}
@media (hover: hover) and (pointer: fine) {
  .btn-style:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  .btn-style:hover.item {
    --item-color: rgba(255, 255, 255, 0.9);
  }
  .btn-style:hover.btn-style::after {
    --item-color: rgba(255, 255, 255, 0.9);
    width: 70%;
  }
}
.btn-style:active {
  transform: scale(0.95);
}

.item {
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 0;
  color: var(--item-color);
  text-align: center;
  text-transform: uppercase;
}
.item.icon {
  padding: 1.8rem;
}
.item.icon:disabled {
  opacity: 0.1;
  cursor: not-allowed;
}
.item.icon span {
  font-size: 3.5rem;
  font-weight: 400;
}
/* ------------------------------------------------*/
/* Base CSS Styles End */
/* ------------------------------------------------*/
.splash-box {
  cursor: pointer;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100dvh;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
}
.splash-box.open {
  opacity: 1;
  visibility: visible;
}
.splash-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.splash-click {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}
@keyframes fadeInOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.3;
  }
}
.splash-logo {
  width: 27rem;
  height: auto;
  object-fit: contain;
  animation: fadeInOut 1s linear infinite alternate;
}
.splash-text-btn {
  font-size: 2rem;
  font-weight: 700;
  padding: 1.7rem 5rem;
  color: #fff;
}
@media (hover: hover) and (pointer: fine) {
  .splash-text-btn:hover {
    color: rgba(242, 148, 76, 1);
  }
}

.ui-section {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
  z-index: 9;
  overflow: hidden;
}
.ui-section.close {
  opacity: 0;
  visibility: hidden;
}
.ui-section > * {
  pointer-events: auto;
}

.top-bar {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 70%;
  opacity: 1;
  transition: all 0.3s ease-in-out;
}
.top-bar > * {
  pointer-events: auto;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
}
.logo-box img {
  width: auto;
  height: 3.4rem;
  object-fit: contain;
}

.langbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}
.langbox .flag {
  color: var(--item-color);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 0;
  padding: 1.5rem 0.7rem;
  transition: all 0.3s ease-in-out;
}
.langbox .flag.active {
  color: rgba(242, 148, 76, 1);
  font-weight: 700;
}
@media (hover: hover) and (pointer: fine) {
  .langbox .flag:hover {
    font-weight: 700;
  }
}

.divider::after {
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 500px;
}

.menu-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  white-space: nowrap;
}

.ui-section-mg {
  width: 100%;
  height: 15dvh;
}
@media only screen and (max-width: 1024px) {
  .top-bar {
    flex-direction: column;
    gap: 1.5rem;
  }
  .ui-section-mg {
    height: 20dvh;
  }
}
@media only screen and (max-height: 480px) {
  .ui-section-mg {
    height: 45dvh;
  }
}

.hpages {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
}
.section_container {
  display: flex;
  width: 70%;
  height: fit-content;
  gap: 10rem;
}
@media only screen and (max-width: 1024px) {
  .section_container {
    flex-direction: column;
    width: 90%;
    gap: 5rem;
  }
}
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: fit-content;
  gap: 3rem;
}

/* Section side-slide animations */
#section_desc,
#section_intro {
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

#section_desc {
  transform: translateX(-50px);
}

#section_intro {
  transform: translateX(50px);
}

.section_container.active #section_desc,
.section_container.active #section_intro {
  opacity: 1;
  transform: translateX(0);
}

/* Element scroll-up animations */
.section img,
.footage_box {
  filter: blur(10px);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.section img.active,
.footage_box.active {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}
@media (hover: hover) and (pointer: fine) {
  .section img.active:hover {
    transform: scale(1.01);
    transition: transform 0.3s ease-in-out;
  }
}

/* desc_text_content top-to-bottom sequential animations */
.desc_text_content {
  filter: blur(10px);
  opacity: 0;
  transform: translateY(-30px);
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.desc_text_content.active {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
}

/* delay staggering */
.desc_text_content:nth-child(1) {
  transition-delay: 0.5s;
}
.desc_text_content:nth-child(2) {
  transition-delay: 1s;
}
.desc_text_content:nth-child(3) {
  transition-delay: 1.5s;
}
.desc_text_content:nth-child(4) {
  transition-delay: 2.5s;
}
.desc_text_content:nth-child(5) {
  transition-delay: 3s;
}
.section img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 2rem;
}

.desc_text_box {
  display: flex;
  flex-direction: column;
  gap: 5rem;
  color: rgba(0, 0, 0, 0.7);
}
.desc_text_content {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.desc_text_title {
  font-size: 2.5rem;
  font-weight: 600;
}
.desc_text_title.xl {
  font-size: 5rem;
  font-weight: 700;
}
.desc_text_title.xl span {
  font-size: 3rem;
}
.desc_text_subtitle {
  text-align: justify;
  font-size: 1.7rem;
  font-weight: 200;
}
.desc_text_subtitle.xs {
  line-height: 1.7;
}

.section_footage {
  margin-top: 5rem;
  padding: 5rem 0;
  width: 70%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.5);
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}
@media only screen and (max-width: 1024px) {
  .section_footage {
    flex-direction: column;
    align-items: initial;
    width: 90%;
  }
}
.footage_box {
  display: flex;
  flex-direction: column;
  align-items: left;
  gap: 3rem;
}
@media only screen and (max-width: 1024px) {
  .footage_box.none {
    display: none;
    opacity: 0;
    visibility: hidden;
  }
}
.footage_box span {
  font-size: 1.7rem;
  font-weight: 600;
  margin-right: 0.7rem;
}
.footage_logo {
  background: url(../img/logo_b.png) no-repeat left/contain;
  width: 19rem;
  height: auto;
  aspect-ratio: 3.4 / 1;
  opacity: 0.7;
}
.footage_text {
  display: flex;
  gap: 2rem;
}
.footage_text.cl {
  flex-direction: column;
}
@media only screen and (max-width: 1024px) {
  .footage_text {
    flex-direction: column;
    gap: 3rem;
  }
}
.footage_text_adr {
  display: flex;
}

/* 터치 리플 */
.touch-ripple {
  position: fixed;
  left: 0;
  top: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(175, 243, 49, 0.65);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(238, 118, 20, 0.6));
  animation: ripple 0.55s ease-out forwards;
}
@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(10);
    opacity: 0;
  }
}

/* ------------------------------------------------*/
/* Image Gallery Start */
/* ------------------------------------------------*/
.image-gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh; /* use dvh if supported for better mobile experience */
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    visibility 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.image-gallery.active {
  opacity: 1;
  visibility: visible;
}

.gallery-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.gallery-slider {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  perspective: 1200px;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(100%);
  transition:
    transform 0.5s cubic-bezier(0.25, 1, 0.5, 1),
    opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform, opacity;
}

.gallery-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.gallery-slide.prev {
  opacity: 0;
  transform: translateX(-100%);
  z-index: 1;
}

.gallery-slide.next {
  opacity: 0;
  transform: translateX(100%);
  z-index: 1;
}

.gallery-slide img {
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
  border-radius: 2rem;
}

@media (orientation: landscape) {
  .gallery-slide img {
    max-width: 70vw;
    max-height: 90vh;
    width: auto;
    height: auto;
  }
}

@media (orientation: portrait) {
  .gallery-slide img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
  }
}

.gallery-prev,
.gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  cursor: pointer;
  z-index: 10;
  backdrop-filter: blur(4px);
  border-radius: 500px;
  transition: all 0.3s ease-in-out;
}
.gallery-prev::after {
  content: "⬅";
  transition: margin-left 0.3s ease-in-out;
}
.gallery-next::after {
  content: "➡";
  transition: margin-right 0.3s ease-in-out;
}
@media (hover: hover) and (pointer: fine) {
  .gallery-prev:hover,
  .gallery-next:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  .gallery-prev:hover::after {
    margin-left: -0.5rem;
  }
  .gallery-next:hover::after {
    margin-right: -0.5rem;
  }
}

.gallery-prev {
  left: 3rem;
}

.gallery-next {
  right: 3rem;
}

.gallery-close {
  position: absolute;
  top: 3rem;
  right: 3rem;
  color: #fff;
  font-size: 4rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-close:hover {
    transform: scale(1.1);
  }
}

@media only screen and (max-width: 768px) {
  .gallery-prev,
  .gallery-next {
    display: none;
  }
  .gallery-close {
    top: 2rem;
    right: 2rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 3px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}
::-webkit-scrollbar-thumb {
  background: rgba(242, 148, 76);
  border-radius: 500px;
}

@media (hover: hover) and (pointer: fine) {
  ::-webkit-scrollbar-thumb:hover {
    background: rgb(109, 202, 55);
  }
}

/* ------------------------------------------------*/
/* Landing Page Cards Start */
/* ------------------------------------------------*/
.landing-container {
  width: 100vw;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #141414;
  overflow: hidden;
  position: relative;
}

.landing-title {
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: -0.08rem;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
}

.card-wrapper {
  display: flex;
  gap: 4rem;
  width: 80%;
  height: 65vh;
  z-index: 2;
  margin-top: 5vh;
}

.landing-card {
  flex: 1;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transform: translateZ(0); /* hardware accel */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #222;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition:
    transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
    filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.landing-card:nth-child(1) .card-bg {
  animation: pulse-bright 3s infinite ease-in-out;
}
.landing-card:nth-child(2) .card-bg {
  animation: pulse-bright 3s infinite ease-in-out;
  animation-delay: 1.5s;
}

@keyframes pulse-bright {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(0.7);
  }
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
  transition: opacity 0.6s ease;
  opacity: 0.6;
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 4rem 3rem;
  color: #fff;
  transform: translateY(2rem);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-name {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
  opacity: 0.9;
  transform: translateY(10px);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-sub {
  font-size: 1.6rem;
  font-weight: 300;
  color: #f2944c; /* Primary Orange */
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  transition-delay: 0.1s;
}
.card-sub span {
  font-size: 1.8rem;
  font-weight: 700;
  margin-right: 1rem;
}

/* Hover Effects */
@media (hover: hover) and (pointer: fine) {
  .card-wrapper:hover .card-bg {
    animation-play-state: paused !important;
    filter: brightness(0.7) !important;
  }
  .landing-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
  }
  .card-wrapper .landing-card:hover .card-bg {
    transform: scale(1.08);
    filter: brightness(1) !important;
  }
  .landing-card:hover .card-overlay {
    opacity: 0.9;
  }
  .landing-card:hover .card-content {
    transform: translateY(0);
  }
  .landing-card:hover .card-name {
    transform: translateY(0);
    opacity: 1;
  }
  .landing-card:hover .card-sub {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Portait */
@media (orientation: portrait), (max-width: 620px) {
  .landing-container {
    padding: 2rem 0;
  }
  .landing-title {
    top: 3.5%;
    font-size: 2.8rem;
  }
  .card-wrapper {
    flex-direction: column;
    height: 80%;
    gap: 2rem;
  }
  .landing-card {
    height: 100%;
  }
  .card-name {
    font-size: 2.5rem;
    transform: translateY(0);
  }
  .card-sub {
    font-size: 1.4rem;
    opacity: 1;
    transform: translateY(0);
  }
  .card-content {
    transform: translateY(0);
    padding: 2rem 2rem;
  }
}

/* Card Selection Transition Start */
.card-wrapper.card-selected {
  pointer-events: none;
}
.landing-card.hidden {
  flex: 0.00001 !important;
  opacity: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  pointer-events: none;
}
.landing-card.selected {
  animation: card-zoom-fade 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  z-index: 100;
}
@keyframes card-zoom-fade {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  40% {
    transform: translateY(0) scale(1.05); /* Allow flex expansion to settle visually */
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1.5);
    opacity: 0;
  }
}
/* Card Selection Transition End */

/* ------------------------------------------------*/
/* Landing Page Cards End */
/* ------------------------------------------------*/
