:root {
  --navy: #061d36;
  --navy-2: #092a4b;
  --navy-3: #123a62;
  --gold: #b9975b;
  --gold-dark: #9c7a40;
  --ink: #12213a;
  --muted: #5f6876;
  --line: #e8e1d6;
  --soft: #f7f5f0;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(17, 28, 46, 0.12);
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(6, 29, 54, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
}

.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4vw, 3.15rem);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.08em;
  white-space: nowrap;
}

.brand-text {
  display: grid;
  gap: 2px;
  line-height: 1.05;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-text strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  letter-spacing: 0.22em;
}

.brand-text span {
  font-family: "Noto Serif TC", "Microsoft JhengHei", serif;
  font-size: 0.78rem;
  letter-spacing: 0.36em;
  text-transform: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.main-nav a {
  position: relative;
  text-decoration: none;
  padding: 32px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.language-switch {
  border: 1px solid rgba(6, 29, 54, 0.18);
  padding: 8px 12px;
  color: var(--navy);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(6, 29, 54, 0.14);
  background: var(--white);
  border-radius: 0;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.hero {
  /*
    Configure the hero as a positioning context.  A background image is no longer
    applied here via CSS because we instead include an <img> element in the
    markup for improved accessibility (it carries alt text).  See the
    .hero-background class for sizing of the image.  The section retains
    flex layout for centering content vertically and hides any overflow.
  */
  min-height: 500px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/*
  The photograph used in the hero section lives in the HTML as an <img>
  element with class `hero-background`.  Set it to fill the container and
  scale appropriately while keeping its aspect ratio.  A negative z‑index is
  assigned so it sits behind the gradient overlays and hero content.  The
  image is pointer‑events: none to prevent inadvertent click interception.
*/
.hero-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(104deg, rgba(6, 29, 54, 0.92) 0%, rgba(6, 29, 54, 0.72) 35%, rgba(6, 29, 54, 0.2) 68%, rgba(6, 29, 54, 0.05) 100%);
  /* Place the gradient overlay above the background image but below the text */
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 36%;
  top: 0;
  bottom: 0;
  width: 260px;
  background: rgba(6, 29, 54, 0.36);
  transform: skewX(-18deg);
  transform-origin: top;
  /* Ensure the angled bar overlay sits above the main gradient and below text */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 86px 0 104px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow.gold {
  color: var(--gold);
}

.hero h1,
.section-heading h2,
.about-copy h2,
.insights h2,
.callout-title h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(3rem, 6.2vw, 5.75rem);
}

.hero-copy {
  max-width: 520px;
  margin: 24px 0 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.16rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.button-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.button-gold:hover {
  background: var(--gold-dark);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.value-strip {
  background: var(--white);
  border-bottom: 1px solid rgba(6, 29, 54, 0.08);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
}

.value-grid article {
  min-height: 130px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 22px 28px;
  position: relative;
}

.value-grid article + article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--line);
}

.line-icon,
.team-icon {
  display: block;
  color: var(--gold);
  line-height: 1;
  font-size: 2.35rem;
  margin-bottom: 8px;
}

.value-grid h2 {
  margin: 0;
  color: var(--navy);
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: 72px 0;
}

.section-light {
  background: var(--soft);
}

.section-white {
  background: var(--white);
}

.section-heading {
  text-align: center;
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.section-heading h2,
.about-copy h2,
.insights h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3rem);
}

.heading-rule {
  display: block;
  width: 56px;
  height: 2px;
  margin: 18px auto 0;
  background: var(--gold);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.practice-card {
  background: var(--white);
  border: 1px solid rgba(6, 29, 54, 0.08);
  box-shadow: 0 18px 42px rgba(6, 29, 54, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.card-image {
  height: 155px;
  background-position: center;
  background-size: cover;
}

.card-body {
  position: relative;
  padding: 44px 28px 30px;
}

.card-icon {
  position: absolute;
  top: -29px;
  left: 28px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold);
  border: 4px solid var(--white);
  font-size: 1.6rem;
  line-height: 1;
}

.practice-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.practice-card p {
  margin: 0 0 14px;
  color: #3d4654;
  font-size: 0.95rem;
}

.practice-card ul,
.choice-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.practice-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
  color: #394454;
  font-size: 0.9rem;
}

.practice-card li::before {
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 900;
}

.practice-card strong {
  color: var(--navy);
}

.about-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.about-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(6, 29, 54, 0.96) 0%, rgba(6, 29, 54, 0.9) 52%, rgba(6, 29, 54, 0.2) 100%), url("assets/about-office.svg");
  background-size: cover;
  background-position: center;
}

.about-content {
  position: relative;
  z-index: 1;
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 82px;
  align-items: center;
  padding: 60px 0;
}

.about-copy h2 {
  color: var(--white);
  max-width: 470px;
}

.about-copy p:not(.eyebrow) {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.86);
  margin: 18px 0 24px;
}

.choice-list li {
  position: relative;
  padding: 10px 0 10px 42px;
  color: rgba(255, 255, 255, 0.92);
}

.choice-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 7px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.85rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.team-grid article {
  padding: 18px 34px 0;
  position: relative;
}

.team-grid article + article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 34px;
  bottom: 16px;
  width: 1px;
  background: var(--line);
}

.team-grid h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1rem;
}

.team-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.insights {
  background: #f2efe8;
  padding: 46px 0;
}

.insights-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 52px;
  align-items: center;
}

.insights p:last-child {
  margin: 0;
  color: var(--muted);
}

.contact-callout {
  background: var(--navy);
  color: var(--white);
}

.callout-grid {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 36px;
  align-items: center;
}

.callout-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.callout-title span {
  color: var(--gold);
  font-size: 1.65rem;
}

.callout-title h2 {
  margin: 0;
  color: var(--gold);
  font-size: 1.8rem;
}

.contact-callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.site-footer {
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid rgba(6, 29, 54, 0.08);
}

.footer-grid {
  min-height: 116px;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.9fr auto;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  font-size: 0.86rem;
}

.site-footer address {
  font-style: normal;
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-dark);
}

.copyright {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .main-nav {
    gap: 16px;
  }

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

@media (max-width: 900px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-height);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 22px;
    background: var(--white);
    border-bottom: 1px solid rgba(6, 29, 54, 0.08);
    box-shadow: 0 16px 26px rgba(6, 29, 54, 0.08);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .main-nav a::after {
    display: none;
  }

  .language-switch {
    width: fit-content;
    margin-top: 8px;
  }

  .brand-text strong {
    font-size: 0.92rem;
  }

  .brand-text span {
    font-size: 0.7rem;
  }

  .hero {
    min-height: 560px;
  }

  .hero::after {
    display: none;
  }

  .value-grid,
  .team-grid,
  .footer-grid,
  .about-content,
  .insights-inner,
  .callout-grid {
    grid-template-columns: 1fr;
  }

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

  .value-grid article + article::before,
  .team-grid article + article::before {
    display: none;
  }

  .about-content {
    gap: 28px;
  }

  .callout-grid {
    gap: 16px;
    padding: 24px 0;
  }

  .copyright {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 76px;
  }

  .brand-mark {
    font-size: 2.1rem;
  }

  .brand-text strong {
    font-size: 0.76rem;
    letter-spacing: 0.14em;
  }

  .brand-text span {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
  }

  .hero-content {
    padding: 64px 0 76px;
  }

  .hero-copy {
    font-size: 1rem;
  }

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

  .button {
    min-height: 46px;
  }

  .value-grid,
  .practice-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .card-image {
    height: 138px;
  }
}

/* Our People */
.people-section {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,245,240,0.72));
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.person-card {
  position: relative;
  min-height: 150px;
  padding: 28px 24px 24px;
  background: var(--white);
  border: 1px solid rgba(6, 29, 54, 0.08);
  box-shadow: 0 14px 32px rgba(6, 29, 54, 0.07);
  overflow: hidden;
}

.person-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
}

.person-card::after {
  content: "WT";
  position: absolute;
  right: 16px;
  bottom: -8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  color: rgba(6, 29, 54, 0.05);
  letter-spacing: -0.08em;
}

.person-card-featured {
  grid-column: span 2;
  background: var(--navy);
  color: var(--white);
}

.person-card-featured::after {
  color: rgba(255, 255, 255, 0.08);
}

.person-role {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.person-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 500;
}

.person-card-featured h3 {
  color: var(--white);
  font-size: 1.45rem;
}

@media (max-width: 1120px) {
  .people-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .people-grid {
    grid-template-columns: 1fr;
  }

  .person-card-featured {
    grid-column: span 1;
  }
}

/*
  Language toggle helper classes
  When the body has class `lang-en`, hide all elements with the `zh` class.
  When the body has class `lang-zh`, hide all elements with the `en` class.
*/
.lang-en .zh {
  display: none;
}

.lang-zh .en {
  display: none;
}
