/* MatchUs Global — shared styles */
:root {
  --porcelain: #F3F5F2;
  --celadon: #B9CDC2;
  --celadon-soft: #DCE6E0;
  --ink: #1C2B2A;
  --stone: #6E7B78;
  --stone-text: #56625F; /* Stone darkened for small text so it passes WCAG AA on porcelain */
  --thread: #C8102E;
  --serif: "Newsreader", "Noto Serif SC", "Songti SC", Georgia, serif;
  --ui: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --pad: clamp(20px, 5vw, 64px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 1.1875rem;
  line-height: 1.65;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
html[data-lang="zh"] body { line-height: 1.8; letter-spacing: 0.01em; }

/* ---------- language toggle ---------- */
html:not([data-lang="zh"]) body [lang="zh-Hans"],
html[data-lang="zh"] body [lang="en"] { display: none !important; }
html body .lang-switch button[lang] { display: inline-block !important; }

img { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--porcelain); padding: 10px 16px;
  font: 500 0.9rem/1 var(--ui); text-decoration: none; border-radius: 3px;
}
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { background: var(--porcelain); }
.header-inner {
  display: flex; align-items: center; gap: 32px;
  min-height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500; letter-spacing: -0.01em;
  font-variation-settings: "opsz" 24;
  white-space: nowrap;
}
.brand img { width: 46px; height: auto; display: block; }
.site-nav { margin-left: auto; display: flex; gap: 28px; }
.site-nav a, .lang-switch button {
  font-family: var(--ui); font-size: 0.875rem; color: var(--ink); letter-spacing: 0.01em;
}
.site-nav a { text-decoration: none; padding: 6px 0; }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em; }
.lang-switch {
  display: inline-flex; border: 1px solid rgba(28, 43, 42, 0.28); border-radius: 999px; padding: 2px;
}
.lang-switch button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  padding: 5px 12px; border-radius: 999px; line-height: 1.2;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--porcelain); }

/* ---------- shared type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; margin: 0; }
h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); line-height: 1.12; font-variation-settings: "opsz" 60; }
h3 { font-size: 1.6rem; line-height: 1.2; font-variation-settings: "opsz" 36; }
html[data-lang="zh"] h1, html[data-lang="zh"] h2, html[data-lang="zh"] h3 { letter-spacing: 0.02em; font-weight: 500; }
p { margin: 0 0 1em; }
.measure { max-width: 66ch; }
.muted { color: var(--stone-text); }

.btn {
  display: inline-block; text-decoration: none;
  background: var(--thread); color: #fff;
  font: 500 1rem/1 var(--ui); letter-spacing: 0.01em;
  padding: 16px 26px; border-radius: 4px;
  transition: background-color .2s ease;
}
.btn:hover { background: #A50D26; }
.btn:focus-visible { outline-color: var(--ink); }
.text-link { font-family: var(--ui); font-size: 1rem; color: var(--ink); }

section { scroll-margin-top: 12px; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { margin-top: 18px; font-size: 1.25rem; color: var(--stone-text); }

/* ---------- hero ---------- */
.hero { background: var(--celadon); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 3vw, 40px); align-items: end;
}
.hero-copy { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); align-self: center; }
.hero h1 {
  font-size: clamp(2.6rem, 4.8vw, 4.3rem); line-height: 1.03; letter-spacing: -0.022em;
  font-variation-settings: "opsz" 72; font-weight: 380; max-width: 12ch;
}
html[data-lang="zh"] .hero h1 { font-size: clamp(2.1rem, 3.7vw, 3.3rem); line-height: 1.25; letter-spacing: 0.02em; max-width: 11em; font-weight: 500; }
.hero .lede { margin: 28px 0 0; font-size: 1.25rem; line-height: 1.6; max-width: 34rem; color: #24403C; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 40px; }

.duo { position: relative; width: calc(100% + var(--pad)); margin-right: calc(-1 * var(--pad)); max-width: 820px; aspect-ratio: 680 / 540; }
.person { position: absolute; bottom: 0; width: 54%; margin: 0; }
.person.kevin { left: 0; z-index: 2; }
.person.tom { left: 45%; z-index: 1; }
.person img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, 0.55) 76%, rgba(0, 0, 0, 0) 95%);
          mask-image: linear-gradient(to bottom, #000 58%, rgba(0, 0, 0, 0.55) 76%, rgba(0, 0, 0, 0) 95%);
}
.person figcaption {
  position: absolute; left: 6%; bottom: 18px;
  font-family: var(--ui); font-size: 0.8125rem; line-height: 1.35; color: #2C4542;
}
.person figcaption strong {
  display: block; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--ink);
  font-variation-settings: "opsz" 24; letter-spacing: -0.01em;
}
.person.tom figcaption { left: auto; right: 4%; text-align: right; }


/* ---------- who we serve ---------- */
.serve-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); }
.serve-grid .lead { font-size: 1.375rem; line-height: 1.6; }
.cities-label { font-family: var(--ui); font-size: 0.875rem; color: var(--stone-text); margin: 6px 0 18px; }
.cities { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.cities li { font-size: 1.3rem; line-height: 1.75; font-variation-settings: "opsz" 24; break-inside: avoid; }

.principles {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px);
  margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid rgba(110, 123, 120, 0.35);
}
.principles h3 { font-size: 1.3rem; margin-bottom: 10px; }
.principles p { font-size: 1.05rem; line-height: 1.6; color: var(--stone-text); margin: 0; }

/* ---------- matchmakers ---------- */
.matchmakers { background: var(--celadon-soft); }
.promise { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.08; font-style: italic; font-variation-settings: "opsz" 72; letter-spacing: -0.02em; font-weight: 350; max-width: 16ch; }
html[data-lang="zh"] .promise { font-style: normal; font-weight: 500; letter-spacing: 0.04em; }
.values { margin-top: 18px; font-size: 1.25rem; color: var(--stone-text); }
.mm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); margin-top: clamp(48px, 6vw, 80px); }
.mm { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 28px; align-items: start; }
.mm-photo { background: var(--celadon); aspect-ratio: 148 / 184; overflow: hidden; border-radius: 2px; }
.mm-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.35); transform-origin: 50% 8%; display: block; }
.mm h3 { font-size: 2rem; }
.mm .role { font-family: var(--ui); font-size: 0.9375rem; color: var(--stone-text); margin: 6px 0 16px; line-height: 1.45; }
.mm p { font-size: 1.1rem; line-height: 1.62; }
.mm .find { font-size: 1.02rem; color: #33403E; }
.mm .find b { font-weight: 600; }
.mm .text-link { display: inline-block; margin-top: 4px; }

/* ---------- services ---------- */
.svc-list { margin: 0; padding: 0; list-style: none; }
.svc {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px);
  padding: clamp(36px, 4vw, 52px) 0;
}
.svc + .svc { border-top: 1px solid rgba(110, 123, 120, 0.35); }
.svc:first-child { padding-top: 0; }
.svc h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.svc .alt { font-family: var(--ui); font-size: 0.9rem; color: var(--stone-text); margin: 6px 0 18px; }
.svc ul { margin: 18px 0 0; padding-left: 1.1em; }
.svc li { margin: 6px 0; padding-left: 4px; }
.svc li::marker { color: var(--stone); }
.price-block { display: grid; gap: 22px; align-content: start; }
.price { margin: 0; }
.price .amount { display: block; font-size: clamp(2.2rem, 3.4vw, 2.9rem); line-height: 1; font-variation-settings: "opsz" 72; font-variant-numeric: lining-nums; letter-spacing: -0.02em; }
.price .note { display: block; margin-top: 8px; font-family: var(--ui); font-size: 0.9375rem; color: var(--stone-text); line-height: 1.45; }
.price .amount.small { font-size: clamp(1.7rem, 2.6vw, 2.1rem); }
.svc-foot { margin-top: clamp(32px, 4vw, 48px); padding: 28px 32px; background: var(--celadon-soft); border-radius: 3px; font-size: 1.08rem; line-height: 1.65; max-width: 62rem; }
.svc-foot p { margin: 0; }
.svc-foot p + p { margin-top: 8px; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: block;
  font-family: var(--serif); font-style: italic; font-size: 3.4rem; line-height: 1; color: var(--stone);
  font-variation-settings: "opsz" 72; margin-bottom: 18px;
}
.steps h3 { font-size: 1.5rem; margin-bottom: 10px; }
.steps p { font-size: 1.05rem; line-height: 1.6; color: var(--stone-text); margin: 0; }

/* ---------- contact band ---------- */
.contact { background: var(--celadon); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px clamp(40px, 6vw, 96px); align-items: end; }
.contact p { font-size: 1.25rem; max-width: 34rem; margin-top: 18px; color: #24403C; }
.contact .email { font-size: clamp(1.4rem, 2.6vw, 2rem); font-variation-settings: "opsz" 36; word-break: break-word; display: inline-block; margin-bottom: 22px; }

/* ---------- footer ---------- */
.site-footer { background: var(--porcelain); padding: 56px 0 48px; font-family: var(--ui); font-size: 0.875rem; line-height: 1.6; color: var(--stone-text); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-bottom: 28px; border-bottom: 1px solid rgba(110, 123, 120, 0.3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-links a { color: var(--ink); }
.footer-legal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 40px; padding-top: 24px; }
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--ink); }

/* ---------- policy pages ---------- */
.policy-hero { background: var(--celadon-soft); padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }
.policy-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); line-height: 1.06; font-variation-settings: "opsz" 72; letter-spacing: -0.02em; max-width: 18ch; }
html[data-lang="zh"] .policy-hero h1 { letter-spacing: 0.03em; font-weight: 500; }
.policy-hero .updated { font-family: var(--ui); font-size: 0.9rem; color: var(--stone-text); margin: 18px 0 0; }
.policy-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 9vw, 112px); }
.policy-nav { position: sticky; top: 24px; align-self: start; font-family: var(--ui); font-size: 0.9375rem; }
.policy-nav p { color: var(--stone-text); margin: 0 0 10px; }
.policy-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.policy-nav a { text-decoration: none; color: var(--ink); }
.policy-nav a:hover { text-decoration: underline; }
.policy-nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--stone); }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-variation-settings: "opsz" 36; margin: 2.2em 0 0.6em; line-height: 1.2; }
.prose > div > h2:first-child, .prose > h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.125rem; line-height: 1.7; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin: 0.35em 0; padding-left: 4px; }
.prose li::marker { color: var(--stone); }
.prose .intro { font-size: 1.3rem; line-height: 1.6; }
.prose address { font-style: normal; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .principles, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 8px; }
  .hero h1 { max-width: 14ch; }
  .duo { width: 100%; margin: 0 auto; max-width: 620px; }
  .serve-grid, .svc, .contact-inner { grid-template-columns: 1fr; }
  .svc { gap: 28px; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-nav { position: static; padding-bottom: 24px; border-bottom: 1px solid rgba(110, 123, 120, 0.3); }
  .policy-nav ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
  .footer-legal { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 1.125rem; }
  .header-inner { flex-wrap: wrap; gap: 10px 16px; padding-top: 14px; padding-bottom: 10px; min-height: 0; }
  .brand { font-size: 1.2rem; }
  .brand img { width: 40px; }
  .lang-switch { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 20px; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { white-space: nowrap; }

  .person figcaption { bottom: 10px; font-size: 0.75rem; }
  .person figcaption strong { font-size: 1.1rem; }
  .principles, .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 12px; }
  .steps li::before { font-size: 2.6rem; margin: 0; grid-row: span 2; }
  .mm { grid-template-columns: 104px minmax(0, 1fr); gap: 20px; }
  .mm h3 { font-size: 1.7rem; }
  .cities li { font-size: 1.15rem; }
  .svc-foot { padding: 22px 20px; }
  .hero .lede, .contact p, .section-head p, .serve-grid .lead { font-size: 1.15rem; }
}
.serve-title { margin-bottom: 28px; max-width: 18ch; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
html[data-lang="zh"] .serve-title { max-width: 12em; }

/* Theme: midnight navy + champagne (261024). Hero and contact are dark; everything else stays light. */
:root {
  --porcelain: #F5F3EF;
  --celadon: #1E2733;
  --celadon-soft: #ECE9E3;
  --ink: #1E2733;
  --stone: #8A8F96;
  --stone-text: #585E66;
  --thread: #C4A169;
  --on-dark: #F2EDE4;
  --on-dark-soft: rgba(242, 237, 228, 0.8);
}
.btn { color: #1E2733; }
.btn:hover { background: #B38F57; }
.hero, .contact { color: var(--on-dark); }
.hero .lede, .contact p { color: var(--on-dark-soft); }
.hero .text-link, .contact a:not(.btn) { color: #E6D6B8; }
.person figcaption { color: var(--on-dark-soft); }
.person figcaption strong { color: var(--on-dark); }
.hero :focus-visible, .contact :focus-visible { outline-color: #E6D6B8; }
