:root {
  --ink: #111;
  --max: 1320px;
  --pad: clamp(22px, 5vw, 76px);
  --nav-height: 72px;
}

@media (min-width: 761px) {
  html:has(.nav) {
    scrollbar-gutter: stable;
  }
}

.nav,
.nav *,
.nav *::before,
.nav *::after {
  box-sizing: border-box;
}

.nav {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  overflow: visible;
  border-bottom: 0;
  color: var(--ink);
  background: transparent;
  font-family: "OpenAI Sans", "Apple SD Gothic Neo", "Noto Sans CJK KR", "Malgun Gothic", "Segoe UI", Arial, sans-serif;
  isolation: isolate;
  transition: color .32s ease, border-color .32s ease;
}

.nav::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  transform: translateY(0);
  transition: transform .38s cubic-bezier(.22, 1, .36, 1);
}

.nav-inner {
  position: relative;
  width: min(100%, var(--max));
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  display: inline-flex;
}

.brand-mark img {
  width: 90px;
  height: auto;
  display: block;
  transition: filter .35s ease;
}

.nav a {
  color: inherit;
  font-size: 13px;
  text-decoration: none;
}

.nav nav {
  position: absolute;
  left: 50%;
  width: max-content;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  column-gap: 20px;
  row-gap: 0;
  white-space: nowrap;
  transform: translateX(-50%);
}

.nav nav a {
  flex: 0 0 auto;
  color: #777;
  letter-spacing: 0;
  transition: color .2s;
}

.nav nav a:hover,
.nav nav a[aria-current="page"] {
  color: var(--ink);
}

.nav nav a[aria-current="page"] {
  font-weight: 700;
}

.nav nav a[hidden] {
  display: none !important;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-language {
  position: relative;
  width: auto;
  min-height: 40px;
}

.header-language-trigger {
  width: 100%;
  min-height: 40px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(0, 0, 0, .055);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease;
}

.header-language-trigger:hover,
.header-language-trigger:focus-visible,
.header-language.is-open .header-language-trigger {
  background: rgba(0, 0, 0, .1);
}

.header-language-trigger:focus-visible {
  outline: 2px solid rgba(0, 0, 0, .16);
  outline-offset: 2px;
}

.header-language-trigger svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.header-language-native,
.header-language-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.header-language-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 8px);
  right: 0;
  width: 146px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;
  background: rgba(247, 247, 247, .98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  backdrop-filter: blur(16px);
}

.header-language-menu[hidden] {
  display: none;
}

.header-language-menu button {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 11px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease;
}

.header-language-menu button:hover,
.header-language-menu button:focus-visible {
  background: rgba(0, 0, 0, .07);
  outline: 0;
}

.header-language-menu button[aria-selected="true"] {
  color: #fff;
  background: var(--ink);
}

.header-language-menu small {
  color: #999;
  font-size: 8px;
}

.nav .nav-cta {
  min-height: 40px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  letter-spacing: 0;
}

.nav-divider {
  width: 1px;
  height: 14px;
  margin-inline: 2px;
  background: rgba(17, 17, 17, .16);
}

.mobile-menu-toggle,
.mobile-menu-cta {
  display: none;
}

.nav.is-hero {
  color: var(--ink);
  border-bottom-color: transparent;
}

.nav.is-hero::before {
  transform: translateY(0);
}

.nav.is-hero .brand-mark img {
  filter: none;
}

.nav.is-hero nav a {
  color: #777;
}

.nav.is-hero nav a:hover,
.nav.is-hero nav a[aria-current="page"] {
  color: var(--ink);
}

.nav.is-hero .nav-cta {
  color: #fff;
  background: var(--ink);
}

@media (max-width: 760px) {
  :root {
    --nav-height: 64px;
  }

  .nav {
    height: var(--nav-height);
    overflow: visible;
  }

  .nav-inner {
    position: relative;
    z-index: 2;
  }

  .header-actions {
    margin-left: auto;
    gap: 7px;
  }

  .header-language {
    width: auto;
    min-height: 36px;
  }

  .header-language-trigger {
    min-height: 36px;
    padding-inline: 12px;
    gap: 7px;
    font-size: 13px;
  }

  .header-language-menu {
    width: 136px;
  }

  .mobile-menu-toggle {
    position: relative;
    z-index: 3;
    width: 36px;
    height: 36px;
    margin-left: 10px;
    padding: 5px;
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 6px;
    border: 0;
    border-radius: 0;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
  }

  .mobile-menu-toggle span {
    width: 26px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition: transform .25s ease, opacity .2s ease;
  }

  .mobile-menu-toggle span:nth-child(2) {
    width: 20px;
  }

  .nav.is-menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav.is-menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.is-menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav nav {
    position: fixed;
    z-index: 1;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    max-height: calc(100svh - var(--nav-height));
    padding: 22px clamp(34px, 9vw, 48px) 34px;
    display: grid;
    align-content: start;
    justify-content: stretch;
    gap: 0;
    overflow-y: auto;
    border-top: 1px solid rgba(17, 17, 17, .08);
    border-bottom: 1px solid rgba(17, 17, 17, .12);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 48px rgba(17, 17, 17, .09);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity .24s ease, transform .32s cubic-bezier(.22, 1, .36, 1), visibility .24s;
  }

  .nav.is-menu-open nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav nav a {
    min-height: 49px;
    display: flex;
    align-items: center;
    border-bottom: 0;
    color: #555;
    font-size: 17px;
    font-weight: 500;
  }

  .nav nav a[aria-current="page"] {
    color: var(--ink);
  }

  .nav-divider {
    width: 100%;
    height: 10px;
    margin: 0;
    display: block;
    background: transparent;
  }

  .primary-route-link {
    display: flex;
  }

  .mobile-menu-cta {
    min-height: 48px;
    margin-top: 18px;
    display: flex;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #fff !important;
    background: var(--ink);
  }

  .nav .nav-cta {
    display: none;
  }

  html:has(body.mobile-menu-open),
  body.mobile-menu-open {
    overflow: hidden;
  }
}

@media (max-width: 430px) {
  .nav nav {
    gap: 0;
  }

  .nav nav a {
    font-size: 16px;
  }
}
