/* ============================================================
   BATSFORD SYSTEMS — site styles (Sept 2026 overhaul)
   Built on crc-server/docs/BRAND.md: warm paper, coral + teal,
   DM Mono for headings and every number, the teal-square motif,
   the weighbridge-beam mark — and the app's material depth:
   one light source from above, warm shadows, a 1px top lift,
   a faint paper grain. No glass, no glow, no big gradients.
   Shared by index.html + tally.html.
   ============================================================ */

:root {
  --paper:        #F5F1E9;
  --surface:      #FFFDF9;
  --surface-alt:  #FAF5EC;
  --sunk:         #EFE8DB;
  --text:         #1F2024;
  --muted:        #686258;
  --faint:        #9A9387;
  --border:       #E6DBC9;
  --hair:         rgba(61,50,38,.10);

  --coral:        #D9543B;
  --coral-ink:    #B8412A;
  --teal:         #17897B;
  --coral-tint:   #FBE6DE;
  --teal-tint:    #DDEFEA;
  --sand-tint:    #F9EDD3;
  --sage-tint:    #E1EEE5;
  --rose-tint:    #F6E4DE;

  --band:         #18191D;
  --band-surface: #222329;
  --band-raised:  #2A2B32;
  --band-text:    #F4EFE6;
  --band-muted:   #A39D91;
  --band-border:  #33343C;
  --band-coral:   #F0A18E;

  /* the mark keeps its own colours — never recoloured */
  --mark-coral:   #DF4E37;
  --mark-teal:    #148A7C;
  --mark-glyph:   #17181C;

  /* depth — warm-tinted, light from directly above */
  --lift:   inset 0 1px 0 rgba(255,255,255,.75);
  --elev-1: 0 1px 1px rgba(61,50,38,.05), 0 2px 6px rgba(61,50,38,.05), 0 12px 24px -10px rgba(61,50,38,.12);
  --elev-2: 0 1px 2px rgba(61,50,38,.06), 0 8px 20px rgba(61,50,38,.08), 0 28px 52px -14px rgba(61,50,38,.18);
  --elev-3: 0 2px 4px rgba(61,50,38,.06), 0 18px 40px rgba(61,50,38,.12), 0 48px 90px -24px rgba(61,50,38,.28);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .24 0 0 0 0 .2 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.4, 0, .2, 1);

  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 36px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:        #17181C;
    --surface:      #212329;
    --surface-alt:  #1C1D22;
    --sunk:         #141519;
    --text:         #F4EFE6;
    --muted:        #A8A296;
    --faint:        #7A756C;
    --border:       #31333B;
    --hair:         rgba(255,255,255,.07);
    --coral:        #EC7358;
    --coral-ink:    #F08A73;
    --teal:         #3DB5A3;
    --coral-tint:   #3A2620;
    --teal-tint:    #16302C;
    --sand-tint:    #332B1B;
    --sage-tint:    #213027;
    --rose-tint:    #372622;
    --band:         #101114;
    --band-surface: #1B1C21;
    --band-raised:  #24252B;
    --band-border:  #2C2D35;
    --mark-glyph:   #F4F1EA;
    --lift:   inset 0 1px 0 rgba(255,255,255,.05);
    --elev-1: 0 1px 2px rgba(0,0,0,.35), 0 10px 24px -10px rgba(0,0,0,.5);
    --elev-2: 0 2px 4px rgba(0,0,0,.35), 0 28px 52px -14px rgba(0,0,0,.6);
    --elev-3: 0 2px 6px rgba(0,0,0,.4), 0 48px 90px -24px rgba(0,0,0,.7);
  }
}

:root[data-theme="dark"] {
  --paper:        #17181C;
  --surface:      #212329;
  --surface-alt:  #1C1D22;
  --sunk:         #141519;
  --text:         #F4EFE6;
  --muted:        #A8A296;
  --faint:        #7A756C;
  --border:       #31333B;
  --hair:         rgba(255,255,255,.07);
  --coral:        #EC7358;
  --coral-ink:    #F08A73;
  --teal:         #3DB5A3;
  --coral-tint:   #3A2620;
  --teal-tint:    #16302C;
  --sand-tint:    #332B1B;
  --sage-tint:    #213027;
  --rose-tint:    #372622;
  --band:         #101114;
  --band-surface: #1B1C21;
  --band-raised:  #24252B;
  --band-border:  #2C2D35;
  --mark-glyph:   #F4F1EA;
  --lift:   inset 0 1px 0 rgba(255,255,255,.05);
  --elev-1: 0 1px 2px rgba(0,0,0,.35), 0 10px 24px -10px rgba(0,0,0,.5);
  --elev-2: 0 2px 4px rgba(0,0,0,.35), 0 28px 52px -14px rgba(0,0,0,.6);
  --elev-3: 0 2px 6px rgba(0,0,0,.4), 0 48px 90px -24px rgba(0,0,0,.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  background-color: var(--paper);
  background-image: var(--grain);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (prefers-reduced-transparency: reduce) { body { background-image: none; } }

::selection { background: var(--coral); color: #fff; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---- shared type ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--teal);
  flex: none;
}
.eyebrow.center { justify-content: center; }

h1, h2, h3, h4 { font-family: var(--mono); font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
p { text-wrap: pretty; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
p a:not(.btn) { color: var(--coral-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---- buttons ---- */
.btn {
  font-family: var(--mono);
  font-size: .84rem;
  letter-spacing: .01em;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  transition: background-color .12s var(--ease-out), box-shadow .2s var(--ease-out), transform .12s var(--ease-out), border-color .12s;
}
.btn svg { width: 1em; height: 1em; transition: transform .2s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--coral); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(61,50,38,.18), 0 6px 16px -6px rgba(217,84,59,.55);
}
.btn--primary:hover { background: var(--coral-ink); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--lift), 0 1px 2px rgba(61,50,38,.05); }
.btn--ghost:hover { border-color: var(--faint); }
.btn--sm { padding: 10px 18px; font-size: .8rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease-in-out), box-shadow .2s var(--ease-in-out);
}
.site-header.scrolled { border-color: var(--hair); box-shadow: 0 8px 24px -18px rgba(61,50,38,.35); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand svg { display: block; height: 26px; width: auto; }
.brand .name { font-family: var(--mono); font-size: 1.08rem; font-weight: 500; letter-spacing: -.01em; }
.brand .sub { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-family: var(--mono); font-size: .8rem; color: var(--muted); transition: color .12s; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 1px; background: var(--coral); }

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--lift);
  color: var(--text);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn .i-close { display: none; }
.site-header.open .menu-btn .i-open { display: none; }
.site-header.open .menu-btn .i-close { display: block; }

@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .nav { gap: 12px; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--hair);
    box-shadow: 0 24px 40px -24px rgba(61,50,38,.35);
  }
  .site-header.open .nav-links { display: flex; }
  .nav-links a { font-size: .95rem; padding: 13px 0; border-bottom: 1px solid var(--hair); color: var(--text); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a[aria-current="page"]::after { display: none; }
}
@media (max-width: 520px) {
  .nav-cta { display: none; }
  .brand .sub { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.03; letter-spacing: -.04em; margin: 24px 0 24px; }
.hero h1 .hl { color: var(--coral); }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.14rem); color: var(--muted); max-width: 44ch; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--lift), 0 1px 2px rgba(61,50,38,.05);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .02em; color: var(--muted);
  max-width: 100%;
}
.status b { font-weight: 500; color: var(--text); }
.status .tag {
  background: var(--teal-tint); color: var(--teal);
  padding: 3px 9px; border-radius: 999px; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; flex: none;
}
.status:hover { border-color: var(--faint); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .lead { max-width: 56ch; }
}

/* ---- hero stack (company page): sheet + ticket + inbox chip ---- */
.stack { position: relative; min-height: 500px; }
.paper {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--lift), var(--elev-2);
  font-family: var(--mono);
}
.sheet { position: absolute; top: 0; left: 0; width: 74%; padding: 24px 24px 20px; font-size: .78rem; }
.sheet .s-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px dashed var(--border); }
.sheet .s-head b { color: var(--coral); font-weight: 500; }
.sheet .s-cust { padding: 14px 0 12px; }
.sheet .s-cust .k { font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.sheet .s-cust .v { font-size: .92rem; margin-top: 2px; }
.sheet .s-cust .v2 { color: var(--muted); font-size: .74rem; }
.sheet table { width: 100%; border-collapse: collapse; }
.sheet th { text-align: left; font-weight: 500; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 8px 0; border-bottom: 1px solid var(--hair); }
.sheet td { padding: 9px 0; border-bottom: 1px solid var(--hair); font-variant-numeric: tabular-nums; }
.sheet tr:last-child td { border-bottom: none; }
.sheet td:last-child, .sheet th:last-child { text-align: right; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.pill--ok { background: var(--teal-tint); color: var(--teal); }
.pill--warn { background: var(--sand-tint); color: #9A6A12; }
.pill--alert { background: var(--coral-tint); color: var(--coral-ink); }
.pill--quiet { background: var(--sunk); color: var(--muted); }
:root[data-theme="dark"] .pill--warn { color: #E2B55C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill--warn { color: #E2B55C; } }

.stack .sheet { z-index: 1; }
.stack .ticket { position: absolute; right: 0; bottom: 0; width: 64%; z-index: 2; }
.stack .chip { z-index: 3; }

.ticket { padding: 26px 26px 22px; font-size: .82rem; }
.ticket .t-head {
  display: flex; justify-content: space-between; align-items: baseline;
  letter-spacing: .12em; text-transform: uppercase; font-size: .66rem; color: var(--muted);
  padding-bottom: 14px; border-bottom: 1px dashed var(--border);
}
.ticket .t-head b { color: var(--coral); font-weight: 500; letter-spacing: .06em; }
.ticket .t-rows { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.ticket .t-rows dt { color: var(--muted); text-transform: uppercase; font-size: .64rem; letter-spacing: .1em; align-self: center; }
.ticket .t-rows dd { text-align: right; font-variant-numeric: tabular-nums; }
.ticket .t-weights { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; padding: 16px 0 0; }
.ticket .t-weights span:nth-child(odd) { color: var(--muted); text-transform: uppercase; font-size: .64rem; letter-spacing: .1em; align-self: center; }
.ticket .t-weights span:nth-child(even) { text-align: right; font-variant-numeric: tabular-nums; }
.ticket .t-net { margin-top: 14px; padding-top: 14px; border-top: 2px solid var(--text); display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
.ticket .t-net .label { display: inline-flex; align-items: center; gap: 9px; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.ticket .t-net .label::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--teal); }
.ticket .t-net .val { font-variant-numeric: tabular-nums; font-weight: 500; }

.chip {
  position: absolute; left: 3%; bottom: 13%;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--lift), var(--elev-3);
  font-family: var(--mono);
  max-width: 290px;
}
.chip .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--coral-tint); color: var(--coral); display: grid; place-items: center; flex: none; }
.chip .ic svg { width: 17px; height: 17px; }
.chip .c-t { font-size: .74rem; line-height: 1.35; }
.chip .c-s { font-size: .64rem; color: var(--muted); letter-spacing: .03em; }

@media (max-width: 960px) {
  .stack { min-height: 0; display: grid; gap: 16px; max-width: 520px; }
  .stack .sheet, .stack .ticket, .stack .chip { position: static; width: auto; max-width: none; }
  .stack .chip { order: -1; }
}
@media (max-width: 560px) { .stack .sheet { display: none; } }

/* ---- app window mock (tally page) ---- */
.window {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--lift), var(--elev-3);
  overflow: hidden;
  font-family: var(--mono);
  font-size: .76rem;
}
.win-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--hair); background: var(--surface-alt); }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 9px; height: 9px; border-radius: 3px; background: var(--border); display: block; }
.win-url { font-size: .66rem; color: var(--muted); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { display: grid; grid-template-columns: 52px 1fr; min-height: 380px; }
.rail { background: var(--sunk); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; border-right: 1px solid var(--hair); }
.rail i { width: 20px; height: 20px; border-radius: 6px; background: var(--border); display: block; }
.rail i.on { background: var(--coral); box-shadow: 0 0 0 4px var(--coral-tint); }
.rail i.sq { width: 16px; height: 16px; background: var(--mark-teal); border-radius: 3px; margin-bottom: 6px; }
.win-main { padding: 20px 22px; min-width: 0; }
.cust-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.cust-head .k { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.cust-head .h { font-size: 1.05rem; letter-spacing: -.01em; margin-top: 2px; }
.cust-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 18px; }
.cust-stats > div { background: var(--surface-alt); border: 1px solid var(--hair); border-radius: 10px; padding: 10px 12px; }
.cust-stats .k { font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.cust-stats .v { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.tl-title { font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; }
.tl { list-style: none; position: relative; }
.tl::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.tl li { position: relative; padding: 7px 0 7px 22px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; }
.tl li::before { content: ""; position: absolute; left: 0; top: 12px; width: 9px; height: 9px; border-radius: 2px; background: var(--teal); }
.tl li.note::before { background: var(--faint); }
.tl .w { font-size: .74rem; min-width: 0; }
.tl .t { font-size: .64rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.tl .who { grid-column: 1 / -1; font-size: .6rem; letter-spacing: .06em; color: var(--muted); }
.tl li.note .w { color: var(--muted); font-style: italic; font-family: var(--body); font-size: .78rem; }
.tl .vis { display: inline-block; font-size: .56rem; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; background: var(--sunk); margin-left: 6px; }
@media (max-width: 520px) {
  .win-body { grid-template-columns: 1fr; }
  .rail { display: none; }
  .cust-stats { grid-template-columns: 1fr 1fr; }
  .cust-stats > div:last-child { display: none; }
}

/* ============================================================
   BEAM DIVIDER — echoes the weighbridge beam in the mark
   ============================================================ */
.beam { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); display: flex; align-items: center; }
.beam i { height: 5px; background: var(--mark-coral); display: block; }
.beam i.cap { width: 5px; height: 18px; border-radius: 1px; }
.beam i.bar { flex: 1; border-radius: 1px; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats { padding: 40px 0 8px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px 28px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: none; padding-left: 0; }
.stat .v { font-family: var(--mono); font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: .45em; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.stat .k { font-size: .84rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }
@media (max-width: 820px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 420px) { .stat { padding: 8px 16px; } }

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
section { padding: clamp(64px, 9vw, 112px) 0; }
.sec-alt { background: var(--surface-alt); border-block: 1px solid var(--hair); }
.sec-head { max-width: 64ch; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head.split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; letter-spacing: -.035em; margin: 18px 0 0; }
.sec-head p { color: var(--muted); font-size: 1.04rem; margin-top: 16px; max-width: 58ch; }
.sec-head.split p { margin-top: 0; }
@media (max-width: 860px) { .sec-head.split { grid-template-columns: 1fr; } }

/* ---- principle tiles (company page) ---- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--elev-1); }
.tile { background: var(--surface); padding: 30px 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.tile .idx { font-family: var(--mono); font-size: .7rem; color: var(--faint); letter-spacing: .08em; }
.tile .k { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); display: flex; align-items: center; gap: 9px; margin-top: 6px; }
.tile .k::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); flex: none; }
.tile h3 { font-size: 1.12rem; line-height: 1.3; }
.tile p { font-size: .93rem; color: var(--muted); line-height: 1.58; }
@media (max-width: 940px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } }

/* ---- progress timeline (company page) ---- */
.progress { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.progress .sticky { position: sticky; top: 110px; }
.progress .sec-head { margin-bottom: 28px; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--mono); font-size: .7rem; color: var(--muted); letter-spacing: .04em; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--teal); display: block; }
.legend i.next { background: transparent; border: 1.5px dashed var(--coral); }

.milestones { list-style: none; position: relative; }
.milestones::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--border); }
.milestones li { position: relative; padding: 0 0 34px 40px; }
.milestones li:last-child { padding-bottom: 0; }
.milestones li::before { content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 3px; background: var(--teal); box-shadow: 0 0 0 5px var(--paper); }
.sec-alt .milestones li::before { box-shadow: 0 0 0 5px var(--surface-alt); }
.milestones li.now::before { background: var(--coral); }
.milestones li.next::before { background: var(--paper); border: 1.5px dashed var(--coral); }
.milestones .when { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.milestones h3 { font-size: 1.1rem; margin: 6px 0 6px; line-height: 1.3; }
.milestones p { color: var(--muted); font-size: .94rem; max-width: 56ch; }
.milestones .card-now {
  margin-top: 16px; background: var(--surface); border-radius: 14px; padding: 18px 20px;
  box-shadow: var(--lift), var(--elev-1);
}
.milestones .card-now ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.milestones .card-now li { padding: 0 0 0 16px; font-size: .86rem; line-height: 1.45; }
.milestones .card-now li::before { left: 0; top: .45em; width: 6px; height: 6px; border-radius: 1px; background: var(--coral); box-shadow: none; border: none; }
@media (max-width: 900px) {
  .progress { grid-template-columns: 1fr; }
  .progress .sticky { position: static; }
}
@media (max-width: 520px) { .milestones .card-now ul { grid-template-columns: 1fr; } }

/* ---- product family (company page) ---- */
.family { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: auto; gap: 18px; }
.prod {
  background: var(--surface);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: var(--lift), var(--elev-1);
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
a.prod:hover { transform: translateY(-2px); box-shadow: var(--lift), var(--elev-2); }
.prod.lead-prod { grid-row: span 2; background: var(--band); color: var(--band-text); box-shadow: var(--elev-2); }
.prod .p-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prod .glyph { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-family: var(--mono); font-size: 1rem; flex: none; position: relative; }
.prod .glyph::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 2px; background: var(--mark-teal); }
.g-coral { background: var(--coral-tint); color: var(--coral-ink); }
.g-teal { background: var(--teal-tint); color: var(--teal); }
.g-sand { background: var(--sand-tint); color: #8A5E10; }
.g-sage { background: var(--sage-tint); color: #3C6B4E; }
.g-dark { background: var(--band-raised); color: var(--band-coral); }
.prod h3 { font-size: 1.2rem; }
.prod .role { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prod p { font-size: .92rem; color: var(--muted); }
.prod.lead-prod p, .prod.lead-prod .role { color: var(--band-muted); }
.prod.lead-prod h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.prod ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.prod li { padding-left: 18px; position: relative; font-size: .9rem; font-family: var(--mono); }
.prod li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--mark-teal); }
.prod .more { margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: .78rem; color: var(--band-coral); display: inline-flex; align-items: center; gap: 8px; }
.prod .more svg { width: 1em; height: 1em; transition: transform .2s var(--ease-out); }
a.prod:hover .more svg { transform: translateX(3px); }
@media (max-width: 960px) { .family { grid-template-columns: 1fr 1fr; } .prod.lead-prod { grid-column: 1 / -1; grid-row: auto; } }
@media (max-width: 600px) { .family { grid-template-columns: 1fr; } }

/* ============================================================
   FOUNDER
   ============================================================ */
.founder { display: grid; grid-template-columns: 280px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.plate { background: var(--surface); border-radius: 16px; padding: 26px; font-family: var(--mono); box-shadow: var(--lift), var(--elev-1); }
.plate .mono-k { font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plate .mono-v { font-size: .94rem; margin-bottom: 16px; }
.plate .mono-v:last-child { margin-bottom: 0; }
.founder blockquote { font-family: var(--mono); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.3; letter-spacing: -.02em; margin-bottom: 28px; text-wrap: balance; }
.founder blockquote::before { content: ""; display: block; width: 28px; height: 4px; background: var(--coral); border-radius: 1px; margin-bottom: 20px; }
.founder .prose p { margin-bottom: 16px; max-width: 60ch; color: var(--muted); }
.founder .sig { font-family: var(--mono); font-size: .8rem; color: var(--text); margin-top: 24px; }
@media (max-width: 780px) { .founder { grid-template-columns: 1fr; } }

/* ============================================================
   DARK TEASER / BAND
   ============================================================ */
.teaser {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  background: var(--band); color: var(--band-text);
  border-radius: 24px; padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--elev-3);
}
.teaser .eyebrow, .band .eyebrow { color: var(--band-coral); }
.teaser .eyebrow::before, .band .eyebrow::before { background: var(--mark-teal); }
.teaser h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 18px 0 14px; line-height: 1.12; letter-spacing: -.03em; }
.teaser p { color: var(--band-muted); margin-bottom: 26px; }
.btn--onDark { background: transparent; color: var(--band-text); border-color: var(--band-border); box-shadow: none; }
.btn--onDark:hover { border-color: var(--band-muted); }
@media (max-width: 820px) { .teaser { grid-template-columns: 1fr; gap: 30px; } }

.band { background: var(--band); color: var(--band-text); }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 18px 0 16px; line-height: 1.12; letter-spacing: -.03em; }
.band p { color: var(--band-muted); font-size: 1.02rem; margin-bottom: 14px; }
.band .num { color: var(--band-text); }
.pts { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.pts li { padding-left: 20px; position: relative; font-size: .95rem; }
.pts li::before { content: ""; position: absolute; left: 0; top: .52em; width: 8px; height: 8px; border-radius: 2px; background: var(--mark-teal); }
.band .pts li { color: var(--band-text); }
@media (max-width: 900px) { .band-grid { grid-template-columns: 1fr; } }

.run { background: var(--band-surface); border: 1px solid var(--band-border); border-radius: 20px; padding: 22px; font-family: var(--mono); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 40px 80px -20px rgba(0,0,0,.6); max-width: 460px; justify-self: center; width: 100%; }
.run .r-top { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--band-border); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--band-muted); }
.run .r-top b { color: var(--band-coral); font-weight: 500; }
.run .stop { display: grid; grid-template-columns: auto 1fr auto; gap: 3px 14px; padding: 14px 0; border-bottom: 1px solid var(--band-border); align-items: center; }
.run .stop:last-child { border-bottom: none; padding-bottom: 4px; }
.run .stop .time { font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--band-text); }
.run .stop .what { font-size: .8rem; color: var(--band-text); }
.run .stop .sub { grid-column: 2 / 4; font-size: .66rem; color: var(--band-muted); letter-spacing: .04em; }
.run .stop .stamp { font-size: .64rem; letter-spacing: .06em; color: #4CC2AF; text-align: right; font-variant-numeric: tabular-nums; }
.run .stop.pending .stamp { color: var(--band-muted); }
.run .stop.pending .time, .run .stop.pending .what { color: var(--band-muted); }

/* ============================================================
   LIFECYCLE (tally page)
   ============================================================ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--lift), var(--elev-1); }
.flow .step { padding: 30px 26px 32px; border-right: 1px solid var(--hair); position: relative; }
.flow .step:last-child { border-right: none; }
.flow .step .n { font-family: var(--mono); font-size: .72rem; color: var(--coral); letter-spacing: .1em; }
.flow .step h3 { font-size: 1.1rem; margin: 14px 0 9px; }
.flow .step p { font-size: .9rem; color: var(--muted); line-height: 1.56; }
.flow .step::after { content: ""; position: absolute; right: -5px; top: 36px; width: 9px; height: 9px; background: var(--teal); border-radius: 2px; z-index: 2; }
.flow .step:last-child::after { display: none; }
@media (max-width: 880px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow .step:nth-child(2) { border-right: none; }
  .flow .step:nth-child(2)::after, .flow .step:nth-child(4)::after { display: none; }
  .flow .step:nth-child(1), .flow .step:nth-child(2) { border-bottom: 1px solid var(--hair); }
}
@media (max-width: 520px) {
  .flow { grid-template-columns: 1fr; }
  .flow .step { border-right: none; border-bottom: 1px solid var(--hair); }
  .flow .step:last-child { border-bottom: none; }
  .flow .step::after { display: none; }
}

/* ============================================================
   CALM RELEASE — requests board (tally page)
   ============================================================ */
.calm { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.calm-list { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-top: 28px; }
.calm-list li { padding: 16px 0; border-top: 1px solid var(--border); }
.calm-list h3 { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.calm-list h3::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--teal); flex: none; }
.calm-list p { font-size: .92rem; color: var(--muted); margin-top: 4px; padding-left: 19px; }
@media (max-width: 960px) { .calm { grid-template-columns: 1fr; } }

.board-scroll { overflow-x: auto; border-radius: 20px; }
.board {
  background: var(--sunk);
  border-radius: 20px;
  padding: 18px;
  display: grid; grid-template-columns: repeat(4, minmax(128px, 1fr)); gap: 10px;
  min-width: 580px;
  font-family: var(--mono);
  box-shadow: inset 0 1px 3px rgba(61,50,38,.08);
}
.lane { background: var(--surface-alt); border: 1px solid var(--hair); border-radius: 14px; padding: 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.lane h4 { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; padding: 0 4px; }
.lane h4 b { font-weight: 500; color: var(--text); }
.rq { background: var(--surface); border-radius: 10px; padding: 11px 12px; box-shadow: var(--lift), 0 1px 2px rgba(61,50,38,.08), 0 4px 10px -4px rgba(61,50,38,.12); }
.rq .r-t { font-size: .74rem; line-height: 1.35; }
.rq .r-c { font-family: var(--body); font-size: .72rem; color: var(--muted); margin-top: 4px; }
.rq .r-f { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; font-size: .6rem; color: var(--faint); letter-spacing: .04em; }
.rq.dragging { transform: rotate(-2deg) translateY(-3px); box-shadow: var(--lift), var(--elev-3); }
.rq .unread { width: 7px; height: 7px; border-radius: 2px; background: var(--coral); display: inline-block; }

/* ============================================================
   FEATURE CARDS (tally page)
   ============================================================ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

.card { border-radius: 18px; padding: 28px 26px; background: var(--surface); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--lift), var(--elev-1); }
.card.tint-teal  { background: var(--teal-tint); }
.card.tint-coral { background: var(--coral-tint); }
.card.tint-sand  { background: var(--sand-tint); }
.card.tint-sage  { background: var(--sage-tint); }
.card.tint-rose  { background: var(--rose-tint); }
.card .new { align-self: flex-start; }
.card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.card h3::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--teal); flex: none; }
.card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.card li { font-size: .9rem; color: var(--text); padding-left: 17px; position: relative; line-height: 1.5; }
.card li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 1px; background: var(--coral); }
.card .tag { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card .tag .num { color: var(--text); }

/* ============================================================
   CUSTOMER PORTAL (tally page)
   ============================================================ */
.portal { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.portal .pts li { color: var(--text); }
@media (max-width: 900px) { .portal { grid-template-columns: 1fr; } .portal .pmock { order: 2; } }

.pmock { background: var(--surface); border-radius: 22px; box-shadow: var(--lift), var(--elev-3); padding: 22px; font-family: var(--mono); max-width: 440px; width: 100%; justify-self: center; }
.pm-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pm-top .who { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.pm-top .co { font-size: .96rem; }
.pm-tabs { display: flex; gap: 6px; margin: 16px 0; background: var(--sunk); padding: 4px; border-radius: 11px; }
.pm-tabs span { flex: 1; text-align: center; font-size: .66rem; padding: 7px 4px; border-radius: 8px; color: var(--muted); }
.pm-tabs span.on { background: var(--surface); color: var(--text); box-shadow: var(--lift), 0 1px 2px rgba(61,50,38,.12); }
.pm-req { border: 1px solid var(--hair); border-radius: 14px; padding: 16px; background: var(--surface-alt); }
.pm-req .r-t { font-size: .84rem; }
.pm-req .r-s { font-family: var(--body); font-size: .76rem; color: var(--muted); margin-top: 2px; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0 8px; }
.track i { height: 5px; border-radius: 2px; background: var(--border); display: block; }
.track i.on { background: var(--teal); }
.track-l { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: .56rem; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.track-l .on { color: var(--teal); }
.pm-msg { margin-top: 14px; padding: 12px 14px; border-radius: 12px 12px 12px 4px; background: var(--surface); box-shadow: var(--lift), 0 1px 2px rgba(61,50,38,.08); font-family: var(--body); font-size: .8rem; }
.pm-msg .from { font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); margin-bottom: 3px; }
.pm-list { margin-top: 14px; }
.pm-list .row { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; border-top: 1px solid var(--hair); font-size: .74rem; gap: 10px; }
.pm-list .row span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   COMPANION APPS (tally page)
   ============================================================ */
.duo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

/* ============================================================
   PLATFORM — spec sheet (tally page)
   ============================================================ */
.spec { border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--lift), var(--elev-1); }
.spec .row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 28px; border-bottom: 1px solid var(--hair); }
.spec .row:last-child { border-bottom: none; }
.spec .row dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); padding-top: 3px; }
.spec .row dd { font-size: .96rem; color: var(--text); }
.spec .row dd .muted { color: var(--muted); }
@media (max-width: 640px) { .spec .row { grid-template-columns: 1fr; gap: 6px; padding: 18px 20px; } }

/* ---- compliance strip (tally page) ---- */
.compliance { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; background: var(--surface); border-radius: 20px; padding: clamp(26px, 4vw, 44px); box-shadow: var(--lift), var(--elev-1); }
.compliance h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 14px 0 12px; line-height: 1.18; }
.compliance p { color: var(--muted); }
.rep-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rep-list li { font-family: var(--mono); font-size: .82rem; padding: 14px 16px; background: var(--sunk); border-radius: 10px; display: flex; align-items: center; gap: 12px; box-shadow: inset 0 1px 2px rgba(61,50,38,.06); }
.rep-list li::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--teal); flex: none; }
@media (max-width: 800px) { .compliance { grid-template-columns: 1fr; gap: 26px; } }

/* ---- breadcrumb (tally subpage) ---- */
.crumb { padding-top: 22px; }
.crumb a { font-family: var(--mono); font-size: .74rem; color: var(--muted); letter-spacing: .04em; display: inline-flex; align-items: center; gap: 8px; }
.crumb a:hover { color: var(--text); }
.crumb a::before { content: "\2190"; }

/* ============================================================
   CTA + FOOTER
   ============================================================ */
.cta { padding: clamp(72px, 10vw, 128px) 0; }
.cta-card {
  text-align: center;
  background: var(--surface);
  border-radius: 28px;
  padding: clamp(40px, 7vw, 80px) clamp(22px, 5vw, 64px);
  box-shadow: var(--lift), var(--elev-2);
  position: relative;
  overflow: hidden;
}
.cta-card::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(280px, 60%); height: 4px; background: var(--mark-coral); border-radius: 0 0 2px 2px; }
.cta h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin: 20px 0 16px; letter-spacing: -.04em; line-height: 1.08; }
.cta p { color: var(--muted); max-width: 50ch; margin: 0 auto 32px; font-size: 1.05rem; }
.cta .hero-cta { justify-content: center; }
.fineprint { margin-top: 34px; font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; color: var(--muted); }

footer { padding: 56px 0 40px; border-top: 1px solid var(--hair); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid .brand svg { height: 22px; }
.foot-about { font-size: .88rem; color: var(--muted); margin-top: 14px; max-width: 34ch; }
.foot-col h4 { font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot-col a { display: block; font-family: var(--mono); font-size: .8rem; color: var(--muted); padding: 4px 0; }
.foot-col a:hover { color: var(--text); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--hair); font-family: var(--mono); font-size: .7rem; color: var(--faint); letter-spacing: .04em; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---- reveal (only hides when JS is running) ---- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ============================================================
   PREMIUM LAYER (18 Sep 2026)
   The customer portal's language, carried onto the site: ink
   surfaces lit by a coral and a teal glow, a faint blueprint grid
   fading out across them, frosted chrome, and bigger type. Paper
   sections stay warm and calm between the ink ones, so the page
   has a rhythm instead of one flat tone top to bottom.
   ============================================================ */
:root {
  --ink:        #16171B;
  --ink-raised: #202127;
  --ink-line:   rgba(246,241,233,.11);
  --ink-text:   #F4EFE6;
  --ink-muted:  rgba(244,239,230,.66);
  --ink-faint:  rgba(244,239,230,.42);
  --ink-coral:  #F2826A;
  --ink-teal:   #86D9CB;
  --glow: radial-gradient(55% 60% at 88% 0%, rgba(224,100,75,.30), transparent 70%),
          radial-gradient(50% 55% at 0% 100%, rgba(30,147,132,.28), transparent 70%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ink: #0D0E11; --ink-raised: #17181D; --paper: #18191E; --surface-alt: #1C1D22; }
}
:root[data-theme="dark"] { --ink: #0D0E11; --ink-raised: #17181D; --paper: #18191E; --surface-alt: #1C1D22; }

/* ---- the ink surface ---- */
.ink {
  --mark-glyph: #F4F1EA;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--ink-text);
  background: var(--glow), var(--ink);
}
.ink::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(246,241,233,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,241,233,.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(160deg, #000 10%, transparent 75%);
          mask-image: linear-gradient(160deg, #000 10%, transparent 75%);
}
.ink .eyebrow { color: var(--ink-coral); }
.ink .eyebrow::before { background: var(--mark-teal); }
.ink .sec-head p, .ink .lead, .ink p { color: var(--ink-muted); }
.ink h1, .ink h2, .ink h3 { color: var(--ink-text); }

.btn--onDark {
  background: rgba(246,241,233,.06); color: var(--ink-text); border-color: var(--ink-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn--onDark:hover { background: rgba(246,241,233,.11); border-color: rgba(246,241,233,.24); }
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 1px 2px rgba(0,0,0,.2), 0 10px 28px -6px rgba(224,100,75,.7); }

/* ---- masthead: frosted ink, like the portal's ---- */
.site-header {
  --mark-glyph: #F4F1EA;
  background: rgba(22,23,27,.84);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  color: var(--ink-text);
  border-bottom: 1px solid var(--ink-line);
}
.site-header.scrolled { border-color: var(--ink-line); box-shadow: 0 14px 34px -18px rgba(0,0,0,.6); }
.nav-links a { color: var(--ink-muted); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink-text); }
.brand .sub { color: var(--ink-faint); }
.menu-btn { background: rgba(246,241,233,.06); border-color: var(--ink-line); color: var(--ink-text); box-shadow: none; }
@media (max-width: 900px) {
  .nav-links { background: #16171B; border-bottom-color: var(--ink-line); box-shadow: 0 30px 40px -24px rgba(0,0,0,.6); }
  .nav-links a { color: var(--ink-text); border-bottom-color: var(--ink-line); }
}

/* ---- hero ---- */
.hero.ink { padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 5vw, 64px); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 400; }
.ink .hero h1 .hl, .hero.ink h1 .hl { color: var(--ink-coral); }
/* the weighbridge beam from the mark, under the key words */
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.1em; height: .26em;
  border-inline: .07em solid var(--mark-coral);
  background: linear-gradient(var(--mark-coral), var(--mark-coral)) center / 100% .07em no-repeat;
  transform-origin: left; animation: beam-in 1s .35s var(--ease-out) both;
}
@keyframes beam-in { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
.hero .lead { font-size: clamp(1.04rem, 1.35vw, 1.18rem); max-width: 46ch; }

.ink .status {
  background: rgba(246,241,233,.06); border-color: var(--ink-line); color: var(--ink-muted); box-shadow: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ink .status b { color: var(--ink-text); }
.ink .status .tag { background: rgba(30,147,132,.26); color: var(--ink-teal); }
.ink .status:hover { border-color: rgba(246,241,233,.26); }

/* paper documents lying on the ink — no longer hiding each other */
.stack { min-height: 0; display: flex; flex-direction: column; }
.stack .sheet { position: relative; width: 82%; padding-bottom: 58px; transform: rotate(-1.6deg); }
.stack .ticket { position: relative; right: auto; bottom: auto; width: 60%; align-self: flex-end; margin-top: -44px; transform: rotate(1.2deg); }
.stack .chip { position: absolute; left: 0; bottom: 36px; max-width: 36%; }
.ink .paper { box-shadow: var(--lift), 0 2px 6px rgba(0,0,0,.25), 0 40px 80px -28px rgba(0,0,0,.75); }
.ink .chip {
  background: rgba(255,253,249,.92); color: #1F2024;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.8);
}
.ink .chip .c-s { color: #686258; }
@media (max-width: 960px) {
  .stack .sheet, .stack .ticket { width: auto; transform: none; margin-top: 0; padding-bottom: 20px; }
  .stack .chip { position: static; max-width: none; }
}

/* the numbers, set large on the ink */
.hero-stats { margin-top: clamp(56px, 7vw, 96px); padding-top: 36px; border-top: 1px solid var(--ink-line); }
.ink .stat { border-left-color: var(--ink-line); }
.ink .stat .v { color: var(--ink-text); font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.ink .stat .v small { color: var(--ink-faint); }
.ink .stat .k { color: var(--ink-muted); }
.ink .stat .v::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 2px; background: var(--mark-teal); margin-bottom: 18px; }
.ink .stat:nth-child(4) .v::before { background: var(--mark-coral); }

/* tally sub-page hero */
.hero--sub.ink { padding-top: 0; }
.hero--sub .crumb { padding: 26px var(--gutter) clamp(28px, 4vw, 52px); }
.ink .crumb a { color: var(--ink-faint); }
.ink .crumb a:hover { color: var(--ink-text); }
.ink .window { box-shadow: var(--lift), 0 2px 6px rgba(0,0,0,.25), 0 50px 100px -30px rgba(0,0,0,.8); }

/* ---- sections: more air, bigger heads ---- */
section { padding: clamp(80px, 10vw, 136px) 0; }
.sec-head h2 { font-size: clamp(1.9rem, 3.9vw, 2.95rem); line-height: 1.06; letter-spacing: -.04em; font-weight: 400; }
.sec-head p { font-size: 1.06rem; }

/* ink band: the four steps */
.ink .flow { background: rgba(246,241,233,.04); border: 1px solid var(--ink-line); box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ink .flow .step { border-color: var(--ink-line); }
.ink .flow .step .n { color: var(--ink-coral); }
.flow .step h3 { font-size: 1.2rem; }

/* tiles and cards answer the pointer */
.tile { position: relative; transition: background-color .25s var(--ease-out); }
.tile::after {
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; border-radius: 0 0 2px 2px;
  background: var(--mark-coral); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out);
}
.tile:hover { background: var(--surface-alt); }
.tile:hover::after { transform: scaleX(1); }
.card { transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.card:hover { transform: translateY(-3px); box-shadow: var(--lift), var(--elev-2); }

/* ---- call to action ---- */
.cta-card.ink { box-shadow: var(--elev-3); }
.cta-card.ink h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 400; }
.cta-card.ink .fineprint { color: var(--ink-faint); }

/* ---- footer ---- */
footer.ink { border-top: none; padding-top: 72px; }
footer.ink .foot-about, footer.ink .foot-col a { color: var(--ink-muted); }
footer.ink .foot-col a:hover { color: var(--ink-text); }
footer.ink .foot-col h4 { color: var(--ink-faint); }
footer.ink .foot-base { border-top-color: var(--ink-line); color: var(--ink-faint); }

@media (prefers-reduced-motion: reduce) { .hero h1 .hl::after { animation: none; } }

/* ---- premium layer, pass 2 ---- */
/* documents on the ink keep their own paper colours */
.ink .paper, .ink .window, .ink .chip { color: var(--text); }
.ink .paper p, .ink .window p { color: var(--muted); }
.ink .chip { background: color-mix(in srgb, var(--surface) 94%, transparent); }
.ink .chip .c-s { color: var(--muted); }
/* the hero runs up under the frosted masthead, so the two read as one piece */
.site-header { background: color-mix(in srgb, var(--ink) 80%, transparent); }
main > .hero.ink:first-child { margin-top: -73px; padding-top: calc(73px + clamp(48px, 7vw, 100px)); }
main > .hero--sub.ink:first-child { padding-top: 73px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.05rem); }
.ink .flow .step p { color: rgba(244,239,230,.74); }

/* desktop-only layout for the hero documents (kept out of the phone layout) */
@media (min-width: 961px) {
  .hero-grid { grid-template-columns: 1.12fr .88fr; }
  .stack .ticket { width: 58%; }
  .stack .chip { left: -84px; bottom: 96px; max-width: 256px; }
  .stack .chip .c-t { white-space: nowrap; }
}
@media (min-width: 961px) and (max-width: 1180px) { .stack .chip { left: -20px; } }
@media (max-width: 960px) { .stack .ticket { align-self: stretch; } }

/* ============================================================
   PREMIUM LAYER 2 (18 Sep 2026) — light, motion and detail
   Everything that moves stops for prefers-reduced-motion.
   ============================================================ */
/* ink gains paper grain and a soft light that follows the pointer (set by site.js) */
.ink {
  --ink-bg: radial-gradient(560px circle at var(--mx, -999px) var(--my, -999px), rgba(246,241,233,.07), transparent 45%),
            var(--grain), var(--glow), var(--ink);
  background: var(--ink-bg);
}

/* hero arrives in sequence */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero .status   { animation: rise .8s .05s var(--ease-out) backwards; }
.js .hero h1        { animation: rise .9s .12s var(--ease-out) backwards; }
.js .hero .lead     { animation: rise .9s .22s var(--ease-out) backwards; }
.js .hero .hero-cta { animation: rise .9s .32s var(--ease-out) backwards; }
.js .hero .stack    { animation: rise 1.1s .28s var(--ease-out) backwards; }

/* the hero documents tilt toward the pointer (site.js sets --rx / --ry) */
.stack, .js .hero .window.reveal.in {
  transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out), opacity .7s var(--ease-out);
  will-change: transform;
}

/* ---- capabilities ribbon ---- */
.ribbon {
  background: var(--ink); color: var(--ink-muted);
  border-top: 1px solid var(--ink-line);
  overflow: hidden; padding: 17px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ribbon-track { display: flex; width: max-content; animation: ribbon 46s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-track > div { display: flex; gap: 44px; padding-right: 44px; }
.ribbon span {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 44px;
}
.ribbon span::after { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--mark-teal); }
.ribbon span:nth-child(3n)::after { background: var(--mark-coral); }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---- bento: what we build ---- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento .tile {
  border-radius: 22px; padding: 28px 28px 30px; gap: 8px;
  background: var(--surface); border: 1px solid var(--hair);
  box-shadow: var(--lift), var(--elev-1); overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s;
}
.bento .tile:hover { transform: translateY(-4px); box-shadow: var(--lift), var(--elev-2); }
.bento .tile.ink, .bento .tile.ink:hover { background: var(--ink-bg); border-color: transparent; box-shadow: var(--elev-2); }
.bento .tile h3 { font-size: 1.16rem; }
.t-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.t-ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; position: relative;
  background: var(--coral-tint); color: var(--coral-ink);
}
.t-ic::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 2px; background: var(--mark-teal); box-shadow: 0 0 0 3px var(--surface); }
.t-ic svg { width: 21px; height: 21px; }
.ink .t-ic { background: rgba(246,241,233,.08); color: var(--ink-coral); }
.ink .t-ic::after { box-shadow: 0 0 0 3px var(--ink); }
.ink .tile .idx, .tile.ink .idx { color: var(--ink-faint); }
.tile.ink .k { color: var(--ink-coral); }

.tile--feature { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.08fr; gap: 30px; align-items: center; }
.tile--wide { grid-column: span 3; display: grid; grid-template-columns: 1fr 1.25fr; gap: 44px; align-items: center; }
.tile--feature .t-copy, .tile--wide .t-copy { display: flex; flex-direction: column; gap: 8px; }

.mini-board {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-family: var(--mono);
  background: rgba(246,241,233,.05); border: 1px solid var(--ink-line); border-radius: 16px; padding: 10px;
}
.mb-col { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.mb-col h5 { font-size: .56rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); display: flex; justify-content: space-between; padding: 2px 4px; }
.mb-col h5 b { color: var(--ink-text); font-weight: 500; }
.mb-card {
  font-style: normal; display: block; background: var(--surface); color: var(--text);
  border-radius: 9px; padding: 8px 9px; font-size: .64rem; line-height: 1.35;
  box-shadow: var(--lift), 0 8px 16px -10px rgba(0,0,0,.7);
}
.mb-card small { display: block; color: var(--muted); font-size: .56rem; margin-top: 3px; }
.mb-card.lift { transform: rotate(-3deg) translateY(-2px); box-shadow: var(--lift), 0 18px 30px -12px rgba(0,0,0,.8); animation: nudge 5s 1.5s ease-in-out infinite; }
.mb-card.done { opacity: .62; text-decoration: line-through; text-decoration-color: var(--faint); }
@keyframes nudge { 0%, 100% { transform: rotate(-3deg) translateY(-2px); } 50% { transform: rotate(-1.5deg) translate(3px, -4px); } }

.mini-chart { background: var(--surface-alt); border: 1px solid var(--hair); border-radius: 16px; padding: 16px 18px 12px; font-family: var(--mono); }
.mc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mini-chart svg { width: 100%; height: 124px; display: block; }
.mini-chart rect { fill: var(--teal); opacity: .32; transform-box: fill-box; transform-origin: bottom; transition: transform 1s var(--ease-out); }
.mini-chart rect.now { fill: var(--coral); opacity: 1; }
.js .tile--wide.reveal:not(.in) .mini-chart rect { transform: scaleY(.04); }
.mc-axis { display: flex; justify-content: space-between; font-size: .58rem; letter-spacing: .06em; color: var(--faint); margin-top: 8px; }
@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--feature, .tile--wide { grid-column: span 2; grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile--feature, .tile--wide { grid-column: auto; }
  .mb-col:nth-child(3) { display: none; }
  .mini-board { grid-template-columns: 1fr 1fr; }
}

.mini-chart rect:nth-child(1) { transition-delay: 120ms; }
.mini-chart rect:nth-child(2) { transition-delay: 165ms; }
.mini-chart rect:nth-child(3) { transition-delay: 210ms; }
.mini-chart rect:nth-child(4) { transition-delay: 255ms; }
.mini-chart rect:nth-child(5) { transition-delay: 300ms; }
.mini-chart rect:nth-child(6) { transition-delay: 345ms; }
.mini-chart rect:nth-child(7) { transition-delay: 390ms; }
.mini-chart rect:nth-child(8) { transition-delay: 435ms; }
.mini-chart rect:nth-child(9) { transition-delay: 480ms; }
.mini-chart rect:nth-child(10) { transition-delay: 525ms; }
.mini-chart rect:nth-child(11) { transition-delay: 570ms; }
.mini-chart rect:nth-child(12) { transition-delay: 615ms; }

/* ---- the Tally timeline fills as you read down it (site.js sets --fill) ---- */
.milestones::after {
  content: ""; position: absolute; left: 4.5px; top: 10px; width: 2px; border-radius: 1px;
  height: calc((100% - 20px) * var(--fill, 0));
  background: linear-gradient(var(--teal), var(--coral));
}
.milestones li::before { z-index: 1; }
.milestones li.now .card-now { box-shadow: var(--lift), var(--elev-2), 0 0 0 1px var(--coral-tint); }

/* ---- phone frames (tally page) ---- */
.device {
  position: relative; border-radius: 40px; padding: 46px 18px 24px;
  box-shadow: 0 0 0 9px #26272D, 0 0 0 10px rgba(255,255,255,.1), 0 50px 90px -30px rgba(0,0,0,.6);
  max-width: 372px; margin: 12px auto;
}
.device::before {
  content: ""; position: absolute; top: 14px; left: 50%; width: 96px; height: 24px; margin-left: -48px;
  border-radius: 14px; background: #26272D;
}
.device.run { border: none; background: var(--band-surface); }

/* ---- footer wordmark ---- */
.foot-mark {
  font-family: var(--mono); font-weight: 500; white-space: nowrap; user-select: none;
  font-size: clamp(4rem, 16.5vw, 14rem); line-height: .78; letter-spacing: -.07em;
  margin: 56px 0 0; padding-bottom: .04em;
  background: linear-gradient(180deg, rgba(246,241,233,.16), rgba(246,241,233,0) 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
footer.ink .foot-base { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .ribbon-track, .mb-card.lift, .js .hero .status, .js .hero h1, .js .hero .lead, .js .hero .hero-cta, .js .hero .stack { animation: none; }
  .stack, .js .hero .window.reveal.in { transform: none; }
  .js .tile--wide.reveal:not(.in) .mini-chart rect { transform: none; }
}
/* ribbon fades into its own ink at the edges, not into the page */
.ribbon { -webkit-mask-image: none; mask-image: none; position: relative; }
.ribbon::before, .ribbon::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 1; pointer-events: none; }
.ribbon::before { left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.ribbon::after { right: 0; background: linear-gradient(-90deg, var(--ink), transparent); }
.mb-card.done { opacity: 1; background: rgba(246,241,233,.07); color: var(--ink-faint); box-shadow: none; border: 1px dashed var(--ink-line); }
.mb-card.done small { color: var(--ink-faint); }

/* ---- founder: an ink ID card ---- */
.plate.ink { background: var(--ink-bg); color: var(--ink-text); box-shadow: var(--elev-3); padding: 28px 28px 30px; border-radius: 20px; }
.plate.ink .mono-k { color: var(--ink-faint); }
.plate.ink .mono-v { color: var(--ink-text); }
.plate-top { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px dashed var(--ink-line); }
.plate-top svg { height: 26px; width: auto; }
.plate-top span { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.founder blockquote { font-size: clamp(1.4rem, 2.8vw, 2.05rem); font-weight: 400; }
@media (min-width: 781px) { .founder .plate { position: sticky; top: 110px; transform: rotate(-1.5deg); } }

/* ---- pricing: numbered cards with a colour bar ---- */
.priced { counter-reset: price; }
.priced .card { position: relative; overflow: hidden; padding-top: 34px; counter-increment: price; }
.priced .card::after {
  content: "0" counter(price); position: absolute; top: 18px; right: 22px;
  font-family: var(--mono); font-size: 3.2rem; line-height: 1; letter-spacing: -.05em; color: currentColor; opacity: .08;
}
.priced .card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--mark-teal); }
.priced .card.tint-sand::before { background: #D9A441; }
.priced .card.tint-sage::before { background: var(--mark-coral); }
.priced .card h3 { font-size: 1.2rem; }
.priced .card h3 { padding-right: 64px; }

/* =====================================================================
   OCTOBER LAYER (9 Oct 2026) — Tally 1.40–1.57 mocks
   ===================================================================== */

/* ---- container map mock (tally page, What's new) ---- */
.mapmock {
  background: var(--ink); color: var(--ink-text); border-radius: 20px; overflow: hidden;
  font-family: var(--mono); box-shadow: var(--elev-3), 0 0 0 1px var(--ink-line);
}
.mm-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--ink-line); }
.mm-title { font-size: .64rem; letter-spacing: .08em; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: rgba(246,241,233,.06); flex: none; }
.mm-tabs span { font-size: .6rem; letter-spacing: .06em; padding: 5px 9px; border-radius: 7px; color: var(--ink-faint); }
.mm-tabs .on { background: var(--ink-raised); color: var(--ink-text); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.mm-body { position: relative; }
.mm-map { display: block; width: 100%; height: auto; background:
  radial-gradient(420px circle at 70% 20%, rgba(242,130,106,.10), transparent 60%),
  radial-gradient(380px circle at 15% 90%, rgba(134,217,203,.08), transparent 60%); }
.mm-water path { fill: rgba(134,217,203,.07); }
.mm-roads path { fill: none; stroke: rgba(246,241,233,.13); stroke-width: 5; stroke-linecap: round; }
.mm-roads path.minor { stroke: rgba(246,241,233,.06); stroke-width: 2.5; }
.mm-route { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 7 6; }
.mm-route.r1 { stroke: var(--ink-coral); }
.mm-route.r2 { stroke: var(--ink-teal); }
.mm-yard { fill: var(--ink-text); }
.mm-stop circle { stroke: var(--ink); stroke-width: 3; }
.mm-stop.r1 circle { fill: var(--ink-coral); }
.mm-stop.r2 circle { fill: var(--ink-teal); }
.mm-stop.done circle { fill-opacity: .35; }
.mm-stop.done text { fill: var(--ink-muted); }
.mm-stop text { font-family: var(--mono); font-size: 12px; font-weight: 500; text-anchor: middle; fill: #16171B; }
.mm-pin circle { stroke: var(--ink); stroke-width: 3; }
.mm-pin.late circle { fill: #E5484D; }
.mm-pin.bill circle { fill: #E2B55C; }
.mm-card {
  position: absolute; right: 14px; bottom: 14px; width: min(250px, 58%);
  background: var(--ink-raised); border: 1px solid var(--ink-line); border-radius: 12px; padding: 12px 14px;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.6);
}
.mm-k { font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-coral); }
.mm-h { font-size: .8rem; margin-top: 4px; }
.mm-s { font-family: var(--body); font-size: .7rem; color: var(--ink-muted); margin-top: 3px; }
.mm-acts { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.mm-acts span { font-size: .58rem; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--ink-line); color: var(--ink-muted); }
.mm-acts span:first-child { background: var(--ink-coral); border-color: transparent; color: #16171B; }
.mm-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px; border-top: 1px solid var(--ink-line); font-size: .58rem; letter-spacing: .06em; color: var(--ink-muted); }
.mm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mm-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mm-legend i.r1 { background: var(--ink-coral); }
.mm-legend i.r2 { background: var(--ink-teal); }
.mm-legend i.late { background: #E5484D; }
.mm-legend i.bill { background: #E2B55C; }
.mm-legend i.yard { background: var(--ink-text); border-radius: 2px; }
@media (max-width: 560px) {
  .mm-card { position: static; width: auto; margin: 0 12px 12px; }
  .mm-title { display: none; }
  .mm-head { justify-content: flex-end; }
}

/* ---- customer page mock: actions + late count (1.50) ---- */
.cust-acts { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.cust-acts span { font-size: .6rem; letter-spacing: .05em; padding: 5px 9px; border-radius: 7px; border: 1px solid var(--border); color: var(--muted); }
.cust-acts .go { background: var(--coral); border-color: transparent; color: #fff; }
.cust-stats .v small { font-size: .58rem; letter-spacing: .06em; text-transform: uppercase; margin-left: 4px; }
.cust-stats .v small.late { color: var(--coral-ink); }

/* ---- My Run, rebuilt (1.51) ---- */
.run--v2 { padding-top: 46px; }
.run--v2 .r-hero { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.run--v2 .r-hi { font-size: 1.05rem; color: var(--band-text); letter-spacing: -.01em; }
.run--v2 .r-sync { font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--band-muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.run--v2 .r-sync i { width: 7px; height: 7px; border-radius: 50%; background: #4CC2AF; box-shadow: 0 0 0 3px rgba(76,194,175,.18); }
.run--v2 .r-ring { --p: 0; width: 58px; height: 58px; flex: none; position: relative; display: grid; place-items: center; }
.run--v2 .r-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--band-coral) calc(var(--p) * 1%), var(--band-border) 0);
  -webkit-mask: radial-gradient(circle, transparent 0 22px, #000 23px); mask: radial-gradient(circle, transparent 0 22px, #000 23px);
}
.run--v2 .r-ring span { position: relative; font-size: .95rem; color: var(--band-text); font-variant-numeric: tabular-nums; }
.run--v2 .r-ring small { font-size: .62rem; color: var(--band-muted); }
.run--v2 .r-segs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 14px 0 16px; }
.run--v2 .r-segs i { height: 4px; border-radius: 2px; background: var(--band-border); }
.run--v2 .r-segs i.on { background: #4CC2AF; }
.run--v2 .r-segs i.cur { background: var(--band-coral); }
.run--v2 .r-truck { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: #131418; border: 1px solid var(--band-border); font-size: .7rem; color: var(--band-text); }
.run--v2 .r-truck .k, .run--v2 .r-next .k { font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--band-coral); }
.run--v2 .r-next { margin: 10px 0 6px; padding: 14px; border-radius: 14px; background: var(--band-raised); border: 1px solid var(--band-border); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.run--v2 .r-next .h { font-size: .95rem; color: var(--band-text); margin-top: 5px; line-height: 1.3; }
.run--v2 .r-next .s { font-family: var(--body); font-size: .72rem; color: var(--band-muted); margin-top: 4px; }
.run--v2 .r-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.run--v2 .r-btns span { text-align: center; font-size: .68rem; letter-spacing: .04em; padding: 9px 6px; border-radius: 9px; border: 1px solid var(--band-border); color: var(--band-text); }
.run--v2 .r-btns .go { background: var(--band-coral); border-color: transparent; color: #16171B; }
.run--v2 .stop { grid-template-columns: auto 1fr auto; }
.run--v2 .r-done { text-align: center; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--band-muted); padding-top: 12px; }

/* ---- releases-per-week chart (index, Our work) ---- */
.rel-chart { margin: 34px 0 0; max-width: 400px; padding: 18px 18px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--lift), var(--elev-1, 0 1px 2px rgba(0,0,0,.08)); border: 1px solid var(--hair); }
.rel-chart figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.rel-chart figcaption b { font-weight: 500; color: var(--text); letter-spacing: .04em; }
.rel-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.rel-chart path { fill: var(--teal); opacity: .85; transition: opacity .15s; }
.rel-chart .now path { fill: var(--coral); opacity: 1; }
.rel-chart g:hover path { opacity: 1; }
.rel-chart .hit { fill: transparent; }
.rel-chart .base { stroke: var(--border); stroke-width: 1; }
.rel-chart text { font-family: var(--mono); font-size: 9px; fill: var(--text); text-anchor: middle; font-variant-numeric: tabular-nums; }
.rel-chart text.ax { fill: var(--faint); font-size: 8.5px; letter-spacing: .06em; }
@media (max-width: 960px) { .rel-chart { max-width: none; margin-bottom: 28px; } }

/* ============================================================
   PIXEL GRID (4 Nov 2026) — set by assets/pixel-grid.js
   Ink surfaces marked [data-pix] swap the blueprint lines for a
   canvas of teal-square pixels that light up along the pointer.
   Without JS the blueprint grid stays.
   ============================================================ */
.ink.has-pix::after { display: none; }
.ink > canvas.pix {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; display: block;
}

/* ============================================================
   TALLY PAGE (4 Nov 2026) — real screens
   Real Tally 1.60 screenshots (fictional training yard) in place
   of drawn mockups: a framed dashboard rising out of the hero,
   a facts strip, a tabbed tour, and real My Run phones.
   ============================================================ */
/* browser frame around a screenshot */
.tp-frame {
  margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--hair);
  box-shadow: var(--lift), 0 2px 6px rgba(61,50,38,.08), 0 30px 70px -30px rgba(61,50,38,.35);
}
.tp-frame img { display: block; width: 100%; height: auto; }
.tp-bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; background: #1B1C21; border-bottom: 1px solid rgba(246,241,233,.08); }
.tp-dots { display: flex; gap: 6px; }
.tp-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(246,241,233,.16); }
.tp-dots i:first-child { background: var(--mark-coral); opacity: .85; }
.tp-url { font-family: var(--mono); font-size: .72rem; letter-spacing: .02em; color: rgba(244,239,230,.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* hero: copy on top, the real dashboard rising out of the band */
.hero.ink.tp-hero { padding-bottom: 0; }
.tp-hero-copy {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "status status" "h1 lead" "h1 cta";
  column-gap: clamp(32px, 5vw, 72px); align-items: end;
}
.tp-hero-copy .status { grid-area: status; justify-self: start; }
.tp-hero-copy h1 { grid-area: h1; margin-bottom: 0; }
.tp-hero-copy .lead { grid-area: lead; max-width: 52ch; margin: 0 0 22px; }
.tp-hero-copy .hero-cta { grid-area: cta; align-self: end; padding-bottom: .35em; }
@media (max-width: 520px) { .tp-ver { display: none; } }
@media (max-width: 900px) {
  .tp-hero-copy { grid-template-columns: 1fr; grid-template-areas: "status" "h1" "lead" "cta"; }
  .tp-hero-copy h1 { margin-bottom: 22px; }
}
.tp-hero .tp-frame--hero {
  margin-top: clamp(44px, 6vw, 72px);
  border-radius: 18px 18px 0 0; border: 1px solid rgba(246,241,233,.12); border-bottom: 0;
  box-shadow: 0 -2px 0 rgba(255,255,255,.04), 0 40px 120px -20px rgba(0,0,0,.8);
}
.tp-hero .tp-crop { max-height: clamp(260px, 46vw, 600px); overflow: hidden; }
.js .tp-hero .tp-frame--hero { animation: rise 1.1s .3s var(--ease-out) backwards; }

/* facts strip */
.tp-facts-sec { padding: clamp(40px, 5vw, 64px) 0 clamp(8px, 2vw, 16px); }
.tp-facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tp-facts > div { padding: 26px 24px 24px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.tp-facts > div + div { border-left: 1px solid var(--border); }
.tp-facts dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tp-facts dd { font-family: var(--mono); font-size: clamp(2.2rem, 4.2vw, 3.3rem); line-height: 1; letter-spacing: -.05em; color: var(--text); }
.tp-facts dd small { font-size: .32em; letter-spacing: .02em; color: var(--muted); margin-left: .35em; vertical-align: .55em; }
.tp-facts > div:first-child dd { color: var(--coral); }
.tp-facts-note { margin-top: 18px; color: var(--muted); font-size: .92rem; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.tp-facts-note a { font-family: var(--mono); font-size: .82rem; color: var(--coral-ink); display: inline-flex; align-items: center; gap: 6px; }
.tp-facts-note a svg { width: 1em; height: 1em; transition: transform .2s var(--ease-out); }
.tp-facts-note a:hover svg { transform: translateX(3px); }
@media (max-width: 760px) {
  .tp-facts { grid-template-columns: 1fr 1fr; }
  .tp-facts > div:nth-child(3) { border-left: 0; }
  .tp-facts > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* the tour */
.tp-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px; margin: 0 -4px 22px; scrollbar-width: none; }
.tp-tabs::-webkit-scrollbar { display: none; }
.tp-tab {
  flex: 1 0 auto; min-width: 150px; text-align: left; cursor: pointer;
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px 13px; display: flex; flex-direction: column; gap: 3px;
  box-shadow: var(--lift); transition: border-color .2s, box-shadow .2s, background .2s;
}
.tp-tab .t { font-family: var(--mono); font-size: .86rem; font-weight: 500; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.tp-tab .t::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--border); transition: background .2s; }
.tp-tab .s { font-size: .76rem; color: var(--muted); padding-left: 16px; }
.tp-tab:hover { border-color: var(--faint); }
.tp-tab[aria-selected="true"] { border-color: var(--teal); box-shadow: var(--lift), 0 0 0 3px rgba(23,137,123,.16), var(--elev-1); }
.tp-tab[aria-selected="true"] .t::before { background: var(--teal); }
.tp-tab:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.tp-panel { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); align-items: center; }
.tp-panel[hidden] { display: none; }
.tp-panel:not([hidden]) { animation: tp-in .45s var(--ease-out); }
@keyframes tp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tp-cap h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.18; letter-spacing: -.03em; }
.tp-cap p { color: var(--muted); margin: 14px 0 18px; font-size: .98rem; }
.tp-cap ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.tp-cap li { position: relative; padding-left: 18px; font-size: .92rem; line-height: 1.5; }
.tp-cap li::before { content: ""; position: absolute; left: 0; top: .52em; width: 7px; height: 7px; border-radius: 2px; background: var(--mark-teal); }
.tp-fine { margin-top: 22px; font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--faint); }
@media (max-width: 960px) { .tp-panel { grid-template-columns: 1fr; } }

/* also in the box: 2 x 2 */
.tp-more { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .tp-more { grid-template-columns: 1fr; } }

/* My Run: two real phones */
.tp-phones { position: relative; display: flex; justify-content: center; padding: 10px 0 70px; }
.tp-phone {
  margin: 0; width: min(270px, 42vw); aspect-ratio: 600 / 1300; flex: none;
  border-radius: 38px; overflow: hidden; background: #0B0C0F;
  border: 9px solid #0B0C0F; outline: 1px solid rgba(246,241,233,.12);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.75);
  position: relative; z-index: 2;
}
.tp-phone img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 29px; }
.tp-phone--back { z-index: 1; margin-left: -54px; transform: translateY(64px) rotate(4deg); }
@media (prefers-reduced-motion: reduce) {
  .js .tp-hero .tp-frame--hero, .tp-panel:not([hidden]) { animation: none; }
}

/* ============================================================
   HOME PAGE (4 Nov 2026) — real work up front
   The hero shows Tally's real Daily Dispatch, bleeding off the
   right edge, with My Run on a phone in front. The brief / quote
   illustration moves down to How it works, beside the promises.
   ============================================================ */
.hp-shot { position: relative; padding: 46px 0 56px; }
.hp-desk { width: 150%; max-width: none; border-radius: 16px; border: 1px solid rgba(246,241,233,.12);
  box-shadow: 0 2px 6px rgba(0,0,0,.25), 0 50px 100px -30px rgba(0,0,0,.85); }
.hp-phone { position: absolute; left: -46px; bottom: 0; width: clamp(130px, 14vw, 178px); z-index: 3;
  border-width: 7px; border-radius: 30px; }
.hp-phone img { border-radius: 23px; }
.hp-tag {
  position: absolute; top: 0; left: 0; z-index: 4; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px; font-family: var(--mono); font-size: .74rem; letter-spacing: .01em;
  color: var(--ink-muted); background: rgba(246,241,233,.06); border: 1px solid var(--ink-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .2s, color .2s;
}
.hp-tag b { color: var(--ink-text); font-weight: 500; }
.hp-tag .sq { width: 8px; height: 8px; border-radius: 2px; background: var(--mark-teal); flex: none; }
.hp-tag svg { width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
.hp-tag:hover { border-color: rgba(246,241,233,.28); color: var(--ink-text); }
.hp-tag:hover svg { transform: translateX(3px); }
.js .hero .hp-desk { animation: rise 1.1s .28s var(--ease-out) backwards; }
.js .hero .hp-phone { animation: rise 1.1s .45s var(--ease-out) backwards; }
.js .hero .hp-tag { animation: rise .9s .6s var(--ease-out) backwards; }
@media (max-width: 960px) {
  .hp-shot { padding: 50px 0 40px; margin-right: calc(-1 * var(--gutter)); }
  .hp-desk { width: 118%; }
  .hp-phone { left: auto; right: calc(var(--gutter) + 4px); width: clamp(110px, 26vw, 160px); }
}

/* How it works: the heading beside the brief, quote and update */
.hp-how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; margin-bottom: clamp(48px, 6vw, 72px); }
.hp-how .sec-head { margin-bottom: 0; }
.hp-promises { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.hp-promises li { position: relative; padding-left: 22px; color: var(--ink-muted); font-size: .98rem; line-height: 1.5; }
.hp-promises li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 2px; background: var(--mark-teal); }
.hp-promises b { color: var(--ink-text); font-weight: 500; }
@media (max-width: 960px) { .hp-how { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .js .hero .hp-desk, .js .hero .hp-phone, .js .hero .hp-tag { animation: none; }
}

/* ============================================================
   DESIGN PASS (4 Nov 2026)
   1. A tone-on-tone pattern of Batsford's own shapes (the square,
      the weighbridge beam, the B, a registration mark) across the
      ink bands and the alternate paper sections, barely there.
   2. Sections closer together; split headings run wider so they
      take two or three lines, not four.
   3. Ruler ticks along the top of every ink band.
   ============================================================ */
:root {
  --pat-ink: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%22120%22 viewBox=%220 0 120 120%22%3E%3Cg fill=%22none%22 stroke=%22rgba%28246,241,233,0.04%29%22 stroke-width=%221.4%22 stroke-linecap=%22square%22%3E%3Crect x=%2224%22 y=%2224%22 width=%2212%22 height=%2212%22 rx=%222%22/%3E%3Cpath d=%22M80 30H100M80 25V35M100 25V35%22/%3E%3Cpath d=%22M-6 90H6M0 84V96%22/%3E%3Cpath d=%22M114 90H126M120 84V96%22/%3E%3C/g%3E%3Cpath fill=%22rgba%28246,241,233,0.04%29%22 d=%22M66 0V700H299Q408 700 463.0 650.0Q518 600 518 522Q518 461 485.0 421.5Q452 382 411 366V359Q460 343 497.0 301.0Q534 259 534 193Q534 139 507.5 95.5Q481 52 430.5 26.0Q380 0 307 0ZM150 398H293Q360 398 395.5 427.5Q431 457 431 513Q431 566 396.0 595.0Q361 624 290 624H150ZM150 77H298Q370 77 409.0 109.5Q448 142 448 196Q448 251 409.0 283.5Q370 316 298 316H150Z%22 transform=%22translate%2854.99 97.50%29 scale%280.02143 -0.02143%29 translate%28-66 0%29%22/%3E%3C/svg%3E");
  --pat-paper: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%22120%22 viewBox=%220 0 120 120%22%3E%3Cg fill=%22none%22 stroke=%22rgba%2861,50,38,0.032%29%22 stroke-width=%221.4%22 stroke-linecap=%22square%22%3E%3Crect x=%2224%22 y=%2224%22 width=%2212%22 height=%2212%22 rx=%222%22/%3E%3Cpath d=%22M80 30H100M80 25V35M100 25V35%22/%3E%3Cpath d=%22M-6 90H6M0 84V96%22/%3E%3Cpath d=%22M114 90H126M120 84V96%22/%3E%3C/g%3E%3Cpath fill=%22rgba%2861,50,38,0.032%29%22 d=%22M66 0V700H299Q408 700 463.0 650.0Q518 600 518 522Q518 461 485.0 421.5Q452 382 411 366V359Q460 343 497.0 301.0Q534 259 534 193Q534 139 507.5 95.5Q481 52 430.5 26.0Q380 0 307 0ZM150 398H293Q360 398 395.5 427.5Q431 457 431 513Q431 566 396.0 595.0Q361 624 290 624H150ZM150 77H298Q370 77 409.0 109.5Q448 142 448 196Q448 251 409.0 283.5Q370 316 298 316H150Z%22 transform=%22translate%2854.99 97.50%29 scale%280.02143 -0.02143%29 translate%28-66 0%29%22/%3E%3C/svg%3E");
  --ruler-minor: repeating-linear-gradient(90deg, rgba(246,241,233,.16) 0 1px, transparent 1px 10px);
  --ruler-major: repeating-linear-gradient(90deg, rgba(246,241,233,.28) 0 1px, transparent 1px 100px);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pat-paper: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%22120%22 viewBox=%220 0 120 120%22%3E%3Cg fill=%22none%22 stroke=%22rgba%28246,241,233,0.035%29%22 stroke-width=%221.4%22 stroke-linecap=%22square%22%3E%3Crect x=%2224%22 y=%2224%22 width=%2212%22 height=%2212%22 rx=%222%22/%3E%3Cpath d=%22M80 30H100M80 25V35M100 25V35%22/%3E%3Cpath d=%22M-6 90H6M0 84V96%22/%3E%3Cpath d=%22M114 90H126M120 84V96%22/%3E%3C/g%3E%3Cpath fill=%22rgba%28246,241,233,0.035%29%22 d=%22M66 0V700H299Q408 700 463.0 650.0Q518 600 518 522Q518 461 485.0 421.5Q452 382 411 366V359Q460 343 497.0 301.0Q534 259 534 193Q534 139 507.5 95.5Q481 52 430.5 26.0Q380 0 307 0ZM150 398H293Q360 398 395.5 427.5Q431 457 431 513Q431 566 396.0 595.0Q361 624 290 624H150ZM150 77H298Q370 77 409.0 109.5Q448 142 448 196Q448 251 409.0 283.5Q370 316 298 316H150Z%22 transform=%22translate%2854.99 97.50%29 scale%280.02143 -0.02143%29 translate%28-66 0%29%22/%3E%3C/svg%3E"); } }
:root[data-theme="dark"] { --pat-paper: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%22120%22 viewBox=%220 0 120 120%22%3E%3Cg fill=%22none%22 stroke=%22rgba%28246,241,233,0.035%29%22 stroke-width=%221.4%22 stroke-linecap=%22square%22%3E%3Crect x=%2224%22 y=%2224%22 width=%2212%22 height=%2212%22 rx=%222%22/%3E%3Cpath d=%22M80 30H100M80 25V35M100 25V35%22/%3E%3Cpath d=%22M-6 90H6M0 84V96%22/%3E%3Cpath d=%22M114 90H126M120 84V96%22/%3E%3C/g%3E%3Cpath fill=%22rgba%28246,241,233,0.035%29%22 d=%22M66 0V700H299Q408 700 463.0 650.0Q518 600 518 522Q518 461 485.0 421.5Q452 382 411 366V359Q460 343 497.0 301.0Q534 259 534 193Q534 139 507.5 95.5Q481 52 430.5 26.0Q380 0 307 0ZM150 398H293Q360 398 395.5 427.5Q431 457 431 513Q431 566 396.0 595.0Q361 624 290 624H150ZM150 77H298Q370 77 409.0 109.5Q448 142 448 196Q448 251 409.0 283.5Q370 316 298 316H150Z%22 transform=%22translate%2854.99 97.50%29 scale%280.02143 -0.02143%29 translate%28-66 0%29%22/%3E%3C/svg%3E"); }

/* 1. the pattern: on the ink it replaces the blueprint lines; it fades out across the surface */
.ink::after, .ink.has-pix::after {
  display: block; background-image: var(--pat-ink); background-size: 120px 120px; background-position: center top;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 0%, #000 20%, rgba(0,0,0,.45) 60%, transparent 100%);
          mask-image: radial-gradient(120% 90% at 85% 0%, #000 20%, rgba(0,0,0,.45) 60%, transparent 100%);
}
.ink { --pix-rest: 0.012; }
/* every flat section gets it: the plain paper ones, the alternates, and the plain dark band */
main > section:not(.ink) { position: relative; isolation: isolate; }
main > section:not(.ink)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--pat-paper); background-size: 120px 120px; background-position: center top;
}
main > section.band::before { background-image: var(--pat-ink); }

/* 2. rhythm: closer sections, wider headings */
section { padding: clamp(60px, 7vw, 96px) 0; }
.sec-head.split { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px clamp(40px, 5vw, 72px); }
.sec-head h2 { font-size: clamp(1.8rem, 3.3vw, 2.6rem); }
.sec-head.split p { padding-top: 18px; border-top: 1px solid var(--border); }
.ink .sec-head.split p { border-top-color: var(--ink-line); }
@media (max-width: 900px) { .sec-head.split { grid-template-columns: 1fr; } }

/* 3. ruler ticks along the top edge of the ink bands, like the scale on a weighbridge */
section.ink, footer.ink {
  background:
    var(--ruler-major) top left / 100% 12px no-repeat,
    var(--ruler-minor) top left / 100% 6px no-repeat,
    var(--ink-bg);
}

/* 4. a full-bleed moment: real Tally screens drifting past, edge to edge */
section.hp-reel-sec { padding: clamp(8px, 2vw, 24px) 0 clamp(56px, 6vw, 80px); overflow: hidden; }
.hp-reel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.hp-reel-head a { font-family: var(--mono); font-size: .82rem; color: var(--coral-ink); display: inline-flex; align-items: center; gap: 6px; }
.hp-reel-head a svg { width: 1em; height: 1em; transition: transform .2s var(--ease-out); }
.hp-reel-head a:hover svg { transform: translateX(3px); }
.hp-reel { overflow: hidden; outline: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.hp-reel-track { display: flex; width: max-content; animation: hp-reel 70s linear infinite; }
.hp-reel:hover .hp-reel-track, .hp-reel:focus-visible .hp-reel-track { animation-play-state: paused; }
.hp-reel-set { display: flex; gap: 22px; padding: 10px 11px 26px; }
.hp-reel-item { margin: 0; width: clamp(300px, 32vw, 460px); flex: none; }
.hp-reel-item img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--hair);
  box-shadow: var(--lift), 0 2px 6px rgba(61,50,38,.08), 0 24px 50px -24px rgba(61,50,38,.35); }
.hp-reel-item figcaption { margin-top: 12px; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hp-reel-item figcaption::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--mark-teal); }
.hp-reel-fine { margin-top: 4px; font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--faint); }
@keyframes hp-reel { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hp-reel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .hp-reel-track { animation: none; }
  .hp-reel-set[aria-hidden] { display: none; }
}
