/* ============================================================
   元印翻译工作室 · Yuanyin Translation Studio
   ATIO Certified Translation (Chinese ↔ English)
   Shared design system
   ============================================================ */

/* Fonts are loaded via <link rel="preconnect"> + stylesheet in each page <head>
   (faster than @import, which blocks on the CSS download first). */

:root {
  /* palette, warm paper, trustworthy navy, bronze, seal-red */
  --paper:      #f7f6f3;
  --paper-2:    #efebe3;
  --card:       #fffdfa;
  --ink:        #211e19;
  --ink-soft:   #5c564c;
  --ink-faint:  #8b8377;
  --line:       #e3ddd1;
  --line-soft:  #ece7dc;
  --navy:       #1f3a52;
  --navy-deep:  #16293a;
  --bronze:     #b08d57;
  --bronze-ink: #8a6c3c;
  --seal:       oklch(0.52 0.16 30);   /* warm chop red */
  --seal-soft:  oklch(0.52 0.16 30 / 0.10);

  /* brand lotus gradient, sampled from the logo: purple -> magenta -> orange */
  --brand-purple: #5b2a82;
  --brand-mid:    #a8385c;
  --brand-orange: #d98a2b;
  --brand-grad: linear-gradient(100deg, #5b2a82 0%, #8e3268 38%, #b8425a 62%, #d98a2b 100%);

  /* type */
  --serif: 'Newsreader', 'Noto Serif SC', Georgia, serif;
  --sans:  'Mulish', 'Noto Sans SC', system-ui, sans-serif;

  /* spacing rhythm */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(33,30,25,.05), 0 2px 8px rgba(33,30,25,.04);
  --shadow:    0 4px 14px rgba(33,30,25,.07), 0 14px 40px rgba(33,30,25,.06);
}

/* ---- language toggle visibility ---- */
html[data-lang="en"] .zh { display: none; }
html[data-lang="zh"] .en { display: none; }
html[data-lang="zh"] body { font-feature-settings: normal; }
/* keep chinese typeface for zh runs even when serif/sans applied */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[data-lang="zh"] body { line-height: 1.85; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
html[data-lang="zh"] h1,
html[data-lang="zh"] h2,
html[data-lang="zh"] h3,
html[data-lang="zh"] h4 { letter-spacing: 0; font-weight: 600; }

p { margin: 0; text-wrap: pretty; }
a { color: inherit; }

/* ---- layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
@media (max-width: 480px) { .eyebrow { white-space: normal; } }
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--bronze);
  display: inline-block;
}
.eyebrow.center-eyebrow { justify-content: center; }

.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); line-height: 1.6; }

h1.display { font-size: clamp(38px, 6vw, 66px); }
h2.title  { font-size: clamp(29px, 4.2vw, 46px); }
h3.subhead{ font-size: clamp(21px, 2.4vw, 27px); }

/* ============================================================
   SEAL / CHOP brand mark
   ============================================================ */
.seal {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 8px;
  background: var(--seal);
  color: #fff;
  font-family: var(--serif);
  position: relative;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28);
  flex: none;
}
.seal span {
  font-family: 'Noto Serif SC', serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  display: grid;
  gap: 1px;
  text-align: center;
}
.seal--lg { width: 76px; height: 76px; border-radius: 12px; }
.seal--lg span { font-size: 21px; gap: 3px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex; align-items: center; gap: 28px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; margin-right: auto; }
.brand__name { display: grid; line-height: 1.05; }
.brand__zh { font-family: 'Noto Serif SC', serif; font-weight: 600; font-size: 18px; color: var(--ink); letter-spacing: .04em; }
.brand__en { font-family: var(--sans); font-size: 10.5px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 15px; font-weight: 600;
  padding: 6px 0; position: relative; white-space: nowrap;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--navy); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--bronze); border-radius: 2px;
}

.header__actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--card); padding: 3px;
  font-family: var(--sans);
}
.lang-toggle button {
  border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700;
  padding: 7px 14px; color: var(--ink-faint);
  letter-spacing: .02em; white-space: nowrap; border-radius: 999px;
  line-height: 1; transition: background .15s ease, color .15s ease;
}
.lang-toggle button.is-on { background: var(--navy); color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-deep); }
.btn--bronze { background: var(--bronze); color: #fff; }
.btn--bronze:hover { background: var(--bronze-ink); }
.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-faint); }
.btn--lg { padding: 15px 30px; font-size: 16px; }
.btn svg { width: 17px; height: 17px; }

.menu-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(40px, 6vw, 78px) 0 clamp(48px, 6vw, 88px); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__copy h1 { margin-top: 18px; }
.hero__copy .lead { margin-top: 22px; max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.rating-inline { display: flex; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.stars { color: var(--bronze); letter-spacing: 2px; font-size: 18px; }
.rating-inline b { font-weight: 700; }
.rating-inline .muted { color: var(--ink-soft); font-size: 14.5px; }

/* hero portrait */
.hero__media { position: relative; }
.portrait {
  border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__badge {
  position: absolute; left: -22px; bottom: 26px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
  padding: 14px 18px; display: flex; align-items: center; gap: 13px;
  max-width: 260px;
}
.hero__badge .seal { width: 40px; height: 40px; }
.hero__badge .seal span { font-size: 11px; }
.hero__badge-txt { display: grid; line-height: 1.25; }
.hero__badge-txt b { font-size: 14px; font-weight: 700; }
.hero__badge-txt span { font-size: 12.5px; color: var(--ink-soft); }

/* ---- image placeholder ---- */
.ph {
  position: relative;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(
    -45deg, transparent 0 12px,
    rgba(31,58,82,.05) 12px 13px);
  display: grid; place-items: center;
  color: var(--ink-faint);
}
.ph__label {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px; letter-spacing: .02em;
  background: var(--card); border: 1px solid var(--line);
  padding: 6px 11px; border-radius: 6px; color: var(--ink-soft);
  text-align: center; max-width: 80%;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.trust-strip__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(18px, 4vw, 48px); justify-content: center;
  padding: 22px 0;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }
.trust-item svg { width: 18px; height: 18px; color: var(--bronze); flex: none; }
.trust-sep { width: 1px; height: 24px; background: var(--line); }

/* ============================================================
   CARDS / GRIDS
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line); }
.card__icon {
  width: 48px; height: 48px; border-radius: 11px;
  background: var(--seal-soft); color: var(--seal);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 22px; margin-bottom: 9px; }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card__more { margin-top: 16px; font-weight: 700; font-size: 14.5px; color: var(--navy); display: inline-flex; gap: 6px; align-items: center; }

.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 16px; }

/* ============================================================
   VALUE / WHY
   ============================================================ */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature__num {
  font-family: var(--serif); font-size: 15px; font-weight: 600;
  color: var(--bronze-ink); flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--bronze); display: grid; place-items: center;
}
.feature h4 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--ink-soft); font-size: 15px; }

/* ============================================================
   STATS BAND
   ============================================================ */
.band { background: var(--navy); color: #fff; }
.band--paper2 { background: var(--paper-2); color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(34px, 5vw, 52px); font-weight: 500; line-height: 1; color: #fff; }
.band--paper2 .stat__num { color: var(--navy); }
.stat__num .unit { font-size: .5em; color: var(--bronze); }
.stat__num .unit--star { font-size: .42em; vertical-align: middle; position: relative; top: -0.12em; margin-left: .06em; }
.stat__label { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.72); font-weight: 600; }
.band--paper2 .stat__label { color: var(--ink-soft); }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews-grid { columns: 3; column-gap: 22px; }
.review {
  break-inside: avoid; margin-bottom: 22px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.review__stars { color: var(--bronze); letter-spacing: 1.5px; font-size: 15px; margin-bottom: 12px; }
.review p { font-size: 15px; color: var(--ink); line-height: 1.6; }
.review__by { margin-top: 16px; display: flex; align-items: center; gap: 11px; }
.review__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-weight: 700; color: var(--bronze-ink); font-size: 14px; flex: none; }
.review__meta { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; min-width: 0; }
.review__meta b { font-size: 14px; font-weight: 700; }
.review__meta span { font-size: 12.5px; color: var(--ink-faint); }

.google-line { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 11px 22px; box-shadow: var(--shadow-sm); font-weight: 600; }
.google-line > * { flex: none; }
.google-line .stars { font-size: 16px; color: var(--bronze); letter-spacing: 1px; }
.google-line .gl-num { font-family: var(--serif); font-size: 17px; color: var(--navy); }
.google-line .gl-sep { color: var(--line); }

/* ============================================================
   PROCESS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step__n { font-family: var(--serif); font-size: 40px; color: var(--bronze); line-height: 1; }
.step h4 { font-size: 20px; margin: 12px 0 8px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: var(--navy-deep); color: #fff; text-align: center; border-radius: 0; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: rgba(255,255,255,.8); margin: 16px auto 0; max-width: 34em; }
.cta-band__btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); }

/* ============================================================
   DOC TYPES (services)
   ============================================================ */
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.doc-chip {
  display: flex; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; font-size: 15px; font-weight: 600;
}
.doc-chip svg { width: 18px; height: 18px; color: var(--bronze); flex: none; }
.doc-chip--wide { grid-column: 1 / -1; justify-content: center; }
.doc-chip--link { cursor: pointer; text-decoration: none; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.doc-chip--link:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-1px); }
.doc-chip--link:hover span, .doc-chip--link:hover svg { color: #fff; }

.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.service-block + .service-block { margin-top: clamp(48px, 7vw, 88px); }
.service-block.reverse .service-block__media { order: -1; }
.service-block__media .ph { aspect-ratio: 4/3; border-radius: var(--radius); }
.service-block ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.service-block li { display: flex; gap: 11px; font-size: 15.5px; color: var(--ink-soft); }
.service-block li svg { width: 19px; height: 19px; color: var(--seal); flex: none; margin-top: 3px; }

/* ---- illustrative document mockups (placeholders until real photos arrive) ---- */
.doc-mock {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--paper-2), #e7e1d6);
  border: 1px solid var(--line); overflow: hidden;
  display: grid; place-items: center; padding: 30px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.doc-mock__page {
  position: relative; width: 72%; background: #fffdfa;
  border: 1px solid var(--line-soft); border-radius: 8px;
  box-shadow: 0 18px 40px -18px rgba(33,30,25,.35), 0 2px 6px rgba(33,30,25,.06);
  padding: 22px 22px 26px; transform: rotate(-3deg);
}
.doc-mock--stack .doc-mock__page { width: 64%; transform: rotate(3deg); transform-origin: center; }
.doc-mock--stack .doc-mock__page::before,
.doc-mock--stack .doc-mock__page::after {
  content: ""; position: absolute; inset: 0; background: #fffdfa;
  border: 1px solid var(--line-soft); border-radius: 8px; z-index: -1;
  box-shadow: 0 10px 26px -16px rgba(33,30,25,.3);
  transform-origin: center;
}
.doc-mock--stack .doc-mock__page::before { transform: rotate(7deg); }
.doc-mock--stack .doc-mock__page::after { transform: rotate(11deg); }
.doc-mock__brandrow { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.doc-mock--stack .doc-mock__content { transform: none; }
.doc-mock__brandrow img { width: 18px; height: 18px; }
.doc-mock__brandrow b { font-size: 8.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.doc-mock__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc-line { height: 6px; border-radius: 3px; background: #e7e1d4; }
.doc-line.sm { width: 60%; }
.doc-line.md { width: 82%; }
.doc-line.accent { background: color-mix(in srgb, var(--navy) 22%, #e7e1d4); }
.doc-mock__rows { display: grid; gap: 8px; }
.doc-mock__divider { height: 1px; background: var(--line-soft); margin: 14px 0; }
.doc-mock__sign { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 16px; gap: 12px; }
.doc-mock__signline { flex: 1; }
.doc-mock__signline .doc-line { margin-bottom: 5px; }
.doc-mock__signline small { font-size: 7px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.doc-seal {
  width: 62px; height: 62px; border-radius: 50%; flex: none;
  display: grid; place-items: center; position: relative;
  border: 2px solid color-mix(in srgb, var(--seal) 55%, transparent);
  color: var(--seal); background: color-mix(in srgb, var(--seal) 6%, #fffdfa);
  transform: rotate(-8deg);
}
.doc-seal img { width: 26px; height: 26px; opacity: .92; }
.doc-seal span { position: absolute; bottom: 6px; font-size: 6px; font-weight: 800; letter-spacing: .1em; }
.doc-mock--seal-float .doc-seal { position: absolute; right: -14px; bottom: -14px; width: 76px; height: 76px; box-shadow: 0 8px 20px -8px rgba(124,45,45,.4); }
.doc-mock--seal-float .doc-seal img { width: 32px; height: 32px; }
.doc-mock__tag {
  position: absolute; left: 14px; bottom: 12px; white-space: nowrap;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--ink-faint);
  background: color-mix(in srgb, var(--card) 80%, transparent); backdrop-filter: blur(2px);
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
}
@media (max-width: 560px) {
  .doc-mock { max-width: 320px; margin-left: auto; margin-right: auto; aspect-ratio: 5/4; }
  .doc-mock__page { width: 74%; }
  .doc-mock--stack .doc-mock__page { width: 66%; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about-grid .portrait { aspect-ratio: 4/5; }
.about-aside { position: sticky; top: 96px; align-self: start; }
.about-facts { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 18px 18px; }
.about-fact { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.about-fact:first-child { border-top: 0; }
.about-fact__k { font-size: 13px; font-weight: 600; color: var(--ink-faint); letter-spacing: .02em; flex: none; }
.about-fact__v { font-size: 14.5px; font-weight: 600; color: var(--ink); text-align: right; white-space: nowrap; }
.about-facts__cta { width: 100%; justify-content: center; margin-top: 16px; }
.prose p + p { margin-top: 18px; }
.prose p { color: var(--ink-soft); font-size: 17px; }
.signature { font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--navy); margin-top: 24px; }

.cert-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; gap: 20px; align-items: flex-start; }
.cert-card .seal--lg { flex: none; }
.cert-card h4 { font-size: 20px; margin-bottom: 8px; }
.cert-card p { color: var(--ink-soft); font-size: 15px; }
.cert-card .placeholder-tag { display: inline-block; margin-top: 10px; font-family: ui-monospace, monospace; font-size: 12px; background: var(--card); border: 1px dashed var(--bronze); color: var(--bronze-ink); padding: 4px 9px; border-radius: 6px; }
.cert-card .cert-no { display: inline-flex; align-items: baseline; gap: 7px; margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.cert-card .cert-no b { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--navy); letter-spacing: .04em; }

/* real document sample (services) */
.doc-sample { margin: 0; }
.doc-sample__main {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: #fff; border-radius: 12px; overflow: hidden; position: relative;
  box-shadow: 0 18px 44px -22px rgba(33,30,25,.5), 0 2px 8px rgba(33,30,25,.08);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .25s ease;
}
.doc-sample__main:hover { transform: translateY(-3px); box-shadow: 0 26px 60px -24px rgba(33,30,25,.55), 0 4px 12px rgba(33,30,25,.1); }
.doc-sample__main img { display: block; width: 100%; height: auto; }
.doc-sample__zoom {
  position: absolute; right: 12px; bottom: 12px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(31,58,82,.92); color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  opacity: 0; transform: scale(.85); transition: opacity .2s ease, transform .2s ease;
}
.doc-sample__main:hover .doc-sample__zoom, .doc-sample__main:focus-visible .doc-sample__zoom { opacity: 1; transform: scale(1); }
.doc-sample__zoom svg { width: 19px; height: 19px; }
.doc-sample__cap { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-faint); text-align: center; max-width: 34em; margin-left: auto; margin-right: auto; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: center; justify-content: center;
  background: rgba(22,20,16,.86); backdrop-filter: blur(3px);
  padding: clamp(16px, 4vw, 48px);
}
.lightbox.is-open { display: flex; }
.lightbox__stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-height: 100%; }
.lightbox__img {
  max-width: min(680px, 90vw); max-height: 80vh; width: auto; height: auto;
  border-radius: 6px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
}
.lightbox__cap { color: rgba(255,255,255,.82); font-size: 13.5px; font-family: var(--sans); letter-spacing: .01em; }
.lightbox__close, .lightbox__nav {
  position: absolute; border: 0; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.12); border-radius: 50%;
  display: grid; place-items: center; transition: background .15s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 18px; right: 18px; width: 46px; height: 46px; }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__prev { left: clamp(8px, 2vw, 28px); }
.lightbox__next { right: clamp(8px, 2vw, 28px); }
@media (max-width: 560px) {
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__img { max-height: 72vh; }
}

/* price table */
.price-table { max-width: 860px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.price-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; padding: 18px 26px; border-top: 1px solid var(--line-soft); align-items: baseline; }
.price-row:first-child { border-top: 0; }
.price-row--head { background: var(--navy); padding-top: 15px; padding-bottom: 15px; }
.price-row--head .price-doc, .price-row--head .price-amt { color: rgba(255,255,255,.85); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.price-doc { font-size: 16px; font-weight: 600; color: var(--ink); }
.price-amt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.price-amt b { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--navy); letter-spacing: .01em; }
.price-amt .price-unit, .price-amt .price-from { font-size: 13px; color: var(--ink-faint); font-weight: 600; }
.price-amt .price-bundle { font-size: 12px; font-weight: 700; color: var(--bronze-ink); background: color-mix(in srgb, var(--bronze) 16%, var(--card)); border: 1px solid color-mix(in srgb, var(--bronze) 40%, transparent); padding: 2px 9px; border-radius: 999px; letter-spacing: .01em; }
.price-amt small { flex-basis: 100%; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; line-height: 1.4; }
.price-foot { text-align: center; margin-top: 22px; font-size: 15px; color: var(--ink-soft); }
.price-foot a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* service clarification note (e.g. translation-only, no live interpreting) */
.service-note {
  max-width: 720px; margin: 26px auto 0;
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--bronze);
  border-radius: 12px; padding: 16px 20px;
}
.service-note svg { width: 22px; height: 22px; color: var(--bronze-ink); flex: none; margin-top: 1px; }
.service-note p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.service-note b { color: var(--ink); font-weight: 700; }
.price-row--rush { background: color-mix(in srgb, var(--bronze) 9%, var(--card)); }
.price-row--rush .price-amt a, .price-row .price-amt a { color: var(--bronze-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) {
  .price-row { grid-template-columns: 1fr; gap: 6px; padding: 16px 18px; }
  .price-row--head { display: none; }
  .price-doc { font-size: 15px; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 56px); align-items: start; }
.contact-method { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.contact-method > div { flex: 1; min-width: 0; }
.contact-method:last-child { border-bottom: 0; }
.contact-method__icon { width: 44px; height: 44px; border-radius: 11px; background: var(--seal-soft); color: var(--seal); display: grid; place-items: center; flex: none; }
.contact-method__icon svg { width: 21px; height: 21px; }
.contact-method b { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); font-weight: 700; }
.contact-method a, .contact-method__val { font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; display: block; margin-top: 3px; }
.contact-method a:hover { color: var(--navy); }
.contact-method small { color: var(--ink-soft); font-size: 13.5px; font-weight: 500; }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.field label .req { color: var(--seal); font-weight: 700; }
.field label .opt { color: var(--ink-faint); font-weight: 500; }
.field-err { display: none; color: var(--seal); font-size: 13px; font-weight: 600; margin-top: 6px; }
.field--invalid .field-err { display: block; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--seal); }
.field--invalid input:focus, .field--invalid select:focus, .field--invalid textarea:focus {
  border-color: var(--seal); box-shadow: 0 0 0 3px var(--seal-soft);
}
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 15.5px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--paper); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 14%, transparent);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--ink-faint); margin-top: 4px; }
.form-success { display: none; background: var(--seal-soft); border: 1px solid var(--seal); color: var(--seal); border-radius: 10px; padding: 14px 16px; font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.form-success.show { display: block; }

/* rate-limit notices (abuse / repeat-submit guard) */
.form-notice { display: none; background: color-mix(in srgb, var(--bronze) 14%, var(--card)); border: 1px solid var(--bronze); color: var(--bronze-ink); border-radius: 10px; padding: 14px 16px; font-weight: 600; font-size: 15px; margin-bottom: 18px; }
.form-notice.show { display: block; }
.form-neterr { background: var(--seal-soft); border-color: var(--seal); color: var(--seal); }

/* honeypot, off-screen but reachable by bots; not display:none on purpose */
.hp-wrap { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* spam-check error */
.form-error { display: none; color: var(--seal); font-weight: 600; }
.form-error.show { display: block; }

.qr-box { width: 152px; height: 152px; }
.qr-box .ph { width: 100%; height: 100%; border-radius: 10px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand .brand__zh { color: #fff; }
.footer-brand .brand__en { color: rgba(255,255,255,.55); }
.footer-brand p { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.6); max-width: 26em; }
.footer-tagline {
  margin-top: 14px; font-family: var(--serif); font-style: italic;
  font-size: 20px; font-weight: 500; letter-spacing: .01em;
  color: #e2a049;
  display: inline-block; white-space: nowrap;
}
.footer-col h5 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.5); margin: 0 0 16px; font-weight: 700; }
.footer-col a, .footer-col span { display: block; color: rgba(255,255,255,.78); text-decoration: none; font-size: 14.5px; margin-bottom: 11px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom .seal { width: 30px; height: 30px; border-radius: 6px; }
.footer-bottom .seal span { font-size: 8px; }
.footer-love { flex: 1 1 auto; text-align: center; color: rgba(255,255,255,.6); font-style: italic; }
@media (max-width: 760px) { .footer-love { flex-basis: 100%; order: 3; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 420px; margin: 0 auto; width: 100%; }
  .grid-3, .steps, .stats, .doc-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { columns: 2; }
  .service-block, .about-grid, .contact-grid, .grid-2 { grid-template-columns: 1fr; }
  .service-block.reverse .service-block__media { order: 0; }
  .about-grid .portrait { max-width: 360px; }
  .about-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav { display: none; }
  .nav.is-open {
    display: flex; position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 18px; box-shadow: var(--shadow);
  }
  .nav.is-open a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 13px;
    border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer;
    color: var(--navy); font-family: var(--sans); font-weight: 700; font-size: 13.5px;
  }
  .menu-toggle svg { width: 20px; height: 20px; }
  .menu-toggle__label { line-height: 1; white-space: nowrap; }
  .menu-toggle__close, .menu-toggle__label .label-close { display: none; }
  .menu-toggle[aria-expanded="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__open,
  .menu-toggle[aria-expanded="true"] .menu-toggle__label .label-open { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__close { display: inline; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__label .label-close { display: inline; }
  .header__actions .btn--primary span.btn-label { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-3, .steps, .stats, .doc-grid, .reviews-grid, .field-row { grid-template-columns: 1fr; columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__badge { left: 0; }
  .trust-sep { display: none; }
  /* keep the language switch usable on mobile — compact, not hidden */
  .header__actions { gap: 8px; }
  .header__actions .lang-toggle { padding: 3px; }
  .header__actions .lang-toggle button { padding: 12px 9px; font-size: 13px; }
  /* free up header space so nothing overflows off-screen */
  .header__actions .btn--primary { display: none; }
  .brand__zh { font-size: 15px; letter-spacing: .02em; }
  .brand__en { display: none; }
  .brand { gap: 9px; }
  .brand-mark { height: 32px; }
  .site-header__inner { gap: 10px; }
  /* --- mobile polish --- */
  .section { padding: 48px 0; }
  .section--tight { padding: 36px 0; }
  .card { padding: 22px; }
  .card h3 { font-size: 20px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .cta-band__btns { flex-direction: column; }
  .cta-band__btns .btn { width: 100%; justify-content: center; }
  .about-facts { padding: 4px 16px 16px; }
  .footer-grid { gap: 24px; }
}
/* safety net: never allow sideways scrolling (clip, not hidden, so position:sticky still works) */
html { overflow-x: clip; max-width: 100%; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* staggered reveal for the document "bubbles" — each cascades in on its own */
.doc-stagger .doc-chip.reveal { transform: translateY(14px) scale(.97); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.3,1); }
.doc-stagger .doc-chip.reveal.in { transform: none; }
.doc-stagger .doc-chip:nth-child(1)  { transition-delay: .00s; }
.doc-stagger .doc-chip:nth-child(2)  { transition-delay: .05s; }
.doc-stagger .doc-chip:nth-child(3)  { transition-delay: .10s; }
.doc-stagger .doc-chip:nth-child(4)  { transition-delay: .15s; }
.doc-stagger .doc-chip:nth-child(5)  { transition-delay: .20s; }
.doc-stagger .doc-chip:nth-child(6)  { transition-delay: .25s; }
.doc-stagger .doc-chip:nth-child(7)  { transition-delay: .30s; }
.doc-stagger .doc-chip:nth-child(8)  { transition-delay: .35s; }
.doc-stagger .doc-chip:nth-child(9)  { transition-delay: .40s; }
.doc-stagger .doc-chip:nth-child(10) { transition-delay: .45s; }
.doc-stagger .doc-chip:nth-child(11) { transition-delay: .50s; }
.doc-stagger .doc-chip:nth-child(12) { transition-delay: .55s; }
.doc-stagger .doc-chip:nth-child(13) { transition-delay: .60s; }
@media (prefers-reduced-motion: reduce) { .doc-stagger .doc-chip:nth-child(n) { transition-delay: 0s; } }

/* ============================================================
   POLISH LAYER, micro-refinements
   ============================================================ */

/* selection + tap highlight */
::selection { background: color-mix(in srgb, var(--bronze) 30%, transparent); color: var(--ink); }
* { -webkit-tap-highlight-color: transparent; }

/* skip-to-content link — hidden until keyboard-focused */
.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 200;
  background: var(--navy); color: #fff; padding: 11px 18px;
  border-radius: 0 0 10px 10px; font-family: var(--sans); font-weight: 700;
  font-size: 14px; text-decoration: none; transition: top .18s ease;
}
.skip-link:focus { top: 0; outline: none; }
main:focus { outline: none; }

/* keyboard focus rings, visible only for keyboard users */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }

/* anchored sections clear the sticky header */
:target { scroll-margin-top: 96px; }

/* seal, add subtle depth + paper grain so the chop feels stamped */
.seal {
  background-image:
    radial-gradient(120% 120% at 30% 22%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--seal) 88%, #fff) 0%, var(--seal) 48%, color-mix(in srgb, var(--seal) 82%, #000) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.30), 0 1px 2px rgba(33,30,25,.12);
}

/* nav, animate the bronze underline in from the left */
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--bronze); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--navy); }

/* brand mark lifts gently on hover */
.brand .seal, .brand .brand-mark { transition: transform .18s ease, box-shadow .2s ease; }
.brand:hover .seal, .brand:hover .brand-mark { transform: rotate(-2.5deg) scale(1.04); }

/* lotus brand mark, header / footer / badge */
.brand-mark { height: 42px; width: auto; display: block; flex: none; }
.hero__badge .brand-mark { height: 38px; }
.footer-brand .brand-mark { height: 44px; }
@media (max-width: 560px) { .brand-mark { height: 36px; } }

/* about, certification cards */
.cert-mark { width: 76px; height: auto; flex: none; }
.cert-icon {
  width: 64px; height: 64px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
}
.cert-icon svg { width: 32px; height: 32px; }

/* buttons, press feedback + smoother lift */
.btn { transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn--primary:hover { box-shadow: 0 6px 18px color-mix(in srgb, var(--navy) 28%, transparent); }
.btn:active { transform: translateY(0); }
.btn--lg:active { transform: translateY(0) scale(.99); }

/* cards, warmer hover with a hint of bronze in the border */
.card--link:hover { border-color: color-mix(in srgb, var(--bronze) 45%, var(--line)); }
.card__icon { transition: transform .18s ease; }
.card--link:hover .card__icon { transform: scale(1.06) rotate(-2deg); }
.card__more svg { transition: transform .18s ease; }
.card--link:hover .card__more svg { transform: translateX(3px); }

/* doc chips, quiet hover */
.doc-chip { transition: border-color .18s ease, transform .14s ease, box-shadow .2s ease; }
.doc-chip:hover { border-color: color-mix(in srgb, var(--bronze) 40%, var(--line)); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* contact rows, subtle reveal of the action */
.contact-method__icon { transition: transform .18s ease; }
.contact-method:hover .contact-method__icon { transform: scale(1.06); }

/* placeholder grain animates faintly so it reads as intentional, not broken */
.ph { transition: background-color .3s ease; }

/* footer links, bronze underline on hover */
.footer-col a { transition: color .15s ease; position: relative; }
.footer-col a:hover { color: #fff; }

/* hero badge floats in slightly above the portrait base */
.hero__badge { transition: transform .2s ease, box-shadow .2s ease; }
.hero__media:hover .hero__badge { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(33,30,25,.16); }

/* ============================================================
   PRINT — clean, ink-friendly output (e.g. printing contact info)
   ============================================================ */
@media print {
  *, body, body.page-leaving { opacity: 1 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .site-header, .menu-toggle, .skip-link, .lang-toggle,
  .cta-band__btns, .nav, .form-card button, .hp-wrap { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: underline; }
  .section, .section--tight { padding: 18px 0 !important; }
  .card, .price-table, .contact-method, .about-facts { break-inside: avoid; }
  .site-footer { background: #fff !important; color: #000 !important; border-top: 1px solid #999; }
  .footer-tagline, .footer-love { color: #000 !important; }
}
