*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li {
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

/* Header — sourced from the original Hwacheon navigation. */
.site-header,
.site-all-menu {
  --header-primary: #23483D;
}

.site-header ul,
.site-all-menu ul {
  list-style: none;
}

.site-header a,
.site-all-menu a {
  color: inherit;
  text-decoration: none;
}

.site-header button,
.site-all-menu button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(80px, 5.208vw, 100px);
  color: #0d1015;
  background: #fff;
  border-bottom: 1px solid #e4e6e8;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.site-header.is-scroll-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.site-header.is-scroll-hidden + .site-header-dim {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}

.site-header.transparent:not(:hover):not(.scrolled) {
  color: #fff;
  background: transparent;
  border-bottom: 0;
}

.site-header.transparent:not(:hover):not(.scrolled) .site-logo,
.site-header.transparent:not(:hover):not(.scrolled) .site-util__search a {
  filter: brightness(0) invert(1);
}

.site-header.transparent:not(:hover):not(.scrolled) .site-menu-button span {
  background: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1720px;
  height: 100%;
  margin: 0 auto;
}

.site-logo {
  flex-shrink: 0;
  width: clamp(160px, 11.979vw, 230px);
}

.site-logo a,
.site-logo img {
  display: block;
  width: 100%;
}

.site-gnb,
.site-gnb > ul,
.site-gnb__item {
  height: 100%;
}

.site-gnb > ul {
  display: flex;
  align-items: center;
}

.site-gnb__item {
  position: static;
}

.site-gnb__item > a {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 30px;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.site-gnb__item > a::after {
  position: absolute;
  bottom: -1px;
  left: 30px;
  width: 0;
  height: 2px;
  content: "";
  background: #111;
  transition: 0.3s;
}

.site-gnb__item:hover > a::after,
.site-gnb__item:focus-within > a::after {
  width: calc(100% - 60px);
}

.site-util {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-util__search {
  position: relative;
  width: 24px;
  aspect-ratio: 1;
  margin-right: 20px;
}

.site-util__search::before {
  position: absolute;
  top: 50%;
  right: -8px;
  width: 1px;
  height: 12px;
  content: "";
  background: #e4e6e8;
  transform: translateY(-50%);
}

.site-util__search a {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: url("./public/assets/images/icon-search.svg") no-repeat center / 18px;
}

.site-menu-button {
  position: relative;
  width: clamp(30px, 2.083vw, 40px);
  height: 22px;
  margin-left: clamp(20px, 2.083vw, 40px);
  border: 0;
  background: none;
  cursor: pointer;
}

.site-menu-button span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #111;
}

.site-menu-button span:first-child { top: 5px; }
.site-menu-button span:last-child { bottom: 5px; }

.site-mega {
  position: absolute;
  z-index: 99;
  top: clamp(80px, 5.208vw, 100px);
  left: 0;
  display: grid;
  grid-template-columns: 23% auto 18% 46%;
  width: 100%;
  min-height: 360px;
  padding: 0 5%;
  visibility: hidden;
  opacity: 0;
  border-bottom: 1px solid #e4e6e8;
  color: #0d1015;
  background: #fff;
}

.site-mega a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 500;
}

.site-mega__title {
  padding-top: 40px;
  font-size: 40px;
}

.site-mega__title h2 { font-weight: 600; }

.site-mega__depth1,
.site-mega__depth2 {
  min-width: 260px;
  padding: 40px 30px;
  border-left: 1px solid #ddd;
}

.site-mega__depth1 li.active a {
  color: var(--header-primary);
  background: #f5f6f7;
}

.site-mega__depth1 a::after {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  content: "";
  border-top: 1.5px solid #111;
  border-right: 1.5px solid #111;
  transform: rotate(45deg);
}

.site-mega__depth2 a {
  color: #444;
  font-weight: 450;
}

.site-depth-panel {
  display: none;
  flex-direction: column;
}

.site-depth-panel.active { display: flex; }

.site-mega__image {
  max-width: 580px;
  margin: 40px 0 40px auto;
  overflow: hidden;
  aspect-ratio: 580 / 332;
  border-radius: 12px;
}

.site-mega__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-gnb__item:hover .site-mega,
.site-gnb__item:focus-within .site-mega {
  visibility: visible;
  opacity: 1;
}

.site-header-dim {
  position: fixed;
  z-index: 98;
  top: clamp(80px, 5.208vw, 100px);
  left: 0;
  width: 100%;
  height: calc(100vh - 100px);
  visibility: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(30px);
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.site-header:not(.is-scroll-hidden):has(.has-mega:hover) + .site-header-dim,
.site-header:not(.is-scroll-hidden):has(.has-mega:focus-within) + .site-header-dim {
  visibility: visible;
  opacity: 1;
}

.site-all-menu {
  position: fixed;
  z-index: 999;
  inset: 0;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  color: #0d1015;
  background: #fff;
  transition: 0.4s;
}

.site-all-menu.active {
  visibility: visible;
  opacity: 1;
}

.site-all-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  height: clamp(80px, 5.208vw, 100px);
  margin: 0 auto;
}

.site-all-menu__close {
  position: relative;
  width: clamp(30px, 2.083vw, 40px);
  height: clamp(30px, 2.083vw, 40px);
  border: 0;
  background: none;
  cursor: pointer;
}

.site-all-menu__close::before,
.site-all-menu__close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(30px, 2.083vw, 40px);
  height: 2px;
  content: "";
  background: #111;
  transform-origin: center;
}

.site-all-menu__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.site-all-menu__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.site-all-gnb {
  width: 90%;
  margin: 50px auto clamp(80px, 5.208vw, 100px);
}

.site-all-item {
  display: flex;
}

.site-all-item + .site-all-item {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid #e4e6e8;
}

.site-all-item > a {
  display: block;
  width: 30%;
  font-size: clamp(30px, 2.083vw, 40px);
  font-weight: 550;
  line-height: 1;
}

.site-all-depth {
  display: block;
  flex: 1;
}

.site-all-depth1 > ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.site-all-depth1 > ul > li > a {
  display: block;
  font-size: 20px;
  font-weight: 600;
}

.site-all-panel {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.site-all-panel a {
  display: block;
  padding: 5px 0;
  color: #777;
  font-size: 18px;
  font-weight: 450;
}

.site-all-panel a:hover { color: var(--header-primary); }

body {
  color: #0d1015;
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system,
    BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI",
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.03em;
}

.visual-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.visual-section .visual-image,
.visual-section .visual-video,
.visual-section video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-dim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(29, 45, 39, 0.65), rgba(29, 45, 39, 0.02));
}

.visual-inner {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 1720px;
  height: 100%;
  margin: 0 auto;
}

.visual-copy {
  position: absolute;
  bottom: clamp(60px, 6.25vw, 120px);
  left: 0;
  width: 100%;
  padding-right: clamp(20px, 10.938vw, 210px);
  color: #fff;
}

.visual-copy h2 {
  font-size: clamp(40px, 4.167vw, 60px);
  font-weight: 400;
  line-height: 1.1;
}

.visual-copy p {
  margin-top: clamp(20px, 2.083vw, 40px);
  white-space: pre-line;
  font-size: clamp(16px, 1.354vw, 26px);
}

[data-motion] {
  visibility: hidden;
  opacity: 0;
  transform: translateY(60px);
}

@media (max-width: 1720px) {
  .site-mega__image { display: none; }
}

@media (min-width: 1201px) and (max-width: 1650px) {
  .site-logo { width: clamp(138px, 10.417vw, 168px); }

  .site-gnb__item > a {
    padding-right: clamp(11px, 1.042vw, 17px);
    padding-left: clamp(11px, 1.042vw, 17px);
    font-size: clamp(14px, 1.042vw, 17px);
  }

  .site-gnb__item > a::after {
    left: clamp(11px, 1.042vw, 17px);
  }

  .site-gnb__item:hover > a::after,
  .site-gnb__item:focus-within > a::after {
    width: calc(100% - clamp(22px, 2.084vw, 34px));
  }

  .site-util__search { margin-right: 14px; }
  .site-menu-button { margin-left: 18px; }
}

@media (max-width: 1200px) {
  .site-gnb { display: none; }

  .site-all-gnb { margin: 50px auto; }

  .site-all-item { flex-direction: column; }

  .site-all-item + .site-all-item {
    margin-top: 0;
    padding-top: 0;
    border: 0;
  }

  .site-all-item > a {
    position: relative;
    width: 100%;
    padding: 22px 0;
    font-size: 22px;
  }

  .site-all-item.has-child > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .site-all-item.has-child > a::after,
  .site-all-depth1 > ul > li.has-child > a::after {
    width: 6px;
    aspect-ratio: 1;
    content: "";
    border-right: 2px solid #111;
    border-bottom: 2px solid #111;
    transform: rotate(45deg);
  }

  .site-all-item.active > a::after,
  .site-all-depth1 > ul > li.active > a::after {
    transform: rotate(225deg);
  }

  .site-all-depth { display: none; }
  .site-all-item.active .site-all-depth { display: block; }

  .site-all-depth1 > ul {
    display: block;
    padding: 0 10px 24px;
  }

  .site-all-depth1 > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: #777;
    font-size: 18px;
    font-weight: 500;
  }

  .site-all-panel {
    display: none;
    margin: 8px 0;
    padding: 15px 5px;
    border-top: 1px solid #ddd;
  }

  .site-all-depth1 > ul > li.active > .site-all-panel { display: flex; }

  .site-all-panel a {
    padding: 8px;
    font-size: 17px;
  }
}

@media (max-width: 520px) {
  .site-header__inner,
  .site-all-menu__head,
  .site-all-gnb { width: calc(100% - 40px); }

  .site-logo { width: 160px; }

  .site-util__search { margin-right: 16px; }

  .site-menu-button { margin-left: 16px; }
}
