/* The Tally (lane 13-trust-tally, prefix tly). Home page trust band: ink tallies, hanko seals, a forged date plate.
   Default CSS is the finished state, so no-JS and paused visitors see every figure. JS only adds the motion. */
.tly-root{position:relative;background:#fff;color:#141142;font-family:var(--fx-sans,'Poppins',system-ui,sans-serif);
  padding:clamp(2.6rem,5vw,3.6rem) 1.25rem clamp(2.2rem,4.4vw,3.1rem);overflow:hidden;contain:paint}
.tly-defs{position:absolute;width:0;height:0;overflow:hidden}
.tly-list{list-style:none;margin:0 auto;padding:0;max-width:1080px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem}
.tly-item{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
.tly-mark{position:relative;width:168px;height:104px;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent}

/* ink tally: drawn dark on arrival, then dries back into a wash behind the numeral */
.tly-tally{position:absolute;left:50%;top:50%;width:132px;height:92px;margin:-46px 0 0 -66px;overflow:visible;opacity:.15;transform:rotate(-4deg)}
.tly-item:nth-child(3) .tly-tally{transform:rotate(3deg) scaleX(-1)}
.tly-item:nth-child(4) .tly-tally{transform:rotate(-1deg)}
.tly-ink path{fill:none;stroke:#0c0a2e;stroke-width:6.6;stroke-linecap:round;stroke-linejoin:round}
.tly-ink path:nth-child(2){stroke-width:5.8}.tly-ink path:nth-child(4){stroke-width:7.2}.tly-ink path:nth-child(5){stroke-width:6}
.tly-on .tly-ink path{stroke-dasharray:1 1}
.tly-ink .tly-wet{stroke:#0c0a2e;stroke-width:8.4;opacity:0}

.tly-fig{position:relative;z-index:1;margin:0;font-family:var(--fx-serif,'Playfair Display',Georgia,serif);font-weight:700;
  font-size:3.3rem;line-height:1;letter-spacing:-.01em;font-variant-numeric:lining-nums tabular-nums;color:#141142}
.tly-d{position:relative;display:inline-block}
.tly-c,.tly-hot{position:absolute;right:0;top:0;white-space:nowrap}
.tly-plus{color:#c93812;font-family:var(--fx-sans,'Poppins',system-ui,sans-serif);font-size:.5em;vertical-align:.95em;margin-left:.08em;font-weight:600}
.tly-lab{margin:.8rem 0 0;font-size:.8rem;font-weight:500;letter-spacing:.15em;text-transform:uppercase;color:#4f5263;line-height:1.5}
.tly-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* hanko seal, pressed at the numeral's shoulder */
.tly-seal{position:absolute;z-index:2;right:2px;top:-2px;width:34px;height:34px;overflow:visible;transform:rotate(-7deg);transform-origin:50% 50%}
.tly-item:nth-child(3) .tly-seal{right:0;transform:rotate(5deg)}
.tly-item:nth-child(4) .tly-seal{right:10px;transform:rotate(-3deg)}

/* forged date plate */
.tly-plate,.tly-fx{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.tly-fx{z-index:3;pointer-events:none}
.tly-heat{opacity:0}
.tly-warm{opacity:.14}
.tly-eng{font-family:var(--fx-sans,'Poppins',system-ui,sans-serif);font-size:7px;font-weight:600;letter-spacing:.28em;fill:#8d9093}
.tly-eng-s{font-size:5.6px;letter-spacing:.2em;fill:#73767a}
.tly-sp{fill:#f9dd9a;opacity:0}
.tly-fig-yr{font-size:2.55rem;letter-spacing:.06em;color:#efe6d3;text-shadow:0 -1px 0 rgba(0,0,0,.55),0 1px 0 rgba(255,255,255,.08);margin-top:2px}
.tly-hot{color:#ffeec2;opacity:0;text-shadow:0 0 10px rgba(255,140,60,.85)}
.tly-yr .tly-seal{right:-2px;top:-6px}

@media (max-width:760px){
  .tly-root{padding-top:3rem}
  .tly-root[data-a11y-motion]{padding-top:4.4rem} /* only a copy that still carries its own pause button needs the room */
  .tly-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem .5rem}
  .tly-mark{width:156px;height:96px}
  .tly-fig{font-size:2.85rem}
  .tly-fig-yr{font-size:2.3rem}
  .tly-tally{transform:rotate(-4deg) scale(.9)}
}
@media (max-width:340px){ .tly-mark{width:140px;height:88px} .tly-fig{font-size:2.5rem} .tly-fig-yr{font-size:2rem} }

/* ---- home integration (2026-11-08 lab): five figures (the 4.9 Google Rating joins as a fifth tally).
   Flex instead of the 4-up grid so the row reads 5 / 3+2 / 2+2+1, always centred. ---- */
.tly-list{display:flex;flex-wrap:wrap;justify-content:center;max-width:1180px;gap:1.25rem 1rem}
.tly-item{flex:0 0 200px}
.tly-item:nth-child(5) .tly-tally{transform:rotate(2deg)}
.tly-item:nth-child(5) .tly-seal{right:6px;transform:rotate(6deg)}
.tly-star{color:#8a6d00;font-size:.56em}
@media (max-width:760px){
  .tly-list{gap:2rem .5rem}
  .tly-item{flex:0 0 calc(50% - .25rem)}
}

/* ---- paint 11-10 (lane HOME) ---- */
/* The date plate, second cut (.tly-yr2 on the <li>): a taller slab, and an engraving you can read. It was 7 px and
   5.6 px; now 13 units (12 px on the phone plate), cut into the iron with a dark lip. */
.tly-yr2 .tly-eng{font-size:13px;letter-spacing:.15em;fill:#a6aaae;paint-order:stroke;stroke:rgba(0,0,0,.5);stroke-width:.9px}
.tly-yr2 .tly-eng-s{font-size:13px;letter-spacing:.2em;fill:#b3aaa1}
.tly-yr2 .tly-fig-yr{font-size:2.3rem}
.tly-yr2 .tly-seal{right:-9px;top:-11px}
@media (max-width:760px){ .tly-yr2 .tly-fig-yr{font-size:2.1rem} }
@media (max-width:340px){ .tly-yr2 .tly-fig-yr{font-size:1.85rem} }
/* labels: 12.8 px on desktop, never under 12 px; on a phone two long labels sit side by side, so the tracking tightens */
@media (max-width:760px){ .tly-lab{font-size:.75rem;letter-spacing:.11em;padding:0 .15rem} }
/* each figure answers a hand: the marks are a quiet target, never a link */
.tly-mark{cursor:default}
.tly-ink .tly-wet{will-change:opacity}
.tly-on .tly-tally{opacity:1} /* with JS the dry-down is per stroke (tly.js); without it the whole mark rests at 15 % */
