/* Header */

:root {
	--purple: #8030a7;
	--header-h: 70px;
}

.wrapper { position: relative; }

#header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 999;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #171717;
}
#header .header-wrapper {
  position: relative;
  height: 100%;
  background-color: #fff;
  border-bottom: 1px solid #e1e1e1;
}

#header .header-inner { position: relative; height: 100%; }
#header .header-logo,
#header .header-actions { position: absolute; top: 50%; z-index: 8; transform: translateY(-50%); }
#header .header-logo { left: 120px; width: 106px; }
#header .header-logo img { display: block; width: 100%; height: auto; }
#header .header-actions { right: 120px; display: flex; align-items: center; gap: 10px; }
#header .pill_button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 90px; height: 40px; border-radius: 999px; background: var(--purple); color: #fff; font-size: 18px;
}
#header .lang_button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #181818; color: #fff; font-size: 16px; cursor: pointer; }
@media screen and (max-width: 1280px) {
  #header .header-logo { left: 0; }
  #header .header-actions { right: 0; }
}

/* Navigation */

#header .gnb-bg {
  position: absolute; top: 0; left: 0;
  background: #FFFFFF; width: 100%; height: 0;
  transition: 350ms ease; transition-duration: 0.4s;
}
#header .gnb-bg::before {
  content: "";
  position: absolute;
  top: calc(var(--header-h) - 1px);
  left: 0; width: 100%; height: 1px;
  background-color: #e1e1e1;
  opacity: 0;
}

#header .gnb-list { display: flex; gap: 53px; transition: gap 350ms ease; }
#header .gnb-list.active { gap: 0; }
#header .gnb-list > li { position: relative; }
#header .gnb-list > li::before {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px;
  background-color: var(--purple);
  transition: 350ms ease; transition-property: width, left;
}
#header .gnb-list > li:last-child .gnb-2depth::after {
  content: ""; position: absolute; top: 0; right: 0; width: 1px; height: 0;
  background-color: #e1e1e1;
  transition: 350ms ease; transition-property: height;
}
#header .gnb-list:not(.active) .hover::before { opacity: 0; transition: none; }
#header .gnb-list .hover .gnb-2depth::before { opacity: 1; }

#header .gnb-list .hover::before { width: 100%; left: 0; }
#header .gnb-1depth {
  position: relative; height: var(--header-h);
  display: flex; align-items: center;
}
#header .gnb-1depth > a {
  padding: 8px 19px;
  font-size: 18px; font-weight: 600; color: #171717;
  transition: 350ms ease; transition-property: color, padding;
}
#header .gnb-1depth > a .icon { display: none; }

#header .gnb-about .gnb-1depth > a { padding-left: 5px; padding-right: 5px; }
#header .gnb-services .gnb-1depth > a { padding-left: 3px; padding-right: 3px; }
#header .gnb-experience .gnb-1depth > a { padding-left: 5px; padding-right: 5px; }
#header .gnb-insights .gnb-1depth > a { padding-left: 4px; padding-right: 4px; }
#header .gnb-list.active .gnb-about .gnb-1depth > a { padding-left: 35px; padding-right: 35px; }
#header .gnb-list.active .gnb-services .gnb-1depth > a { padding-left: 75px; padding-right: 75px; }
#header .gnb-list.active .gnb-experience .gnb-1depth > a { padding-left: 24px; padding-right: 24px; }
/* 20260909 수정 */
#header .gnb-experience .gnb-2depth-list > li > a > span { white-space: nowrap; }
@media screen and (min-width: 1281px) {
  #header .gnb-list.active .gnb-experience.is-depth2-width {
    flex: 0 0 var(--gnb-experience-width, 200px);
    width: var(--gnb-experience-width, 200px);
  }
  #header .gnb-list.active .gnb-experience.is-depth2-width .gnb-1depth { justify-content: center; }
  #header .gnb-list.active .gnb-experience.is-depth2-width .gnb-1depth > a {
    width: 100%; box-sizing: border-box; padding-left: 0; padding-right: 0; text-align: center;
  }
}
#header .gnb-list.active .gnb-insights .gnb-1depth > a { padding-left: 25px; padding-right: 25px; }
#header .gnb-2depth {
  position: absolute; top: 100%; left: 0; width: 100%; text-align: center;
  padding: 1.1875em 0 2.4em; box-sizing: border-box;
  opacity: 0; visibility: hidden; isolation: isolate;

  overflow: hidden;
}

#header .gnb-2depth::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.02); opacity: 0; transition: opacity 350ms ease; z-index: 1;
}
#header .gnb-2depth-list { position: relative; z-index: 2; }
#header .gnb-2depth-list > li > a {
  display: block; padding: 0.4375em; font-size: 15px;
  font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; color: #1c1c1c;
}
/* 20260909 수정 */
#header .gnb-2depth-list > li > a:hover,
#header .gnb-2depth-list > li > a:focus-visible { color: #8231a7; font-weight: 500; }

#header[data-open=true] .gnb-bg {
  height: var(--activeHeight);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .1);
}
#header[data-open=true] .gnb-bg::before { opacity: 1; transition-delay: 0.2s; }
#header[data-open=true] .gnb-list > li:last-child .gnb-2depth { border-right: 1px solid #e1e1e1; }

#header .gnb-2depth {
  transition-property: opacity, visibility, background-color;
  transition-duration: 100ms, 100ms, 150ms;
  transition-delay: 0s, 0s, 0s;
  transition-timing-function: ease;
}
#header[data-open=true] .gnb-list .gnb-2depth {
  opacity: 1; visibility: visible;
  transition-property: opacity, visibility, background-color;
  transition-duration: 350ms, 350ms, 150ms;
  transition-delay: 0.3s, 0.3s, 0s;
  transition-timing-function: ease;
  border-left: 1px solid #e1e1e1;
}
#header .gnb-list > li.hover .gnb-2depth { background: #f5f5f5; }

/* Responsive */

@media screen and (min-width: 1281px) {
  #header #gnb { position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
  #header .gnb-bg { width: 100vw; left: 50%; transform: translateX(-50%); }
  #header .gnb-1depth > a { white-space: nowrap; }
}

@media screen and (max-width: 1280px) {
  #header #gnb { left: 0; width: 100%; transform: none; }
  #header .gnb-list { justify-content: flex-start; gap: 0; }
  #header .gnb-list.active { gap: 0; }
  #header .gnb-list > li {
    position: absolute; top: 0; transform: translateX(-50%);
    transition: left 470ms ease;
  }
  #header .gnb-about { left: 27.54%; }
  #header .gnb-services { left: 38.875%; }
  #header .gnb-experience { left: 51.375%; }
  #header .gnb-insights { left: 68.29%; }

  #header .gnb-list.active .gnb-about { left: 24.5%; }
  #header .gnb-list.active .gnb-services { left: 41.458%; }
  #header .gnb-list.active .gnb-experience { left: 58.417%; }
  #header .gnb-list.active .gnb-insights { left: 75.417%; }

  #header .gnb-list.active .gnb-about .gnb-1depth > a { padding-left: 5px; padding-right: 5px; }
  #header .gnb-list.active .gnb-services .gnb-1depth > a { padding-left: 3px; padding-right: 3px; }
  #header .gnb-list.active .gnb-experience .gnb-1depth > a { padding-left: 5px; padding-right: 5px; }
  #header .gnb-list.active .gnb-insights .gnb-1depth > a { padding-left: 4px; padding-right: 4px; }

  #header .gnb-2depth { left: 50%; width: 17vw; transform: translateX(-50%); }

  #header .gnb-list .hover::before { left: 50%; width: 17vw; transform: translateX(-50%); }
}

/* Overlay */

.dimmed {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}
