:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-soft: #edf3f1;
  --ink: #19201f;
  --muted: #5c6662;
  --line: #d9ded8;
  --accent: #176b66;
  --accent-strong: #0f4f4b;
  --coral: #c9664b;
  --gold: #b4892f;
  --shadow: 0 24px 70px rgba(30, 41, 37, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 222, 216, 0.8);
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  background: var(--surface);
}

.nav-links {
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 12px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface-soft);
  color: var(--accent-strong);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: center;
  gap: clamp(36px, 6vw, 76px);
  min-height: calc(100vh - 73px);
  padding-top: 48px;
}

.eyebrow,
.section-kicker,
.work-card span {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.45rem, 4.7vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.hero-text {
  max-width: 700px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(23, 107, 102, 0.18);
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--accent-strong);
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 38px 0 0;
}

.quick-facts div {
  min-height: 106px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
}

.quick-facts dt {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.quick-facts dd {
  margin: 6px 0 0;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.45;
}

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  /* background: var(--surface-soft);
  box-shadow: var(--shadow); */
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: inherit;
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  padding: 34px;
  object-fit: contain;
  object-position: center;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 6vw, 80px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 32px;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 28px;
  max-width: none;
}

.section-heading.split p:last-child {
  margin-bottom: 24px;
  color: var(--muted);
}

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

.expertise-card,
.impact-list>div,
.work-card,
.cert-grid figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.expertise-card {
  min-height: 280px;
  padding: 26px;
}

.card-marker {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--accent);
  font-weight: 900;
}

.expertise-card p,
.impact-list p,
.work-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.impact {
  width: 100%;
  max-width: none;
  background: var(--accent-strong);
  color: #fff;
}

.impact>* {
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.impact .section-kicker {
  color: #f0c46b;
}

.impact-list>div {
  min-height: 190px;
  padding: 24px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.impact-list p {
  color: rgba(255, 255, 255, 0.78);
}

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

.work-card {
  overflow: hidden;
  min-height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(23, 107, 102, 0.42);
  box-shadow: var(--shadow);
}

.work-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-soft);
}

.work-card>div {
  padding: 20px;
}

.feature-work {
  grid-column: span 2;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.cert-grid figure {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 160px;
  margin: 0;
  padding: 16px;
  text-align: center;
}

.cert-grid img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.cert-grid figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.35;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  border-top: 1px solid var(--line);
}

.contact h2 {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--accent-strong);
  font-weight: 800;
}

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

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .intro,
  .section-heading.split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    min-height: 420px;
  }

  .quick-facts,
  .expertise-grid,
  .impact-list,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .feature-work {
    grid-column: auto;
  }

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

@media (max-width: 560px) {
  .section {
    width: min(100% - 28px, 1120px);
    padding: 58px 0;
  }

  .site-header {
    padding: 14px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-media {
    min-height: 340px;
  }

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

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px 14px;
  }
}