:root {
  --paper: #ffffff;
  --ink: #000000;
  --backdrop: #26362c;
  --cream: #f6f5e6;
  --graphite: #555555;
  --stone: #ecebe7;
  --rule: #d6d5d0;
  --wa: #128c4a;
  --wa-hover: #0e7a40;

  --font: "Archivo", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--wa); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Display type: condensed, matching the lettering in the logo */
.display {
  font-stretch: 62%;
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.01em;
  margin: 0;
}
:lang(zh) .display { letter-spacing: .02em; line-height: 1.15; }

/* Header */
.site-header { border-bottom: 1px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand span { font-stretch: 62%; font-weight: 800; font-size: 1.45rem; letter-spacing: .02em; white-space: nowrap; }
.brand .brand-zh { font-stretch: 100%; font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; color: var(--graphite); padding-left: 12px; border-left: 1px solid var(--rule); }
.header-right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; gap: 2px; font-size: .95rem; }
.lang a {
  padding: 6px 8px; text-decoration: none;
  color: var(--graphite); border-bottom: 2px solid transparent;
}
.lang a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 700; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 2px;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
}
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-plain { border: 1.5px solid var(--ink); }
.btn-plain:hover { background: var(--ink); color: var(--paper); }
.btn-small { padding: 9px 14px; font-size: .92rem; }
.wa-icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* Hero */
.hero { display: grid; grid-template-columns: 7fr 5fr; border-bottom: 1px solid var(--ink); }
.hero-text {
  padding: clamp(44px, 6vw, 80px) var(--gutter) clamp(44px, 6vw, 80px);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.hero h1 { font-size: clamp(3.2rem, 6.4vw, 6rem); }
.hero h1 span { display: block; }
:lang(zh) .hero h1 { font-size: clamp(2.3rem, 5.6vw, 5rem); word-break: keep-all; }
.hero-lede { font-size: 1.25rem; color: var(--graphite); max-width: 40ch; margin: 24px 0 30px; }
.hero-number { margin: 18px 0 0; font-size: .95rem; color: var(--graphite); }
.hero-number a { color: var(--ink); font-weight: 700; text-decoration: none; }

/* The pinstripe panel: the one loud element on the page */
.pinstripe {
  position: relative; overflow: hidden;
  background-color: var(--backdrop);
  background-image: repeating-linear-gradient(90deg, rgba(246,245,230,.12) 0 1px, transparent 1px 14px);
  display: grid; place-items: center;
  min-height: 420px;
}
.pinstripe img { width: min(62%, 300px); position: relative; padding: 28px 24px; background: var(--backdrop); box-sizing: content-box; }
.pinstripe::after {
  content: ""; position: absolute; inset: 0; background: var(--backdrop);
  transform-origin: top; animation: unroll 1.1s cubic-bezier(.7,0,.2,1) .15s forwards;
}
@keyframes unroll { to { transform: scaleY(0); } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-stone { background: var(--stone); }
section[id] { scroll-margin-top: 68px; }
.section h2 { font-size: clamp(2.6rem, 5.5vw, 4.2rem); margin-bottom: 14px; }
.section-intro { color: var(--graphite); max-width: 52ch; margin: 0 0 48px; font-size: 1.125rem; }

/* Services: a ruled index, not cards */
.services { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.service {
  display: grid; grid-template-columns: 4fr 6fr auto; gap: 24px 40px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.service h3 { margin: 0; font-stretch: 75%; font-weight: 700; font-size: 1.7rem; line-height: 1.15; }
.service p { margin: 0; color: var(--graphite); max-width: 52ch; }
.service h3 a { text-decoration: none; }
.service h3 a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.service-links { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.service-links a {
  font-weight: 700; font-size: .95rem; white-space: nowrap;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}
.service-links .ask { color: var(--wa); }
.service-links a:hover { color: var(--ink); }

/* Lawyer: set like a nameplate */
.lawyer { display: grid; grid-template-columns: 7fr 5fr; gap: 32px 48px; align-items: end; border-top: 1.5px solid var(--ink); padding-top: 36px; }
.lawyer-name { font-size: clamp(3.2rem, 8vw, 6.4rem); }
.lawyer-zh { margin: 14px 0 0; font-size: 1.75rem; font-weight: 700; letter-spacing: .08em; }
.lawyer-zh span { font-size: 1.1rem; font-weight: 400; color: var(--graphite); letter-spacing: 0; margin-left: 6px; }
.lawyer dl { margin: 0; }
.lawyer dt { font-weight: 700; }
.lawyer dd { margin: 2px 0 18px; color: var(--graphite); }
.lawyer p { margin: 0; max-width: 36ch; }
button.btn { font: inherit; font-weight: 700; background: none; color: inherit; cursor: pointer; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.share-fallback { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; }
.share-fallback[hidden] { display: none; }
.share-fallback a, .share-fallback button {
  font: inherit; font-weight: 700; font-size: .95rem; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px;
}
.share-fallback a { color: var(--wa); }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1.5px solid var(--ink); padding-top: 18px; }
.steps li::before {
  content: counter(step); display: block;
  font-stretch: 62%; font-weight: 800; font-size: 4.5rem; line-height: 1; margin-bottom: 16px;
}
.steps h3 { margin: 0 0 6px; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--graphite); max-width: 34ch; }
.steps-cta { margin-top: 48px; }

/* Visit */
.visit { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
.visit dl { margin: 0 0 32px; }
.visit dt { font-weight: 700; margin-top: 22px; }
.visit dt:first-child { margin-top: 0; }
.visit dd { margin: 4px 0 0; color: var(--graphite); max-width: 32ch; }
.visit dd a { color: var(--ink); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.map { border: 1.5px solid var(--ink); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--backdrop); color: rgba(246,245,230,.72); padding: 56px 0 40px; font-size: .9rem; }
.site-footer .wrap { display: grid; grid-template-columns: auto 1fr; gap: 24px 64px; align-items: end; }
.site-footer img { height: 84px; width: auto; }
.site-footer p { margin: 0; max-width: 60ch; }
.site-footer p + p { margin-top: 8px; }
.footer-fb { display: inline-flex; align-items: center; gap: 8px; color: var(--cream); text-decoration: none; font-weight: 700; }
.footer-fb:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-fb svg { width: 20px; height: 20px; fill: currentColor; }

/* Floating WhatsApp, for phones scrolling far from a button */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.wa-float .wa-icon { width: 30px; height: 30px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-text { padding-left: var(--gutter); }
  .pinstripe { min-height: 180px; order: -1; }
  .pinstripe img { width: 120px; }
  .service { grid-template-columns: 1fr; gap: 8px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .lawyer { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand span { display: none; }
  .header-right .btn-small span { display: none; }
  .hero-lede { font-size: 1.125rem; }
  .hero .btn, .steps-cta .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pinstripe::after { animation: none; display: none; }
}

/* Service pages */
.crumbs { font-size: .9rem; color: var(--graphite); margin: 0 0 20px; }
.crumbs a { color: var(--graphite); text-underline-offset: 3px; }
.page-hero { border-bottom: 1px solid var(--ink); padding: clamp(44px, 6vw, 80px) 0; }
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); max-width: 16ch; }
:lang(zh) .page-hero h1 { font-size: clamp(2.2rem, 5vw, 4.2rem); word-break: keep-all; }
.page-hero .hero-lede { max-width: 52ch; }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 18px; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.faq { border-top: 1.5px solid var(--ink); margin: 0; }
.faq dt { font-weight: 700; font-size: 1.15rem; padding-top: 22px; }
.faq dd { margin: 6px 0 0; padding-bottom: 22px; border-bottom: 1px solid var(--rule); color: var(--graphite); }
.related { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.related a { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.related a:hover { background: var(--ink); color: var(--paper); }
.cta-band { background: var(--backdrop); color: var(--cream); }
.cta-band h2 { color: var(--cream); }
.cta-band .section-intro { color: rgba(246,245,230,.8); }
