:root {
  --navy: #212c40;
  --navy-2: #111926;
  --navy-3: #053161;
  --navy-4: #042242;
  --ink: #111926;
  --text: #666666;
  --cream: #f6f5f0;
  --gray: #f2f4f8;
  --line: #e4e7ee;
  --white: #ffffff;
  --muted: #9da5b5;
  --sans: "DM Sans", "Noto Sans SC", "Noto Sans TC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Wix Madefor Display", "Noto Sans SC", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.kicker {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
}
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
h1 { font-size: clamp(34px, 4vw, 48px); }
h2 { font-size: clamp(30px, 3.4vw, 42px); }
h3 { font-size: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: 0.2s;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #2c3a54; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--cream); }
.btn-line { border: 1px solid #fff; color: #fff; }
.btn-line:hover { background: #fff; color: var(--navy); }
.btn-line-navy { border: 1px solid var(--navy); color: var(--navy); }
.btn-line-navy:hover { background: var(--navy); color: #fff; }

/* header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: 88px;
  display: flex;
  align-items: center;
  transition: 0.25s;
}
.site-header.scrolled,
.site-header.light {
  background: #fff;
  box-shadow: 0 6px 24px rgba(17, 25, 38, 0.08);
}
.header-inner {
  width: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.site-header.scrolled .brand,
.site-header.light .brand { color: var(--navy); }
.brand-mark { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 18px;
  text-transform: uppercase;
}
.brand-name small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.75;
  margin-top: 1px;
}
.nav-desk {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-desk a {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}
.site-header.scrolled .nav-desk a,
.site-header.light .nav-desk a { color: var(--ink); }
.nav-desk a:hover, .nav-desk a.active { color: #9db0cc; }
.site-header.scrolled .nav-desk a:hover,
.site-header.scrolled .nav-desk a.active,
.site-header.light .nav-desk a:hover,
.site-header.light .nav-desk a.active { color: var(--navy); }

.lang-wrap { position: relative; }
.lang-btn {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
}
.site-header.scrolled .lang-btn,
.site-header.light .lang-btn { color: var(--navy); }
.lang-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 36px;
  background: #fff;
  min-width: 140px;
  box-shadow: 0 12px 30px rgba(17,25,38,.12);
}
.lang-panel.open { display: block; }
.lang-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 13px;
}
.lang-panel button:hover, .lang-panel button.active {
  background: var(--gray);
  color: var(--navy);
}
.nav-toggle { display: none; width: 40px; height: 40px; }
.nav-toggle span, .nav-toggle span:before, .nav-toggle span:after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle span:before, .nav-toggle span:after { content: ""; position: absolute; left: 0; }
.nav-toggle span:before { top: -6px; }
.nav-toggle span:after { top: 6px; }
.site-header .nav-toggle { color: #fff; }
.site-header.scrolled .nav-toggle,
.site-header.light .nav-toggle { color: var(--navy); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 88px 0 0;
  background: #fff;
  z-index: 39;
  padding: 28px;
  flex-direction: column;
  gap: 16px;
}
.nav-overlay.open { display: flex; }
.nav-overlay a {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* disclaimer */
.disclaimer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(17, 25, 38, 0.72);
  overflow: auto;
}
.disclaimer.show { display: block; }
.disclaimer-inner {
  width: min(760px, calc(100% - 32px));
  margin: 7vh auto;
  background: #fff;
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.disclaimer h1 { margin: 10px 0 18px; }
.disclaimer p { margin-bottom: 12px; font-size: 14.5px; }
.disc-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* hero slider */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  background: #111926 center/cover no-repeat;
  opacity: 0;
  transition: opacity 0.7s;
}
.slide.active { opacity: 1; z-index: 1; }
.slide:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,25,38,.72) 0%, rgba(17,25,38,.28) 70%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
}
.hero-kicker {
  font-family: var(--display);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  color: #c9d4e4;
  margin-bottom: 14px;
}
.hero h1 { color: #fff; max-width: 14em; margin-bottom: 16px; }
.hero p { max-width: 38em; color: #e6ebf2; margin-bottom: 28px; }
.hero-dots {
  position: absolute;
  left: 28px;
  bottom: 36px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.35);
}
.hero-dots button.active { background: #fff; }

/* sections */
.section { padding: 92px 0; }
.section-gray { background: var(--gray); }
.section-cream { background: var(--cream); }
.section-navy { background: var(--navy); color: #d7dde6; }
.section-navy h2, .section-navy .kicker { color: #fff; }
.section-head { margin-bottom: 36px; max-width: 760px; }
.section-head h2 { margin: 8px 0 14px; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc {
  background: #fff;
  box-shadow: 0 10px 30px rgba(17,25,38,.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.svc-img { height: 190px; background: #ddd center/cover no-repeat; }
.svc-body { padding: 24px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.svc h3 { margin: 6px 0 10px; }
.svc p { flex: 1; margin-bottom: 16px; }
.more {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feat {
  background: #fff;
  padding: 26px 22px;
  border-top: 3px solid var(--navy);
}
.feat b {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  color: var(--navy);
  margin-bottom: 8px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.photo {
  min-height: 420px;
  background: #ddd center/cover no-repeat;
}
.lead { font-size: 18px; color: #3d4654; margin-bottom: 14px; }

.page-hero {
  height: 360px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 42px;
  background: var(--navy-4) center/cover no-repeat;
  position: relative;
  color: #fff;
}
.page-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,34,66,.25), rgba(17,25,38,.78));
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero .kicker { color: #c9d4e4; }

.prose { max-width: 820px; }
.prose h3 { margin: 28px 0 10px; }
.prose p { margin-bottom: 14px; }
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.group { background: var(--gray); padding: 22px; }
.group h3 { margin-bottom: 10px; font-size: 20px; }
.group li { list-style: none; padding: 7px 0 7px 14px; border-top: 1px solid #e4e7ee; position: relative; }
.group li:before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--navy);
  position: absolute; left: 0; top: 14px;
}
.fund { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-card { background: var(--gray); padding: 24px; margin-bottom: 14px; }
.contact-card h3 { font-size: 16px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.form label {
  display: block;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
  margin: 14px 0 6px;
  font-weight: 700;
}
.form input, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  outline: none;
}
.form input:focus, .form textarea:focus { border-color: var(--navy); }
.form textarea { min-height: 120px; resize: vertical; }
.form-msg { margin-top: 12px; color: var(--navy); min-height: 1.4em; }

.site-footer { background: var(--navy-2); color: #9da5b5; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer h4 { color: #9da5b5; font-size: 16px; margin-bottom: 12px; }
.site-footer a:hover { color: #fff; }
.foot-copy {
  background: #000c17;
  padding: 16px 0;
  font-size: 13px;
}
.foot-copy .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.gotop {
  position: fixed; right: 18px; bottom: 18px;
  width: 44px; height: 44px;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  font-size: 10px; letter-spacing: 1px;
  z-index: 20;
}

@media (max-width: 980px) {
  .nav-desk { display: none; }
  .nav-toggle { display: grid; place-items: center; margin-left: auto; }
  .svc-grid, .feat-grid, .groups, .split, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .photo { min-height: 240px; }
  .page-hero { height: 260px; }
}
