/* QC Tax and Accounting — public website. Brand: docs/spec.md §11 (D16), canvas Brand board. */
:root {
  --ink: #111111; --forest: #122620; --sun: #FFCC53; --cream: #F4EBD0; --paper: #F8F8F8; --white: #FFFFFF;
  --slate: #54595F; --line: #E6E0D2; --bronze: #7A5A1E; --dk: #0B1712; --dk2: #16302A;
  --ok: #2F6B4F; --ok-soft: #E3F0E8;
  --serif: "Source Serif 4", Georgia, "Noto Sans TC", "Noto Sans SC", serif;
  --sans: Inter, "Noto Sans TC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px; --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.6 var(--sans); color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-primary { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.btn-primary:hover { background: #F5BD32; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* header */
.topbar { background: var(--forest); color: var(--white); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; flex-wrap: wrap; }
.topbar a { text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(11,23,18,.92); backdrop-filter: blur(8px); color: var(--white); }
.site-header.light { background: rgba(255,255,255,.95); color: var(--ink); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span b { color: var(--sun); }
.site-header.light .brand span b { color: var(--bronze); }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { text-decoration: none; font-size: 15px; opacity: .88; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--sun); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.site-header:not(.light) .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.5); }
.menu-toggle { display: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px; min-height: 44px; padding: 0 14px; font-weight: 700; }
@media (max-width: 900px) {
  .nav, .header-actions .btn-ghost { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav.open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: inherit; padding: 16px var(--gutter) 24px; gap: 14px; margin: 0; }
  .site-header .wrap { position: relative; }
}

/* dark hero */
.hero { color: var(--white);
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(255,204,83,.20), transparent 60%),
    radial-gradient(700px 500px at 10% 0%, var(--dk2), transparent 70%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 56px),
    var(--dk); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding-block: 56px 80px; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 36px 48px; } }
.eyebrow-pill { align-self: flex-start; display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,204,83,.5); color: var(--sun); }
.hero h1 { margin: 0; font-size: clamp(38px, 6vw, 64px); line-height: 1.03; letter-spacing: -.03em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero p.lead { margin: 0; font-size: clamp(17px, 2vw, 19px); opacity: .88; max-width: 32em; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-cta .link-arrow { color: var(--white); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); }

/* live panel */
.panel { position: relative; min-height: 470px; }
.glass { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.glass .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.glass small { opacity: .8; font-size: 13px; }
.glass dl { display: grid; grid-template-columns: 100px 1fr; gap: 4px 10px; margin: 0; font-size: 13px; }
.glass dt { opacity: .7; } .glass dd { margin: 0; font-weight: 700; }
.chip { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.15); }
.chip.sun { background: var(--sun); color: var(--ink); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.bar i { display: block; height: 100%; width: 80%; background: var(--sun); border-radius: 999px; }
.p1 { position: absolute; left: 0; top: 20px; width: 330px; }
.p2 { position: absolute; right: 0; top: 96px; width: 350px; }
.p3 { position: absolute; left: 30px; top: 256px; width: 360px; }
.p4 { position: absolute; right: 20px; top: 340px; width: 300px; }
@media (max-width: 900px) {
  .panel { min-height: 0; display: flex; flex-direction: column; gap: 10px; }
  .p1, .p2, .p3, .p4 { position: static; width: auto; }
}

/* sections */
section.block { padding-block: clamp(48px, 7vw, 80px); }
section.paper { background: var(--paper); }
section.cream { background: var(--cream); }
.eyebrow { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--bronze); }
h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 8px 0 24px; text-wrap: balance; }
h3 { font-family: var(--serif); font-size: 21px; margin: 0; }
.muted { color: var(--slate); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: center; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card.need { background: var(--cream); border-color: var(--sun); }
a.card { text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(17,17,17,.08); }
.card .more { margin-top: auto; font-weight: 700; font-size: 15px; }
.step-no { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--bronze); }
.dark-band { background: var(--dk); color: var(--white); }
.dark-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-block: 56px; }
.dark-band h2 { color: var(--white); margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 14px; max-width: 820px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--slate); }
.page-hero { background: var(--cream); padding-block: clamp(40px, 6vw, 72px); }
.page-hero h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 50px); line-height: 1.1; margin: 8px 0 12px; text-wrap: balance; max-width: 20em; }
.page-hero p { font-size: 18px; max-width: 40em; margin: 0; color: var(--slate); }
.person img, .monogram { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 20%; border-radius: 16px; }
.monogram { background: var(--forest); color: var(--sun); display: grid; place-items: center; font-family: var(--serif); font-size: 72px; font-weight: 700; letter-spacing: .04em; }
.notice { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--slate); }
.embed { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 8px; min-height: 640px; }
.prose { max-width: 760px; } .prose h2 { font-size: 26px; margin: 32px 0 8px; } .prose p, .prose li { color: #2b2f33; }

/* footer */
.site-footer { background: var(--forest); color: var(--white); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-block: 40px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--sun); margin: 0 0 8px; font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.site-footer a { text-decoration: none; } .site-footer a:hover { text-decoration: underline; }
.site-footer .logo-pill { background: var(--white); border-radius: 10px; padding: 8px 10px; display: inline-block; }
.site-footer .logo-pill img { height: 34px; width: auto; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.2); padding-top: 12px; font-size: 12px; opacity: .85; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
.brand span { white-space: nowrap; }
@media (max-width: 640px) {
  .topbar .addr { display: none; }
  .brand span { font-size: 16px; }
  .header-actions .btn-primary { padding: 0 12px; font-size: 13px; }
}

/* Languages: switch in the top bar, Simplified pages prefer the SC font, draft translations are flagged */
.lang-switch a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lang-switch [aria-current] { font-weight: 700; }
:lang(zh-Hans) { --sans: Inter, "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif; --serif: "Source Serif 4", Georgia, "Noto Sans SC", serif; }
:lang(zh-Hant) body, :lang(zh-Hans) body { line-height: 1.75; }
.draft-banner { background: #A8481C; color: #fff; text-align: center; font-weight: 700; padding: 8px 16px; font-size: 15px; }
/* Header on narrow phones: keep buttons on one line; show the logo mark only when space runs out */
.btn, .menu-toggle { white-space: nowrap; }
.site-header .brand { min-width: 0; flex-shrink: 1; }
@media (max-width: 480px) {
  .site-header .brand span { display: none; }
  .header-actions { gap: 8px; }
}
/* Typesetting: no one-word last lines, and Chinese headings break between phrases, not inside words */
p, li, dd, summary, .muted { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
:lang(zh-Hant) :is(h1, h2, h3, .eyebrow-pill, .tags span, .btn),
:lang(zh-Hans) :is(h1, h2, h3, .eyebrow-pill, .tags span, .btn) { word-break: keep-all; overflow-wrap: anywhere; }
.nw { white-space: nowrap; }
:lang(zh-Hant) .hero h1, :lang(zh-Hans) .hero h1 { letter-spacing: .01em; }
.lang-switch a, .lang-switch span { white-space: nowrap; }
@media (max-width: 640px) {
  .topbar .wrap { flex-direction: column; align-items: flex-start; gap: 2px; }
}
/* Chinese pages: one sans family for headings so Latin words (CPA, 20) match the Chinese around them */
:lang(zh-Hant) { --serif: "Noto Sans TC", Inter, system-ui, sans-serif; }
:lang(zh-Hans) { --serif: "Noto Sans SC", Inter, system-ui, sans-serif; }
:lang(zh-Hant) :is(h1, h2, h3), :lang(zh-Hans) :is(h1, h2, h3) { font-weight: 700; letter-spacing: .02em; }
a[href^="tel:"], a[href^="mailto:"] { white-space: nowrap; }
@media (max-width: 640px) {
  .topbar .lang-switch { display: block; margin-top: 2px; }
}
@media (max-width: 640px) {
  .topbar .sep { display: none; }
  :lang(zh-Hant) :is(.hero h1, .page-hero h1), :lang(zh-Hans) :is(.hero h1, .page-hero h1) { font-size: clamp(27px, 7.4vw, 46px); }
}
/* Service pages */
.checks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.checks li { padding-left: 28px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; color: var(--bronze, #7A5A1E); }
.step-big { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--bronze, #7A5A1E); line-height: 1; }

/* ===== Light Home (theme approved 2026-09-27): big serif, white and airy, floating paper cards ===== */
.lhero { position: relative; overflow: hidden; background:
  radial-gradient(circle at 1px 1px, rgba(18,38,32,.10) 1px, transparent 1.5px) 0 0/22px 22px,
  radial-gradient(ellipse 70% 60% at 50% 40%, #fff 30%, rgba(255,255,255,0) 75%), #fff; }
.lhero .wrap { position: relative; min-height: min(86vh, 820px); display: grid; place-items: center; padding-block: 72px 88px; }
.lhero-copy { position: relative; z-index: 2; text-align: center; max-width: 900px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.lhero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(46px, 8.2vw, 108px); line-height: 1.02; letter-spacing: -0.035em; margin: 0; color: var(--ink); text-wrap: balance; }
.lhero h1 em { font-style: italic; color: var(--forest); }
.lhero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--slate); max-width: 38em; margin: 0; }
.lhero .eyebrow-pill { background: #fff; color: var(--forest); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(18,38,32,.06); }
.lhero .hero-cta { justify-content: center; }
.lhero .link-arrow { color: var(--ink); }
.float-cards { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.paper-card { position: absolute; width: 230px; background: #fff; border: 1px solid #E4E2DA; border-radius: 14px; padding: 14px 16px; box-shadow: 0 18px 40px -18px rgba(18,38,32,.28), 0 2px 6px rgba(18,38,32,.05); font-size: 13px; animation: drift 9s ease-in-out infinite; }
.paper-card small { display: block; font: 700 10.5px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.paper-card div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid #F0EEE8; }
.paper-card div:first-of-type { border-top: 0; }
.paper-card span { color: var(--slate); }
.paper-card b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.paper-card .bar { display: block; height: 6px; border-radius: 99px; background: #F0EEE8; margin-top: 10px; overflow: hidden; }
.paper-card .bar i { display: block; width: 70%; height: 100%; background: var(--sun); }
.fc1 { top: 8%; left: 2%; transform: rotate(-3deg); }
.fc2 { top: 12%; right: 2%; transform: rotate(2.5deg); animation-delay: -3s; }
.fc3 { bottom: 9%; left: 4%; transform: rotate(2deg); animation-delay: -5s; }
.fc4 { bottom: 12%; right: 5%; transform: rotate(-2deg); animation-delay: -7s; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 1100px) { .fc1, .fc3 { left: -40px; } .fc2, .fc4 { right: -40px; } .paper-card { width: 200px; opacity: .9; } }
@media (max-width: 860px) {
  .lhero .wrap { min-height: 0; padding-block: 48px 40px; }
  .float-cards { position: static; display: flex; gap: 12px; overflow-x: auto; margin-top: 28px; padding: 6px 2px 14px; order: 2; pointer-events: auto; scroll-snap-type: x mandatory; }
  .paper-card { position: static; flex: 0 0 210px; transform: none; animation: none; scroll-snap-align: start; }
  .lhero .wrap { display: flex; flex-direction: column; }
}
/* Struck-through chores */
.strike { text-align: center; }
.strike h2 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -0.02em; }
.strike-list { list-style: none; padding: 0; margin: 12px auto 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; max-width: 900px; }
.strike-list li { font-size: clamp(17px, 2vw, 22px); color: var(--slate); padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.strike-list s { text-decoration-thickness: 2px; text-decoration-color: rgba(168,72,28,.75); }
.strike-after { font-size: clamp(18px, 2vw, 22px); margin: 0; }
.strike-after b { color: var(--forest); }
/* Before / after */
.ba .card ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 10px; }
.ba .before { background: #FBFAF7; }
.ba .before h3 { color: var(--slate); }
.ba .after { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255,204,83,.25); }
/* Many papers in, one team out */
.flow { display: grid; grid-template-columns: 1fr auto minmax(220px, 1fr) auto 1fr; gap: 18px; align-items: center; }
.flow-col { display: flex; flex-direction: column; gap: 8px; }
.flow-col span { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.flow-col.out span { border-color: rgba(18,38,32,.25); font-weight: 600; }
.flow-arrow { font-size: 28px; color: var(--bronze); }
.flow-mid { background: var(--forest); color: #fff; border-radius: 22px; padding: 26px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.flow-mid img { border-radius: 14px; background: #fff; padding: 6px; }
.flow-mid b { font-family: var(--serif); font-size: 22px; }
.flow-mid small { color: rgba(255,255,255,.8); font-size: 14px; }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } .flow-arrow { transform: rotate(90deg); justify-self: center; } }
/* Audience cards and closing call to action */
.aud h3 { font-size: 26px; }
.lcta { background: var(--cream); padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.lcta h2 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -0.02em; max-width: 16em; margin: 0 auto 12px; }
.lcta p { color: var(--slate); margin: 0 0 24px; }
/* Gentle reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .paper-card { animation: none; } }
/* Chinese: big serif headline falls back to the matching sans */
:lang(zh-Hant) .lhero h1, :lang(zh-Hans) .lhero h1 { letter-spacing: .01em; font-size: clamp(40px, 7vw, 92px); line-height: 1.12; }
@media (min-width: 861px) {
  .lhero-copy { margin-top: 56px; }
  .fc1 { top: 3%; left: 0; }
  .fc2 { top: 7%; right: 0; }
}
@media (max-width: 860px) { .float-cards { align-self: stretch; width: 100%; justify-content: flex-start; } }
:lang(zh-Hant) .lhero h1 em, :lang(zh-Hans) .lhero h1 em { font-style: normal; }
/* Language button (top right) */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.site-header:not(.light) .lang-menu summary { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.lang-pop { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px -16px rgba(18,38,32,.3); padding: 6px; min-width: 150px; z-index: 50; display: grid; }
.lang-pop a { padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.lang-pop a:hover { background: var(--paper); }
.lang-pop a[aria-current] { background: var(--cream); }
@media (max-width: 480px) { .lang-menu summary { padding: 0 10px; } }

/* ===== Original motion for the light Home (our own code; calm when reduced motion is requested) ===== */
.lhero { background: #fff; }
.dotfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.lhero .wrap { z-index: 1; }
/* cards: arrive one by one, ticks pop, bar fills */
.paper-card { opacity: 0; translate: 0 26px; scale: .96; transition: opacity .7s ease, translate .9s cubic-bezier(.2,.8,.2,1), scale .9s cubic-bezier(.2,.8,.2,1); }
.lhero.ready .paper-card { opacity: 1; translate: 0 0; scale: 1; }
.lhero.ready .fc1 { transition-delay: .15s; } .lhero.ready .fc2 { transition-delay: .35s; } .lhero.ready .fc3 { transition-delay: .55s; } .lhero.ready .fc4 { transition-delay: .75s; }
.paper-card { animation: none; }
.lhero.ready .paper-card { animation: drift 9s ease-in-out 1.6s infinite; }
.ck { display: inline-block; font-style: normal; color: #2F6B4F; transform: scale(0); transition: transform .45s cubic-bezier(.3,1.6,.5,1) 1.2s; }
.lhero.ready .ck { transform: scale(1); }
.paper-card .bar i { width: 0; transition: width 1.6s ease 1.1s; }
.lhero.ready .paper-card .bar i { width: 70%; }
/* chores get struck through one by one */
.strike-list li { opacity: 0; translate: 0 12px; transition: opacity .5s ease, translate .5s ease; transition-delay: calc(var(--i) * 90ms); }
.strike.in .strike-list li { opacity: 1; translate: 0 0; }
.strike-list s { text-decoration: none; background: linear-gradient(rgba(168,72,28,.8), rgba(168,72,28,.8)) no-repeat 0 55% / 0% 2px; transition: background-size .6s ease; transition-delay: calc(400ms + var(--i) * 160ms); }
.strike.in .strike-list s { background-size: 100% 2px; }
.strike-after { opacity: 0; transition: opacity .8s ease 1.9s; }
.strike.in .strike-after { opacity: 1; }
.strike.reveal { opacity: 1; transform: none; }
/* flow: dots travel along the connectors, chips light up in turn */
.flow-arrow { position: relative; width: 64px; height: 2px; background: repeating-linear-gradient(90deg, rgba(122,90,30,.45) 0 6px, transparent 6px 12px); font-size: 0; }
.flow-arrow i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px rgba(255,204,83,.25); animation: travel 2.4s linear infinite; }
.flow-arrow i:nth-child(2) { animation-delay: .8s; } .flow-arrow i:nth-child(3) { animation-delay: 1.6s; }
@keyframes travel { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }
.flow-col span { animation: glow 7.2s ease-in-out infinite; animation-delay: calc(var(--i) * 1.2s); }
@keyframes glow { 0%, 12%, 100% { border-color: var(--line); box-shadow: none; } 5% { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(255,204,83,.25); } }
.flow-mid { animation: breathe 4.8s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 10px rgba(18,38,32,.06); } }
@media (max-width: 860px) { .flow-arrow { transform: none; width: 2px; height: 48px; justify-self: center; background: repeating-linear-gradient(180deg, rgba(122,90,30,.45) 0 6px, transparent 6px 12px); } .flow-arrow i { left: -4px; animation-name: travel-down; } }
@keyframes travel-down { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 10px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .paper-card, .lhero.ready .paper-card { opacity: 1; translate: none; scale: 1; animation: none; transition: none; }
  .ck { transform: none; transition: none; } .paper-card .bar i { width: 70%; transition: none; }
  .strike-list li { opacity: 1; translate: none; transition: none; } .strike-list s { background-size: 100% 2px; transition: none; } .strike-after { opacity: 1; transition: none; }
  .flow-arrow i, .flow-col span, .flow-mid { animation: none; }
}
/* SEO heading styled as the small pill; the big line keeps the display look */
.lhero .seo-h1 { font: 700 13px/1.3 var(--sans); letter-spacing: .02em; margin: 0; text-transform: none; }
.lhero .display { font-family: var(--serif); font-weight: 600; font-size: clamp(46px, 8.2vw, 108px); line-height: 1.02; letter-spacing: -0.035em; margin: 0; color: var(--ink); text-wrap: balance; }
.lhero .display em { font-style: italic; color: var(--forest); }
:lang(zh-Hant) .lhero .display, :lang(zh-Hans) .lhero .display { letter-spacing: .01em; font-size: clamp(40px, 7vw, 92px); line-height: 1.12; font-family: var(--serif); }
:lang(zh-Hant) .lhero .display em, :lang(zh-Hans) .lhero .display em { font-style: normal; }
/* 861–1100px: keep the four cards inside the frame */
@media (min-width: 861px) and (max-width: 1100px) { .paper-card { width: 190px; font-size: 12px; } .fc1, .fc3 { left: 0; } .fc2, .fc4 { right: 0; } }
/* Legal pages */
.legal-doc { max-width: 760px; }
.legal-doc h2 { font-size: 24px; margin: 36px 0 10px; }
.legal-doc p, .legal-doc li { color: #2b2f2d; line-height: 1.7; }
.legal-doc ul { padding-left: 22px; display: grid; gap: 8px; }
.legal-doc .lead-in { font-size: 19px; color: var(--ink); }

/* Header: logo left, actions right; no menu links */
.site-header .header-actions { margin-left: auto; }
.site-header .header-actions .btn-ghost { display: inline-flex; }
@media (max-width: 480px) { .site-header .header-actions .btn-ghost { display: none; } }
/* Rolling news bar */
.newsbar { background: var(--forest); color: #fff; overflow: hidden; font-size: 13.5px; }
.news-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.newsbar:hover .news-track, .newsbar:focus-within .news-track { animation-play-state: paused; }
.news-set { display: flex; }
.news-item { display: inline-flex; align-items: center; gap: 10px; padding: 9px 36px 9px 0; color: #fff; text-decoration: none; white-space: nowrap; }
.news-item:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-item b { background: var(--sun); color: var(--ink); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.news-item::after { content: "•"; margin-left: 26px; opacity: .45; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .news-track { animation: none; width: auto; overflow-x: auto; } .news-set[aria-hidden] { display: none; } }
.lhero h1.seo-h1, :lang(zh-Hant) .lhero h1.seo-h1, :lang(zh-Hans) .lhero h1.seo-h1 { font: 700 13px/1.4 var(--sans); letter-spacing: .02em; }

/* Book an appointment */
.bk-hero { background: #fff; padding: clamp(48px, 7vw, 88px) 0 8px; text-align: center; }
.bk-hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 6.5vw, 80px); letter-spacing: -0.03em; line-height: 1.05; margin: 8px 0 12px; }
.bk-hero .lead { color: var(--slate); font-size: clamp(17px, 1.6vw, 20px); margin: 0 auto; max-width: 34em; }
.bk { padding-top: 32px; }
.bk-grid { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 40px; align-items: start; }
.bk-side h2 { font-size: 24px; margin: 0 0 16px; }
.bk-steps { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 16px; }
.bk-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.bk-n { width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 800; display: grid; place-items: center; }
.bk-steps b { display: block; font-size: 17px; }
.bk-steps span { color: var(--slate); font-size: 15px; }
.bk-note { font-size: 14px; color: var(--ink); background: #FBF6E6; border: 1px solid #F1E3B5; border-radius: 12px; padding: 12px 14px; margin: 0 0 10px; }
.bk-note.soft { background: #fff; border-color: var(--line); color: var(--slate); }
.bk-cal { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 8px; box-shadow: 0 18px 40px -24px rgba(18,38,32,.25); min-height: 640px; }
.bk-fallback { text-align: center; margin: 8px 0; font-size: 14px; }
.bk-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bk-contact .card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.bk-contact svg { width: 26px; height: 26px; fill: none; stroke: var(--forest); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.bk-contact small { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.bk-contact b { font-size: 18px; overflow-wrap: anywhere; }
.bk-contact span { color: var(--slate); font-size: 14px; }
.bk-contact .card:hover { border-color: var(--sun); }
@media (max-width: 860px) { .bk-grid { grid-template-columns: 1fr; } .bk-cal { order: -1; min-height: 560px; } .bk-contact { grid-template-columns: 1fr; } }

/* Mouse pointer = the logo's yellow arrow (computers with a mouse only; text fields keep the text cursor) */
@media (hover: hover) and (pointer: fine) {
  html, body { cursor: url("/assets/cursor-arrow.svg") 3 3, auto; }
  a, button, summary, label, select, [role="button"], .card[href] { cursor: url("/assets/cursor-arrow-link.svg") 3 3, pointer; }
  input, textarea, [contenteditable="true"] { cursor: text; }
}
