:root {
  --ink: #14171b;
  --muted: #68707d;
  --paper: #f7f3ec;
  --ivory: #fffaf2;
  --line: rgba(20, 23, 27, 0.14);
  --navy: #182435;
  --slate: #6f8797;
  --gold: #b8965f;
  --gold-dark: #83653b;
  --white: #ffffff;
  --shadow: 0 28px 70px rgba(20, 23, 27, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 236, 0.88);
  border-bottom: 1px solid rgba(20, 23, 27, 0.08);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}

.brand span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(184, 150, 95, 0.58);
  background: var(--navy);
  color: var(--ivory);
  font-size: 15px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #384251;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--gold-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.82fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: clamp(52px, 8vw, 96px) 0 clamp(36px, 5vw, 64px);
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  line-height: 1.14;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(32px, 4.3vw, 56px);
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.4;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 32px;
  color: #48515d;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--navy);
  color: var(--ivory);
  box-shadow: 0 14px 34px rgba(24, 36, 53, 0.22);
}

.button.secondary {
  border-color: rgba(24, 36, 53, 0.24);
  color: var(--navy);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.hero-stats div {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.hero-stats dt {
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 700;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-portrait {
  position: relative;
  margin: 0;
  align-self: stretch;
  min-height: 560px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.hero-portrait::before {
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(255, 250, 242, 0.62);
  content: "";
  pointer-events: none;
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: 54% 35%;
  filter: saturate(0.94) contrast(1.04);
}

.mobile-portrait {
  display: none;
}

.intro-band {
  background: var(--navy);
  color: var(--ivory);
  padding: clamp(42px, 7vw, 76px) 20px;
}

.intro-band p {
  width: min(980px, 100%);
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif;
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.45;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 118px) 0;
}

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

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

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

.panel {
  min-height: 310px;
  padding: 30px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, 0.68);
}

.panel-number {
  display: block;
  margin-bottom: 42px;
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.panel p,
.research-list p,
.timeline p,
.credential-columns li,
.education-items p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
}

.research-list {
  display: grid;
  gap: 16px;
}

.research-list article {
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--line);
}

.research-list article:first-child {
  border-top: 1px solid var(--line);
}

.research-list p {
  margin-bottom: 0;
}

.credentials {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.credential-columns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.credential-columns li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 18px;
}

.credential-columns li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--gold);
  content: "";
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline article {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.timeline time {
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.timeline p {
  margin-bottom: 0;
}

.education-section {
  padding-top: 0;
}

.education-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  padding: clamp(34px, 6vw, 58px);
  background: var(--navy);
  color: var(--ivory);
}

.education-card h2,
.education-card h3 {
  color: var(--ivory);
}

.education-card .eyebrow {
  color: #d4bb8f;
}

.education-items {
  display: grid;
  gap: 22px;
}

.education-items p {
  margin-bottom: 0;
  color: rgba(255, 250, 242, 0.72);
}

.contact-section {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 90px) 0;
}

.contact-section h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--gold-dark);
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 76px 20px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: var(--ivory);
    box-shadow: var(--shadow);
  }

  .nav-links a {
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .menu-open .nav-links {
    display: flex;
  }

  .hero,
  .split,
  .education-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 42px;
  }

  .hero-portrait {
    display: none;
  }

  .mobile-portrait {
    display: block;
    height: 360px;
    margin: 0 0 28px;
    overflow: hidden;
    border: 1px solid rgba(24, 36, 53, 0.16);
    box-shadow: 0 24px 52px rgba(20, 23, 27, 0.13);
  }

  .mobile-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 54% 35%;
  }

  .expertise-grid,
  .credential-columns {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: 0;
  }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .nav,
  .hero,
  .section,
  .contact-section,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .brand {
    font-size: 16px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

  .mobile-portrait {
    height: 330px;
  }

  .hero-portrait::before {
    inset: 12px;
  }

  .panel,
  .education-card {
    padding: 24px;
  }

  .footer {
    flex-direction: column;
  }
}
