/* Liao Group · liao.group · one page (D-110 to D-113)
   D-113 finishing pass: one consolidated stylesheet. Editorial serif display (echoes the wordmark), system sans for
   reading, tabular figures wherever a number appears. Information is carried by typeset sample artifacts built in HTML.
   Colour carries the operating model, never decoration:
     client / incoming records = warm paper neutrals
     your accounting firm      = deep forest, the strongest treatment (the professional boundary)
     Liao Group                = brand green on light tint, the mark always in its own colours
   Every graphic is complete at rest; site.js adds .motion (only when motion is allowed) and .in (graphic on screen).
   CSP: this file and site.js only; no inline styles, no outside hosts, no web fonts. */

:root {
  --bg: #ffffff; --mist: #f5f7f4; --mist-2: #eef2ed;
  --ink: #0f1412; --ink-2: #2b322e; --muted: #555d58; --faint: #6b736d;
  --rule: #e3e7e2; --rule-2: #cdd5cf;
  /* Liao Group */
  --green: #157500; --green-2: #1ea800; --lg-tint: #f0f6ec; --lg-tint-2: #e1efd9; --lg-rule: #cbe2bf;
  /* your accounting firm */
  --firm: #13291e; --firm-2: #24402f; --firm-tint: #f1f4f2; --firm-rule: #b8c6bc; --firm-muted: #bccabf;
  /* your client and the records as they arrive */
  --paper: #f7f4ed; --paper-2: #fbf9f5; --paper-rule: #e0d9c9; --paper-ink: #675d49; --manila: #ece2c8; --manila-2: #f4ecd8; --manila-rule: #d4c5a2;
  /* folders (macOS-style blue) */
  --fold-back: #4ea2ea; --fold-back-2: #3f93de; --fold-front: #8ccbf8; --fold-front-2: #6db8f3; --fold-edge: #b9e0fd; --fold-ink: #0d3a63;
  /* open items */
  --flag: #8a5a00; --flag-tint: #fbf3e2; --flag-rule: #e8d5ad;
  --serif: ui-serif, Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gl: max(clamp(16px, 4.4vw, 64px), env(safe-area-inset-left, 0px));
  --gr: max(clamp(16px, 4.4vw, 64px), env(safe-area-inset-right, 0px));
  --sec: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.22, .61, .2, 1);
  --shadow: 0 1px 2px rgba(15, 20, 18, .05), 0 18px 40px -28px rgba(15, 20, 18, .28);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { background: var(--bg); color: var(--ink); }
body { margin: 0; font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
figure { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: var(--lg-tint-2); }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--ink); color: #fff; padding: 10px 14px; font-size: 15px; text-decoration: none; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.doc, table, .rf, .hv, .ops { font-variant-numeric: tabular-nums lining-nums; }

/* the mark: always its own colours (black L, green parallelogram) on light grounds */
.mark { flex: none; }
.mark .k { fill: var(--ink); }
.mark .g { fill: var(--green-2); }

/* ---------- type ---------- */
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.6vw, 78px); line-height: 1.03; letter-spacing: -.022em; }
h2 { font-size: clamp(29px, 3.2vw, 44px); line-height: 1.12; letter-spacing: -.016em; }
.lead { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.idx { display: flex; align-items: center; gap: 12px; font: 600 12px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.idx::before { content: ""; width: 28px; height: 1px; background: var(--green); flex: none; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 22px; font: 600 15px/1 var(--sans); text-decoration: none; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 2px; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.btn.primary { background: var(--firm); border-color: var(--firm); color: #fff; }
.btn.primary:hover { background: var(--green); border-color: var(--green); }
.btn.ghost:hover, .btn.sm:hover { color: var(--green); border-color: var(--green); }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: #fff; }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: #fff; border-bottom: 1px solid transparent; transition: border-color .3s var(--ease); }
.top.scrolled { border-bottom-color: var(--rule); }
/* a fixed bar in the logo green across the top of the header; it appears once the page is scrolled */
.scroll-bar { position: absolute; left: 0; right: 0; top: 0; z-index: 2; height: 3px; background: var(--green-2); opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.top.scrolled .scroll-bar { opacity: 1; }
.bar { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 32px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a { position: relative; display: block; padding: 8px 0; font-size: 14.5px; color: var(--muted); text-decoration: none; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a.on::after { transform: scaleX(1); }
.menu { display: none; }
.menu summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 12px; cursor: pointer; font-size: 14px; font-weight: 600; border-radius: 2px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary i { position: relative; width: 22px; height: 12px; }
.menu summary i::before, .menu summary i::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu summary i::before { top: 2px; }
.menu summary i::after { top: 9px; }
.menu[open] summary i::before { top: 5.25px; transform: rotate(45deg); }
.menu[open] summary i::after { top: 5.25px; transform: rotate(-45deg); }
.sheet { position: fixed; left: 0; right: 0; top: calc(72px + env(safe-area-inset-top, 0px)); bottom: 0; overflow-y: auto; background: #fff; border-top: 1px solid var(--rule); padding: 8px var(--gr) calc(28px + env(safe-area-inset-bottom, 0px)) var(--gl); }
.sheet nav { display: grid; margin-bottom: 24px; }
.sheet nav a { display: flex; align-items: baseline; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--rule); font: 400 24px/1.15 var(--serif); letter-spacing: -.01em; text-decoration: none; }
.sheet nav a .i { font: 600 11px/1 var(--sans); letter-spacing: .12em; color: var(--green); width: 22px; }
.sheet-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
html.menu-open { overflow: hidden; }
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu { display: block; }
  .talk-btn { margin-left: auto; }
}
@media (max-width: 520px) { .talk-btn { display: none; } .menu { margin-left: auto; } .bar { height: 64px; } .sheet { top: calc(64px + env(safe-area-inset-top, 0px)); } html { scroll-padding-top: 76px; } }
@media (min-width: 1021px) { .menu[open] .sheet { display: none; } }

/* ---------- sections ---------- */
.sec { padding: var(--sec) 0; }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec.mist { background: var(--mist); border-top: 1px solid var(--rule); }
.sec.mist + .sec { border-top-color: var(--rule); }
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; margin-bottom: clamp(36px, 4.5vw, 64px); }
.head > * { grid-column: 1 / span 8; }
.head.split > h2 { grid-column: 1 / span 6; }
.head.split > .lead { grid-column: 8 / span 5; align-self: end; }
@media (max-width: 860px) { .head > *, .head.split > h2, .head.split > .lead { grid-column: 1 / -1; } .head.split > .lead { margin-top: 18px; } }
.cap-row { margin-top: 28px; font-size: 12.5px; color: var(--muted); }

/* ---------- shared sample documents ---------- */
.doc { position: relative; background: #fff; border: 1px solid var(--rule-2); border-radius: 2px; box-shadow: var(--shadow); font-size: 12px; line-height: 1.45; color: var(--ink-2); }
.dh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 14px 9px; border-bottom: 1px solid var(--rule); }
.dh b { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.dh span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.dt { width: 100%; border-collapse: collapse; font-size: 12px; }
.dt th { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 9px 8px 7px; background: var(--mist); border-bottom: 1px solid var(--ink-2); white-space: nowrap; }
.dt td { padding: 7px 8px; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.dt tr:last-child td { border-bottom: 0; }
.dt th:first-child, .dt td:first-child { padding-left: 14px; }
.dt th:last-child, .dt td:last-child { padding-right: 14px; }
.dt .r { text-align: right; white-space: nowrap; }
.dt .d { white-space: nowrap; color: var(--muted); }
.dt .up { text-transform: uppercase; font-size: 10.5px; letter-spacing: .02em; }
.dt .m { font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; }
.dt .mu { color: var(--muted); }
.dt .tot td { border-top: 1px solid var(--ink-2); font-weight: 600; color: var(--ink); }
.hl td { background: var(--lg-tint); }
.hl td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.hl .r { color: var(--ink); font-weight: 600; }
.nil { color: var(--green); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.chk { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; }
.chk circle { fill: none; stroke: var(--green); stroke-width: 1.2; }
.chk path { fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.chk.fl circle, .chk.fl path { stroke: var(--flag); }
.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
/* phones: a soft edge shadow shows that a wide table continues sideways */
@media (max-width: 760px) {
  .tscroll { background: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) 0 0 / 28px 100% no-repeat local, linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) 100% 0 / 28px 100% no-repeat local, linear-gradient(90deg, rgba(15, 20, 18, .14), rgba(15, 20, 18, 0)) 0 0 / 12px 100% no-repeat scroll, linear-gradient(270deg, rgba(15, 20, 18, .14), rgba(15, 20, 18, 0)) 100% 0 / 12px 100% no-repeat scroll; }
}

/* sequence: complete at rest; with motion, the production fills in order once the figure is on screen */
.motion .fx .q { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.motion .fx:not(.in) .q { opacity: .2; transform: translateY(3px); }
.motion .fx .chk path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease); }
.motion .fx:not(.in) .chk.draw path { stroke-dashoffset: 1; }
/* hero sequence: one even beat (0.35 s) from the first check in 02 to "Ready for your review" in 03.
   The 02 bar fills linearly and reaches each quarter as each of the four checks lands. */
.motion .hv .q { transition-duration: .3s; }
.motion .hv:not(.in) .lg-steps .q { opacity: 0; }
.motion .hv .d1, .motion .hv .d1 path { transition-delay: 1.85s; } .motion .hv .d2, .motion .hv .d2 path { transition-delay: 2.1s; }
.motion .hv .d3, .motion .hv .d3 path { transition-delay: 2.35s; } .motion .hv .d4, .motion .hv .d4 path { transition-delay: 2.6s; }
.motion .hv .d5, .motion .hv .d5 path { transition-delay: 3.05s; } .motion .hv .d6, .motion .hv .d6 path { transition-delay: 3.3s; }
.motion .hv .d7, .motion .hv .d7 path { transition-delay: 3.55s; } .motion .hv .d8, .motion .hv .d8 path { transition-delay: 3.8s; }
.motion .hv .d9, .motion .hv .d9 path { transition-delay: 4.05s; } .motion .hv .d10, .motion .hv .d10 path { transition-delay: 4.3s; }
.motion .hv .d11 { transition-delay: 4.55s; } .motion .hv .d12, .motion .hv .d12 path { transition-delay: 4.8s; }

/* ==========================================================================================
   HERO · 01 records in (one client's folder, as received) → 02 Liao Group → 03 review-ready
   ========================================================================================== */
/* the statement: one wide headline, then a ruled line holding the promise (left) and the two actions (right) */
.hero { padding: clamp(48px, 7vw, 112px) 0 clamp(64px, 7vw, 104px); }
.hero-text h1 { max-width: 12.5em; font-size: clamp(42px, 6.6vw, 98px); line-height: 1; letter-spacing: -.028em; }
.hero-text h1 .nb { white-space: nowrap; }
.hero-sub { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: end; margin-top: clamp(32px, 4vw, 52px); padding-top: clamp(24px, 2.6vw, 32px); border-top: 1px solid var(--rule-2); }
.hero-sub .lead { grid-column: 1 / span 6; max-width: 32em; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--ink-2); }
.hero-sub .actions { grid-column: 8 / span 5; justify-content: flex-end; flex-wrap: nowrap; }
@media (max-width: 1000px) { .hero-sub .lead { grid-column: 1 / span 7; } .hero-sub .actions { grid-column: 8 / span 5; flex-wrap: wrap; } }
@media (max-width: 760px) {
  .hero-text h1 .nb { white-space: normal; }
  .hero-sub .lead, .hero-sub .actions { grid-column: 1 / -1; }
  .hero-sub .actions { justify-content: flex-start; flex-wrap: wrap; }
  .hero-sub .actions .btn { flex: 1 1 200px; }
}

.hv { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr) 84px minmax(0, 1fr); grid-template-areas: "h1 . h2 . h3" "in c1 lg c2 out"; row-gap: 16px; align-items: center; margin-top: clamp(48px, 5vw, 72px); }
.hv-h { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.hv-h .n { font: 400 15px/1 var(--serif); letter-spacing: 0; color: var(--muted); }
.h1z { grid-area: h1; border-bottom-color: var(--paper-rule); } .h1z .n { color: var(--paper-ink); }
.h2z { grid-area: h2; border-bottom-color: var(--lg-rule); } .h2z .n { color: var(--green); }
.h3z { grid-area: h3; } .h3z .n { color: var(--ink-2); }
.hv-in { grid-area: in; } .hv-lg { grid-area: lg; } .hv-out { grid-area: out; } .hv .c1 { grid-area: c1; } .hv .c2 { grid-area: c2; }
.hv-z { position: relative; height: 372px; }

/* 01 · one client's folder exactly as it arrived: same company, same naming, mixed formats, no order */
.hv-in { --tw: 108px; }
.bt { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--paper-ink); }
.bt b { font-weight: 600; color: var(--ink-2); }
.bt span:last-child { padding-left: 8px; border-left: 1px solid var(--paper-rule); }
.bt-f { position: relative; width: 17px; height: 12px; margin-top: 3px; background: linear-gradient(180deg, var(--fold-front) 0%, var(--fold-front-2) 100%); border-top: 1px solid var(--fold-edge); border-radius: 1px 1px 2px 2px; box-shadow: 0 -2px 0 0 var(--fold-back); }
.bt-f::before { content: ""; position: absolute; left: 0; top: -5px; width: 7px; height: 3px; background: var(--fold-back); border-radius: 2px 2px 0 0; }
.rt { position: absolute; width: var(--tw); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rn { display: block; width: 100%; font-size: 10px; line-height: 1.32; color: var(--ink-2); text-align: center; overflow-wrap: anywhere; }
.pg { position: relative; display: flex; flex-direction: column; gap: 4px; width: 50px; height: 64px; padding: 8px 7px 0; background: #fff; border: 1px solid var(--rule-2); border-radius: 2px; box-shadow: 0 1px 2px rgba(15, 20, 18, .06), 0 8px 16px -10px rgba(15, 20, 18, .35); }
.pg i { display: block; flex: none; height: 2px; background: var(--rule-2); }
.pg i:nth-of-type(3) { width: 80%; } .pg i:nth-of-type(5) { width: 64%; }
.pg .lh { height: 3px; width: 58%; margin-bottom: 2px; background: var(--paper-ink); opacity: .75; }
.pg b { position: absolute; left: 6px; bottom: 6px; padding: 0 3px; font: 700 7px/11px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--ink-2); border-radius: 1px; }
.pg.multi { box-shadow: 3px 3px 0 -1px #fff, 3px 3px 0 0 var(--rule-2), 0 8px 16px -10px rgba(15, 20, 18, .35); }
.pg-csv i:not(.lh) { height: 2px; width: 100%; background: repeating-linear-gradient(90deg, var(--rule-2) 0 7px, transparent 7px 9px); }
.pg-inv .blk { width: 40%; height: 7px; margin-left: auto; background: var(--mist-2); }
.pg-inv .tot { width: 42%; margin-left: auto; background: var(--ink-2); }
.pg-xls .gr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule-2); border: 1px solid var(--rule-2); }
.pg-xls .gr i { height: 6px; width: auto; background: #fff; }
.pg-xls .gr i:nth-child(-n+3) { background: var(--mist-2); }
.pg-jpg { padding: 6px; background: #d8d4cb; border-color: #c9c3b7; }
.ph-r { display: flex; flex-direction: column; gap: 4px; width: 28px; height: 46px; margin: 1px auto 0; padding: 6px 4px; background: #fbfaf7; transform: rotate(-7deg); box-shadow: 0 1px 2px rgba(15, 20, 18, .18); }
.ph-r i { height: 2px; background: #cfcac0; }
.ph-r i:nth-child(2) { width: 70%; }
.pg-scan { background: #eeede9; }
.pg-scan i { background: #b9b6ae; transform: rotate(-2deg); }
.pg-scan .lh { background: #8f8a7f; }
.t1 { left: 0; top: 40px; } .t1 .pg { transform: rotate(-4deg); }
.t2 { left: calc(50% - var(--tw) / 2 - 4px); top: 62px; } .t2 .pg { transform: rotate(3deg); }
.t3 { right: 0; top: 34px; } .t3 .pg { transform: rotate(5deg); }
.t4 { left: 4%; top: 204px; } .t4 .pg { transform: rotate(2deg); }
.t5 { left: calc(50% - var(--tw) / 2 + 6px); top: 192px; } .t5 .pg { transform: rotate(-6deg); }
.t6 { right: 3%; top: 210px; } .t6 .pg { transform: rotate(-2deg); }
.more { position: absolute; left: 0; bottom: 0; padding: 3px 8px; font-size: 11px; color: var(--paper-ink); background: var(--paper); border: 1px dashed var(--paper-rule); border-radius: 2px; }

/* connectors */
.hv-c { position: relative; height: 28px; margin: 0 8px; }
/* files travel along the arrows: records into Liao Group, the finished file out to 03 */
.dc { position: absolute; left: 0; top: 50%; width: 20px; height: 26px; margin-top: -13px; font-style: normal; background: #fff repeating-linear-gradient(to bottom, var(--rule-2) 0 1.5px, transparent 1.5px 5px) 3px 7px / 12px 9px no-repeat; border: 1px solid var(--rule-2); border-radius: 2px; box-shadow: 0 4px 10px -6px rgba(15, 20, 18, .45); opacity: 0; }
.dc b { position: absolute; left: 2px; bottom: 2px; padding: 0 2px; font: 700 5px/7px var(--sans); letter-spacing: .03em; color: #fff; background: var(--ink-2); border-radius: 1px; }
.dc.ok { background: #fff; border-color: var(--lg-rule); border-top: 3px solid var(--green); }
.dc.ok::after { content: ""; position: absolute; left: 5px; top: 7px; width: 7px; height: 4px; border-left: 1.5px solid var(--green); border-bottom: 1.5px solid var(--green); transform: rotate(-45deg); }
.motion .hv.in .dc { animation: hv-x 3.6s var(--ease) infinite; }
.motion .hv.in .c1 .dc:nth-of-type(2) { animation-delay: 1.2s; }
.motion .hv.in .c1 .dc:nth-of-type(3) { animation-delay: 2.4s; }
.motion .hv.in .c2 .dc { animation-delay: 2.8s; }
@keyframes hv-x { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 78% { opacity: 1; } 92%, 100% { left: calc(100% - 22px); opacity: 0; } }
@keyframes hv-y { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 78% { opacity: 1; } 92%, 100% { top: calc(100% - 26px); opacity: 0; } }
.hv-line { position: absolute; left: 0; right: 2px; top: 50%; height: 1px; background: var(--ink-2); }
.hv-line::after { content: ""; position: absolute; right: -1px; top: 0; width: 7px; height: 7px; border-top: 1px solid var(--ink-2); border-right: 1px solid var(--ink-2); transform: translateY(-50%) rotate(45deg); }

/* 02 · Liao Group: the production point; loose records in, structured rows out, the mark in its own colours */
.hv-lg { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 24px 22px; background: var(--lg-tint); border-top: 2px solid var(--green); border-bottom: 1px solid var(--lg-rule); }
.lg-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 14px; width: 100%; max-width: 280px; margin-bottom: 14px; }
/* incoming: mini copies of the 01 files (same page, letterhead and type band), loose and unsorted */
.lf-in { position: relative; height: 72px; }
.mp { position: absolute; width: 26px; height: 34px; padding: 5px 4px 0; background: #fff repeating-linear-gradient(to bottom, var(--rule-2) 0 1.5px, transparent 1.5px 5px) 4px 9px / 16px 12px no-repeat; border: 1px solid var(--rule-2); border-radius: 2px; box-shadow: 0 1px 2px rgba(15, 20, 18, .08), 0 6px 12px -8px rgba(15, 20, 18, .4); }
.mp::before { content: ""; display: block; width: 55%; height: 2px; background: var(--paper-ink); opacity: .75; }
.mp b { position: absolute; left: 3px; bottom: 3px; padding: 0 2px; font: 700 5.5px/8px var(--sans); letter-spacing: .04em; color: #fff; background: var(--ink-2); border-radius: 1px; }
.mp:nth-child(1) { left: 0; top: 2px; transform: rotate(-12deg); }
.mp:nth-child(2) { left: 34%; top: 0; transform: rotate(7deg); }
.mp:nth-child(3) { left: 8%; top: 36px; transform: rotate(5deg); }
.mp:nth-child(4) { left: 46%; top: 34px; transform: rotate(-9deg); }
.lf-mark { display: grid; place-items: center; width: 84px; height: 84px; background: #fff; border: 1px solid var(--lg-rule); border-radius: 2px; box-shadow: var(--shadow); }
.lf-mark .mark { width: 54px; height: 54px; }
/* outgoing: four progress bars, one per check; full at rest, and with motion each fills as its check lands */
.lf-out { display: grid; gap: 6px; }
.lf-out i { position: relative; display: block; height: 7px; overflow: hidden; background: #fff; border: 1px solid var(--lg-rule); border-radius: 4px; }
.lf-out i::after { content: ""; position: absolute; inset: 0; background: var(--green); transform-origin: left center; }
.motion .hv .lf-out i::after { transition: transform .35s linear; }
.motion .hv:not(.in) .lf-out i::after { transform: scaleX(0); }
.motion .hv .lf-out .d1::after { transition-delay: .3s; } .motion .hv .lf-out .d2::after { transition-delay: .65s; }
.motion .hv .lf-out .d3::after { transition-delay: 1s; } .motion .hv .lf-out .d4::after { transition-delay: 1.35s; }
.lg-n { font: 400 24px/1.15 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.lg-s { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--green); }
.lg-steps { list-style: none; margin: 10px 0 0; padding: 0; width: min(100%, 220px); }
.lg-steps li { display: flex; align-items: center; gap: 10px; height: 32px; border-top: 1px solid var(--lg-rule); font-size: 13.5px; color: var(--ink-2); }
.lg-steps .chk { width: 15px; height: 15px; }

/* 03 · review-ready: one organized document */
.hv-out { display: flex; flex-direction: column; justify-content: center; }
.hv-out > * { flex: none; }
.rf { background: #fff; border: 1px solid var(--rule-2); border-top: 2px solid var(--green); border-radius: 2px; box-shadow: var(--shadow); overflow: hidden; }
.rf-h { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--ink-2); }
.rf-h .mark { grid-row: 1 / span 2; width: 24px; height: 24px; }
.rf-h b { font: 400 17px/1.2 var(--serif); color: var(--ink); }
.rf-h span { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.rf-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.rf-t td { height: 34px; padding: 0 16px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.rf-t td + td { width: 96px; font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.rf-t .chk { width: 13px; height: 13px; margin-right: 6px; vertical-align: -2px; }
.rf-t .fl td + td { color: var(--flag); }
.rf-rec span, .rf-rec b { white-space: nowrap; }
.rf-rec .rk { flex-basis: 100%; margin-bottom: 1px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rf-rec { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 16px; background: var(--mist); border-top: 1px solid var(--ink-2); font-size: 13px; color: var(--ink); }
.rf-rec em { font-style: normal; color: var(--green); padding: 0 4px; }
.rf-rec b { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.ready { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.ready .chk { width: 18px; height: 18px; }

/* hero, one column: 01 ↓ 02 ↓ 03 */
@media (max-width: 1100px) {
  .hv { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h1" "in" "c1" "h2" "lg" "c2" "h3" "out"; row-gap: 14px; max-width: 520px; margin-left: auto; margin-right: auto; }
  .hv-z { height: 352px; }
  .hv-lg, .hv-out { height: auto; }
  .hv-lg { padding: 28px 22px; }
  .hv-c { width: 24px; height: 60px; margin: 0 auto; }
  .dc { left: 50%; top: 0; margin: 0 0 0 -10px; }
  .motion .hv.in .dc { animation-name: hv-y; }
  .hv-line { left: 50%; right: auto; top: 0; bottom: 2px; width: 1px; height: auto; }
  .hv-line::after { right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%) rotate(135deg); }
  .h2z, .h3z { margin-top: 2px; }
}
@media (max-width: 380px) {
  .hv-in { --tw: 92px; }
  .rn { font-size: 9.5px; }
  .hv-z.hv-in { height: 372px; }
  .bt { flex-wrap: wrap; row-gap: 2px; right: 0; }
  .bt span:last-child { flex-basis: 100%; padding-left: 25px; border-left: 0; }
  .hv-in .rt { margin-top: 20px; }
}

/* ==========================================================================================
   01 HOW IT WORKS · three parties of equal weight; every line passes through your firm
   ========================================================================================== */
.ops { --g: 56px; --w: calc((100% - 2 * var(--g)) / 3); }
.ops-zones, .ops-row { display: grid; grid-template-columns: minmax(0, 1fr) var(--g) minmax(0, 1fr) var(--g) minmax(0, 1fr); }
.ops-zones { margin-bottom: 12px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.ops-zones span:nth-child(1) { grid-column: 1; color: var(--paper-ink); }
.ops-zones span:nth-child(2) { grid-column: 3; color: var(--firm); }
.ops-zones span:nth-child(3) { grid-column: 5; color: var(--green); }
.ops-row { list-style: none; margin: 0; padding: 0; align-items: stretch; }
.party { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--rule-2); border-radius: 2px; box-shadow: var(--shadow); }
.party:nth-child(1) { grid-column: 1; } .party:nth-child(2) { grid-column: 3; } .party:nth-child(3) { grid-column: 5; }
/* forward arrows: client → firm → Liao Group */
.party:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: calc(-1 * var(--g) + 10px); width: calc(var(--g) - 22px); height: 1px; background: var(--ink-2); }
.party:not(:last-child)::before { content: ""; position: absolute; top: 50%; right: calc(-1 * var(--g) + 11px); width: 7px; height: 7px; border-top: 1px solid var(--ink-2); border-right: 1px solid var(--ink-2); transform: translateY(-50%) rotate(45deg); }
.pt-h { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-content: start; row-gap: 3px; min-height: 86px; padding: 15px 20px 14px; border-bottom: 1px solid var(--rule); }
.pt-n { grid-row: 1 / span 2; padding-top: 3px; font: 400 14px/1.2 var(--serif); color: var(--muted); }
.pt-h b { display: flex; align-items: center; font: 400 20px/1.2 var(--serif); letter-spacing: -.005em; color: var(--ink); }
.pt-r { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.pt-s { padding: 16px 20px 12px; font: 400 17px/1.25 var(--serif); color: var(--ink); }
.pt-v { position: relative; height: 172px; margin: 0 20px 6px; overflow: hidden; border: 1px solid var(--rule); border-radius: 2px; }
.rows { list-style: none; margin: 0; padding: 4px 20px 10px; flex: 1; }
.rows li { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 0; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.rows .t { flex: 1; min-width: 0; }
.rows .o { flex: none; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; }
.rows .a { flex: none; font-weight: 600; color: var(--ink); text-align: right; }
.rows li.fl .t, .rows li.fl .a { color: var(--flag); }
.pt-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; padding: 8px 20px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); }

/* your client: paper */
.p-cl { border-color: var(--paper-rule); }
.p-cl .pt-h { background: var(--paper); border-bottom-color: var(--paper-rule); }
.p-cl .pt-n { color: var(--paper-ink); }
.p-cl .pt-v { background: var(--paper-2); border-color: var(--paper-rule); }
.p-cl .pt-f { background: var(--paper-2); }
/* your accounting firm: the boundary, the strongest treatment */
.p-fm { border: 2px solid var(--firm); box-shadow: 0 1px 2px rgba(15, 20, 18, .06), 0 24px 48px -30px rgba(19, 41, 30, .55); }
.p-fm .pt-h { background: var(--firm); border-bottom-color: var(--firm); }
.p-fm .pt-h b { color: #fff; }
.p-fm .pt-n, .p-fm .pt-r { color: var(--firm-muted); }
.p-fm .pt-v { background: var(--firm-tint); border-color: var(--firm-rule); }
.p-fm .rows li.hl { margin: 0 -20px; padding-left: 20px; padding-right: 20px; background: var(--firm-tint); box-shadow: inset 3px 0 0 var(--firm); }
.p-fm .rows li.hl .o { color: var(--firm); }
.p-fm .pt-f { background: var(--firm-tint); color: var(--firm-2); }
/* Liao Group: behind the firm */
.p-lg { border-color: var(--lg-rule); border-top: 3px solid var(--green); }
.p-lg .pt-h { background: var(--lg-tint); border-bottom-color: var(--lg-rule); }
.p-lg .pt-n { color: var(--green); }
.lg-word .mark { width: 20px; height: 20px; margin-right: 9px; }
.p-lg .pt-f { background: var(--lg-tint); }

/* drawn folders: every file in the batch shares one treatment */
.fold { position: absolute; left: 50%; bottom: 14px; width: 172px; height: 124px; margin-left: -86px; }
/* folder (William, D-113 follow-up): macOS-style blue, darker back with its tab, lighter front with a highlight edge */
.fb { position: absolute; left: 0; right: 0; bottom: 0; height: 106px; background: linear-gradient(180deg, var(--fold-back) 0%, var(--fold-back-2) 100%); border-radius: 0 7px 7px 7px; }
.fb::before { content: ""; position: absolute; left: 0; top: -12px; width: 66px; height: 14px; background: var(--fold-back); border-radius: 7px 7px 0 0; }
.ff { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center; height: 52px; padding-bottom: 9px; background: linear-gradient(180deg, var(--fold-front) 0%, var(--fold-front-2) 100%); border-top: 1px solid var(--fold-edge); border-radius: 6px 6px 7px 7px; box-shadow: 0 -1px 3px rgba(14, 58, 99, .14); }
.ff em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--fold-ink); }
.fi { position: absolute; z-index: 2; width: 40px; height: 52px; background: #fff repeating-linear-gradient(to bottom, transparent 0 7px, var(--rule) 7px 8px) 7px 10px / 24px 22px no-repeat; border: 1px solid var(--rule-2); border-radius: 2px; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%); }
.fi::after { content: ""; position: absolute; top: -1px; right: -1px; width: 11px; height: 11px; background: var(--rule-2); clip-path: polygon(0 0, 0 100%, 100% 100%); }
.fi b { position: absolute; left: 4px; bottom: 5px; padding: 0 3px; font: 700 7.5px/12px var(--sans); letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--ink-2); border-radius: 1px; }
.j1 { left: 6px; bottom: 50px; transform: rotate(-12deg); }
.j2 { left: 32px; bottom: 62px; transform: rotate(-5deg); }
.j3 { left: 62px; bottom: 68px; transform: rotate(2deg); }
.j4 { left: 92px; bottom: 64px; transform: rotate(7deg); }
.j5 { left: 122px; bottom: 52px; transform: rotate(13deg); }
.j6 { left: 76px; bottom: 50px; transform: rotate(-3deg); z-index: 1; }
.stamp { position: absolute; right: 12px; top: 14px; z-index: 4; padding: 3px 8px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--firm); border: 1.5px solid var(--firm); border-radius: 2px; transform: rotate(-5deg); background: rgba(255, 255, 255, .8); }
/* sorted inside Liao Group */
.pt-sort { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; align-content: center; padding: 16px 14px 12px; background: #fff; border-color: var(--lg-rule); }
.mf { position: relative; display: flex; justify-content: space-between; align-items: baseline; height: 34px; padding: 9px 10px 0; background: var(--lg-tint); border: 1px solid var(--lg-rule); border-radius: 0 2px 2px 2px; }
.mf::before { content: ""; position: absolute; left: -1px; top: -6px; width: 22px; height: 5px; background: var(--lg-tint); border: 1px solid var(--lg-rule); border-bottom: 0; border-radius: 2px 2px 0 0; }
.mf b { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.mf span { font: 400 15px/1 var(--serif); color: var(--green); }
.mf.fl, .mf.fl::before { background: var(--flag-tint); border-color: var(--flag-rule); }
.mf.fl span, .mf.fl b { color: var(--flag); }

/* returns: Liao Group → your firm (04), your firm → your client (05); nothing runs from Liao Group to the client */
.ops-back { position: relative; list-style: none; height: 84px; margin: 0; padding: 0; }
.rb-l { position: absolute; top: 0; height: 26px; border: 1.5px solid currentColor; border-top: 0; }
.rb-l::before { content: ""; position: absolute; left: -5px; top: 0; width: 8px; height: 8px; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; transform: rotate(45deg); }
.rb-t { position: absolute; top: 36px; font-size: 13px; line-height: 1.35; color: var(--ink-2); text-align: center; }
.rb-t b { margin-right: 8px; font: 400 13px/1 var(--serif); }
.rb-lg { color: var(--green); }
.rb-fm { color: var(--firm); }
.rb-lg .rb-l, .rb-lg .rb-t { left: calc(var(--w) * 1.5 + var(--g) + 10px); width: calc(var(--w) + var(--g) - 10px); }
.rb-fm .rb-l, .rb-fm .rb-t { left: calc(var(--w) / 2); width: calc(var(--w) + var(--g) - 10px); }
.rb-t { padding: 0 8px; }
.rb .rb-t b { color: inherit; }
.rb-lg .rb-t b { color: var(--green); } .rb-fm .rb-t b { color: var(--firm); }

@media (max-width: 1100px) { .ops { --g: 40px; } .pt-h { padding: 14px 16px; } .pt-s, .rows, .pt-f { padding-left: 16px; padding-right: 16px; } .pt-v { margin-left: 16px; margin-right: 16px; } .p-fm .rows li.hl { margin: 0 -16px; padding-left: 16px; padding-right: 16px; } }
@media (max-width: 960px) {
  .ops { max-width: 560px; margin: 0 auto; }
  .ops-zones { display: none; }
  .ops-row { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .party:nth-child(n) { grid-column: 1; }
  .party:not(:last-child)::after { top: auto; right: auto; bottom: -42px; left: 50%; width: 1px; height: 34px; }
  .party:not(:last-child)::before { top: auto; right: auto; bottom: -42px; left: 50%; transform: translateX(-50%) rotate(135deg); }
  .pt-h { min-height: 0; }
  .ops-back { height: auto; margin-top: 24px; display: grid; gap: 10px; }
  .rb-l { display: none; }
  .rb-t, .rb-lg .rb-t, .rb-fm .rb-t { position: static; display: block; width: auto; padding: 10px 14px; text-align: left; background: #fff; border: 1px solid var(--rule); border-left: 3px solid currentColor; }
  .rb-lg .rb-t { border-left-color: var(--green); } .rb-fm .rb-t { border-left-color: var(--firm); }
}

/* ==========================================================================================
   02 THE RELATIONSHIP · responsibility table (the precise version of the diagram)
   ========================================================================================== */
.mx-wrap { background: #fff; border: 1px solid var(--rule-2); border-radius: 2px; box-shadow: var(--shadow); overflow: hidden; }
.mx { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.cw-k { width: 22%; } .cw-cl, .cw-fm, .cw-lg { width: 26%; }
.mx thead th { padding: 16px 20px 15px; text-align: left; vertical-align: bottom; font-weight: 400; }
.mx .ch-z { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.mx .ch-n { display: flex; align-items: center; font: 400 19px/1.2 var(--serif); letter-spacing: -.005em; }
.mx .ch-n .mark { width: 20px; height: 20px; margin-right: 9px; }
.mx thead small { display: block; margin-top: 3px; font-size: 12.5px; }
.mx thead .mx-k { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink-2); }
.mx .c-cl { background: var(--paper); color: var(--ink); border-bottom: 2px solid var(--paper-rule); }
.mx .c-cl .ch-z, .mx .c-cl small { color: var(--paper-ink); }
.mx .c-fm { background: var(--firm); color: #fff; border-bottom: 2px solid var(--firm); }
.mx .c-fm .ch-z, .mx .c-fm small { color: var(--firm-muted); }
.mx .c-lg { background: var(--lg-tint); color: var(--ink); border-bottom: 2px solid var(--green); }
.mx .c-lg .ch-z, .mx .c-lg small { color: var(--green); }
.mx tbody th[scope="row"] { padding: 12px 20px; text-align: left; font-size: 13.5px; font-weight: 600; color: var(--ink); border-top: 1px solid var(--rule); }
.mx tbody td { padding: 14px 20px; border-top: 1px solid var(--rule); color: var(--ink-2); line-height: 1.4; vertical-align: middle; }
.mx tbody td:nth-of-type(1) { background: var(--paper-2); }
.mx tbody td:nth-of-type(2) { background: var(--firm-tint); color: var(--ink); border-left: 1px solid var(--firm-rule); border-right: 1px solid var(--firm-rule); }
.mx tbody td:nth-of-type(3) { background: #f8fbf6; }
.mx .grp th { padding: 13px 20px 11px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); background: var(--mist); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
i.m { display: inline-block; flex: none; width: 10px; height: 10px; margin-right: 10px; vertical-align: -1px; box-sizing: border-box; }
i.m.own { background: var(--ink-2); }
i.m.part { border: 1.5px solid var(--ink-2); background: #fff; }
i.m.none { height: 2px; background: var(--faint); vertical-align: 3px; }
.mx-legend { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding: 15px 20px; background: var(--mist); border-top: 1px solid var(--rule-2); }
.mx-keys { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13px; color: var(--muted); }
.mx-keys span { display: inline-flex; align-items: center; }
.mx-note { padding-left: 12px; border-left: 3px solid var(--firm); font-size: 14px; font-weight: 600; color: var(--firm); }
@media (max-width: 1100px) { .mx thead th, .mx tbody th[scope="row"], .mx tbody td { padding-left: 14px; padding-right: 14px; } .mx { font-size: 13.5px; } .mx .ch-n { font-size: 17px; } }
/* phones and narrow tablets: one card per responsibility, three labelled lines */
@media (max-width: 820px) {
  .mx, .mx tbody, .mx tr, .mx th, .mx td { display: block; }
  .mx colgroup, .mx thead { display: none; }
  .mx tbody tr { padding: 14px 16px 12px; border-top: 1px solid var(--rule); }
  .mx tbody th[scope="row"] { padding: 0 0 8px; border: 0; font-size: 15px; }
  .mx .grp { padding: 0; border-top: 1px solid var(--rule-2); }
  .mx .grp th { border: 0; padding: 12px 16px 10px; }
  .mx tbody td { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; padding: 7px 10px; border: 0; border-left: 3px solid transparent; }
  .mx tbody td + td { margin-top: 3px; }
  .mx tbody td:nth-of-type(1) { border-left-color: var(--paper-rule); }
  .mx tbody td:nth-of-type(2) { border: 0; border-left: 3px solid var(--firm); }
  .mx tbody td:nth-of-type(3) { border-left-color: var(--green); background: var(--lg-tint); }
  .mx tbody td::before { content: attr(data-c); grid-column: 1; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .mx tbody td:nth-of-type(2)::before { color: var(--firm); }
  .mx tbody td:nth-of-type(3)::before { color: var(--green); }
  .mx tbody td .m { display: none; }
  .mx-keys { display: none; }
  .mx-legend { padding: 14px 16px; }
}

/* ==========================================================================================
   03 ONE TRANSACTION · four views, one width, one height
   ========================================================================================== */
.trace { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); align-items: stretch; }
.tstep { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-width: 0; }
.tstep > .doc { height: 100%; overflow: hidden; }
.tlab { display: flex; gap: 10px; align-items: baseline; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.tlab .n { font: 400 15px/1 var(--serif); letter-spacing: 0; color: var(--green); }
.trace .up { white-space: normal; }
.conn { position: relative; align-self: center; height: 12px; margin: 30px 6px 0; }
.conn::before { content: ""; position: absolute; left: 0; right: 2px; top: 50%; height: 1px; background: var(--ink-2); }
.conn::after { content: ""; position: absolute; right: 1px; top: 50%; width: 7px; height: 7px; border-top: 1px solid var(--ink-2); border-right: 1px solid var(--ink-2); transform: translateY(-50%) rotate(45deg); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 0; padding: 6px 14px 10px; font-size: 12px; }
.kv dt { color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--rule); }
.kv dd { margin: 0; padding: 6px 0 6px 12px; text-align: right; border-bottom: 1px solid var(--rule); color: var(--ink); }
.kv dt:last-of-type, .kv dd:last-of-type { border-bottom: 0; }
.kv .t { font-weight: 600; }
.kv .tag { color: var(--green); }
.inv-top { padding: 14px 14px 10px; border-bottom: 1px solid var(--rule); }
.inv-top b { display: block; font: 400 15px/1.2 var(--serif); color: var(--ink); }
.inv-top span { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.inv-meta { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; font-size: 11.5px; border-bottom: 1px solid var(--rule); }
.inv-meta b { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.inv-meta span { color: var(--ink-2); }
.rec-mini { padding: 4px 14px 12px; }
.rec-mini div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 12px; }
.rec-mini div:last-child { border-bottom: 0; border-top: 1px solid var(--ink-2); margin-top: -1px; }
.rec-mini span { color: var(--muted); }
/* one transaction: each document opens with a dark green header band, white text (William, S28) */
.trace .dh, .trace .inv-top { background: var(--firm); border-bottom-color: var(--firm); }
.trace .dh b, .trace .inv-top b { color: #fff; }
.trace .dh span, .trace .inv-top span { color: var(--firm-muted); }
.trace .dh, .trace .inv-top { box-sizing: border-box; min-height: 54px; }
.trace .dh { align-items: center; padding-top: 10px; padding-bottom: 10px; }
.trace .dh b { white-space: nowrap; }
.trace .dh span { white-space: normal; text-align: right; }
.trace .inv-top { padding-top: 10px; padding-bottom: 9px; }
.motion .trace.fx .tstep { transition: opacity .7s var(--ease); }
.motion .trace.fx:not(.in) .tstep + .conn + .tstep, .motion .trace.fx:not(.in) .conn.mid + .tstep, .motion .trace.fx:not(.in) .tstep:last-child { opacity: .35; }
.motion .trace.fx .tstep:nth-child(4) { transition-delay: .6s; }
.motion .trace.fx .tstep:nth-child(6) { transition-delay: 1.2s; }
.motion .trace.fx .tstep:nth-child(8) { transition-delay: 1.8s; }
@media (max-width: 1180px) { .trace { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); row-gap: 40px; } .trace .conn.mid { display: none; } }
@media (max-width: 700px) {
  .trace { grid-template-columns: minmax(0, 1fr); row-gap: 0; max-width: 480px; margin: 0 auto; }
  .tstep > .doc { height: auto; }
  .trace .conn, .trace .conn.mid { display: block; align-self: auto; width: 12px; height: 36px; margin: 12px auto; }
  .conn::before { left: 50%; right: auto; top: 0; bottom: 2px; width: 1px; height: auto; }
  .conn::after { left: 50%; right: auto; top: auto; bottom: 1px; transform: translateX(-50%) rotate(135deg); }
}

/* ==========================================================================================
   04 INSIDE THE PRODUCTION · sources → register → five checks
   ========================================================================================== */
.intake { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: stretch; }
.tcard { min-width: 0; background: #fff; border: 1px solid var(--rule-2); border-radius: 2px; box-shadow: var(--shadow); overflow: hidden; }
.t-in { border-top: 3px solid var(--paper-rule); }
.t-out { border-top: 3px solid var(--green); }
.tc-h { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px; border-bottom: 1px solid var(--rule); }
.t-in .tc-h { background: var(--paper-2); }
.tc-h .mark { width: 18px; height: 18px; }
.tc-h .cn { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tc-h b { font-size: 14px; font-weight: 600; color: var(--ink); }
.dt.eq { font-size: 13px; }
.dt.eq th, .dt.eq td { height: 38px; padding-top: 0; padding-bottom: 0; vertical-align: middle; }
.dt.eq th:first-child, .dt.eq td:first-child { padding-left: 20px; }
.dt.eq th:last-child, .dt.eq td:last-child { padding-right: 20px; }
.plink { position: relative; align-self: center; height: 12px; margin: 0 10px; }
.plink::before { content: ""; position: absolute; left: 0; right: 2px; top: 50%; height: 1px; background: var(--ink-2); }
.plink::after { content: ""; position: absolute; right: 1px; top: 50%; width: 7px; height: 7px; border-top: 1px solid var(--ink-2); border-right: 1px solid var(--ink-2); transform: translateY(-50%) rotate(45deg); }
.checks { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.checks li { display: grid; grid-template-rows: auto auto 1fr auto; gap: 6px; min-height: 172px; padding: 16px 16px 14px; background: #fff; border: 1px solid var(--rule-2); border-top: 3px solid var(--green); border-radius: 2px; }
.checks .n { font: 400 13px/1 var(--serif); color: var(--green); }
.checks b { font: 400 20px/1.2 var(--serif); color: var(--ink); }
.checks .s { font-size: 13px; line-height: 1.45; color: var(--muted); }
.checks .v { padding-top: 10px; border-top: 1px solid var(--rule); font-size: 14px; font-weight: 600; color: var(--ink); }
.checks li.fl { border-top-color: var(--flag); }
.checks li.fl .n, .checks li.fl .v { color: var(--flag); }
.motion .checks.fx li { transition: opacity .5s var(--ease), transform .5s var(--ease); }
.motion .checks.fx:not(.in) li { opacity: .25; transform: translateY(4px); }
.motion .checks.fx li:nth-child(2) { transition-delay: .2s; } .motion .checks.fx li:nth-child(3) { transition-delay: .4s; }
.motion .checks.fx li:nth-child(4) { transition-delay: .6s; } .motion .checks.fx li:nth-child(5) { transition-delay: .8s; }
@media (max-width: 960px) {
  .intake { grid-template-columns: minmax(0, 1fr); }
  .plink { justify-self: center; width: 12px; height: 40px; margin: 0; }
  .plink::before { left: 50%; right: auto; top: 0; bottom: 2px; width: 1px; height: auto; }
  .plink::after { left: 50%; right: auto; top: auto; bottom: 1px; transform: translateX(-50%) rotate(135deg); }
}
@media (max-width: 1000px) {
  .checks { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .checks li { grid-template-columns: 28px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: baseline; min-height: 0; padding: 14px 16px; border-top-width: 1px; border-left: 3px solid var(--green); }
  .checks li.fl { border-left-color: var(--flag); border-top-color: var(--rule-2); }
  .checks .n { grid-row: 1 / span 2; }
  .checks b { font-size: 18px; }
  .checks .s { grid-column: 2 / span 2; }
  .checks .v { grid-column: 3; grid-row: 1; padding-top: 0; border-top: 0; text-align: right; font-size: 13px; }
}
@media (max-width: 520px) { .hide-s { display: none; } }

/* ==========================================================================================
   05 WHAT COMES BACK · six parts on the left, the open document on the right
   ========================================================================================== */
.viewer { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 4vw, 56px); align-items: start; }
.files { display: grid; align-content: start; border-top: 1px solid var(--ink-2); }
.viewer:not(.ready) .files { display: none; }
.viewer:not(.ready) .panels { grid-column: 1 / -1; }
.file { display: grid; grid-template-columns: 40px minmax(0, 1fr); row-gap: 3px; align-items: start; width: 100%; min-height: 76px; padding: 15px 16px 15px 0; text-align: left; font: inherit; color: var(--ink-2); background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; cursor: pointer; transition: background-color .2s; }
.file .n { grid-row: 1 / span 2; padding: 3px 0 0 2px; font: 400 14px/1.2 var(--serif); color: var(--muted); transition: padding .25s var(--ease), color .2s; }
.file b { font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.file .s { font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--muted); }
.file.fl .s { color: var(--flag); }
.file:hover { background: rgba(255, 255, 255, .7); }
.file[aria-selected="true"] { background: #fff; box-shadow: inset 3px 0 0 var(--green); }
.file[aria-selected="true"] .n { padding-left: 14px; color: var(--green); }
.panels { display: grid; gap: 28px; min-width: 0; }
.js .viewer.ready .panel[hidden] { display: none; }
.panel { min-width: 0; outline: none; text-transform: none; letter-spacing: normal; font-weight: 400; font-style: normal; }
.panel:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.motion .viewer.ready .panel { animation: panel-in .4s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ph { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 20px 14px; background: #fff; border-bottom: 1px solid var(--ink-2); }
.ph b { display: flex; align-items: center; font: 400 20px/1.2 var(--serif); color: var(--ink); }
.ph b .mark { width: 20px; height: 20px; margin-right: 10px; }
.ph span { font-size: 12px; color: var(--muted); text-align: right; }
.pfoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding: 13px 20px; border-top: 1px solid var(--rule); background: var(--mist); font-size: 12px; color: var(--muted); }
.pfoot b { color: var(--ink-2); font-weight: 600; }
.panel .doc { font-size: 13px; }
.panel .dt { font-size: 13px; }
.panel .dt th { font-size: 10.5px; padding-top: 12px; padding-bottom: 9px; }
.panel .dt td { padding-top: 10px; padding-bottom: 10px; }
.panel .dt th:first-child, .panel .dt td:first-child { padding-left: 20px; }
.panel .dt th:last-child, .panel .dt td:last-child { padding-right: 20px; }
.panel .dt .m { font-size: 11.5px; }
@media (max-width: 760px) { .w-led { min-width: 680px; } .w-reg { min-width: 600px; } .w-card { min-width: 440px; } .w-oi { min-width: 500px; } }
.recon { padding: 8px 20px 6px; }
.recon .line { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.recon .line span small { display: block; font-size: 12px; color: var(--muted); }
.recon .line b { font-weight: 500; text-align: right; white-space: nowrap; }
.recon .sub { border-top: 1px solid var(--ink-2); margin-top: -1px; }
.recon .sub b, .recon .sub span { font-weight: 600; color: var(--ink); }
.recon .res { border-bottom: 0; border-top: 3px double var(--ink-2); margin-top: -1px; }
.recon .res b { color: var(--green); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.recon .ind { padding-left: 18px; }
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.strip div { padding: 10px 6px 12px; text-align: center; border-right: 1px solid var(--rule); font-size: 11.5px; color: var(--muted); }
.strip div:last-child { border-right: 0; }
.strip b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; letter-spacing: .04em; }
.strip span { display: block; margin-top: 4px; color: var(--ink-2); }
.strip .chk { margin: 0 auto; }
.counts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.counts div { padding: 14px 12px; border-right: 1px solid var(--rule); }
.counts div:last-child { border-right: 0; background: var(--mist); }
.counts b { display: block; font: 400 26px/1 var(--serif); color: var(--ink); }
.counts span { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.oi .k { font-family: var(--mono); font-size: 11px; color: var(--flag); white-space: nowrap; }
.oi .need { display: block; font-size: 12px; color: var(--flag); margin-top: 2px; }
.judg { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; padding: 14px 20px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-2); }
.judg b { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 2px; white-space: nowrap; }
/* evidence index: ledger line → document on file → statement */
.chain { list-style: none; margin: 0; padding: 0; }
.chain li { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1.95fr) 30px minmax(0, .85fr); align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--rule); }
.chain li:last-child { border-bottom: 0; }
.chain li.hl { background: var(--lg-tint); box-shadow: inset 3px 0 0 var(--green); }
.ch { display: grid; gap: 3px; min-width: 0; }
.ck { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cid { font: 600 12.5px/1.3 var(--mono); color: var(--ink); }
.cw { font-size: 12px; line-height: 1.4; color: var(--muted); }
.ca { font-size: 14px; font-weight: 600; color: var(--ink); }
.ch-stmt b { font-size: 13px; font-weight: 600; color: var(--ink); }
.fname { display: flex; align-items: flex-start; gap: 8px; margin: 2px 0 1px; font: 11px/1.5 var(--mono); color: var(--ink-2); }
.fname.none { font-family: var(--sans); font-size: 12.5px; }
.ft { flex: none; padding: 0 5px; font: 600 9.5px/16px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #fff; border: 1px solid var(--rule-2); border-radius: 2px; }
.fn { min-width: 0; }
.ch-ar { position: relative; height: 1px; margin: 0 8px; background: var(--rule-2); }
.ch-ar::after { content: ""; position: absolute; right: 0; top: 0; width: 6px; height: 6px; border-top: 1px solid var(--muted); border-right: 1px solid var(--muted); transform: translateY(-50%) rotate(45deg); }
/* missing information → request drafted for the firm */
.req { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); column-gap: 28px; row-gap: 20px; margin-top: 28px; align-items: start; }
.req-flow { list-style: none; margin: 0; padding: 0; counter-reset: rq; border-top: 1px solid var(--rule-2); }
.req-flow li { counter-increment: rq; display: grid; grid-template-columns: 32px minmax(0, 1fr); padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.req-flow li::before { content: "0" counter(rq); grid-row: 1 / span 2; font: 400 13px/1.5 var(--serif); color: var(--flag); }
.req-flow li:last-child { color: var(--firm); font-weight: 600; }
.req-flow li:last-child::before { color: var(--firm); }
.req-flow small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.req .doc { border-color: var(--flag-rule); }
.req .doc .dh { background: var(--flag-tint); border-bottom-color: var(--flag-rule); }
.req .doc ol { margin: 0; padding: 10px 16px 12px 34px; font-size: 13px; color: var(--ink-2); }
.req .doc ol li { padding: 4px 0; }
.req .doc p { padding: 0 16px 12px; font-size: 12px; color: var(--muted); }
/* the division of work */
.scope3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 5vw, 72px); }
.scope3 > div { padding-top: 14px; border-top: 3px solid var(--rule-2); }
.scope3 > .s-fm { border-top-color: var(--firm); }
.scope3 > .s-lg { border-top-color: var(--green); }
.scope3 .sh { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.scope3 .s-fm .sh { color: var(--firm); } .scope3 .s-lg .sh { color: var(--green); }
.scope3 ul { list-style: none; margin: 0; padding: 0; }
.scope3 li { display: flex; align-items: center; min-height: 38px; padding: 6px 0; border-top: 1px solid var(--rule); font-size: 14px; color: var(--ink-2); }
.scope3 .s-np li { color: var(--muted); }
.fiction { margin-top: 24px; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 60em; }
@media (max-width: 1000px) {
  .viewer { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  .files { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 0; }
  .file { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 11px 12px; background: #fff; border: 1px solid var(--rule-2); border-radius: 2px; }
  .file .n { grid-row: auto; padding: 0 0 3px; font-size: 13px; }
  .file[aria-selected="true"] .n { padding-left: 0; }
  .file b { font-size: 14px; }
  .file .s { display: none; }
  .file[aria-selected="true"] { border-color: var(--green); box-shadow: inset 0 -2px 0 var(--green); background: var(--lg-tint); }
  .req { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .files { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain li { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .ch-ar { width: 1px; height: 18px; margin: 6px 0 6px 10px; }
  .ch-ar::after { right: auto; left: 50%; top: auto; bottom: 0; transform: translateX(-50%) rotate(135deg); }
  .scope3 { grid-template-columns: minmax(0, 1fr); row-gap: 32px; }
}
@media (max-width: 640px) {
  .ph { flex-direction: column; gap: 3px; padding: 16px 16px 12px; }
  .ph span { text-align: left; }
  .pfoot { padding: 12px 16px; }
  .panel .dt th:first-child, .panel .dt td:first-child { padding-left: 16px; }
  .panel .dt th:last-child, .panel .dt td:last-child { padding-right: 16px; }
  .recon { padding: 6px 16px 4px; }
  .recon .line { font-size: 13.5px; }
  .judg { grid-template-columns: minmax(0, 1fr); row-gap: 4px; padding: 14px 16px; }
  .counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .counts div:nth-child(3) { border-right: 0; }
  .counts div:nth-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .counts div:last-child { grid-column: span 2; }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip div:nth-child(3) { border-right: 0; }
  .strip div:nth-child(-n+3) { border-bottom: 1px solid var(--rule); }
}

/* ==========================================================================================
   06 FEES · a production fee schedule
   ========================================================================================== */
.fees { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); column-gap: clamp(28px, 4vw, 56px); row-gap: 28px; align-items: start; }
.fee-t { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink-2); }
.fee-t thead th { padding: 12px 20px 10px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule-2); }
.fee-t tbody th, .fee-t tbody td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: baseline; transition: background-color .2s var(--ease); }
.fee-t tbody th { width: 26%; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--ink); }
.fee-t tbody td { font-size: 15.5px; color: var(--ink-2); }
.fee-t .r { text-align: right; white-space: nowrap; }
.fee-t tbody .r { font: 400 28px/1 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.fee-t .lg-file th { letter-spacing: .02em; font-weight: 600; font-size: 14px; }
.fee-t .lg-file .r { font-size: 22px; color: var(--muted); }
.fee-t tr.on th, .fee-t tr.on td { background: var(--lg-tint); }
.fee-t tr.on th { box-shadow: inset 3px 0 0 var(--green); }
.fee-t tr.on .r { color: var(--green); }
.fee-foot { margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.est { display: grid; gap: 12px; padding: 22px 22px 20px; background: var(--mist); border: 1px solid var(--rule-2); border-radius: 2px; }
.est label { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.est input { width: 100%; height: 52px; padding: 0 14px; font: 400 26px/1 var(--serif); text-align: right; color: var(--ink); background: #fff; border: 1px solid var(--rule-2); border-radius: 2px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.est input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--lg-tint-2); }
.est-line { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--rule-2); font-size: 14px; color: var(--muted); }
.est-line b { font-weight: 600; color: var(--ink); }
.est-line b.fee { color: var(--green); }
.terms5 { list-style: none; margin: clamp(40px, 4vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.terms5 li { display: grid; align-content: start; gap: 6px; padding-top: 14px; border-top: 1px solid var(--ink-2); }
.terms5 b { font-size: 14px; font-weight: 600; color: var(--ink); }
.terms5 span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.pilot { margin-top: 32px; padding: 14px 18px; background: var(--lg-tint); border-left: 3px solid var(--green); font-size: 14.5px; color: var(--ink-2); }
.pilot b { color: var(--ink); }
@media (max-width: 960px) { .fees { grid-template-columns: minmax(0, 1fr); } .est { max-width: 520px; } }
@media (max-width: 1000px) {
  .terms5 { grid-template-columns: minmax(0, 1fr); gap: 0; border-bottom: 1px solid var(--rule); }
  .terms5 li { grid-template-columns: 180px minmax(0, 1fr); align-items: baseline; padding: 12px 0; border-top-color: var(--rule); }
}
@media (max-width: 560px) {
  .fee-t thead { display: none; }
  .fee-t tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "b f" "t f"; align-items: center; border-bottom: 1px solid var(--rule); }
  .fee-t tbody th, .fee-t tbody td { padding: 0 16px; border: 0; width: auto; }
  .fee-t tbody th { grid-area: b; padding-top: 14px; }
  .fee-t tbody td:not(.r) { grid-area: t; padding-bottom: 14px; font-size: 14px; color: var(--muted); }
  .fee-t tbody .r { grid-area: f; font-size: 26px; }
  .fee-t tr.on { background: var(--lg-tint); box-shadow: inset 3px 0 0 var(--green); }
  .fee-t tr.on th { box-shadow: none; }
  .terms5 li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ==========================================================================================
   07 FAQ
   ========================================================================================== */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.faq .head { grid-column: 1 / span 4; display: block; margin: 0; }
.faq-list { grid-column: 5 / span 8; border-top: 1px solid var(--ink-2); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 16px; align-items: center; min-height: 64px; padding: 16px 0; cursor: pointer; font-size: 17px; font-weight: 500; color: var(--ink); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 14px; height: 14px; justify-self: end; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6.5px; height: 1.5px; background: var(--ink-2); transition: transform .3s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq summary:hover { color: var(--green); }
.faq details p { padding: 0 40px 22px 0; font-size: 15.5px; color: var(--muted); max-width: 40em; }
.faq details p b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) { .faq .head, .faq-list { grid-column: 1 / -1; } .faq-list { margin-top: 32px; } .faq details p { padding-right: 0; } .faq summary { font-size: 16px; } }

/* ==========================================================================================
   CONTACT + FOOTER · one closing section
   ========================================================================================== */
.end { padding: var(--sec) 0 calc(28px + env(safe-area-inset-bottom, 0px)); background: var(--mist); border-top: 1px solid var(--rule); }
.end-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(40px, 6vw, 104px); row-gap: 48px; align-items: start; }
.end .lead { margin-top: 20px; }
.end-act { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px; }
.mailrow a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-2); padding-bottom: 1px; transition: border-color .2s; }
.mailrow a:hover { border-color: var(--green); }
.copy { min-height: 36px; padding: 0 12px; font: 600 12.5px/1 var(--sans); color: var(--ink-2); background: #fff; border: 1px solid var(--rule-2); border-radius: 2px; cursor: pointer; transition: border-color .2s, color .2s; }
.copy:hover { border-color: var(--green); color: var(--green); }
.copied { min-width: 4em; font-size: 12.5px; color: var(--green); }
.caution { margin-top: 22px; padding-left: 12px; border-left: 2px solid var(--flag-rule); font-size: 13.5px; color: var(--muted); }
.fh { margin-bottom: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.end-path { padding-top: 6px; }
.path { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink-2); }
.path li { display: grid; grid-template-columns: 36px minmax(0, 1fr); row-gap: 2px; padding: 13px 0; border-bottom: 1px solid var(--rule-2); }
.path .pn { grid-row: 1 / span 2; padding-top: 3px; font: 400 14px/1.2 var(--serif); color: var(--green); }
.path b { font: 400 18px/1.25 var(--serif); color: var(--ink); }
.path .pd { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.end-info { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; margin-top: clamp(64px, 7vw, 104px); padding-top: 32px; border-top: 1px solid var(--ink-2); }
.ei-brand { grid-column: 1 / span 5; }
.ei-brand .brand img { height: 40px; }
.ei-brand p { margin-top: 16px; font: 400 18px/1.35 var(--serif); color: var(--ink); max-width: 20em; }
.ei-brand p span { display: block; color: var(--muted); }
.ei-contact { grid-column: 6 / span 3; }
.ei-scope { grid-column: 9 / span 4; }
.end-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; color: var(--ink-2); }
.end-info a { text-decoration: none; transition: color .2s; }
.end-info a:hover { color: var(--green); }
.ei-scope p:not(.fh) { font-size: 13px; line-height: 1.6; color: var(--muted); }
.end-base { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--rule-2); font-size: 12.5px; color: var(--faint); }
.end-base span:first-child { color: var(--ink-2); }
@media (max-width: 1100px) {
  .ei-brand { grid-column: 1 / -1; }
  .ei-contact { grid-column: 1 / span 5; } .ei-scope { grid-column: 6 / span 7; }
}
@media (max-width: 900px) { .end-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .ei-contact, .ei-scope { grid-column: 1 / -1; }
  .end-act .btn { width: 100%; }
}

/* ---------- reduced motion: everything at rest ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
