/* FP Consult — editorial marketing site
   Design language: the ledger. Paper white, blue-black ink.
   Blue = verified / action. Red ink is reserved for discrepancies only.
   Accounting rules: single hairline above a sum, double rule beneath a proven total. */

:root {
  --paper: #FBFAF6;
  --paper-tint: #F4F2EA;
  --ink: #1C1E22;
  --ink-soft: #575C64;
  --ink-faint: #90948C;
  --rule: #DCD8CC;
  --rule-mid: #B8B3A3;
  --blue: #2A4A8B;
  --blue-deep: #1E3766;
  --red: #A63A2E;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', Consolas, 'Courier New', monospace;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.68;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--blue); color: var(--paper); }

a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 246, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}

.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.wordmark .amp { color: var(--blue); }

.masthead nav {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.masthead nav a,
.masthead nav summary {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
}
.masthead nav a:hover,
.masthead nav summary:hover { color: var(--ink); }

/* scroll spy: the section currently in view gets a blue underline */
.masthead nav .navlink {
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.masthead nav .navlink.is-current {
  color: var(--ink);
  border-bottom-color: var(--blue);
}

.lang {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.lang a { color: var(--ink-faint); text-decoration: none; padding: 0 0.1em; }
.lang a:hover { color: var(--ink); }
.lang .active { color: var(--ink); font-weight: 500; border-bottom: 2px solid var(--blue); }

/* offerings dropdown — native <details>, so it opens with JS off and is keyboard-accessible */
.navmenu { position: relative; }
.navmenu > summary {
  display: inline-block;
  list-style: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
.navmenu > summary::-webkit-details-marker { display: none; }
.navmenu > summary::after {
  content: "\25BE"; /* ▾ */
  display: inline-block;
  margin-left: 0.4em;
  font-size: 0.9em;
  color: var(--ink-faint);
  transition: transform 0.15s ease;
}
.navmenu[open] > summary { color: var(--ink); border-bottom-color: var(--blue); }
.navmenu[open] > summary::after { transform: rotate(180deg); color: var(--ink); }

.navmenu-panel {
  position: absolute;
  top: calc(100% + 0.85rem);
  right: 0;
  min-width: 17rem;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule-mid);
  z-index: 30;
}
.navmenu-panel a {
  padding: 0.7rem 1rem;
  color: var(--ink-soft);
  white-space: nowrap;
  border-bottom: 1px solid var(--rule);
  border-left: 2px solid transparent;
}
.navmenu-panel a:last-child { border-bottom: none; }
.navmenu-panel a:hover { color: var(--ink); background: var(--paper-tint); }
.navmenu-panel a[aria-current="page"] { color: var(--ink); border-left-color: var(--blue); }

@media (max-width: 720px) {
  .masthead nav > .navlink { display: none; } /* keep the offerings dropdown reachable on mobile */
}

/* ---------- hero ---------- */

.hero { padding-top: clamp(3.5rem, 9vh, 6.5rem); padding-bottom: clamp(3rem, 7vh, 5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}
.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: var(--ink);
  flex: none;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.55rem);
  line-height: 1.13;
  font-weight: 480;
  letter-spacing: -0.012em;
  font-variation-settings: 'opsz' 60;
  text-wrap: balance;
  margin-bottom: 1.6rem;
}
h1 em {
  font-style: italic;
  font-weight: 480;
  color: var(--blue);
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 2.2rem;
}

.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85em 1.7em;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); color: var(--paper); }

/* ---------- the ledger vignette ---------- */

.ledger {
  font-family: var(--mono);
  font-size: 0.82rem;
  border: 1px solid var(--rule-mid);
  background: var(--paper-tint);
  padding: 1.5rem 1.4rem 1.3rem;
  margin-top: 0.4rem;
}

.ledger-label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.2rem;
}

.lrow {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.28rem 0;
  color: var(--ink-soft);
}
.lrow .dots {
  flex: 1;
  border-bottom: 1px dotted var(--rule-mid);
  transform: translateY(-0.28em);
}
.lrow .num { font-variant-numeric: tabular-nums; color: var(--ink); }

.lrow-sum {
  border-top: 1px solid var(--ink);
  margin-top: 0.45rem;
  padding-top: 0.55rem;
  color: var(--ink);
}
.lrow-sum + .lrow-sum { border-top: 0; margin-top: 0; padding-top: 0.28rem; }

.lrow-proven {
  border-top: 3px double var(--ink);
  margin-top: 0.55rem;
  padding-top: 0.7rem;
  color: var(--blue);
  font-weight: 500;
}
.lrow-proven .tick { font-weight: 500; }

.ledger-note {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* hero ledger load animation — only when JS is present (html.js) */
@media (prefers-reduced-motion: no-preference) {
  html.js .ledger[data-animate] .lrow {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  html.js .ledger[data-animate].is-run .lrow { opacity: 1; transform: none; }
  html.js .ledger[data-animate].is-run .lrow:nth-child(2) { transition-delay: 0.15s; }
  html.js .ledger[data-animate].is-run .lrow:nth-child(3) { transition-delay: 0.3s; }
  html.js .ledger[data-animate].is-run .lrow:nth-child(4) { transition-delay: 0.45s; }
  html.js .ledger[data-animate].is-run .lrow:nth-child(5) { transition-delay: 0.7s; }
  html.js .ledger[data-animate].is-run .lrow:nth-child(6) { transition-delay: 0.9s; }
  html.js .ledger[data-animate].is-run .lrow:nth-child(7) { transition-delay: 1.1s; }
  html.js .ledger[data-animate].is-run .lrow-proven { transition-delay: 1.5s; }
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .ledger { max-width: 30rem; }
}

/* ---------- sections ---------- */

section { padding: clamp(3rem, 8vh, 5.5rem) 0; border-top: 1px solid var(--rule); }
section.no-rule { border-top: 0; }

h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  font-weight: 520;
  letter-spacing: -0.008em;
  font-variation-settings: 'opsz' 40;
  text-wrap: balance;
  max-width: 26em;
  margin-bottom: 1.4rem;
}

.section-intro {
  max-width: var(--measure);
  color: var(--ink-soft);
  margin-bottom: 2.4rem;
}

/* the closing "proven statement" device: double-ruled like an audited total */
.proven-statement {
  max-width: 44em;
  margin-top: 2.8rem;
  padding: 1.4rem 0 1.5rem;
  border-top: 1px solid var(--ink);
  border-bottom: 3px double var(--ink);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.45;
  font-style: italic;
  font-weight: 460;
}
.proven-statement strong { font-style: normal; font-weight: 600; }

/* ---------- symptoms (the pile) ---------- */

.symptoms {
  list-style: none;
  columns: 2;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 66rem;
}
.symptoms li {
  break-inside: avoid;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
}
.symptoms li strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
@media (max-width: 760px) { .symptoms { columns: 1; } }

/* ---------- how-it-works stages use .models; principles use .principles ---------- */

/* ---------- what we build: example systems ---------- */

.examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.example {
  background: var(--paper);
  padding: 1.5rem 1.4rem 1.7rem;
}
.example.live { background: var(--paper-tint); }
.example .k {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}
.example h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.example p { font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); }
.example p strong { color: var(--ink); }
.tag-live {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--blue);
  padding: 0.3em 0.7em;
  margin-bottom: 0.9rem;
}
@media (max-width: 900px) { .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .examples { grid-template-columns: minmax(0, 1fr); } }

/* ---------- proof ---------- */

.proof-story { max-width: var(--measure); color: var(--ink-soft); }
.proof-story p + p { margin-top: 1.1rem; }
.proof-story strong { color: var(--ink); }

/* red ink: reserved for the errors we caught */
.inkred { color: var(--red); font-family: var(--mono); font-size: 0.92em; }

.outcomes {
  list-style: none;
  margin-top: 3rem;
  columns: 2;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 66rem;
}
.outcomes li {
  break-inside: avoid;
  display: flex;
  gap: 0.8rem;
  padding: 0.55rem 0;
  color: var(--ink-soft);
}
.outcomes li::before {
  content: "✓";
  font-family: var(--mono);
  color: var(--blue);
  font-weight: 500;
  flex: none;
}
.outcomes li strong { color: var(--ink); }
@media (max-width: 760px) { .outcomes { columns: 1; } }

/* ---------- principles ---------- */

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4.5rem);
  max-width: 66rem;
}
.principle { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.principle h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.5rem; }
.principle p { color: var(--ink-soft); font-size: 0.99rem; }
@media (max-width: 760px) { .principles { grid-template-columns: minmax(0, 1fr); } }

.playbook-note {
  margin-top: 2.4rem;
  max-width: 46em;
  color: var(--ink-soft);
}
.playbook-note strong { color: var(--ink); }

/* ---------- fit / not fit ---------- */

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 66rem;
}
.fit-col h3 {
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding-bottom: 0.8rem;
  margin-bottom: 0.2rem;
  border-bottom: 3px double var(--ink);
}
.fit-col.no h3 { border-bottom: 1px solid var(--rule-mid); color: var(--ink-soft); }
.fit-col ul { list-style: none; }
.fit-col li { padding: 0.85rem 0; border-top: 1px solid var(--rule); color: var(--ink-soft); }
.fit-col li:first-child { border-top: 0; }
.fit-col li strong { color: var(--ink); }
.fit-col .honest { font-style: italic; color: var(--ink); }
@media (max-width: 760px) { .fit-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- fair questions ---------- */

.questions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(2rem, 5vw, 4.5rem);
  max-width: 66rem;
}
.qa { padding: 1.5rem 0; border-top: 1px solid var(--rule); }
.qa h3 { font-size: 1.1rem; font-weight: 600; font-style: italic; margin-bottom: 0.5rem; }
.qa h3::before { content: "«"; color: var(--ink-faint); margin-right: 0.15em; }
.qa h3::after { content: "»"; color: var(--ink-faint); margin-left: 0.15em; }
.qa p { color: var(--ink-soft); font-size: 0.99rem; }
.qa p strong { color: var(--ink); }
@media (max-width: 760px) { .questions { grid-template-columns: minmax(0, 1fr); } }

/* ---------- engagement ---------- */

.models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  max-width: 66rem;
}
.model { background: var(--paper); padding: 1.5rem 1.4rem 1.7rem; }
.model h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 0.5rem; }

/* offering cards that lead to their own page: the whole card is the link */
a.model {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.18s ease;
}
a.model:hover { background: var(--paper-tint); }
.model-more {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-top: 1.1rem;
}
.model-more::after { content: " \25B8"; }
a.model:hover .model-more { text-decoration: underline; text-underline-offset: 3px; }
.model .k {
  display: block;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}
.model p { font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 760px) { .models { grid-template-columns: minmax(0, 1fr); } }

/* ---------- contact / footer ---------- */

.contact { border-top: 1px solid var(--ink); }
.contact h2 { max-width: 20em; }
.contact .section-intro { margin-bottom: 2rem; }

.contact-email {
  font-family: var(--mono);
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.contact-email:hover { color: var(--blue-deep); }

footer {
  border-top: 1px solid var(--rule);
  padding: 1.6rem 0 2.2rem;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}
footer a { color: var(--ink-faint); }
footer a:hover { color: var(--ink); }

/* ---------- scroll reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  html.js .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- legal pages (Impressum / Datenschutz) ---------- */

.legal { max-width: 46rem; padding: clamp(2.5rem, 6vh, 4rem) 0 clamp(3rem, 8vh, 5rem); }
.legal h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 520;
  margin-bottom: 0.6rem;
}
.legal .stand { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-faint); margin-bottom: 2.2rem; }
.legal h2 {
  font-size: 1.22rem;
  font-weight: 600;
  margin: 2.4rem 0 0.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  max-width: none;
}
.legal p, .legal ul { color: var(--ink-soft); margin-bottom: 0.9rem; }
.legal ul { padding-left: 1.3rem; }
.legal li { margin-bottom: 0.35rem; }
.legal strong { color: var(--ink); }

/* placeholder marker — must be impossible to overlook before launch */
.ph {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--ink-soft);
  background: var(--paper-tint);
  border: 1px dashed var(--rule-mid);
  padding: 0.05em 0.4em;
  white-space: normal;
}

.draft-note {
  border: 1px dashed var(--rule-mid);
  background: var(--paper-tint);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding: 0.9rem 1.1rem;
  margin-bottom: 2.4rem;
}

/* ================================================================
   Offering demo — process automation: the intake pipeline
   Self-contained module (safe to lift onto its own page).
   The static, final state renders with NO JavaScript; site.js only
   adds the staged left-to-right reveal. Ledger grammar throughout:
   hairlines, mono figures, blue = posted/verified, red = caught.
   ================================================================ */

.demo-hero { padding-bottom: clamp(2.5rem, 6vh, 4rem); }
.demo-hero .lede { max-width: 60ch; }

.pipe {
  border: 1px solid var(--rule-mid);
  background: var(--paper-tint);
  padding: 1.6rem 1.5rem 1.7rem;
  margin-top: 2.6rem;
}
.pipe-label {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.7rem;
}

.pipe-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.pipe-stage {
  position: relative;
  padding: 0 1rem;
  border-left: 1px solid var(--rule);
}
.pipe-stage:first-child { border-left: 0; padding-left: 0; }
/* flow direction: a caret sits on the divider between stations */
.pipe-stage:not(:first-child)::before {
  content: "\25B8"; /* ▸ */
  position: absolute;
  left: -0.5em;
  top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--rule-mid);
  background: var(--paper-tint);
  padding: 0.1em 0;
  line-height: 1;
}

.pipe-k {
  display: block;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.9rem;
}
.pipe-card {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.pipe-ico { color: var(--ink); }
.pipe-raw { color: var(--ink-faint); font-size: 0.68rem; display: block; }
.pipe-raw + .pipe-raw { margin-top: 0.15rem; }

.pipe-row { display: flex; align-items: baseline; gap: 0.4rem; padding: 0.18rem 0; }
.pipe-row .dots {
  flex: 1;
  border-bottom: 1px dotted var(--rule-mid);
  transform: translateY(-0.28em);
}
.pipe-row .num { color: var(--ink); font-variant-numeric: tabular-nums; }
.pipe-row .num.inkred { color: var(--red); }

.pipe-flag {
  margin-top: 0.7rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--rule);
  font-size: 0.66rem;
  line-height: 1.45;
  color: var(--red);
}

.pipe-card-proven {
  border-top: 3px double var(--ink);
  padding-top: 0.7rem;
  margin-top: 0.2rem;
  color: var(--blue);
}
.pipe-tick { font-weight: 600; margin-right: 0.35em; }
.pipe-posted { color: var(--blue); }

/* Animated states are armed by assets/demos.js (anime.js) at runtime, never in
   CSS — so with JS off, reduced motion, or a missing vendor file, the finished
   diagram renders as-is. */

@media (max-width: 760px) {
  .pipe-track { grid-template-columns: minmax(0, 1fr); }
  .pipe-stage {
    border-left: 0;
    border-top: 1px solid var(--rule);
    padding: 1rem 0 0.4rem;
  }
  .pipe-stage:first-child { border-top: 0; padding-top: 0; }
  .pipe-stage:not(:first-child)::before {
    content: "\25BE"; /* ▾ */
    left: 0;
    top: -0.7em;
  }
}

/* ================================================================
   Offering demo — visualisation: the mile before the chart
   Three acts: the sheet as it arrives → reconciled → the chart.
   Red = defects we caught; blue = verified. Final states are the
   default render; demos.js arms and animates them.
   ================================================================ */

.acts { max-width: 42rem; }
.act { margin-top: 3rem; }
.act:first-child { margin-top: 0; }
.act-k {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}
.act-note {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 54ch;
  margin-bottom: 1.2rem;
}

.sheet {
  border: 1px solid var(--rule-mid);
  background: var(--paper-tint);
  padding: 1.2rem 1.3rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
}
.sheet-title {
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.srow {
  display: grid;
  grid-template-columns: 11ch minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.3rem 0;
  color: var(--ink-soft);
}
.srow .num {
  text-align: right;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  min-width: 7ch;
}
.srow .num .tick { color: var(--blue); }
/* the auditor's pencil note under an offending row */
.snote {
  font-size: 0.66rem;
  color: var(--red);
  text-align: right;
  padding: 0 0 0.3rem;
}
.snote-blue { color: var(--blue); }
.sfoot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: baseline;
  border-top: 1px solid var(--ink);
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  color: var(--ink);
}
.sfoot .num { text-align: right; font-variant-numeric: tabular-nums; }
.sfoot.proven {
  border-top: 3px double var(--ink);
  color: var(--blue);
  font-weight: 500;
}
.sheet-remark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  margin-top: 1rem;
  padding-top: 0.8rem;
}

.chartfig {
  border: 1px solid var(--rule-mid);
  background: var(--paper-tint);
  padding: 1.2rem 1.3rem 1.1rem;
}
.chartfig svg { display: block; width: 100%; height: auto; }
.chartfig text {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  fill: var(--ink-soft);
}
.chartfig .cnum { fill: var(--ink); font-variant-numeric: tabular-nums; }
.chartfig .axis { stroke: var(--ink); stroke-width: 1; fill: none; }
.chartfig .bar {
  stroke: var(--blue);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.chart-total {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue);
  border-top: 3px double var(--ink);
  margin-top: 1rem;
  padding-top: 0.6rem;
}
.chart-total .dots { flex: 1; border-bottom: 1px dotted var(--rule-mid); transform: translateY(-0.28em); }
.chart-total .num { font-variant-numeric: tabular-nums; }

@media (max-width: 560px) {
  .sheet { font-size: 0.7rem; padding: 1rem 0.9rem 0.9rem; }
  .srow { grid-template-columns: 9ch minmax(0, 1fr) auto; gap: 0.5rem; }
}

/* ================================================================
   Offering demo — local AI: drawing № 01, "privacy as architecture"
   An architect's drawing that draws itself: the building boundary,
   the model and documents inside, the cloud outside — optional.
   ================================================================ */

.drawing {
  border: 1px solid var(--rule-mid);
  background: var(--paper-tint);
  padding: 1.3rem 1.3rem 1.1rem;
  max-width: 46rem;
}
.drawing svg { display: block; width: 100%; height: auto; }
.drawing text {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  fill: var(--ink-soft);
}
.drawing .t-strong { fill: var(--ink); font-weight: 500; }
.drawing .t-blue { fill: var(--blue); }
.drawing .t-faint { fill: var(--ink-faint); font-size: 9.5px; }
.drawing .d-wall { stroke: var(--ink); stroke-width: 1.5; fill: none; }
.drawing .d-box { stroke: var(--ink); stroke-width: 1; fill: var(--paper); }
.drawing .d-line { stroke: var(--ink-soft); stroke-width: 1; fill: none; }
.drawing .d-route { stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 3 4; fill: none; }
.drawing .d-route-blue { stroke: var(--blue); stroke-width: 1.2; stroke-dasharray: 3 4; fill: none; }
.drawing .d-cloud { stroke: var(--ink-faint); stroke-width: 1; stroke-dasharray: 3 4; fill: none; }
.drawing .d-title rect { stroke: var(--rule-mid); stroke-width: 1; fill: var(--paper); }

/* shared caption beneath a demo figure */
.fig-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  margin-top: 1.1rem;
  padding-top: 0.9rem;
}

/* ---------- print ---------- */

@media print {
  .masthead, .cta-row, footer .lang { display: none; }
  body { font-size: 10.5pt; }
}
