/* =========================================================
   Tang Law Office LLC — Immigration Attorney
   Design system: "The paper trail home"
   ========================================================= */

:root {
  /* Palette */
  --brand: #007BCD;
  --btn: #0069B4;
  --navy: #0C3054;
  --slate: #4A535B;
  --paper: #F7F5F1;
  --cream: #FCFAF4;
  --brass: #B08D3E;
  --brass-dark: #8F7433;
  --white: #FFFFFF;
  --green: #1F7A54;
  --green-dark: #175F41;

  --line: rgba(12, 48, 84, 0.12);
  --line-strong: rgba(12, 48, 84, 0.22);
  --navy-70: rgba(12, 48, 84, 0.7);

  /* Type */
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-cjk: 'Noto Serif SC', 'Songti SC', 'PingFang SC', 'Microsoft YaHei', serif;

  /* Metrics */
  --header-h: 72px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(12, 48, 84, 0.06);
  --shadow-md: 0 10px 30px rgba(12, 48, 84, 0.10);
  --shadow-lg: 0 24px 60px rgba(12, 48, 84, 0.16);
  --container: 1180px;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body { overflow-x: clip; }
}
body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.012em;
}

h1 { font-size: clamp(2.55rem, 5.2vw, 4.35rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.05rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { max-width: 68ch; }
p + p { margin-top: 1em; }

strong { font-weight: 600; color: var(--navy); }
em { font-style: italic; }

::selection { background: rgba(176, 141, 62, 0.28); color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Utilities ---------- */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}
.container-narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }
.container-form { width: min(760px, calc(100% - 40px)); margin-inline: auto; }

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

.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 500;
  padding: 0.85rem 1.2rem;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); color: #fff; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: none; }

.bg-paper { background-color: var(--paper); }
.bg-white { background-color: var(--white); }
.bg-cream { background-color: var(--cream); }
.bg-navy { background-color: var(--navy); color: rgba(255, 255, 255, 0.82); }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }

.grain { position: relative; isolation: isolate; }
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}
.grain > * { position: relative; z-index: 1; }

.section { position: relative; padding: clamp(4rem, 8vw, 6.75rem) 0; }
.section-sm { padding: clamp(3rem, 5.5vw, 4.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 4vw, 3.5rem) 0; }

.section-head { margin-bottom: clamp(2.2rem, 4vw, 3.25rem); }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lede { margin-inline: auto; }
.section-head .lede { margin-top: 1.1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.05rem;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow .zh {
  font-family: var(--font-cjk);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--navy);
}
.eyebrow .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
}
.bg-navy .eyebrow { color: #8FD0FA; }
.bg-navy .eyebrow .zh { color: #fff; }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  line-height: 1.7;
  color: var(--slate);
  max-width: 64ch;
}
.bg-navy .lede { color: rgba(255, 255, 255, 0.8); }

.micro {
  font-size: 0.83rem;
  line-height: 1.6;
  color: #6B747C;
}
.bg-navy .micro { color: rgba(255, 255, 255, 0.62); }

.text-link {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.text-link:hover { color: var(--navy); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--brand);
  padding: 0.35rem 0;
  position: relative;
  width: fit-content;
}
.link-arrow .icon { width: 16px; height: 16px; transition: transform 0.25s ease; }
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.link-arrow:hover { color: var(--navy); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover::after { transform: scaleX(1); }

.highlight { position: relative; z-index: 0; white-space: normal; }
.highlight::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px;
  bottom: 0.05em;
  height: 0.42em;
  background: rgba(176, 141, 62, 0.32);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) 0.35s;
  z-index: -1;
}
.is-visible .highlight::after,
.highlight.is-visible::after { transform: scaleX(1); }

.route-divider {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  height: 34px;
  color: var(--brass);
}
.route-divider svg { width: 100%; height: 34px; overflow: visible; }
.route-divider path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 2;
  stroke-dasharray: 6 7;
  stroke-linecap: round;
  stroke-dashoffset: 1500;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.route-divider.is-visible path { stroke-dashoffset: 0; }
.route-divider circle { fill: var(--brass); opacity: 0; transition: opacity 0.5s ease 0.9s; }
.route-divider.is-visible circle { opacity: 1; }
.route-divider.on-navy path { stroke: rgba(176, 141, 62, 0.9); }

.tear-edge {
  height: 13px;
  background-image: radial-gradient(circle at 7px 0, transparent 6px, var(--navy) 6.5px);
  background-size: 14px 13px;
  background-repeat: repeat-x;
  background-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.8rem 1.4rem;
  border-radius: 14px;
  border: 2px solid transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  white-space: nowrap;
}
.btn .icon { width: 19px; height: 19px; }

.btn-primary {
  background: var(--btn);
  color: #fff;
  border-color: var(--btn);
  box-shadow: 0 4px 14px rgba(0, 105, 180, 0.22);
}
.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 105, 180, 0.3);
  color: #fff;
}
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline:active { transform: scale(0.98); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-outline-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.btn-light:hover { background: var(--paper); color: var(--navy); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); color: #fff; transform: translateY(-2px); }

.btn-sm { min-height: 44px; padding: 0.55rem 1rem; font-size: 0.9rem; border-radius: 11px; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* ---------- Chips & tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.7rem;
  border: 1px solid rgba(176, 141, 62, 0.5);
  border-radius: 999px;
  background: rgba(176, 141, 62, 0.06);
  color: var(--brass-dark);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
}
.tag-blue {
  border-color: rgba(0, 105, 180, 0.35);
  background: rgba(0, 123, 205, 0.07);
  color: #005A99;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(176, 141, 62, 0.55);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 500;
}
.badge-chip .icon { width: 15px; height: 15px; color: var(--brass-dark); }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  z-index: 300;
  pointer-events: none;
}
.scroll-progress__bar {
  position: relative;
  height: 100%;
  width: 0%;
  background: var(--brand);
  transition: width 0.08s linear;
}
.scroll-progress__dot {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brass);
  transform: translateY(-50%);
  box-shadow: 0 0 0 2px var(--paper);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(12, 48, 84, 0.09); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  transition: height 0.3s ease;
}
.site-header.scrolled .header-inner { height: calc(var(--header-h) - 8px); }

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 150px; height: auto; }

.nav-main { display: none; }
.nav-main ul { display: flex; align-items: center; gap: 1.55rem; }
.nav-main a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.2rem 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.2s ease;
}
.nav-main a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 8px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.nav-main a:hover { color: var(--brand); }
.nav-main a:hover::after { transform: scaleX(1); }
.nav-main a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav-main a[aria-current="page"]::after { transform: scaleX(1); background: var(--brass); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.lang-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 0.3rem;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--navy);
}
.lang-link .zh { font-family: var(--font-cjk); }
.lang-link:hover { color: var(--brand); }

.header-call { display: none; }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.menu-toggle span {
  display: block;
  width: 21px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--paper);
  padding: 1.15rem 1.25rem 2.5rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.32s ease, transform 0.32s ease, visibility 0.32s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mm-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.mm-top .brand img { width: 132px; }
.mm-close {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
}
.mm-close .icon { width: 22px; height: 22px; }
.mm-nav { display: flex; flex-direction: column; gap: 0.15rem; margin-bottom: 2rem; }
.mm-nav a {
  display: block;
  padding: 0.55rem 0;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 6.4vw, 1.85rem);
  font-weight: 600;
  color: var(--navy);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}
.mm-nav a:hover { color: var(--brand); }
.mobile-menu.open .mm-nav a { opacity: 1; transform: translateY(0); }
.mobile-menu.open .mm-nav a:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.open .mm-nav a:nth-child(2) { transition-delay: 0.12s; }
.mobile-menu.open .mm-nav a:nth-child(3) { transition-delay: 0.18s; }
.mobile-menu.open .mm-nav a:nth-child(4) { transition-delay: 0.24s; }
.mobile-menu.open .mm-nav a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.open .mm-nav a:nth-child(6) { transition-delay: 0.36s; }

.mm-actions { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1.75rem; }
.mm-info { border-top: 1px solid var(--line); padding-top: 1.25rem; font-size: 0.9rem; line-height: 1.7; }
.mm-info a { color: var(--navy); font-weight: 500; }
.mm-info .mm-label { display: block; margin-top: 0.8rem; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass-dark); font-weight: 600; }
.mm-lang { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(2.75rem, 6vw, 5.25rem) 0 clamp(3.5rem, 7vw, 6rem);
  background: var(--paper);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -190px; top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 123, 205, 0.07), transparent 68%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1.35rem; color: var(--navy); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span {
  display: block;
  transform: translateY(110%);
  opacity: 0;
  animation: heroRise 0.85s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
.hero h1 .line:nth-child(1) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.26s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.4s; }
@keyframes heroRise {
  to { transform: translateY(0); opacity: 1; }
}
.hero .hero-sub {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.7;
  max-width: 56ch;
  color: var(--slate);
}
.hero .hero-chinese { font-family: var(--font-cjk); color: var(--navy); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }
.hero-micro {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.35rem;
  font-size: 0.85rem;
  color: #606A72;
}
.hero-micro .icon { width: 16px; height: 16px; color: var(--brass-dark); }
.hero-route { margin-top: 1.5rem; width: min(320px, 100%); color: var(--brass); }
.hero-route svg { width: 100%; height: 30px; overflow: visible; }
.hero-route path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  stroke-dashoffset: 320;
  animation: routeDraw 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) 1s forwards;
}
.hero-route circle { fill: var(--brass); opacity: 0; animation: dotIn 0.4s ease 2.1s forwards; }
@keyframes routeDraw { to { stroke-dashoffset: 0; } }
@keyframes dotIn { to { opacity: 1; } }

.hero-portrait { position: relative; z-index: 1; width: 100%; max-width: 430px; margin-inline: auto; }
.hero-portrait .doc-card {
  position: absolute;
  background: #fff;
  border: 1px solid rgba(12, 48, 84, 0.14);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  z-index: 0;
  pointer-events: none;
}
.hero-portrait .doc-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(12, 48, 84, 0.09) 0 2px,
    transparent 2px 12px
  );
  border-radius: 3px;
}
.hero-portrait .doc-card.one {
  width: 76%; height: 82%;
  left: -9%; top: 12%;
  transform: rotate(-7deg);
  background: var(--cream);
}
.hero-portrait .doc-card.two {
  width: 72%; height: 74%;
  right: -8%; top: 20%;
  transform: rotate(5deg);
}
.hero-portrait .arch { position: relative; z-index: 2; }
.hero-portrait .arch img { aspect-ratio: 4 / 5; }

.arch {
  position: relative;
  overflow: hidden;
  border-radius: 999px 999px 18px 18px;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
}
.arch::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(176, 141, 62, 0.55);
  border-radius: inherit;
  pointer-events: none;
  z-index: 3;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch img[src*="tang_attorney"] { object-position: 50% 16%; }
.arch-wipe {
  clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px);
  transition: clip-path 1.1s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.is-visible .arch-wipe,
.arch-figure.is-visible .arch-wipe { clip-path: inset(0 0 0 0 round 999px 999px 18px 18px); }
.hero .arch-wipe {
  clip-path: inset(100% 0 0 0 round 999px 999px 18px 18px);
  animation: archReveal 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) 0.35s forwards;
}
@keyframes archReveal {
  to { clip-path: inset(0 0 0 0 round 999px 999px 18px 18px); }
}

.arch-figure { position: relative; }
.arch-figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #6B747C;
  text-align: center;
}
.arch-figure .arch img { aspect-ratio: 4 / 3; }
.arch-figure.tall .arch img { aspect-ratio: 4 / 5; }

/* Stamp badge */
.stamp {
  --stamp-size: 154px;
  position: absolute;
  z-index: 4;
  width: var(--stamp-size);
  height: var(--stamp-size);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  padding: 0.9rem;
  border: 2px solid var(--brass);
  border-radius: 50%;
  background: rgba(252, 250, 244, 0.94);
  color: var(--brass-dark);
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  line-height: 1.45;
  transform: rotate(-6deg);
  box-shadow: inset 0 0 0 5px var(--cream), inset 0 0 0 6px rgba(176, 141, 62, 0.7);
  opacity: 0;
  animation: stampIn 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) 0.85s forwards;
  pointer-events: none;
}
.stamp::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(176, 141, 62, 0.65);
  border-radius: 50%;
}
.stamp .stamp-big {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brass-dark);
}
.stamp .stamp-line { width: 30px; height: 1px; background: rgba(176, 141, 62, 0.7); margin: 0.15rem 0; }
.hero-stamp { left: -6%; bottom: -22px; }
@keyframes stampIn {
  0% { opacity: 0; transform: scale(1.6) rotate(-16deg); }
  70% { opacity: 1; transform: scale(0.96) rotate(-5deg); }
  100% { opacity: 1; transform: scale(1) rotate(-6deg); }
}
.stamp.stamp-static { opacity: 1; animation: none; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--navy);
  color: #fff;
  padding: clamp(1.9rem, 3.5vw, 2.6rem) 0;
  position: relative;
}
.trust-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}
.trust-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1rem;
}
.trust-item { position: relative; display: flex; align-items: baseline; gap: 0.65rem; }
.trust-num {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.trust-label { font-size: 0.78rem; line-height: 1.45; color: rgba(255, 255, 255, 0.72); max-width: 13ch; }
.trust-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  align-self: flex-start;
  padding: 0.55rem 0.95rem;
  border: 1px solid rgba(176, 141, 62, 0.65);
  border-radius: 999px;
  color: #E3D1A2;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.trust-seal .icon { width: 16px; height: 16px; color: var(--brass); }
.trust-foot { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }

/* ---------- Split layouts ---------- */
.split {
  display: grid;
  gap: clamp(2.25rem, 5vw, 4.25rem);
  align-items: center;
}
.split-copy h2 { margin-bottom: 1.2rem; }
.split-copy .lede + .lede { margin-top: 1rem; }

/* ---------- Empathy ---------- */
.pledges { margin-top: 1.9rem; display: flex; flex-direction: column; gap: 1.05rem; }
.pledge {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0.95rem;
  align-items: start;
}
.pledge-icon {
  width: 38px; height: 38px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--brass-dark);
  background: rgba(176, 141, 62, 0.05);
}
.pledge-icon .icon { width: 18px; height: 18px; }
.pledge h3 { font-family: var(--font-sans); font-size: 0.98rem; font-weight: 600; line-height: 1.45; margin-bottom: 0.15rem; }
.pledge p { font-size: 0.92rem; line-height: 1.6; }
.empathy-media .arch img { aspect-ratio: 4 / 3; }
.empathy-media { max-width: 460px; margin-inline: auto; }

/* ---------- Case-file service cards ---------- */
.casefiles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 1rem;
}
.casefile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2.1rem 1.6rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.35s ease;
}
.casefile::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -11px;
  width: 96px;
  height: 12px;
  background: var(--brand);
  border-radius: 6px 6px 0 0;
  transition: height 0.3s ease, width 0.3s ease;
}
.casefile:hover,
.casefile:focus-within {
  transform: translateY(-6px) rotate(0.4deg);
  box-shadow: 0 14px 30px rgba(12, 48, 84, 0.15);
}
.casefile:hover::before,
.casefile:focus-within::before { height: 15px; width: 118px; }
.casefile .icon-lg { width: 30px; height: 30px; color: var(--brass-dark); }
.casefile h3 { font-size: 1.34rem; }
.casefile h3 a { display: inline-block; }
.casefile h3 a:hover { color: var(--brand); }
.casefile p { font-size: 0.93rem; line-height: 1.6; }
.casefile .link-arrow { margin-top: auto; padding-top: 0.7rem; }
.casefile .casefile-num {
  position: absolute;
  top: 1.55rem; right: 1.5rem;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: rgba(12, 48, 84, 0.32);
}

/* ---------- Path finder ---------- */
.pathfinder { position: relative; }
.path-chips { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.path-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.62rem 1rem;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.path-chip .icon { width: 17px; height: 17px; color: var(--brass-dark); transition: color 0.25s ease; }
.path-chip:hover { transform: translateY(-1px); border-color: var(--brand); color: var(--brand); }
.path-chip[aria-pressed="true"] {
  background: var(--btn);
  border-color: var(--btn);
  color: #fff;
}
.path-chip[aria-pressed="true"] .icon { color: #fff; }

.path-route { height: 36px; margin-top: 0.25rem; display: none; color: var(--brass); }
.path-route svg { width: 100%; height: 36px; overflow: visible; }
.path-route path {
  fill: none;
  stroke: var(--brass);
  stroke-width: 2;
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  transition: stroke-dashoffset 0.45s ease;
}
.path-route.drawn path { stroke-dashoffset: 0; }

.path-panel {
  position: relative;
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  min-height: 210px;
}
.path-panel .panel-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass-dark);
  margin-bottom: 0.6rem;
}
.path-panel h3 { margin-bottom: 0.6rem; font-size: 1.45rem; }
.path-panel p { font-size: 0.98rem; line-height: 1.68; }
.path-panel .link-arrow { margin-top: 1.1rem; }
.path-panel.swap { animation: swapIn 0.4s ease both; }
@keyframes swapIn {
  from { opacity: 0.15; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Meet Ming ---------- */
.meet-card {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
}
.meet-card .arch { max-width: 340px; margin-inline: auto; }
.meet-card .arch img { aspect-ratio: 1 / 1; }
.meet-copy .badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.2rem 0 1.5rem; }
.pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  line-height: 1.55;
  color: var(--navy);
  padding-left: 1.5rem;
  border-left: 2px solid var(--brass);
  margin: 1.4rem 0;
}
.pullquote cite { display: block; margin-top: 0.7rem; font-family: var(--font-sans); font-style: normal; font-size: 0.82rem; color: #6B747C; }

/* ---------- Process steps strip ---------- */
.steps-wrap { position: relative; }
.steps-line { display: none; }
.steps { display: grid; gap: 1.9rem; position: relative; }
.step { position: relative; padding-left: 62px; }
.step-num {
  position: absolute;
  left: 0; top: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 2px solid var(--brass);
  border-radius: 50%;
  background: #fff;
  color: var(--brass-dark);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  z-index: 2;
}
.step h3 { font-size: 1.18rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.91rem; line-height: 1.6; }
.steps-foot { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }

/* ---------- Nationwide map ---------- */
.map-split { align-items: center; }
.map-visual {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.map-visual svg { width: 100%; height: auto; }
.map-land { fill: rgba(12, 48, 84, 0.09); stroke: rgba(12, 48, 84, 0.32); stroke-width: 1.6; stroke-linejoin: round; }
.map-route {
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-dasharray: 5 6;
  stroke-dashoffset: 700;
  opacity: 0.75;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.map-visual.is-visible .map-route { stroke-dashoffset: 0; }
.map-pin { fill: var(--brass); }
.map-pin-ring {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.5;
  transform-origin: 545px 200px;
  animation: pinPulse 2.4s ease-out infinite;
  opacity: 0;
}
@keyframes pinPulse {
  0% { transform: scale(0.6); opacity: 0.55; }
  80%, 100% { transform: scale(2.1); opacity: 0; }
}
.map-caption {
  position: absolute;
  left: 1.2rem; bottom: 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B747C;
  background: rgba(247, 245, 241, 0.9);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}
.map-copy h2 { margin-bottom: 1rem; }
.map-bullets { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.map-bullets li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; }
.map-bullets .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--brass-dark); }
.skyline-card { margin-top: 1.6rem; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.skyline-card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.skyline-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1rem 0.7rem;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(to top, rgba(12, 48, 84, 0.82), transparent);
}

/* ---------- Testimonials ---------- */
.letters { display: grid; gap: 1.7rem; margin-top: 0.5rem; }
.letter {
  position: relative;
  background-color: var(--cream);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 27px,
    rgba(12, 48, 84, 0.08) 27px 28px
  );
  border: 1px solid #E4DCCB;
  border-radius: 6px;
  padding: 2.15rem 1.55rem 1.4rem;
  box-shadow: 0 8px 22px rgba(12, 48, 84, 0.09);
  transform: rotate(-2.2deg);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.45s ease;
}
.letter:nth-child(2) { transform: rotate(2deg); }
.letter:nth-child(3) { transform: rotate(-1.4deg); }
.letter:hover { transform: rotate(0deg) translateY(-6px); box-shadow: 0 18px 40px rgba(12, 48, 84, 0.16); }
.letter::before {
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  width: 12px; height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--brass);
  box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.22), 0 1px 2px rgba(0, 0, 0, 0.15);
}
.letter blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.03rem;
  line-height: 1.62;
  color: var(--navy);
  margin-bottom: 1rem;
}
.letter blockquote::before { content: "\201C"; }
.letter blockquote::after { content: "\201D"; }
.letter figcaption { font-size: 0.78rem; color: #5C666E; line-height: 1.5; }
.letter figcaption strong { display: block; color: var(--navy); font-size: 0.82rem; }
.letter .tag { margin-top: 0.6rem; }
.letters-disclaimer { margin-top: 2rem; font-size: 0.76rem; color: #6B747C; text-align: center; max-width: 70ch; margin-inline: auto; }

/* ---------- Why Tang ledger ---------- */
.ledger { display: grid; gap: 0; margin-top: 0.25rem; }
.ledger-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(12, 48, 84, 0.13);
}
.ledger-item:last-child { border-bottom: 1px solid rgba(12, 48, 84, 0.13); }
.ledger-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--brass);
  opacity: 0.92;
}
.ledger-item .ledger-num {
  opacity: 0;
  transform: scale(1.35);
  transform-origin: left center;
  transition: opacity 0.4s ease 0.2s, transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1) 0.2s;
}
.ledger-item.is-visible .ledger-num { opacity: 0.92; transform: scale(1); }
.ledger-item h3 { font-size: 1.13rem; margin-bottom: 0.25rem; }
.ledger-item p { font-size: 0.91rem; line-height: 1.6; }
.ledger-item.offset { padding-left: 0; }

/* ---------- FAQ accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-heading { margin: 0; font: inherit; letter-spacing: normal; }
.acc-btn {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 0.2rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
  transition: color 0.2s ease;
}
.acc-btn:hover { color: var(--brand); }
.acc-icon {
  position: relative;
  flex: none;
  width: 27px; height: 27px;
  border: 1px solid rgba(176, 141, 62, 0.75);
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.acc-icon::before,
.acc-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 1.5px;
  background: var(--brass-dark);
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease;
}
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-btn[aria-expanded="true"] .acc-icon { transform: rotate(45deg); background: var(--brass); }
.acc-btn[aria-expanded="true"] .acc-icon::before,
.acc-btn[aria-expanded="true"] .acc-icon::after { background: #fff; }
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.acc-panel-inner { padding: 0 2.5rem 1.35rem 0.2rem; font-size: 0.95rem; line-height: 1.7; color: var(--slate); }
.acc-panel-inner p + p { margin-top: 0.6rem; }

.faq-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.faq-intro { position: relative; }
.faq-intro .link-arrow { margin-top: 1.1rem; }
.faq-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 2.5vw, 1.9rem);
  box-shadow: var(--shadow-sm);
}

/* ---------- Language / WeChat community ---------- */
.community-card {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  background: var(--cream);
  border: 1px solid #E7DECC;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.community-card::after {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 180px; height: 180px;
  border: 1px solid rgba(176, 141, 62, 0.28);
  border-radius: 50%;
  pointer-events: none;
}
.community-card .arch img { aspect-ratio: 4 / 3; }
.community-copy h2 { margin-bottom: 1rem; }
.wechat-pass {
  margin-top: 1.4rem;
  border: 1.5px solid var(--green);
  border-radius: 12px;
  background: #fff;
  padding: 1rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(31, 122, 84, 0.09);
}
.wechat-pass .wechat-meta { display: flex; align-items: center; gap: 0.75rem; }
.wechat-pass .wechat-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(31, 122, 84, 0.1);
  display: grid; place-items: center;
  color: var(--green-dark);
}
.wechat-pass .wechat-label { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: #5C666E; }
.wechat-pass .wechat-id { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; color: var(--navy); letter-spacing: 0.04em; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--green);
  border-radius: 9px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 600;
  background: #fff;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.copy-btn:hover { background: var(--green); color: #fff; }
.copy-btn .icon { width: 15px; height: 15px; }
.wechat-note { margin-top: 0.65rem; font-size: 0.8rem; color: #5C666E; }
.chinese-site {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.1rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(12, 48, 84, 0.2);
  border-radius: 999px;
  background: #fff;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--navy);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.chinese-site:hover { border-color: var(--brass); transform: translateY(-1px); }
.chinese-site .zh { font-family: var(--font-cjk); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(176, 141, 62, 0.35);
  border-radius: 8px;
  pointer-events: none;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 12% 20%, rgba(0, 123, 205, 0.16), transparent 46%),
    radial-gradient(ellipse at 88% 82%, rgba(176, 141, 62, 0.13), transparent 44%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; max-width: 22ch; margin-inline: auto; }
.cta-band .lede { color: rgba(255, 255, 255, 0.78); margin-inline: auto; }
.cta-actions { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.9rem; align-items: stretch; }
.cta-actions .btn { width: 100%; }
.cta-band .micro { margin-top: 1.35rem; margin-inline: auto; color: rgba(255, 255, 255, 0.6); }
.cta-band .btn-primary { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 22px rgba(0, 0, 0, 0.22); }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  position: relative;
  background: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.75rem, 5vw, 4rem);
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  right: -160px; top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 123, 205, 0.07), transparent 68%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 1.1rem; font-size: clamp(2.25rem, 4.6vw, 3.7rem); }
.page-hero .lede { max-width: 60ch; }
.page-hero .hero-actions { margin-top: 1.5rem; }
.page-hero .route-divider { margin-top: 1.6rem; width: 100%; }

.page-hero-grid { display: grid; gap: clamp(2rem, 4vw, 3.25rem); align-items: center; }

/* ---------- About ---------- */
.about-hero .arch img { aspect-ratio: 4 / 5; }
.about-hero .stamp { right: -6%; bottom: -18px; left: auto; }
.credential-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }

.story-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  box-shadow: var(--shadow-sm);
}
.story-body { max-width: 680px; margin-inline: auto; }
.story-body p { font-size: clamp(1.02rem, 1.35vw, 1.12rem); line-height: 1.8; }
.story-body .dropcap::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 4.4rem;
  line-height: 0.82;
  font-weight: 700;
  color: var(--navy);
  padding: 0.12em 0.14em 0 0;
}

.cert-grid { display: grid; gap: 1.5rem; }
.cert {
  position: relative;
  background: #fff;
  border: 1px solid rgba(12, 48, 84, 0.2);
  border-radius: 10px;
  padding: 1.9rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cert::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--navy) 0 14px, var(--brass) 14px 22px);
  opacity: 0.65;
}
.cert::after {
  content: "VERIFIED";
  position: absolute;
  right: 12px; bottom: 12px;
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  color: rgba(176, 141, 62, 0.55);
  border: 1px solid rgba(176, 141, 62, 0.4);
  border-radius: 3px;
  padding: 0.18rem 0.4rem;
  transform: rotate(-6deg);
  font-weight: 600;
}
.cert .cert-seal {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass-dark);
  margin-bottom: 1rem;
  opacity: 0;
  transform: scale(1.5) rotate(-12deg);
  transition: opacity 0.35s ease 0.25s, transform 0.45s cubic-bezier(0.2, 0.8, 0.3, 1) 0.25s;
}
.cert.is-visible .cert-seal { opacity: 1; transform: scale(1) rotate(0); }
.cert dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.cert dd { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.45; color: var(--navy); }
.cert dd span { display: block; margin-top: 0.3rem; font-family: var(--font-sans); font-size: 0.82rem; color: var(--slate); }

.principles { display: grid; gap: 1.6rem; }
.principle { border-top: 2px solid rgba(176, 141, 62, 0.4); padding-top: 1.35rem; }
.principle .seal-word {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.34rem 0.7rem;
  border: 1.5px solid var(--brass);
  border-radius: 4px;
  color: var(--brass-dark);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  transform: rotate(-2.5deg);
}
.principle:nth-child(2) .seal-word { transform: rotate(1.8deg); }
.principle:nth-child(3) .seal-word { transform: rotate(-1.2deg); }
.principle h3 { font-size: 1.35rem; margin-bottom: 0.55rem; }
.principle p { font-size: 0.95rem; }

.why-law-media .arch img { aspect-ratio: 4 / 3; }
.signature {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.bilingual-list { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.4rem; }
.bilingual-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.96rem; }
.bilingual-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--brass-dark); }
.about-bilingual-media .arch img { aspect-ratio: 4 / 3; }

.office-grid { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; }
.office-media .arch img { aspect-ratio: 16 / 10; }
.office-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}
.office-card h2 { margin-bottom: 1rem; }
.address-block { font-style: normal; line-height: 1.7; margin: 0.75rem 0 1.35rem; }
.address-block strong { display: block; color: var(--navy); font-size: 1.05rem; }
.hours-table { width: 100%; font-size: 0.9rem; margin: 0.5rem 0 1.2rem; }
.hours-table th, .hours-table td { text-align: left; padding: 0.5rem 0; border-bottom: 1px solid rgba(12, 48, 84, 0.1); }
.hours-table th { font-weight: 500; color: var(--navy); width: 42%; }
.hours-table td { color: var(--slate); }

/* ---------- Services ---------- */
.service-index {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  background: rgba(247, 245, 241, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  padding: 0.8rem 0;
}
.service-index .chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.service-index .chips::-webkit-scrollbar { display: none; }
.service-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 38px;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(12, 48, 84, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.service-chip:hover { border-color: var(--brand); color: var(--brand); }
.service-chip.active { background: var(--btn); border-color: var(--btn); color: #fff; }

.service-block { padding: clamp(3.5rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 60px); }
.service-block:last-of-type { border-bottom: 0; }
.service-block .split { align-items: center; }
.service-body h2 { margin-bottom: 1rem; }
.service-who { font-size: 0.95rem; font-weight: 500; color: var(--navy); margin-bottom: 0.9rem; }
.service-who span { color: var(--brass-dark); font-weight: 600; }
.service-body p { font-size: 0.98rem; line-height: 1.7; }
.service-subhead {
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 1.2rem 0 0.55rem;
}
.about-hero-grid .arch img { aspect-ratio: 4 / 5; }
.service-tags { margin: 1.2rem 0; }
.service-list { margin: 1.1rem 0 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; }
.service-list li { position: relative; padding-left: 1.35rem; font-size: 0.94rem; line-height: 1.6; }
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.58em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brass);
}
.service-media .arch img { aspect-ratio: 4 / 3; }
.service-media .arch-figure { max-width: 480px; margin-inline: auto; }
.service-block.reverse .split .service-media { order: -1; }

.checklist-static { display: grid; gap: 0.7rem; margin: 1.3rem 0 1.5rem; }
.checklist-static li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.94rem; line-height: 1.55; }
.check-circle {
  flex: none;
  width: 24px; height: 24px;
  margin-top: 1px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--brass-dark);
  background: rgba(176, 141, 62, 0.06);
}
.check-circle .icon { width: 13px; height: 13px; }
.wrinkles { margin-top: 1.2rem; padding: 1rem 1.15rem; background: var(--paper); border-left: 2px solid var(--navy); border-radius: 0 8px 8px 0; }
.wrinkles h4 { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); margin-bottom: 0.5rem; }
.wrinkles ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.wrinkles li { font-size: 0.85rem; color: var(--slate); }

.route-mini {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.1rem 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
}
.route-mini span {
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(12, 48, 84, 0.2);
  border-radius: 5px;
  background: #fff;
}
.route-mini .dash { color: var(--brass); font-weight: 700; }

.category-rows { margin: 1.2rem 0 1.4rem; }
.category-rows li {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(12, 48, 84, 0.16);
  font-size: 0.93rem;
}
.category-rows li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); flex: none; }
.urgency-note { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; color: var(--navy); margin: 0.4rem 0 1.2rem; }

.asylum {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.asylum-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hopeful_path_light.webp");
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  animation: ambientZoom 24s ease-in-out infinite alternate;
}
@keyframes ambientZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}
.asylum .container { position: relative; z-index: 1; }
.asylum-card {
  max-width: 780px;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.6rem, 4.5vw, 3.25rem);
}
.urgent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  padding: 0.95rem 1.1rem;
  border: 1.5px solid var(--brass);
  border-radius: 10px;
  background: var(--cream);
  margin-bottom: 1.6rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.urgent .icon { width: 20px; height: 20px; color: var(--brass-dark); flex: none; }
.urgent strong { color: var(--navy); }
.urgent a { color: var(--brand); font-weight: 600; white-space: nowrap; }
.urgent a:hover { text-decoration: underline; }
.confidential {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.9rem 1.05rem;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
  border-radius: 9px;
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 1.2rem 0;
}
.confidential .icon { width: 18px; height: 18px; color: var(--brass); flex: none; margin-top: 2px; }
.asylum-card h2 { margin-bottom: 0.8rem; }
.asylum-card .service-list { margin-bottom: 1.2rem; }
.asylum-close {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--navy);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.comparison-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.comparison-table { width: 100%; font-size: 0.94rem; }
.comparison-table thead th {
  padding: 1rem 1.2rem;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-dark);
  border-bottom: 2px solid var(--brass);
  background: var(--cream);
}
.comparison-table tbody th,
.comparison-table tbody td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(12, 48, 84, 0.09);
  vertical-align: top;
}
.comparison-table tbody th { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: var(--navy); width: 36%; }
.comparison-table tbody td { color: var(--slate); }
.comparison-table tbody td:last-child { font-weight: 500; color: var(--navy); }
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.comparison-table tbody tr { transition: background-color 0.2s ease; }
.comparison-table tbody tr:hover { background: var(--paper); }
.comparison-note { margin-top: 1rem; font-size: 0.8rem; color: #6B747C; font-style: italic; }

.fee-ledger { max-width: 820px; margin-inline: auto; }
.fee-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(12, 48, 84, 0.14);
}
.fee-row:last-child { border-bottom: 1px solid rgba(12, 48, 84, 0.14); }
.fee-row .ledger-num { font-size: 1.9rem; }
.fee-row h3 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.fee-row p { font-size: 0.92rem; }

/* ---------- Process page ---------- */
.timeline { position: relative; max-width: 1000px; margin: 0 auto; padding: 0.5rem 0 0; }
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 22px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, rgba(12, 48, 84, 0.32) 0 6px, transparent 6px 12px);
}
.timeline-progress {
  position: absolute;
  top: 0; left: 22px;
  width: 2px;
  height: 0;
  background: var(--navy);
  transition: height 0.15s linear;
  z-index: 0;
}
.timeline-item { position: relative; padding: 0 0 2.4rem 64px; }
.timeline-node {
  position: absolute;
  left: 0; top: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--brass);
  background: #fff;
  color: var(--brass-dark);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  z-index: 2;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.timeline-item.passed .timeline-node { background: var(--brass); color: #fff; }
.timeline-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 2.5vw, 1.7rem);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.4s ease;
}
.timeline-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.55rem; font-size: 1.3rem; }
.duration-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 123, 205, 0.09);
  color: #005A99;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.timeline-card p { font-size: 0.93rem; line-height: 1.65; }
.timeline-card .timeline-img { margin-top: 1rem; border-radius: 9px; overflow: hidden; }
.timeline-card .timeline-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.timeline-card .timeline-img figcaption { font-size: 0.72rem; color: #6B747C; padding-top: 0.35rem; }
.timeline-item.reveal { opacity: 0; transform: translateX(-22px); }
.timeline-item.reveal.is-visible { opacity: 1; transform: translateX(0); }

.check-layout { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.check-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.check-card h2 { margin-bottom: 0.6rem; }
.check-card > p { font-size: 0.94rem; margin-bottom: 1rem; }
.check-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 0.72rem 0;
  border-bottom: 1px dashed rgba(12, 48, 84, 0.13);
  cursor: pointer;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.5;
}
.check-item:last-of-type { border-bottom: 0; }
.check-item input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.stamp-box {
  flex: none;
  width: 26px; height: 26px;
  margin-top: 1px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  display: grid; place-items: center;
  color: transparent;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.stamp-box::after { content: "\2713"; font-size: 0.8rem; font-weight: 700; line-height: 1; }
.check-item input:checked + .stamp-box {
  background: var(--brass);
  color: #fff;
  transform: rotate(-6deg) scale(1.04);
}
.check-item input:focus-visible + .stamp-box { outline: 3px solid var(--brand); outline-offset: 2px; }
.check-progress {
  margin-top: 1.1rem;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  color: var(--navy);
}
.check-progress span { color: var(--brass-dark); font-weight: 700; }
.ready-badge {
  position: absolute;
  top: -18px; right: -12px;
  width: 96px; height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  border: 2px solid var(--brass);
  border-radius: 50%;
  background: var(--cream);
  color: var(--brass-dark);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 1.35;
  transform: rotate(8deg) scale(0);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.3s ease;
  z-index: 3;
  pointer-events: none;
}
.ready-badge strong { font-family: var(--font-serif); font-size: 0.82rem; letter-spacing: 0.08em; }
.ready-badge.show { transform: rotate(-7deg) scale(1); opacity: 1; }
.check-media .arch img { aspect-ratio: 4 / 3; }

.channel-grid { display: grid; gap: 1.1rem; }
.channel-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}
.channel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0, 123, 205, 0.3); }
.channel-card .channel-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid rgba(176, 141, 62, 0.55);
  border-radius: 50%;
  color: var(--brass-dark);
  margin-bottom: 0.4rem;
}
.channel-card .channel-name { font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600; color: #6B747C; }
.channel-card .channel-value { font-family: var(--font-serif); font-size: 1.1rem; color: var(--navy); line-height: 1.35; word-break: break-word; }
.channel-card .channel-value a { color: var(--navy); }
.channel-card .channel-value a:hover { color: var(--brand); }
.channel-card .channel-best { font-size: 0.79rem; color: #6B747C; line-height: 1.5; }
.channel-card.wechat { border-color: rgba(31, 122, 84, 0.55); }
.channel-card.wechat .channel-icon { border-color: rgba(31, 122, 84, 0.5); color: var(--green-dark); }
.channel-card .copy-btn { align-self: flex-start; margin-top: 0.35rem; }
.promise-line {
  margin-top: 1.8rem;
  padding: 1.25rem 1.4rem;
  border-left: 3px solid var(--brass);
  background: var(--cream);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--navy);
}
.promise-line small { display: block; margin-top: 0.45rem; font-family: var(--font-sans); font-size: 0.8rem; color: #6B747C; }

.fees-split { display: grid; gap: 1.5rem; }
.fee-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.fee-card h3 { font-size: 1.3rem; margin-bottom: 0.9rem; }
.fee-card ul { display: flex; flex-direction: column; gap: 0.65rem; }
.fee-card li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.93rem; line-height: 1.55; }
.fee-card li .icon { width: 17px; height: 17px; margin-top: 3px; color: var(--brass-dark); flex: none; }
.fee-note { margin-top: 1.4rem; font-size: 0.85rem; color: #6B747C; }

.responsibilities { display: flex; flex-direction: column; margin-top: 0.5rem; }
.resp-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(12, 48, 84, 0.14);
  align-items: start;
}
.resp-row:last-child { border-bottom: 1px solid rgba(12, 48, 84, 0.14); }
.resp-row .check-circle { width: 32px; height: 32px; }
.resp-row h3 { font-family: var(--font-sans); font-size: 0.99rem; margin-bottom: 0.15rem; }
.resp-row p { font-size: 0.9rem; }

/* ---------- FAQ page ---------- */
.faq-group { margin-bottom: clamp(2.5rem, 5vw, 4rem); scroll-margin-top: calc(var(--header-h) + 40px); }
.faq-group:last-of-type { margin-bottom: 0; }
.faq-group-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.faq-group-head .group-icon {
  width: 42px; height: 42px;
  flex: none;
  display: grid; place-items: center;
  border: 1px solid rgba(176, 141, 62, 0.55);
  border-radius: 50%;
  color: var(--brass-dark);
}
.faq-group-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.faq-group .accordion { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 0.2rem clamp(1rem, 2.5vw, 1.75rem); box-shadow: var(--shadow-sm); }
.faq-group .acc-item { border-bottom: 1px solid var(--line); }
.faq-group .acc-item:last-child { border-bottom: 0; }

.fraud-band {
  background: var(--cream);
  border-top: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  padding: clamp(2.75rem, 5vw, 4rem) 0;
}
.fraud-inner { max-width: 780px; margin-inline: auto; }
.fraud-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.4rem; }
.fraud-head .fraud-seal {
  flex: none;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border: 2px solid var(--brass);
  border-radius: 50%;
  color: var(--brass-dark);
  transform: rotate(-6deg);
}
.fraud-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.fraud-rules { display: flex; flex-direction: column; gap: 0.85rem; margin: 1.2rem 0 1.4rem; }
.fraud-rules li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; line-height: 1.6; }
.fraud-rules li::before {
  content: "\2715";
  position: absolute;
  left: 0; top: 0.05em;
  color: var(--brass-dark);
  font-size: 0.8rem;
  font-weight: 700;
}
.fraud-verify { font-size: 0.88rem; color: var(--navy); font-weight: 500; }

.glossary-grid { display: grid; gap: 1.15rem; }
.glossary-card {
  position: relative;
  background: var(--cream);
  border: 1px solid #E5DCC9;
  border-radius: 6px;
  padding: 1.4rem 1.3rem 1.2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glossary-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 22px; height: 22px;
  background: linear-gradient(225deg, var(--brass) 0 50%, transparent 50%);
  border-radius: 0 6px 0 0;
  opacity: 0.7;
}
.glossary-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.glossary-card dt { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.glossary-card dd { font-size: 0.88rem; line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-hero .quick-stack { display: flex; flex-direction: column; gap: 0.85rem; }
.quick-action {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.quick-action:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(0, 123, 205, 0.3); }
.quick-action .quick-icon {
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 105, 180, 0.08);
  color: var(--btn);
}
.quick-action .quick-label { display: block; font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: #6B747C; font-weight: 600; }
.quick-action .quick-value { display: block; font-family: var(--font-serif); font-size: 1.2rem; color: var(--navy); line-height: 1.3; }
.quick-action .quick-best { display: block; font-size: 0.78rem; color: #6B747C; }
.quick-action .icon.arrow { margin-left: auto; color: var(--brass-dark); width: 17px; }

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  position: relative;
}
.form-card h2 { margin-bottom: 0.6rem; }
.form-card > .micro { margin-bottom: 1.5rem; }
.form-grid { display: grid; gap: 0 1rem; }
.field { position: relative; margin-bottom: 1.25rem; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 1.45rem 0.95rem 0.55rem;
  border: 1px solid rgba(12, 48, 84, 0.26);
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field label {
  position: absolute;
  left: 0.95rem;
  top: 0.95rem;
  font-size: 0.95rem;
  color: #6B747C;
  pointer-events: none;
  transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 0.38rem;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  color: var(--brand);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 123, 205, 0.16);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-top: 1.45rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230C3054' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 13px;
}
.field-select label {
  position: static;
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: #5C666E;
  margin-bottom: 0.35rem;
}
.field .field-msg { display: block; min-height: 1.1rem; margin-top: 0.3rem; font-size: 0.75rem; }
.field .field-msg.error { color: #B3261E; }
.field .field-msg.ok { color: var(--green-dark); }
.field.has-error input,
.field.has-error textarea { border-color: #B3261E; }
.form-submit { margin-top: 0.4rem; }
.form-privacy { margin-top: 1rem; font-size: 0.78rem; line-height: 1.6; color: #6B747C; }
.honeypot { position: absolute !important; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-success { display: none; text-align: center; padding: 2rem 0.5rem; position: relative; }
.form-success.show { display: block; }
.success-stamp {
  width: 132px; height: 132px;
  margin: 0 auto 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  border: 2.5px solid var(--brass);
  border-radius: 50%;
  background: var(--cream);
  color: var(--brass-dark);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  transform: rotate(-7deg);
  box-shadow: inset 0 0 0 5px var(--cream), inset 0 0 0 6px rgba(176, 141, 62, 0.6);
  animation: stampIn 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.success-stamp strong { font-family: var(--font-serif); font-size: 1.05rem; letter-spacing: 0.1em; }
.form-success h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.form-success p { margin-inline: auto; font-size: 0.95rem; }

.contact-office { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.contact-office .office-media .arch img { aspect-ratio: 16 / 11; }
.map-frame {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; filter: saturate(0.85) contrast(0.98); }

.next-steps { display: flex; flex-direction: column; gap: 1.6rem; counter-reset: step; }
.next-step { position: relative; padding-left: 58px; }
.next-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 2px solid var(--brass);
  border-radius: 50%;
  background: #fff;
  color: var(--brass-dark);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
}
.next-step h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.next-step p { font-size: 0.9rem; }

.confidentiality { text-align: center; }
.confidentiality .seal-glyph {
  width: 64px; height: 64px;
  margin: 0 auto 1.2rem;
  display: grid; place-items: center;
  border: 2px solid var(--brass);
  border-radius: 50%;
  color: var(--brass);
}
.confidentiality .seal-glyph .icon { width: 28px; height: 28px; }
.confidentiality h2 { max-width: 24ch; margin-inline: auto; margin-bottom: 0.9rem; }
.confidentiality p { max-width: 58ch; margin-inline: auto; color: rgba(255, 255, 255, 0.78); }

.language-grid { display: grid; gap: 1.5rem; }
.language-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.language-card h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 0.6rem; }
.language-card p { font-size: 0.94rem; }
.language-lines { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.language-card .chinese-site { margin-top: 1.2rem; }
.urgent-card {
  border: 1.5px solid var(--brass);
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-sm);
}
.urgent-card h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 0.6rem; }
.urgent-card p { font-size: 0.94rem; }
.urgent-card .btn { margin-top: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.76);
  padding: 0 0 1.25rem;
  font-size: 0.9rem;
}
.footer-perf {
  height: 13px;
  background-image: radial-gradient(circle, rgba(247, 245, 241, 0.75) 2px, transparent 2.4px);
  background-size: 15px 13px;
  background-repeat: repeat-x;
  opacity: 0.5;
}
.footer-main { padding: clamp(2.5rem, 5vw, 3.75rem) 0 2.25rem; position: relative; }
.footer-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  gap: 2rem;
}
.footer-col h3 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-brand .scales-mark {
  width: 42px; height: 42px;
  color: var(--brass);
  margin-bottom: 0.9rem;
  transition: color 0.25s ease;
}
.scales-mark.balance { animation: scalesBalance 1.4s ease-in-out; }
@keyframes scalesBalance {
  0% { transform: rotate(0); }
  20% { transform: rotate(6deg); }
  45% { transform: rotate(-4deg); }
  70% { transform: rotate(2.5deg); }
  100% { transform: rotate(0); }
}
.footer-logo-chip {
  display: inline-block;
  background: #fff;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
}
.footer-logo-chip img { width: 160px; height: auto; }
.footer-brand p { font-size: 0.86rem; line-height: 1.65; max-width: 30ch; color: rgba(255, 255, 255, 0.68); }
.footer-brand .footer-lang { margin-top: 0.9rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.56); }
.footer-brand .footer-lang .zh { font-family: var(--font-cjk); color: rgba(255, 255, 255, 0.8); }

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.87rem;
  line-height: 1.5;
  padding: 0.15rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-links a:hover { color: #8FD0FA; transform: translateX(2px); }

.footer-contact { font-style: normal; display: flex; flex-direction: column; gap: 0.45rem; font-size: 0.87rem; line-height: 1.55; }
.footer-contact a { color: rgba(255, 255, 255, 0.86); }
.footer-contact a:hover { color: #8FD0FA; }
.footer-contact .fc-label { color: rgba(255, 255, 255, 0.5); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-top: 0.35rem; }
.footer-wechat { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.footer-wechat .copy-btn {
  border-color: rgba(176, 141, 62, 0.6);
  background: transparent;
  color: var(--brass);
  min-height: 34px;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
}
.footer-wechat .copy-btn:hover { background: var(--brass); color: var(--navy); }
.footer-contact .copy-btn {
  align-self: flex-start;
  min-height: 32px;
  padding: 0.2rem 0.55rem;
  margin: 0.15rem 0 0.25rem;
  font-size: 0.7rem;
  border-color: rgba(176, 141, 62, 0.5);
  color: var(--brass);
  background: transparent;
}
.footer-contact .copy-btn:hover { background: var(--brass); color: var(--navy); }
.mm-info .copy-btn { margin-top: 0.35rem; border-color: rgba(12, 48, 84, 0.25); color: var(--navy); }
.mm-info .copy-btn:hover { background: var(--navy); color: #fff; }
.footer-hours { width: 100%; font-size: 0.82rem; margin-top: 0.5rem; }
.footer-hours th, .footer-hours td { padding: 0.25rem 0; text-align: left; color: rgba(255, 255, 255, 0.66); font-weight: 400; }
.footer-hours th { width: 52%; }
.footer-hours caption { text-align: left; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 0.4rem; }

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}
.footer-bottom .footer-legal { max-width: 62ch; }
.footer-bottom a { color: rgba(255, 255, 255, 0.72); }
.footer-bottom a:hover { color: #8FD0FA; }

/* ---------- Toast / sticky mobile bar ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 140%);
  z-index: 500;
  max-width: min(92vw, 420px);
  padding: 0.8rem 1.1rem;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); }
.toast .zh { font-family: var(--font-cjk); }

.mobile-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(12, 48, 84, 0.1);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.mobile-bar.show { transform: translateY(0); }
.mobile-bar .btn { min-height: 48px; font-size: 0.9rem; padding: 0.5rem 0.7rem; }

body.bar-hidden .mobile-bar { transform: translateY(110%); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.reveal.from-left { transform: translateX(-34px); }
.reveal.from-right { transform: translateX(34px); }
.reveal.is-visible { opacity: 1; transform: translate(0, 0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.06s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.14s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.22s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.38s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.46s; }

/* ---------- Muted-copy contrast refinements ---------- */
.micro,
.arch-figure figcaption,
.channel-best,
.wechat-note,
.form-privacy,
.letters-disclaimer,
.comparison-note,
.fee-note,
.hero-micro { color: #5F6870; }
.trust-foot { color: rgba(255, 255, 255, 0.65); }
.bg-navy .micro, .cta-band .micro { color: rgba(255, 255, 255, 0.72); }
.footer-lang { color: rgba(255, 255, 255, 0.66); }
.footer-contact .fc-label { color: rgba(255, 255, 255, 0.6); }
.footer-bottom { color: rgba(255, 255, 255, 0.66); }
.footer-contact .copy-btn,
.footer-wechat .copy-btn { color: #D8BC7E; border-color: rgba(216, 188, 126, 0.55); }
.footer-contact .copy-btn:hover,
.footer-wechat .copy-btn:hover { background: #D8BC7E; color: var(--navy); }

/* ---------- Responsive: tablet ---------- */
@media (min-width: 600px) {
  .cta-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; }
  .cta-actions .btn { width: auto; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field.full { grid-column: 1 / -1; }
  .channel-grid { grid-template-columns: 1fr 1fr; }
  .glossary-grid { grid-template-columns: 1fr 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ledger { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
  .ledger-item:nth-child(3) { border-top: 1px solid rgba(12, 48, 84, 0.13); }
  .letters { grid-template-columns: 1fr 1fr; }
  .next-steps { flex-direction: row; gap: 0; }
  .next-step { flex: 1; padding: 0 1.25rem; }
  .next-step::after {
    content: "";
    position: absolute;
    top: 21px; right: -4px;
    width: 8px; height: 8px;
    border-top: 1.5px solid var(--brass);
    border-right: 1.5px solid var(--brass);
    transform: rotate(45deg);
    opacity: 0.6;
  }
  .next-step:last-child::after { display: none; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item + .trust-item { padding-left: 1.1rem; }
  .trust-item + .trust-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--brass);
  }
  .steps { grid-template-columns: 1fr 1fr; }
}

/* ---------- Responsive: desktop ---------- */
@media (min-width: 860px) {
  .header-call { display: inline-flex; }
  .menu-toggle { display: none; }
  .nav-main { display: block; }
}

@media (min-width: 768px) {
  .casefiles-grid { grid-template-columns: 1fr 1fr; }
  .timeline-item.reveal { transform: translateX(-28px); }
  .faq-layout { grid-template-columns: 0.85fr 1.15fr; }
  .faq-intro { position: sticky; top: calc(var(--header-h) + 30px); }
  .fees-split { grid-template-columns: 1fr 1fr; }
  .timeline-card { padding: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .contact-office { grid-template-columns: 1fr 1fr; }
  .language-grid { grid-template-columns: 1.1fr 0.9fr; }
  .principles { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  :root { --header-h: 76px; }

  .hero-grid { grid-template-columns: 1.08fr 0.92fr; }
  .hero-copy { padding-right: 1rem; }
  .hero-portrait { max-width: 100%; }

  .split { grid-template-columns: 1fr 1fr; }
  .split-55 { grid-template-columns: 1.1fr 0.9fr; }
  .split-45 { grid-template-columns: 0.9fr 1.1fr; }
  .empathy-grid { grid-template-columns: 0.9fr 1.1fr; }
  .empathy-media { max-width: 100%; }

  .casefiles-grid { grid-template-columns: repeat(6, 1fr); }
  .casefile { grid-column: span 2; }
  .casefile:nth-child(4) { grid-column: 2 / span 2; }
  .casefile:nth-child(5) { grid-column: 4 / span 2; }

  .path-chips { gap: 0.7rem; }
  .path-route { display: block; }
  .path-panel { margin-top: 0.5rem; }

  .meet-card { grid-template-columns: 0.8fr 1.2fr; }

  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .step { padding: 0 1rem 0 0; }
  .step-num { position: static; margin-bottom: 1rem; }
  .steps-line {
    display: block;
    position: absolute;
    top: 23px; left: 4%; right: 4%;
    height: 2px;
    z-index: 0;
  }
  .steps-line svg { width: 100%; height: 2px; overflow: visible; }
  .steps-line path {
    fill: none;
    stroke: var(--brass);
    stroke-width: 2;
    stroke-dasharray: 5 6;
    stroke-dashoffset: 800;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.2, 0.8, 0.3, 1);
  }
  .steps-wrap.is-visible .steps-line path { stroke-dashoffset: 0; }
  .step.reveal { opacity: 0; }
  .step.reveal.is-visible { opacity: 1; }

  .map-split { grid-template-columns: 1.25fr 0.75fr; }
  .map-visual { min-height: 380px; }

  .letters { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .letter:nth-child(2) { margin-top: 1.1rem; }
  .letter:nth-child(3) { margin-top: 0.35rem; }

  .ledger { grid-template-columns: 1fr 1fr; column-gap: 3.5rem; }
  .ledger-item:nth-child(2) { border-top: 1px solid rgba(12, 48, 84, 0.13); }
  .ledger-item.offset { padding-left: 0; }

  .faq-layout { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; }

  .community-card { grid-template-columns: 0.9fr 1.1fr; }

  .page-hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .page-hero-grid.reverse { grid-template-columns: 0.95fr 1.05fr; }
  .about-hero-grid { grid-template-columns: 1fr 0.85fr; }

  .cert-grid { grid-template-columns: repeat(3, 1fr); }
  .cert:nth-child(2) { transform: translateY(14px); }
  .cert:nth-child(3) { transform: translateY(4px) rotate(0.6deg); }

  .office-grid { grid-template-columns: 1fr 1fr; }
  .office-grid.reverse .office-media { order: 2; }

  .service-block .split { grid-template-columns: 1.05fr 0.95fr; }
  .service-block.reverse .split { grid-template-columns: 0.95fr 1.05fr; }
  .service-block.reverse .split .service-media { order: -1; }

  .comparison-table { font-size: 0.97rem; }

  .timeline::before, .timeline-progress { left: 50%; }
  .timeline-item { width: 50%; padding: 0 52px 3rem 0; }
  .timeline-item:nth-child(even) { margin-left: 50%; padding: 0 0 3rem 52px; }
  .timeline-node { left: auto; right: -23px; }
  .timeline-item:nth-child(even) .timeline-node { left: -23px; right: auto; }
  .timeline-item.reveal { transform: translateX(-30px); }
  .timeline-item:nth-child(even).reveal { transform: translateX(30px); }
  .timeline-item.reveal.is-visible { transform: translateX(0); }

  .check-layout { grid-template-columns: 1.1fr 0.9fr; }
  .check-media { position: sticky; top: calc(var(--header-h) + 30px); }

  .channel-grid { grid-template-columns: repeat(4, 1fr); }
  .channel-card { padding: 1.5rem 1.15rem; }
  .channel-card .channel-value { font-size: 1.02rem; }

  .contact-office { grid-template-columns: 0.9fr 1.1fr; }
  .contact-hero-grid { grid-template-columns: 1.1fr 0.9fr; }

  .footer-grid { grid-template-columns: 1.25fr 0.85fr 1.25fr 0.9fr; gap: 2.25rem; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 2rem; }
  .footer-bottom .footer-legal { text-align: right; }
  .trust-inner { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .trust-grid { flex: 1 1 720px; }
  .trust-seal { align-self: center; }
  .trust-foot { flex-basis: 100%; }
}

@media (min-width: 1180px) {
  .hero-grid { gap: 4.5rem; }
  .casefiles-grid { gap: 1.9rem; }
}

/* ---------- Header sizing by viewport ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --header-h: 64px; }
  .site-header.scrolled .header-inner { height: var(--header-h); }
}

@media (min-width: 860px) and (max-width: 1023px) {
  .header-inner { gap: 0.8rem; }
  .brand img { width: 132px; }
  .nav-main ul { gap: 0.8rem; }
  .nav-main a { font-size: 0.82rem; }
  .lang-link { font-size: 0.8rem; }
  .header-call { min-height: 42px; padding: 0.45rem 0.75rem; font-size: 0.8rem; }
  .header-call .icon { width: 16px; height: 16px; }
}

/* ---------- Sticky in-page service nav offsets ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .service-index { top: 64px; }
}
@media (min-width: 1024px) {
  .service-index { top: calc(var(--header-h) - 8px); }
}

/* ---------- One-time urgency border pulses ---------- */
@keyframes urgentPulse {
  0% { box-shadow: 0 0 0 0 rgba(176, 141, 62, 0.42); }
  100% { box-shadow: 0 0 0 12px rgba(176, 141, 62, 0); }
}
.asylum-card.is-visible .urgent { animation: urgentPulse 1.1s ease 0.7s 1; }
.urgent-card.is-visible { animation: urgentPulse 1.1s ease 0.6s 1; }

/* ---------- Mobile-only refinements ---------- */
@media (max-width: 767px) {
  :root { --header-h: 60px; }
  .header-inner { height: 60px; }
  .site-header.scrolled .header-inner { height: 60px; }
  .header-call { display: none; }
  .lang-link { display: none; }
  .brand img { width: 122px; }
  .site-header .menu-toggle { display: inline-flex; }
  .hero-actions .btn { width: 100%; }
  .hero .hero-portrait { max-width: 360px; }
  body { padding-bottom: 72px; }
  .hero-stamp { left: 0; bottom: -16px; --stamp-size: 126px; font-size: 0.52rem; }
  .hero-stamp .stamp-big { font-size: 0.8rem; }
  .hero-route { display: none; }
  .letters {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0.5rem 0 1rem;
    margin-inline: -20px;
    padding-inline: 20px;
    scrollbar-width: none;
  }
  .letters::-webkit-scrollbar { display: none; }
  .letter { flex: 0 0 84%; scroll-snap-align: center; transform: rotate(-1deg); }
  .letter:nth-child(2) { transform: rotate(1.2deg); margin-top: 0; }
  .letter:nth-child(3) { transform: rotate(-0.8deg); margin-top: 0; }
  .letter:hover { transform: rotate(-1deg); }
  .comparison-wrap { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .comparison-table thead { display: none; }
  .comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table th, .comparison-table td { display: block; width: 100%; }
  .comparison-table tr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 0.9rem;
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow-sm);
  }
  .comparison-table tbody th { border-bottom: 1px solid rgba(12, 48, 84, 0.09); padding: 0 0 0.55rem; margin-bottom: 0.55rem; font-size: 1rem; }
  .comparison-table tbody td { border: 0; padding: 0.3rem 0; font-size: 0.88rem; }
  .comparison-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--brass-dark);
    margin-bottom: 0.1rem;
  }
  .mobile-bar { display: grid; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col-contact { order: -3; }
  .footer-col-services { order: -2; }
  .footer-col-firm { order: -1; }
  .next-steps { flex-direction: column; }
  .next-step { padding-left: 54px; }
  .service-index { top: 60px; }
  .page-hero .hero-actions .btn { width: 100%; }
  .cert-grid { gap: 1.1rem; }
  .principles { grid-template-columns: 1fr; }
  .ready-badge { top: -12px; right: -6px; width: 84px; height: 84px; }
  .asylum-card { margin-inline: 0; }
  .timeline-card h3 { font-size: 1.18rem; }
  .form-card { padding: 1.3rem; }
  .field input, .field textarea, .field select { font-size: 16px; }
  .map-frame iframe { height: 300px; }
  .stamp { --stamp-size: 128px; font-size: 0.52rem; }
  .stamp .stamp-big { font-size: 0.78rem; }
  .hero-portrait .doc-card.one { left: -4%; }
  .hero-portrait .doc-card.two { right: -4%; }
  .community-card { padding: 1.25rem; }
  .wechat-pass { flex-direction: column; align-items: flex-start; }
  .wechat-pass .copy-btn { width: 100%; justify-content: center; }
  .quick-action { padding: 1rem; }
  .contact-hero .quick-stack { margin-top: 0.5rem; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 2.3rem; }
  .stamp { --stamp-size: 116px; }
  .trust-label { font-size: 0.72rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero h1 .line > span,
  .hero .arch-wipe,
  .stamp,
  .hero-route path,
  .hero-route circle { animation: none !important; opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .reveal, .reveal-stagger > *, .timeline-item.reveal { opacity: 1 !important; transform: none !important; }
  .arch-wipe { clip-path: none !important; }
  .route-divider path { stroke-dashoffset: 0 !important; }
  .route-divider circle { opacity: 1 !important; }
  .hero-route path { stroke-dashoffset: 0 !important; }
  .map-route { stroke-dashoffset: 0 !important; }
  .map-pin-ring { animation: none !important; opacity: 0.35; }
  .path-route path { stroke-dashoffset: 0 !important; }
  .steps-line path { stroke-dashoffset: 0 !important; }
  .highlight::after { transform: scaleX(1) !important; }
  .reveal-stagger > * { transition-delay: 0s !important; }
  .asylum-bg { animation: none !important; }
}
