:root {
  --surface: #faf9f9;
  --surface-low: #f2f4f7;
  --surface-high: #e3e2e2;
  --white: #fff;
  --ink: #1b1c1c;
  --ink-soft: #4b4e55;
  --primary: #475c82;
  --primary-dark: #2d3e5e;
  --primary-light: #d7e3ff;
  --service: #f99d25;
  --service-dark: #8a5100;
  --line: #d7d9df;
  --success: #177245;
  --container: 1280px;
  --radius: 4px;
  --radius-lg: 8px;
  --header-height: 100px;
  --shadow-card: 0 12px 38px rgba(45, 62, 94, .07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--service);
  outline-offset: 3px;
}

.site-container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.section {
  /* padding-block: clamp(72px, 8vw, 112px); */
    padding-block: 3rem
}

.section--compact {
  padding-block: clamp(56px, 7vw, 88px);
}

.section--silver {
  background: var(--surface-low);
}

.section--navy {
  color: var(--white);
  background: var(--primary-dark);
}

.section--navy .lead {
  color: #d7ddeb;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--white);
  background: var(--primary-dark);
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--primary);
  font: 600 12px/1.35 "IBM Plex Sans", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

.display-title,
.section-title {
  margin: 0;
  font-family: "Hanken Grotesk", "Noto Sans TC", sans-serif;
  font-weight: 700;
  letter-spacing: -.035em;
}

.display-title {
  max-width: 920px;
  /* font-size: clamp(2.7rem, 6vw, 5.6rem); */
      font-size: clamp(2.35rem, 4.4vw, 4.5rem);
  line-height: 1.06;
}

.display-title em {
  color: var(--service);
  font-style: normal;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3.5rem);
  line-height: 1.18;
}

.lead,
.page-intro {
  max-width: 690px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  border-bottom: 1px solid rgba(215, 217, 223, .88);
  background: rgba(250, 249, 249, .95);
  backdrop-filter: blur(16px);

  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 100%;
  }

  .site-nav {
    justify-self: center;
  }

  .site-nav ul {
    display: flex;
    gap: clamp(12px, 1.2vw, 20px);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-nav a {
    position: relative;
    display: block;
    padding-block: 25px;
    font-weight: 600;
  }

  .site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 17px;
    left: 0;
    height: 2px;
    background: var(--service);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
  }

  .site-nav a:hover::after,
  .site-nav a.active::after {
    transform: scaleX(1);
  }

  .nav-dropdown { position: relative; }
  .nav-dropdown-trigger { display: flex; align-items: center; }
  .nav-dropdown-toggle { display: grid; width: 24px; height: 40px; margin-left: -3px; padding: 0; place-items: center; border: 0; background: transparent; color: currentColor; cursor: pointer; }
  .nav-dropdown-toggle i { font-size: 10px; transition: transform .2s ease; }
  .site-nav .nav-dropdown-menu { position: absolute; top: calc(100% - 10px); left: 50%; display: grid; min-width: 210px; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 16px 36px rgba(21, 30, 43, .14); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; }
  .nav-dropdown-menu a { padding: 11px 14px; border-radius: 7px; white-space: nowrap; font-size: 15px; }
  .nav-dropdown-menu a::after { display: none; }
  .nav-dropdown-menu a:hover,
  .nav-dropdown-menu a:focus-visible { background: rgba(20, 93, 139, .08); color: var(--service); }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav-dropdown:hover .nav-dropdown-toggle i,
  .nav-dropdown:focus-within .nav-dropdown-toggle i,
  .nav-dropdown.is-open .nav-dropdown-toggle i { transform: rotate(180deg); }

  .header-action {
    display: flex;
    align-items: center;
    gap: 14px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--primary-dark);
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 19px;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size:24px;
  letter-spacing: .08em;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--ink-soft);
  font: 600 8px/1 "IBM Plex Sans", sans-serif;
  letter-spacing: .12em;
}

.service-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-weight: 600;
}

.service-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(23, 114, 69, .11);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: .2s;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}

.btn-sm {
  min-height: 42px;
  padding: 9px 16px;
}

.btn-primary {
  color: var(--white);
  background: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(45, 62, 94, .18);
}

.btn-service {
  color: #261500;
  background: var(--service);
}

.btn-service:hover {
  background: #ffad45;
  box-shadow: 0 8px 24px rgba(249, 157, 37, .22);
}

.btn-outline {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
  background: transparent;
}

.btn-outline:hover {
  color: var(--white);
  background: var(--primary-dark);
}

.btn-light {
  color: var(--primary-dark);
  background: var(--white);
}

.btn-glass {
  color: var(--white);
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, .16);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--primary);
  font-weight: 700;
}

.text-link:hover {
  color: var(--service-dark);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(76px, 10vw, 144px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(71, 92, 130, .075) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(rgba(71, 92, 130, .075) 1px, transparent 1px) 0 0 / 80px 80px,
    var(--surface-low);
}

.page-hero::after {
  position: absolute;
  top: -40%;
  right: -5%;
  width: min(50vw, 680px);
  aspect-ratio: 1;
  border: 1px solid rgba(71, 92, 130, .17);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 70px rgba(71, 92, 130, .025);
}

.page-hero .site-container {
  position: relative;
  z-index: 1;
}

.page-hero .page-intro {
  margin: 28px 0 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 13px;
}

.breadcrumb [aria-current="page"] {
  color: var(--primary);
}

.contact-band {
  padding-block: clamp(64px, 8vw, 104px);
  color: var(--white);
  background: var(--primary-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: end;
}

.contact-band .eyebrow {
  color: #ffba68;
}

.contact-band h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4.7vw, 4.8rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.contact-band p {
  max-width: 580px;
  margin: 0 0 24px;
  color: #d7ddeb;
  font-size: 18px;
}

.contact-band small {
  display: block;
  margin-top: 18px;
  color: #b6c0d4;
}

.site-footer {
  padding-top: 72px;
  color: #cfd5df;
  background: #192238;

  .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .7fr 1fr;
    gap: 64px;
    padding-bottom: 56px;
  }

  .footer-brand {
    max-width: 430px;
  }

  .footer-brand .brand {
    margin-bottom: 22px;
    color: var(--white);
  }

  .footer-brand .brand-mark {
    background: var(--service);
    color: #261500;
  }

  .footer-brand .brand-copy small {
    color: #aeb9cb;
  }

  .footer-brand p {
    color: #aeb9cb;
  }

  .footer-title {
    margin: 0 0 20px;
    color: var(--white);
    font: 600 12px/1.3 "IBM Plex Sans", sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .footer-links {
    display: grid;
    gap: 10px;
  }

  .footer-links a:hover {
    color: var(--white);
  }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding-block: 20px;
    border-top: 1px solid #34415a;
    color: #94a0b5;
    font-size: 12px;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .site-header {
    .header-inner {
      grid-template-columns: 1fr auto;
    }

    .site-nav {
      position: fixed;
      inset: var(--header-height) 0 auto;
      display: none;
      padding: 16px 24px 28px;
      border-bottom: 1px solid var(--line);
      background: var(--surface);
    }

    .site-nav.is-open {
      display: block;
      width: 100%;
    }

    .site-nav ul {
      display: grid;
      gap: 0;
    }

    .site-nav a {
      padding: 15px 6px;
      font-size: 17px;
    }

    .site-nav a::after {
      bottom: 7px;
    }

    .nav-dropdown-trigger > a { flex: 1; }
    .nav-dropdown-toggle { width: 48px; height: 52px; margin-left: 0; }
    .site-nav .nav-dropdown-menu { position: static; display: none; min-width: 0; margin: 0 0 8px 14px; padding: 2px 0 4px 14px; border: 0; border-left: 2px solid var(--service); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
    .site-nav .nav-dropdown.is-open .nav-dropdown-menu { display: grid; transform: none; }
    .nav-dropdown-menu a { padding: 11px 12px; font-size: 15px; }

    .service-status,
    .header-action .btn {
      display: none;
    }
  }

  .menu-toggle {
    display: block;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 70px;
  }

  .site-container {
    width: min(calc(100% - 32px), var(--container));
  }

  .display-title {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .site-footer .footer-brand {
    grid-column: auto;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}