/* Folioz landing. Concept: a quantity surveyor's drawing sheet.
   Limestone paper, graphite ink, hairline drafting marks, mono figures. */

:root {
  --paper: #eee9dd;
  --paper-2: #e5dfd0;
  --card: #f8f5ed;
  --ink: #15171a;
  --ink-2: #3b4045;
  --muted: #6a6e70;
  --line: rgba(21, 23, 26, 0.16);
  --line-strong: rgba(21, 23, 26, 0.42);
  --green: #0e6b4e;
  --green-2: #16906b;
  --mint: #cfe6da;
  --orange: #e2531f;
  --amber: #c98a0b;
  --red: #b3261e;
  --night: #101311;
  --night-2: #181d1a;
  --brass: #d9b26b;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* paper grain + drafting grid, fixed behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(21, 23, 26, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(21, 23, 26, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .1  0 0 0 0 .1  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 560; letter-spacing: -0.02em; line-height: 1.02; margin: 0; font-variation-settings: "opsz" 144, "SOFT" 40; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.15; }
h1 em, h2 em { font-style: italic; font-weight: 420; color: var(--green); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.section { padding: clamp(64px, 9vw, 132px) 0; position: relative; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 64px); max-width: 780px; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -2px var(--green); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { padding: 9px 18px; font-size: 14px; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

.signup { display: grid; gap: 10px; max-width: 520px; }
.signup .row { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input[type="email"], .signup select {
  flex: 1 1 220px; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  background: var(--card); font: inherit; color: var(--ink);
}
.signup select { flex: 1 1 100%; padding-right: 36px; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2315171a' stroke-width='1.6'/></svg>");
  background-repeat: no-repeat; background-position: right 18px center; font-size: 15px; color: var(--ink-2); }
.signup input:focus, .signup select:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 4px rgba(14, 107, 78, 0.16); }
.signup .note { font-size: 13px; color: var(--muted); line-height: 1.45; }
.signup .msg { font-size: 14px; margin: 0; }
.signup .msg:empty { display: none; }
.signup .msg.ok { color: var(--green); font-weight: 600; }
.signup .msg.err { color: var(--red); }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup.done .row, .signup.done select { display: none; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: rgba(238, 233, 221, 0.82); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 650; font-size: 1.45rem; letter-spacing: -0.02em; }
.brand-mark { width: 26px; height: 26px; display: grid; gap: 3px; }
.brand-mark i { display: block; height: 6.5px; border-radius: 2px; background: var(--ink); transition: transform 0.4s var(--ease); }
.brand-mark i:nth-child(2) { background: var(--green); width: 82%; }
.brand-mark i:nth-child(3) { background: var(--green-2); width: 64%; }
.brand:hover .brand-mark i:nth-child(2) { transform: translateX(3px); }
.brand:hover .brand-mark i:nth-child(3) { transform: translateX(6px); }
.nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.nav ul a { text-decoration: none; color: var(--ink-2); position: relative; padding: 4px 0; }
.nav ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav ul a:hover::after { transform: scaleX(1); }
@media (max-width: 820px) { .nav ul { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { margin: 22px 0 22px; }
.hero h1 .scribble { position: relative; display: inline-block; font-style: italic; font-weight: 420; color: var(--green); }
.hero h1 .scribble svg { position: absolute; left: -2%; bottom: -0.18em; width: 104%; height: 0.32em; overflow: visible; }
.hero h1 .scribble path { stroke: var(--orange); stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.2s 0.9s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lede { margin-bottom: 30px; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
/* faint marble vein */
.vein { position: absolute; inset: -10% -10% auto auto; width: 70%; opacity: 0.5; pointer-events: none; z-index: -1; }
.vein path { fill: none; stroke: rgba(21, 23, 26, 0.13); stroke-width: 1.2; }
.vein path.b { stroke: rgba(14, 107, 78, 0.18); }

.rise { opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- job sheet (hero demo) ---------- */
.sheet {
  position: relative; background: var(--card); border: 1.5px solid var(--ink); border-radius: 6px;
  box-shadow: 10px 10px 0 -1px var(--paper-2), 10px 10px 0 0 var(--ink); padding: 0;
}
.sheet::before, .sheet::after { content: ""; position: absolute; width: 16px; height: 16px; border: solid var(--ink); border-width: 0; }
.sheet::before { top: -9px; left: -9px; border-top-width: 1.5px; border-left-width: 1.5px; }
.sheet::after { bottom: -9px; right: -9px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.sheet-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1.5px solid var(--ink); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.sheet-bar .ex { color: var(--orange); border: 1px solid currentColor; padding: 2px 8px; border-radius: 3px; }
.sheet-body { padding: 18px 16px 8px; display: grid; gap: 16px; }
.sheet-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sheet-title h3 { font-size: 1.7rem; }
.sheet-title .contract { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.stack { height: 46px; display: flex; border: 1.5px solid var(--ink); background: repeating-linear-gradient(135deg, rgba(14,107,78,0.18) 0 6px, transparent 6px 12px); border-radius: 3px; overflow: hidden; position: relative; }
.stack .seg { height: 100%; width: 0; background: var(--ink); border-right: 1.5px solid var(--card); transition: width 0.7s var(--ease); display: grid; place-items: center; overflow: hidden; }
.stack .seg span { font-family: var(--font-mono); font-size: 10.5px; color: var(--card); opacity: 0.9; white-space: nowrap; }
.stack .seg:nth-child(2) { background: #2d3338; }
.stack .seg:nth-child(3) { background: #4a5258; }
.stack .seg:nth-child(4) { background: #6a7279; }
.stack .seg:nth-child(5) { background: #8a9197; }
.stack .seg.over { background: var(--red); }
.dim { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.dim::before, .dim::after { content: ""; height: 1px; flex: 1; background: var(--line-strong); }
.dim b { font-weight: 500; color: var(--ink-2); }
.readout { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: end; }
.readout .big { font-family: var(--font-display); font-size: clamp(3rem, 6.5vw, 4.2rem); line-height: 0.95; letter-spacing: -0.03em; font-weight: 520; font-variant-numeric: lining-nums; color: var(--green); transition: color 0.4s; }
.readout .big small { font-size: 0.45em; letter-spacing: 0; }
.readout .sub { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.readout .sub b { font-family: var(--font-mono); font-weight: 500; }
.pill { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--mint); color: var(--green); font-weight: 500; transition: background 0.4s, color 0.4s; }
.sheet.watch .big { color: var(--orange); }
.sheet.watch .pill { background: #f7d6c7; color: var(--orange); }
.sheet.over .big { color: var(--red); }
.sheet.over .pill { background: #f2c9c5; color: var(--red); }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--line-strong); min-height: 48px; }
.ledger li { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; animation: slide 0.5s var(--ease) both; }
.ledger li .tag { margin-left: 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ledger li .amt { font-family: var(--font-mono); font-size: 14px; text-align: right; }
.ledger li .vat { display: none; }
.ledger li.plus .amt { color: var(--green); }
.ledger .empty { display: block; padding: 12px 0; color: var(--muted); font-size: 14px; }
@keyframes slide { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px 16px; border-top: 1.5px solid var(--ink); background: var(--paper-2); }
.chips .lbl { width: 100%; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); display: flex; justify-content: space-between; }
.chips .lbl button { background: none; border: 0; text-decoration: underline; cursor: pointer; font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--green); padding: 0; }
.chip { border: 1.5px solid var(--ink); background: var(--card); padding: 7px 12px; border-radius: 999px; font-size: 13.5px; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, color 0.2s; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip.plus { border-color: var(--green); color: var(--green); }
.chip.plus[aria-pressed="true"] { background: var(--green); color: #fff; }
.chip.ghost { border-style: dashed; border-color: var(--muted); color: var(--muted); cursor: help; background: transparent; }
.chip.ghost:hover { transform: none; }
.sheet-foot { padding: 0 16px 14px; background: var(--paper-2); font-size: 12.5px; color: var(--ink-2); }
.sheet-foot b { font-weight: 600; }
.stamp { position: absolute; right: 4px; top: -6px; transform: rotate(8deg); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--orange); border: 2px solid var(--orange); padding: 4px 8px; border-radius: 4px; text-transform: uppercase; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.sheet.watch .stamp { opacity: 0.9; }

/* ---------- chaos to order ---------- */
.chaos { --p: 0; overflow-x: clip; }
.chaos-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .chaos-grid { grid-template-columns: 1fr; } }
.chaos-copy { position: sticky; top: 110px; display: grid; gap: 20px; }
@media (max-width: 900px) { .chaos-copy { position: static; } }
.chaos-copy .after { opacity: calc(var(--p) * 1.4 - 0.4); transform: translateY(calc((1 - var(--p)) * 12px)); font-family: var(--font-display); font-size: 1.35rem; color: var(--green); font-style: italic; }
.scatter { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 16px; min-height: 420px; padding: 14px 0 30px; }
@media (max-width: 620px) { .scatter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.frag { position: relative; --x: 0; --y: 0; --r: 0;
  transform: translate(calc(var(--x) * var(--k, 1) * (1 - var(--p)) * 1px), calc(var(--y) * var(--k, 1) * (1 - var(--p)) * 1px)) rotate(calc(var(--r) * (1 - var(--p)) * 1deg));
  transition: transform 0.12s linear; background: var(--card); border: 1.5px solid var(--ink); border-radius: 6px; padding: 12px; font-size: 12.5px; line-height: 1.35; min-height: 128px; box-shadow: 4px 5px 0 rgba(21, 23, 26, 0.12); }
.frag .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.frag .to { position: absolute; left: 10px; right: 10px; bottom: -22px; font-family: var(--font-mono); font-size: 10.5px; color: var(--green); opacity: calc(var(--p) * 2 - 1); }
.frag .to::before { content: "\2192  "; }
.frag.wa { background: #dcf1d6; border-color: #3b6b34; }
.frag.wa .bub { background: #fff; border-radius: 8px 8px 8px 2px; padding: 8px; border: 1px solid rgba(0, 0, 0, 0.08); }
.frag.wa .thumb { height: 44px; border-radius: 4px; background: linear-gradient(135deg, #d9d2c2, #bfb6a3); margin-bottom: 6px; position: relative; }
.frag.wa .thumb::after { content: ""; position: absolute; inset: 8px 10px; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.28) 0 2px, transparent 2px 7px); }
.frag.xl table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 10.5px; }
.frag.xl td { border: 1px solid rgba(21, 23, 26, 0.25); padding: 2px 4px; }
.frag.xl tr:first-child td { background: #cfe0d0; font-weight: 500; }
.frag.note { background: #f4e9a8; border-color: #8a7a1c; font-family: var(--font-hand); font-size: 20px; line-height: 1.05; }
.frag.paper { background: #fff; background-image: repeating-linear-gradient(to bottom, transparent 0 17px, rgba(40, 80, 180, 0.22) 17px 18px); font-family: var(--font-hand); font-size: 18px; line-height: 18px; }
.frag.photo { padding: 8px 8px 22px; background: #fff; }
.frag.photo .img { height: 74px; background: linear-gradient(160deg, #a9a08e, #7c7463 60%, #5a5445); border-radius: 2px; }
.frag.photo .cap { font-family: var(--font-hand); font-size: 17px; margin-top: 6px; display: block; }
.frag.sms { background: #e8eef5; border-color: #3a5878; }
.frag.sms .bub { background: #fff; border-radius: 8px; padding: 7px 9px; border: 1px solid rgba(0, 0, 0, 0.08); font-size: 12px; }

/* ---------- thread ---------- */
.thread { position: relative; --p: 0; }
.rail { position: absolute; left: 22px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.rail::after { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: calc(var(--p) * 100%); background: var(--green); box-shadow: 0 0 0 1px rgba(14, 107, 78, 0.0); transition: height 0.1s linear; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 4vw, 56px); }
.step { position: relative; padding-left: 64px; display: grid; gap: 16px; opacity: 0.35; transform: translateY(10px); transition: opacity 0.5s, transform 0.6s var(--ease); }
.step.on { opacity: 1; transform: none; }
.step .node { position: absolute; left: 10px; top: 4px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; transition: background 0.3s, color 0.3s; }
.step.on .node { background: var(--green); border-color: var(--green); color: #fff; }
.step-copy h3 { margin-bottom: 6px; }
.step-copy p { margin: 0; color: var(--ink-2); max-width: 34em; }
.doc { background: var(--card); border: 1.5px solid var(--ink); border-radius: 4px; padding: 14px 16px; font-family: var(--font-mono); font-size: 12.5px; max-width: 520px; position: relative; box-shadow: 6px 6px 0 -1px var(--paper-2), 6px 6px 0 0 var(--ink); }
.doc .hd { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px dashed var(--line-strong); padding-bottom: 8px; margin-bottom: 8px; }
.doc .ln { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.doc .ln.tot { border-top: 1.5px solid var(--ink); margin-top: 6px; padding-top: 7px; font-weight: 500; }
.doc .vs { display: flex; gap: 6px; margin-bottom: 8px; }
.doc .vs i { font-style: normal; border: 1px solid var(--line-strong); border-radius: 3px; padding: 1px 7px; font-size: 11px; }
.doc .vs i.cur { background: var(--ink); color: var(--paper); }
.bar { height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden; margin: 6px 0; border: 1px solid var(--line-strong); }
.bar i { display: block; height: 100%; background: var(--green); }
.tick { color: var(--green); }
@media (min-width: 900px) {
  .step { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: 40px; }
}

/* ---------- companies ---------- */
.companies { background: var(--paper-2); border-block: 1.5px solid var(--ink); }
.co-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; align-items: stretch; border: 1.5px solid var(--ink); background: var(--card); border-radius: 6px; overflow: hidden; }
@media (max-width: 900px) { .co-board { grid-template-columns: 1fr; } }
.co-col { padding: 20px; display: grid; gap: 12px; align-content: start; }
.co-col + .co-col { border-left: 1.5px solid var(--ink); }
@media (max-width: 900px) { .co-col + .co-col { border-left: 0; border-top: 1.5px solid var(--ink); } }
.co-col h3 { font-size: 1.15rem; }
.co-col .cap { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.co-col.mid { background: var(--paper); }
.co-vat { display: grid; gap: 6px; font-family: var(--font-mono); font-size: 12.5px; }
.co-vat .row { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line-strong); padding: 4px 0; }
.person { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1.5px solid var(--ink); border-radius: 8px; background: var(--card); cursor: pointer; text-align: left; transition: transform 0.2s var(--ease), background 0.2s; }
.person:hover { transform: translateX(3px); }
.person[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.person small { font-family: var(--font-mono); font-size: 11px; opacity: 0.75; }
.split { display: grid; gap: 6px; font-family: var(--font-mono); font-size: 12px; }
.split .tr { display: flex; height: 22px; border: 1.5px solid var(--ink); border-radius: 3px; overflow: hidden; }
.split .tr i { display: block; height: 100%; transition: width 0.6s var(--ease); }
.split .tr i:first-child { background: var(--green); }
.split .tr i:last-child { background: var(--brass); }
.split .lg { display: flex; justify-content: space-between; }
.co-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.co-lines li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.co-lines .t { font-family: var(--font-mono); font-size: 10.5px; padding: 1px 6px; border-radius: 3px; background: var(--mint); color: var(--green); }
.co-lines .t.b { background: #f1e2c0; color: #7a5a14; }

/* ---------- radar ---------- */
.radar-box { border: 1.5px solid var(--ink); background: var(--card); border-radius: 6px; padding: 18px; box-shadow: 8px 8px 0 -1px var(--paper-2), 8px 8px 0 0 var(--ink); }
.scrub { display: grid; gap: 10px; margin-bottom: 18px; }
.scrub label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; display: flex; justify-content: space-between; }
.scrub label b { color: var(--green); font-weight: 500; }
input[type="range"] { width: 100%; accent-color: var(--green); height: 28px; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.docs li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--paper); transition: border-color 0.3s, background 0.3s; }
.docs li .who { font-weight: 600; font-size: 15px; }
.docs li .what { grid-column: 1; font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.docs li .state { grid-row: 1 / span 2; grid-column: 2; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 10px; border-radius: 999px; background: var(--mint); color: var(--green); white-space: nowrap; }
.docs li.soon { border-color: var(--amber); background: #f6ecd2; }
.docs li.soon .state { background: #f0d9a1; color: #7a5300; }
.docs li.exp { border-color: var(--red); background: #f4d9d6; }
.docs li.exp .state { background: #e9b4af; color: var(--red); }
.timeline { position: relative; height: 38px; margin: 14px 0 6px; }
.timeline .axis { position: absolute; left: 0; right: 0; top: 18px; height: 2px; background: var(--ink); }
.timeline .now { position: absolute; top: 4px; bottom: 0; width: 2px; background: var(--orange); transition: left 0.15s linear; }
.timeline .now::after { content: "DATE"; position: absolute; top: -2px; left: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--orange); }
.timeline .mk { position: absolute; top: 10px; width: 10px; height: 18px; margin-left: -5px; background: var(--ink); border-radius: 2px; }
.timeline .win { position: absolute; top: 12px; height: 14px; background: rgba(201, 138, 11, 0.28); border-radius: 2px; }

/* ---------- e-invoicing (light section, dark clock card) ---------- */
.einv-sec { background: var(--card); border-block: 1.5px solid var(--ink); }
.einv-sec .eyebrow { color: var(--orange); }
.einv-sec h2 em { color: var(--orange); }
.einv-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 960px) { .einv-grid { grid-template-columns: 1fr; } }
.clock { display: grid; gap: 12px; padding: 24px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--night); color: #e8e4d8; position: relative; box-shadow: 8px 8px 0 -1px var(--paper-2), 8px 8px 0 0 var(--ink); }
.clock .lbl { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }
.digits { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; font-family: var(--font-mono); }
.digits .d { font-size: clamp(3.4rem, 9vw, 6rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.05em; color: #f4efe0; }
.digits .u { font-size: 14px; color: #8d9189; letter-spacing: 0.1em; text-transform: uppercase; margin-right: 8px; }
.digits .s { font-size: 1.5rem; color: #b9b5a8; }
.clock .line { border-top: 1px dashed #3a403c; padding-top: 12px; font-size: 14px; color: #b9b5a8; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.clock .line b { font-family: var(--font-mono); color: #f4efe0; font-weight: 500; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.facts li i { font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--orange); border: 1.5px solid var(--orange); border-radius: 4px; height: 26px; display: grid; place-items: center; }
.facts b { color: var(--ink); }
.src { font-size: 12.5px; color: var(--muted); margin-top: 22px; }
.src a { color: var(--green); }
.ready { margin-top: 28px; border: 1.5px solid var(--ink); border-radius: 6px; padding: 18px; background: var(--paper); }
.ready h3 { color: var(--ink); font-size: 1.15rem; margin-bottom: 10px; }
.ready label { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-strong); cursor: pointer; font-size: 15px; color: var(--ink-2); }
.ready input { appearance: none; width: 20px; height: 20px; border: 1.5px solid var(--ink); border-radius: 4px; margin: 2px 0 0; display: grid; place-items: center; cursor: pointer; background: var(--card); transition: background 0.2s, border-color 0.2s; }
.ready input:checked { background: var(--green); border-color: var(--green); }
.ready input:checked::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.ready .result { margin-top: 14px; font-size: 14.5px; color: var(--ink); min-height: 3em; }
.ready .meter { display: flex; gap: 6px; margin-top: 12px; }
.ready .meter i { flex: 1; height: 6px; border-radius: 3px; background: var(--paper-2); border: 1px solid var(--line-strong); transition: background 0.3s; }
.ready .meter i.on { background: var(--green); border-color: var(--green); }

/* ---------- built vs next ---------- */
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 36px); }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.col-card { border: 1.5px solid var(--ink); background: var(--card); border-radius: 6px; padding: clamp(18px, 3vw, 30px); position: relative; }
.col-card.next { background: transparent; border-style: dashed; }
.col-card h3 { margin-bottom: 4px; }
.col-card .cap { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; display: block; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.ticks li::before { content: "\2713"; color: var(--green); font-weight: 700; }
.col-card.next .ticks li::before { content: "\25CB"; color: var(--muted); font-weight: 400; }
.ticks li small { display: block; font-size: 13px; color: var(--muted); }

/* ---------- trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1.5px solid var(--ink); background: var(--card); border-radius: 6px; overflow: hidden; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trust-grid { grid-template-columns: 1fr; } }
.tcell { padding: 22px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); display: grid; gap: 8px; align-content: start; transition: background 0.3s; }
.tcell:hover { background: var(--paper); }
.tcell .n { font-family: var(--font-mono); font-size: 11px; color: var(--green); letter-spacing: 0.1em; }
.tcell h3 { font-size: 1.15rem; }
.tcell p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.before { margin-top: 26px; padding: 18px 20px; border: 1.5px dashed var(--ink); border-radius: 6px; display: grid; gap: 6px; background: rgba(226, 83, 31, 0.06); }
.before b { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); }

/* ---------- faq ---------- */
.faq { max-width: 860px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1.5px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-family: var(--font-display); font-size: 1.3rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.6rem; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--green); }
.faq .a { padding: 0 0 22px; color: var(--ink-2); max-width: 46em; }
.faq .a p { margin: 0 0 10px; }

/* ---------- final cta & footer ---------- */
.final { text-align: left; background: var(--ink); color: var(--paper); border-radius: 0; position: relative; overflow: hidden; }
.final .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (max-width: 900px) { .final .wrap { grid-template-columns: 1fr; } }
.final h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.final h2 em { color: var(--brass); }
.final .lede { color: #c9c4b6; margin-top: 18px; }
.final .signup input[type="email"], .final .signup select { background-color: #1d221f; border-color: #4a504a; color: var(--paper); }
.final .signup select { background-repeat: no-repeat; background-position: right 18px center; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23eee9dd' stroke-width='1.6'/></svg>"); }
.final .signup .btn { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.final .signup .btn:hover { box-shadow: 0 8px 0 -2px #8a6c2e; }
.final .signup .note { color: #98978a; }
.final .signup .msg.ok { color: var(--brass); }
.final .signup .msg.err { color: #ff9a8f; }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: max(120px, 18.4vw); opacity: 0.2; pointer-events: none; }
.skyline .hook { stroke-dasharray: 2 5; }
.final { padding-bottom: clamp(150px, 20vw, 280px); }
.final .wrap { position: relative; z-index: 1; }
footer { background: var(--ink); color: #98978a; padding: 28px 0 48px; font-size: 13px; border-top: 1px solid #2a2f2c; }
footer .wrap { display: grid; gap: 14px; }
footer .brand { color: var(--paper); font-size: 1.2rem; }
footer p { margin: 0; max-width: 62em; }
footer a { color: var(--brass); }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  [data-reveal], .rise { opacity: 1; transform: none; }
  .hero h1 .scribble path { stroke-dashoffset: 0; }
  .step { opacity: 1; transform: none; }
}

/* ---------- small additions ---------- */
section[id] { scroll-margin-top: 64px; }
.chip.nudge { animation: nudge 1.1s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(14, 107, 78, 0.55); } 50% { box-shadow: 0 0 0 8px rgba(14, 107, 78, 0); } }
.note a { color: var(--green); }

@media (max-width: 620px) {
  .scatter { --k: 0.4; }
  .stamp { display: none; }
  .ledger li .tag { display: block; margin-left: 0; }
}

/* ---------- polish: type and atmosphere ---------- */
h1, h2, h3 { text-wrap: balance; }
.lede, .step-copy p, .faq .a { text-wrap: pretty; }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.9rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 420px at 88% 8%, rgba(14, 107, 78, 0.13), transparent 70%),
    radial-gradient(520px 380px at 4% 100%, rgba(226, 83, 31, 0.09), transparent 70%);
}
.btn .arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* hand-drawn note beside the demo */
.sheet-wrap { position: relative; }
.hand-note { position: absolute; left: -92px; top: -58px; z-index: 2; display: flex; align-items: flex-end; gap: 4px; transform: rotate(-6deg); pointer-events: none; }
.hand-note span { font-family: var(--font-hand); font-size: 25px; line-height: 0.95; font-weight: 600; color: var(--orange); text-align: right; }
.hand-note svg { width: 52px; height: 42px; margin-bottom: -26px; fill: none; stroke: var(--orange); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1180px) { .hand-note { left: 6px; top: -50px; } }
@media (max-width: 960px) { .hand-note { left: 10px; top: 8px; } .sheet-wrap { padding-top: 78px; } }

/* ---------- the idea in one picture ---------- */
.scene { background: linear-gradient(to bottom, var(--paper) 0, var(--paper) 55%, var(--paper-2) 100%); }
.scene-art { margin: 0; background: var(--card); border: 1.5px solid var(--ink); border-radius: 6px; box-shadow: 10px 10px 0 -1px var(--paper-2), 10px 10px 0 0 var(--ink); display: flex; flex-direction: column; }
.scene-art figcaption { display: flex; gap: 14px; align-items: center; padding: 10px 16px; border-bottom: 1.5px solid var(--ink); font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.scene-art figcaption .ex { margin-left: auto; color: var(--orange); border: 1px solid currentColor; padding: 2px 8px; border-radius: 3px; }
.villa { width: 100%; height: auto; padding: 8px 10px 4px; flex: 1; background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(21, 23, 26, 0.05) 31px 32px); }
.villa .ln { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.villa .ln.th { stroke-width: 1.6; }
.villa .dim-ln { fill: none; stroke: var(--ink-2); stroke-width: 1.3; stroke-linecap: round; opacity: 0; }
.villa .dim-tx { font-family: var(--font-mono); font-size: 13px; fill: var(--ink-2); letter-spacing: 0.04em; opacity: 0; }
.villa .fillin { opacity: 0; }
.villa .pin { --s: 1; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.villa .pin circle { fill: var(--orange); stroke: var(--card); stroke-width: 3; }
.villa .pin text { fill: #fff; font-family: var(--font-mono); font-size: 14px; font-weight: 500; }

/* draw-on once the scene scrolls into view */
.scene-grid.in .villa .ln { animation: sketch 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 0.16s); }
.scene-grid.in .villa .dim-ln, .scene-grid.in .villa .dim-tx { animation: fade 0.6s 1.5s forwards; }
.scene-grid.in .villa .fillin { animation: fade 0.9s 1s forwards; }
.scene-grid.in .villa .pin { animation: pop 0.5s var(--ease) both; animation-delay: calc(1.1s + var(--i) * 0.28s); transform: scale(var(--s)); }
@keyframes sketch { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { from { transform: scale(0); } 60% { transform: scale(calc(var(--s) * 1.18)); } to { transform: scale(var(--s)); } }
@keyframes slideIn { to { opacity: 1; transform: none; } }

/* four proof facts, all true of the product today */
.proof { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid var(--ink); border-radius: 6px; background: var(--mint); overflow: hidden; }
@media (max-width: 900px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proof li { padding: 22px 22px 24px; display: grid; gap: 8px; align-content: start; border-right: 1.5px solid var(--ink); }
.proof li:last-child { border-right: 0; }
@media (max-width: 900px) { .proof li:nth-child(2) { border-right: 0; } .proof li:nth-child(-n+2) { border-bottom: 1.5px solid var(--ink); } .proof li:nth-child(3) { border-right: 1.5px solid var(--ink); } }
.proof b { font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 520; letter-spacing: -0.03em; line-height: 1; color: var(--green); }
.proof span { font-size: 14.5px; color: var(--ink); line-height: 1.4; }

/* mobile join bar */
.dock { position: fixed; left: 16px; right: 16px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 60; display: none; align-items: center; justify-content: center; gap: 10px; padding: 15px 22px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; box-shadow: 0 10px 30px rgba(21, 23, 26, 0.35); transform: translateY(160%); transition: transform 0.4s var(--ease); }
.dock .arr { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dock.show { transform: none; }
@media (max-width: 820px) { .dock { display: flex; } }

@media (prefers-reduced-motion: reduce) {
  .villa .ln { stroke-dashoffset: 0; }
  .villa .dim-ln, .villa .dim-tx, .villa .fillin { opacity: 1; }
  .villa .pin { transform: scale(var(--s)); }
  .dock { transition: none; }
}

@media (max-width: 620px) {
  .villa .pin { --s: 1.75; }
  .villa .dim-tx { font-size: 25px; }
  .scene-art figcaption span:nth-child(2) { display: none; }
}

/* ---------- scene: callout boxes on the drawing ---------- */
.scene-grid { display: block; }
.scene-art { overflow: visible; }
.scene-stage { position: relative; }
.villa { display: block; padding: 0; background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(21, 23, 26, 0.05) 31px 32px); }
.villa .lead { fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.scene-grid.in .villa .lead { animation: sketch 0.7s var(--ease) forwards; animation-delay: calc(0.9s + var(--i) * 0.25s); }

.callouts { list-style: none; margin: 0; padding: 14px 16px 6px; display: grid; gap: 10px; }
.callouts li { position: relative; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 6px; padding: 14px 14px 12px 50px; display: grid; gap: 2px; box-shadow: 4px 4px 0 rgba(21, 23, 26, 0.14); opacity: 0; transform: translateY(10px); }
.callouts li b { position: absolute; left: 12px; top: 12px; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 500; }
.callouts h3 { font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.15; }
.callouts .tg { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.callouts .am { font-family: var(--font-mono); font-size: 16px; font-weight: 500; margin-top: 6px; }
.callouts .vt { font-family: var(--font-mono); font-size: 11px; color: var(--green); }
.scene-grid.in .callouts li { animation: boxIn 0.55s var(--ease) forwards; animation-delay: calc(1s + var(--i) * 0.25s); }
@keyframes boxIn { to { opacity: 1; transform: none; } }

@media (min-width: 1000px) {
  .villa .leads { display: block; }
  .callouts { position: absolute; inset: 0; padding: 0; display: block; pointer-events: none; }
  .callouts li { position: absolute; top: 2.6%; left: calc((var(--cx) - 85) * 0.1%); width: 17%; padding: 12px 12px 10px 12px; pointer-events: auto; }
  .callouts li b { position: static; width: 24px; height: 24px; margin-bottom: 4px; }
}
@media (max-width: 999px) { .villa .leads { display: none; } }

.scene-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; align-items: center; padding: 16px 18px 18px; border-top: 1.5px solid var(--ink); background: var(--paper-2); }
.scene-foot .tot { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.scene-foot .tot b { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: -0.02em; text-transform: none; font-weight: 560; color: var(--green); }
.scene-foot .tot small { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: none; }
.scene-foot .meter-bar { height: 10px; border: 1.5px solid var(--ink); border-radius: 5px; background: var(--card); overflow: hidden; }
.scene-foot .meter-bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width 1.4s 2.4s var(--ease); }
.scene-grid.in .scene-foot .meter-bar i { width: 77%; }
.scene-foot p { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 620px) { .scene-foot { grid-template-columns: 1fr; } }

.proof b em { font-style: italic; font-weight: 420; font-size: 0.55em; letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  .villa .lead { stroke-dashoffset: 0; }
  .callouts li { opacity: 1; transform: none; }
  .scene-foot .meter-bar i { width: 77%; transition: none; }
}
