:root {
  --blue-900: #063861;
  --blue-800: #075184;
  --blue-700: #0874b8;
  --blue-500: #0b94d9;
  --blue-100: #e9f6fd;
  --blue-050: #f5fbff;
  --ink: #142536;
  --muted: #607083;
  --line: #d9e8f2;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(6, 56, 97, 0.12);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  line-height: 1.7;
  background: var(--white);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid rgba(217, 232, 242, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
  color: var(--blue-900);
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a {
  padding: 8px 11px;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue-800);
  background: var(--blue-100);
}

.section-band {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 72px clamp(20px, 4vw, 48px) 88px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(245, 251, 255, 0.86)),
    url("assets/blueprint-pattern.svg") center / cover no-repeat,
    linear-gradient(112deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 251, 255, 0.95) 58%, rgba(233, 246, 253, 0.92) 100%);
}

.blueprint-bg {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
    linear-gradient(rgba(8, 116, 184, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 116, 184, 0.09) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 46%, rgba(11, 148, 217, 0.18) 46% 47%, transparent 47%),
    linear-gradient(45deg, transparent 0 56%, rgba(6, 56, 97, 0.12) 56% 57%, transparent 57%);
  background-size: 34px 34px, 34px 34px, 420px 420px, 360px 360px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: min(46vw, 560px);
  height: min(46vw, 560px);
  border: 44px solid rgba(11, 148, 217, 0.09);
  transform: rotate(45deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: var(--blue-900);
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 680px;
  color: #314c64;
  font-size: clamp(18px, 2.2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--blue-700);
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  color: var(--white);
  background: var(--blue-700);
}

.button.secondary {
  color: var(--blue-800);
  background: rgba(255, 255, 255, 0.68);
}

.hero-mark {
  position: relative;
  min-height: 380px;
  border-left: 12px solid var(--blue-500);
  display: grid;
  place-items: center;
}

.hero-mark::before,
.hero-mark::after {
  content: "";
  position: absolute;
  border: 3px solid rgba(8, 116, 184, 0.5);
}

.hero-mark::before {
  width: 210px;
  height: 210px;
  right: 36px;
  top: 42px;
  transform: rotate(45deg);
}

.hero-mark::after {
  width: 150px;
  height: 150px;
  right: 0;
  bottom: 38px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.hero-mark img {
  position: relative;
  z-index: 1;
  width: min(72%, 300px);
  filter: drop-shadow(0 24px 30px rgba(6, 56, 97, 0.16));
}

.section {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
  padding: 86px 0;
  scroll-margin-top: 92px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.contact-section h2 {
  margin-bottom: 12px;
  color: var(--blue-900);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
}

.section-heading p:not(.eyebrow),
.contact-section p {
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: stretch;
}

.intro-panel {
  padding: 30px;
  border-left: 6px solid var(--blue-500);
  background: var(--blue-050);
}

.intro-panel p:last-child {
  margin-bottom: 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.metric-grid div,
.experience-cards div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.metric-grid strong,
.experience-cards strong {
  display: block;
  color: var(--blue-800);
  font-size: 24px;
  line-height: 1.2;
}

.metric-grid span,
.experience-cards span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.section-blue {
  width: 100%;
  max-width: none;
  padding: 86px max(20px, calc((100vw - var(--max-width)) / 2));
  background:
    linear-gradient(135deg, rgba(6, 56, 97, 0.96), rgba(8, 116, 184, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, 36px 36px;
}

.section-blue .section-heading h2,
.section-blue .section-heading p,
.section-blue .eyebrow {
  color: var(--white);
}

.section-blue .section-heading p {
  opacity: 0.82;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.35;
}

.service-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  color: var(--white);
  font-weight: 800;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  gap: 34px;
  align-items: start;
}

.experience-copy {
  color: #334c63;
  font-size: 18px;
}

.experience-cards {
  display: grid;
  gap: 14px;
}

.section-split {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.profile-list div {
  min-height: 82px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-list div:nth-child(2n) {
  border-right: 0;
}

.profile-list dt {
  color: var(--muted);
  font-size: 14px;
}

.profile-list dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.contact-section {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto 72px;
  padding: 38px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 56, 97, 0.96), rgba(11, 148, 217, 0.9)),
    linear-gradient(45deg, transparent 0 48%, rgba(255, 255, 255, 0.16) 48% 49%, transparent 49%);
  background-size: auto, 220px 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: center;
}

.contact-section h2,
.contact-section .eyebrow,
.contact-section p {
  color: var(--white);
}

.contact-section p {
  margin-bottom: 0;
  opacity: 0.85;
}

address {
  display: grid;
  gap: 10px;
  font-style: normal;
  font-weight: 700;
}

address a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .about-grid,
  .experience-layout,
  .section-split,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    min-height: 260px;
    border-left-width: 8px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
    font-size: 15px;
  }

  .site-nav {
    gap: 2px;
    font-size: 14px;
  }

  .site-nav a {
    padding: 6px 8px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .card-grid,
  .metric-grid,
  .profile-list {
    grid-template-columns: 1fr;
  }

  .profile-list div,
  .profile-list div:nth-child(2n) {
    border-right: 0;
  }

  .service-card {
    min-height: auto;
  }

  .contact-section {
    padding: 28px 22px;
  }
}
