:root {
  --ink: #202124;
  --muted: #6f747b;
  --line: #d9dde2;
  --paper: #f4f5f6;
  --white: #ffffff;
  --sage: #3f444b;
  --clay: #747b84;
  --brass: #a78f65;
  --panel: #2d3137;
  --shadow: 0 22px 55px rgba(24, 27, 31, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Noto Sans TC", system-ui, sans-serif;
  line-height: 1.7;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(244, 245, 246, 0.92);
  box-shadow: 0 12px 32px rgba(24, 27, 31, 0.08);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.brand-name {
  font-size: 15px;
}

.site-nav {
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 132px clamp(22px, 7vw, 96px) 80px;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(20, 22, 25, 0.78), rgba(37, 40, 45, 0.43) 48%, rgba(37, 40, 45, 0.08)),
    linear-gradient(180deg, rgba(20, 22, 25, 0.18), rgba(20, 22, 25, 0.52));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(690px, 100%);
}

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

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
}

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

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.section {
  padding: 96px clamp(22px, 7vw, 96px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) 1.18fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  margin-bottom: 48px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) 1.18fr;
  gap: clamp(32px, 6vw, 80px);
  background: var(--white);
}

.intro .section-heading {
  display: block;
  margin-bottom: 0;
}

.profile-photo {
  position: relative;
  width: min(280px, 100%);
  aspect-ratio: 4 / 5;
  margin: 36px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32, 33, 36, 0.06), rgba(32, 33, 36, 0.02)),
    var(--paper);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile-photo span {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.profile-photo.is-empty span {
  display: grid;
}

.intro-copy {
  max-width: 730px;
  color: var(--muted);
  font-size: 18px;
}

.credentials {
  display: grid;
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
}

.credentials div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding: 18px 0;
  background: var(--white);
}

.credentials span {
  color: var(--clay);
  font-size: 14px;
  font-weight: 700;
}

.credentials ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.1em;
}

.credentials li {
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

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

.service-card {
  min-height: 265px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(24, 27, 31, 0.06);
}

.service-card p,
.work-item h3,
.method-list span {
  color: var(--muted);
}

.card-number {
  display: inline-block;
  margin-bottom: 64px;
  color: var(--clay);
  font-weight: 700;
}

.method {
  padding-top: 0;
}

.method-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  padding: clamp(32px, 6vw, 64px);
  border-radius: 8px;
  color: var(--white);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.method-list {
  display: grid;
  gap: 22px;
}

.method-list div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.method-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.method-list strong {
  color: var(--brass);
}

.method-list span {
  color: rgba(255, 255, 255, 0.78);
}

.work-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.work-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 28px 0;
  background: var(--paper);
}

.work-item span {
  color: var(--clay);
  font-weight: 700;
}

.work-item h3 {
  margin-bottom: 0;
  font-size: clamp(20px, 3vw, 31px);
}

.contact {
  padding: 108px clamp(22px, 7vw, 96px);
  color: var(--white);
  background: #343941;
}

.contact-inner {
  width: min(840px, 100%);
}

.contact h2,
.contact p {
  margin-bottom: 30px;
}

.contact p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.contact .button.primary {
  color: var(--ink);
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 36px 0 24px;
  background: rgba(255, 255, 255, 0.22);
}

.contact-item {
  display: grid;
  gap: 4px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 160ms ease;
}

a.contact-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.contact-item span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  font-weight: 700;
}

.contact-item strong {
  overflow-wrap: anywhere;
  color: var(--white);
  font-size: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(22px, 7vw, 96px);
  color: var(--muted);
  background: var(--white);
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header {
    padding: 16px 20px;
  }

  .menu-button {
    position: relative;
    z-index: 2;
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 74px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

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

  .hero {
    min-height: 91vh;
    padding: 118px 22px 62px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(20, 22, 25, 0.82), rgba(20, 22, 25, 0.42));
  }

  .hero-copy {
    font-size: 16px;
  }

  .section,
  .contact {
    padding: 68px 22px;
  }

  .intro,
  .section-heading,
  .method-panel,
  .work-item,
  .credentials div,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

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

  .card-number {
    margin-bottom: 34px;
  }

  .method-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

@media (max-width: 430px) {
  .brand-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  h1 {
    font-size: 40px;
  }

  .button {
    width: 100%;
  }
}
