:root {
  --navy: #091525;
  --blue: #142742;
  --ink: #172033;
  --muted: #667085;
  --line: #d9dee8;
  --paper: #f4f1ea;
  --white: #fff;
  --gold: #b99052;
  --wine: #8d2634;
  --teal: #2c6f73;
  --shadow: 0 22px 70px rgba(9, 21, 37, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: 0;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 78px;
  padding: 12px clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--blue);
  background: rgba(249, 247, 242, .96);
  border-bottom: 1px solid rgba(185,144,82,.28);
  box-shadow: 0 14px 34px rgba(9, 21, 37, .08);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.brand img {
  width: clamp(210px, 24vw, 310px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(9,21,37,.14));
}
.brand strong { display: none; }
.brand small { display: block; color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.site-nav { display: flex; align-items: center; gap: 24px; color: rgba(20,39,66,.78); font-size: 15px; font-weight: 900; }
.site-nav a:hover { color: var(--gold); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(20,39,66,.25); border-radius: 4px; background: rgba(255,255,255,.52); color: var(--blue); }
.nav-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; }

.hero {
  position: relative;
  min-height: 560px;
  height: min(760px, calc(100vh - 78px));
  overflow: hidden;
  display: grid;
  align-items: center;
  color: var(--white);
  background: var(--navy);
}
.hero__image, .hero__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__image {
  object-fit: cover;
  object-position: 50% center;
  filter: brightness(1.08) contrast(1.03) saturate(1.02);
  transform: scale(1.006);
}
.hero__overlay {
  background:
    linear-gradient(90deg, rgba(7,20,37,.88) 0%, rgba(7,20,37,.72) 27%, rgba(7,20,37,.28) 43%, rgba(7,20,37,.06) 58%, rgba(7,20,37,.02) 100%),
    linear-gradient(0deg, rgba(7,20,37,.46) 0%, rgba(7,20,37,.12) 42%, rgba(255,244,218,.03) 100%);
}
.hero__content {
  position: relative;
  width: min(1120px, calc(100% - 54px));
  margin: 0 auto;
  padding: 76px 0 112px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1, .section h2, .profile h1 { font-family: "Noto Serif TC", serif; letter-spacing: 0; }
.hero h1 { margin: 0; font-size: clamp(48px, 7vw, 86px); line-height: 1.08; font-weight: 900; }
.hero h1,
.hero p:not(.eyebrow),
.hero .eyebrow {
  text-shadow: 0 10px 28px rgba(0,0,0,.38);
}
.hero p:not(.eyebrow) { max-width: 590px; margin: 22px 0 32px; color: rgba(255,255,255,.94); font-size: clamp(18px, 1.8vw, 22px); line-height: 1.9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--wine); color: var(--white); }
.button--primary:hover { background: #75202c; }
.button--outline { border-color: rgba(255,255,255,.48); color: var(--white); }
.button--outline:hover { border-color: var(--gold); background: rgba(185,144,82,.14); }
.hero__info {
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero__info span { padding: 10px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 4px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.82); }

.section { padding: 88px clamp(18px, 5vw, 72px); scroll-margin-top: 88px; }
.section-heading { max-width: 820px; margin-bottom: 34px; }
.section-heading--split { max-width: none; display: grid; grid-template-columns: minmax(280px, .8fr) minmax(320px, 1fr); gap: 36px; align-items: end; }
.section h2, .profile h1 { margin: 0; color: var(--blue); font-size: clamp(32px, 4vw, 50px); line-height: 1.22; }
.section-heading p:not(.eyebrow), .about-copy, .principles span, .practice-grid p, .team-card span, .consultation-section p, .contact-card dd, .profile p, .profile li { color: var(--muted); line-height: 1.9; }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr); gap: 40px; }
.about-copy { font-size: 18px; }
.about-copy p:first-child { margin-top: 0; }
.principles { display: grid; gap: 14px; }
.principles article { display: grid; gap: 6px; padding: 22px; background: var(--white); border-left: 4px solid var(--gold); box-shadow: var(--shadow); }
.principles strong { color: var(--blue); font: 900 24px/1.2 "Noto Serif TC", serif; }

.practice-section { background: var(--white); }
.practice-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.practice-grid article { min-height: 230px; padding: 26px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.practice-grid span { color: var(--gold); font-weight: 900; }
.practice-card__top { display: flex; align-items: center; gap: 14px; min-height: 34px; }
.practice-card__top svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.practice-grid h3 { margin: 18px 0 8px; color: var(--blue); font-size: 22px; }

.team-section { background: linear-gradient(180deg, #f4f1ea 0%, #e9e2d7 100%); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.team-card { overflow: hidden; border: 1px solid rgba(20,39,66,.14); border-radius: 6px; background: var(--white); box-shadow: 0 16px 46px rgba(9,21,37,.08); }
.team-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; background: #e6e0d5; }
.team-card div { padding: 20px; }
.team-card p { margin: 0 0 5px; color: var(--gold); font-size: 13px; font-weight: 900; }
.team-card h3 { margin: 0 0 8px; color: var(--blue); font-size: 21px; }
.team-card span { display: block; min-height: 78px; font-size: 15px; }
.team-card a { display: inline-flex; margin-top: 16px; color: var(--wine); font-weight: 900; }

@media (min-width: 1061px) {
  .team-card--staff-start { grid-column: 1; }
}

.insights-section { background: var(--white); }
.insights-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.insights-grid article { min-height: 250px; padding: 28px; display: flex; flex-direction: column; border-top: 2px solid var(--gold); background: #f8f7f3; }
.insights-grid p { margin: 0 0 14px; color: var(--gold); font-size: 13px; font-weight: 900; }
.insights-grid h3 { margin: 0 0 12px; color: var(--blue); font: 900 22px/1.45 "Noto Serif TC", serif; }
.insights-grid span { color: var(--muted); line-height: 1.85; }
.insights-grid a { align-self: flex-start; margin-top: auto; padding-top: 24px; color: var(--wine); font-weight: 900; }
.insights-grid a::after { content: " →"; }
.insights-grid a:hover { color: var(--gold); }

.article-page { background: #f8f7f3; }
.article-hero { padding: 72px clamp(18px, 8vw, 120px) 58px; color: var(--white); background: var(--navy); }
.article-hero__inner { width: min(940px, 100%); margin: 0 auto; }
.article-hero .eyebrow { margin-bottom: 18px; }
.article-hero h1 { max-width: 820px; margin: 0; font: 900 clamp(38px, 6vw, 68px)/1.25 "Noto Serif TC", serif; }
.article-hero .article-lead { max-width: 760px; margin: 24px 0 0; color: rgba(255,255,255,.82); font-size: 19px; line-height: 1.9; }
.article-layout { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 64px 0 88px; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; }
.article-body { max-width: 760px; }
.article-body h2 { margin: 42px 0 14px; color: var(--blue); font: 900 28px/1.45 "Noto Serif TC", serif; }
.article-body h2:first-child { margin-top: 0; }
.article-body p, .article-body li { color: #4f5d71; font-size: 17px; line-height: 2; }
.article-body ul { padding-left: 22px; }
.article-note { margin-top: 44px; padding: 22px 24px; border-left: 3px solid var(--gold); background: var(--white); color: var(--muted); line-height: 1.85; }
.article-aside { position: sticky; top: 152px; padding-top: 18px; border-top: 2px solid var(--gold); }
.article-aside strong { display: block; margin-bottom: 14px; color: var(--blue); font: 900 21px/1.5 "Noto Serif TC", serif; }
.article-aside ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.9; }
.article-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; }
.article-actions .button--outline { border-color: var(--line); color: var(--blue); }

.consultation-section { background: var(--blue); color: var(--white); }
.consultation-layout { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(320px, .75fr); gap: 46px; align-items: start; }
.consultation-section h2 { color: var(--white); }
.consultation-section p { color: rgba(255,255,255,.78); }
.consultation-form { display: grid; gap: 18px; padding: 30px; border-radius: 6px; background: var(--white); box-shadow: var(--shadow); }
.consultation-form label { display: grid; gap: 8px; color: var(--blue); font-weight: 900; }
.consultation-form input, .consultation-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 13px;
  color: var(--ink);
  font: inherit;
}
.consultation-form input:focus, .consultation-form textarea:focus { outline: 3px solid rgba(44,111,115,.18); border-color: var(--teal); }
.hidden-field { display: none; }

.contact-grid { display: grid; grid-template-columns: minmax(320px, 1.1fr) minmax(280px, .75fr); gap: 28px; }
.map-wrap { min-height: 430px; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); background: #ddd; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 430px; border: 0; }
.contact-card { padding: 30px; border-radius: 6px; background: var(--white); box-shadow: var(--shadow); }
.contact-card dl { display: grid; gap: 20px; margin: 0; }
.contact-card dt { color: var(--blue); font-weight: 900; }
.contact-card dd { margin: 4px 0 0; }
.contact-card a { color: var(--wine); font-weight: 900; }

.site-footer { display: grid; gap: 10px; padding: 34px clamp(18px, 5vw, 72px); background: var(--navy); color: rgba(255,255,255,.72); font-size: 14px; }
.site-footer div { display: flex; flex-wrap: wrap; gap: 12px; color: var(--white); }
.site-footer strong { font-family: "Noto Serif TC", serif; font-size: 20px; }
.site-footer p { margin: 0; }

.profile-header { background: var(--navy); color: var(--white); padding: 22px clamp(18px, 5vw, 72px); }
.profile-header a { color: rgba(255,255,255,.8); font-weight: 900; }
.profile { padding: 72px clamp(18px, 5vw, 72px); background: var(--paper); }
.profile-layout { display: grid; grid-template-columns: minmax(260px, .55fr) minmax(320px, 1fr); gap: 44px; align-items: start; max-width: 1160px; margin: 0 auto; }
.profile-photo { overflow: hidden; border-radius: 6px; background: #e6e0d5; box-shadow: var(--shadow); }
.profile-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; }
.profile-content { padding: 32px; border-radius: 6px; background: var(--white); box-shadow: var(--shadow); }
.profile-content h2 { margin: 34px 0 12px; color: var(--blue); font-size: 22px; }
.profile-content ul { padding-left: 22px; }
.profile-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.profile-actions .button--outline { color: var(--blue); border-color: var(--line); }

@media (max-width: 1060px) {
  .site-header { flex-wrap: wrap; row-gap: 10px; padding-bottom: 10px; }
  .site-nav { order: 3; width: 100%; justify-content: center; gap: clamp(16px, 4vw, 34px); padding-top: 10px; border-top: 1px solid rgba(185,144,82,.22); font-size: 14px; }
  .section { scroll-margin-top: 140px; }
  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero { min-height: 640px; height: auto; align-items: start; }
  .hero__image { object-position: center center; }
  .hero__content { padding: 72px 0 150px; }
  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(7,20,37,.7) 0%, rgba(7,20,37,.3) 46%, rgba(7,20,37,.66) 100%),
      linear-gradient(90deg, rgba(7,20,37,.82) 0%, rgba(7,20,37,.36) 56%, rgba(7,20,37,.08) 100%);
  }
  .section, .profile { padding-top: 64px; padding-bottom: 64px; }
  .section-heading--split, .about-grid, .consultation-layout, .contact-grid, .profile-layout, .article-layout { grid-template-columns: 1fr; }
  .practice-grid, .team-grid, .insights-grid { grid-template-columns: 1fr; }
  .team-card span { min-height: auto; }
  .article-aside { position: static; }
}
@media (max-width: 560px) {
  .site-header { flex-wrap: nowrap; padding-bottom: 12px; }
  .section { scroll-margin-top: 88px; }
  .brand { gap: 10px; }
  .brand small { display: none; }
  .brand img { width: min(62vw, 245px); max-height: 54px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 18px 18px; border-top: 0; background: rgba(249,247,242,.98); box-shadow: 0 18px 34px rgba(9,21,37,.12); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-top: 1px solid rgba(20,39,66,.1); }
  .hero__info { position: relative; left: auto; right: auto; bottom: auto; width: min(100% - 36px, 980px); margin: -124px auto 34px; }
  .consultation-form, .contact-card, .profile-content { padding: 24px; }
}
