:root {
  --ink: #1d2a43;
  --muted: #7d8ca3;
  --light: #edf2f5;
  --line: #d8e1e8;
  --cyan: #1cb9ea;
  --navy: #041438;
  --space-1: clamp(.5rem, .45rem + .2vw, .75rem);
  --space-2: clamp(.75rem, .6rem + .4vw, 1.25rem);
  --space-3: clamp(1rem, .8rem + .8vw, 2rem);
  --space-4: clamp(1.5rem, 1.1rem + 1.4vw, 3.5rem);
}

@font-face {
  font-family: "SabonLTPro";
  src: 
    url("../font/SabonLTPro-Roman.woff2") format("woff2"),
    url("../font/SabonLTPro-Roman.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "FoundersGrotesk";
  src: 
    url("../font/FoundersGroteskText.woff2") format("woff2"),
    url("../font/FoundersGroteskText.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100vw;
}

body {
  font-family:"SabonLTPro", "Times New Roman", serif;
  color: var(--ink);
  background: #f3f6f8;
}

h1, h2, h3, h4, h5, h6{ 
  font-family: "SabonLTPro", "Times New Roman", serif;
}

p{
  font-family: "FoundersGrotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

main{
  /* overflow-x: hidden; */
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 80vw;
  margin: 0 auto;
}

.section {
  padding: clamp(2.25rem, 1.8rem + 1.6vw, 3.375rem) 0;
}

.carousel-arrow {
  --carousel-arrow-size: 2.75rem;
  display: inline-grid;
  place-items: center;
  width: var(--carousel-arrow-size);
  height: var(--carousel-arrow-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.carousel-arrow::before {
  content: "";
  width: 100%;
  height: 100%;
  background: var(--carousel-arrow-icon-url) center/contain no-repeat;
}

.carousel-arrow.prev {
  --carousel-arrow-icon-url: url("./icon-left.png");
}

.carousel-arrow.next {
  --carousel-arrow-icon-url: url("./icon-right.png");
}

.carousel-arrow.swiper-button-disabled {
  opacity: .45;
  cursor: default;
  pointer-events: none;
  transform: none;
}

.menu-label,
.footer small,
.footer a {
  font-family: "FoundersGrotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin: 0;
  height: clamp(4.25rem, 3.9rem + .9vw, 5.375rem);
  padding: 0 clamp(1rem, .2rem + 3.2vw, 3.5rem);
  transition: background-color .28s ease;
}

.topbar.scrolled {
  background-color: #1d2a43;
}

.logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
  color: #fff;
}

.logo img {
  display: block;
  width: auto;
  height: clamp(1rem, .75rem + .9vw, 1.5rem);
}

.menu-toggle {
  display: flex;
  align-items: center;
  height: 100%;
  gap: .625rem;
  color: #d9e7ff;
  border: 0;
  background: transparent;
}

.menu-label {
  font-size: .75rem;
  letter-spacing: .0625rem;
}

.menu-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  background-image: url("./MENU.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.menu-icon i {
  display: none;
}

body.menu-open .menu-icon {
  background-image: url("./MENU-close.png");
}

body.menu-open .menu-icon i {
  opacity: 0;
}

.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(52vw, 61.25rem);
  min-width: 35rem;
  background: linear-gradient(180deg, rgba(160, 183, 214, .22), rgba(28, 42, 72, .35));
  backdrop-filter: blur(14px);
  border-left: 1px solid rgba(255, 255, 255, .18);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-overlay-inner {
  height: 100%;
  display: block;
}

.overlay-left,
.overlay-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overlay-left {
  display: none;
}

.overlay-right {
  align-items: flex-end;
  padding: 6vw 3vw;
  height: 100vh;
  justify-content: flex-end;
}

.overlay-right > a {
  color: #f6f8ff;
  font-size: clamp(1.75rem, 3.2vw, 4rem);
  line-height: 1.5;
  letter-spacing: .025rem;
}

.overlay-right > a:hover {
  color: #00b7ff;
}

.overlay-links {
  margin-top: 3.25rem;
  text-align: right;
}

.overlay-links a {
  display: block;
  color: #aebad0;
  font-size: 1rem;
  line-height: 1.45;
}

.footer {
  background: url("./footer-bg.png") center/cover no-repeat;
  color: #d8e6fb;
  padding: 4rem 0 0;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 3.25rem;
}

.footer .logo {
  margin-bottom: .625rem;
  height: auto;
}

.footer .logo img {
  height: clamp(1.25rem, 1rem + .9vw, 1.8125rem);
}

.footer p {
  margin-top: .5rem;
  margin-bottom: 0;
  color: rgba(218, 228, 243, .6);
  line-height: 1.1;
}

.footer small {
  color: #fff;
}

.footer a {
  display: block;
  width: fit-content;
  color: rgba(230, 237, 247, .95);
  line-height: 1.2;
  margin: .5rem 0 0;
  border-bottom: 2px solid transparent;
  transition: color .22s ease, border-color .22s ease;
}

.nav-col p,
.info-col p {
  margin-bottom: .875rem;
}

.nav-col a.active::before {
  content: "•";
  color: #0ebdff;
  margin-right: .375rem;
}

.nav-col a:hover {
  color: #eef5ff;
  border-bottom-color: #0ebdff;
}

.info-col a {
  color: rgba(218, 228, 243, .7);
  border-bottom: 0;
}

.info-col a:hover {
  color: #0ebdff;
}

.brand-col p {
  color: #eef4fb;
  margin-top: 1.25rem;
}

.brand-col small {
  display: block;
  margin-top: .75rem;
  color: #e3ebf8;
}

.footer-legal {
  background: #737f90;
  color: #e6ebf2;
  font-size: .6875rem;
  line-height: 1.5;
  padding: 2rem 1.125rem;
}

@media (max-width: 1280px) {
  .footer a {
    font-size: clamp(1.25rem, 1.05rem + .6vw, 1.625rem);
  }

  .footer p {
    font-size: clamp(.9375rem, .85rem + .3vw, 1.125rem);
  }

  .brand-col p {
    font-size: clamp(1.875rem, 1.55rem + .6vw, 2.25rem);
  }

  .brand-col small {
    font-size: clamp(1rem, .9rem + .2vw, 1.125rem);
  }
}

@media (max-width: 768px) {
  .container {
    width: 100%;
  }

  .topbar {
    padding: 0 18px;
    height: 70px;
  }

  .logo {
    letter-spacing: 0;
  }

  .menu-label {
    font-size: 12px;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }

  .nav-col,
  .info-col {
    margin-left: 10rem;
  }

  .brand-col {
    padding-left: 1rem;
  }

  .footer {
    padding: 4rem 0 8rem;
    background-image: url("./footer-m-bg.png");
    position: relative;
  }

  .footer .logo {
    letter-spacing: 0;
  }

  .footer .logo img {
    height: 24px;
  }

  .footer p {
    font-size: 12px;
  }

  .footer a {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 2px;
    border-bottom-width: 1px;
  }

  .nav-col p,
  .info-col p {
    margin-bottom: 6px;
  }

  .nav-col a.active::before {
    margin-right: 4px;
  }

  .brand-col p {
    font-size: 18px;
    margin-top: 10px;
  }

  .brand-col small {
    margin-top: 6px;
    font-size: 12px;
  }

  .footer-legal {
    margin-top: 8px;
    font-size: 12px;
    padding: 2rem 1rem;
    left: 0;
    right: 0;
    overflow: hidden;
    position: absolute;
    bottom: 0;
  }

  .menu-overlay {
    left: 0;
    width: 100vw;
    min-width: 0;
    height: 100dvh;
    border-left: 0;
    backdrop-filter: blur(10px);
  }

  .overlay-right {
    align-items: center;
    text-align: center;
    /* margin-top: 50%; */
    transform: translateY(-10%);
  }

  .overlay-right > a {
    font-size: 1.8rem;
    line-height: 1.8;
  }

  .overlay-links {
    margin-top: 4rem;
    text-align: center;
  }

  .overlay-links a {
    font-size: 12px;
    line-height: 1.6;
  }
}
