/* Direction B — Ledger: an annotated, warm editorial record. */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f3eee2;
  --paper: #fffaf0;
  --paper-deep: #e9dfcd;
  --ink: #29231d;
  --muted: #695d4e;
  --line: #c4b7a2;
  --accent: #8b312d;
  --accent-strong: #6f231f;
  --accent-ink: #ffffff;
  --moss: #4e6848;
  --error: #982922;
  --max: 74rem;
  --reading: 46rem;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1814;
    --paper: #25211b;
    --paper-deep: #302a22;
    --ink: #f4ecdc;
    --muted: #c2b6a3;
    --line: #51483a;
    --accent: #f08b7e;
    --accent-strong: #ffaaa0;
    --accent-ink: #1b1814;
    --moss: #a9c39d;
    --error: #ffaaa0;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-width: 0;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--font-body);
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-strong); text-decoration-thickness: 0.07em; text-underline-offset: 0.19em; }
a:hover { text-decoration-thickness: 0.13em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 0.2rem solid var(--moss);
  outline-offset: 0.22rem;
}
h1, h2, h3 {
  margin: 0 0 0.65em;
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { font-size: clamp(3.3rem, 8.5vw, 7rem); }
h2 { font-size: clamp(2.25rem, 4.7vw, 3.8rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.12; }
p, li { text-wrap: pretty; }
p { margin: 0 0 1.15rem; }
strong { font-weight: 740; }

.skip-link {
  position: fixed;
  z-index: 30;
  top: 0.8rem;
  left: 0.8rem;
  translate: 0 -180%;
  padding: 0.65rem 1rem;
  background: var(--accent-strong);
  color: var(--accent-ink);
  font-weight: 700;
}
.skip-link:focus { translate: 0; }

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 2rem;
  width: min(100% - 3rem, var(--max));
  margin: 0 auto;
  padding: 1.7rem 0 1.25rem;
  border-bottom: 2px solid var(--ink);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark__mark { width: 2.3rem; height: 2.3rem; }
.wordmark__name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 640; }
.site-nav ul {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a, .lang-switch { color: var(--ink); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.site-nav a { padding: 0.32rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-strong); text-decoration: underline; text-decoration-thickness: 0.14rem; }
.lang-switch { padding: 0.35rem 0.65rem; border-left: 0.2rem solid var(--accent); }

main { width: min(100% - 3rem, var(--max)); margin: 0 auto; }
.hero {
  position: relative;
  margin: 2rem 0 0;
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1.5rem, 7vw, 6rem) clamp(4rem, 7vw, 6rem);
  border: 1px solid var(--line);
  border-top: 0.55rem solid var(--accent);
  background: var(--paper);
}
.hero::before {
  content: "“" / "";
  position: absolute;
  top: -0.15em;
  right: 0.08em;
  color: var(--paper-deep);
  font: 300 clamp(10rem, 27vw, 23rem)/1 var(--font-display);
  pointer-events: none;
}
.hero > * { position: relative; max-width: 54rem; }
.hero h1 { max-width: 61rem; font-style: italic; }
.hero .lede { max-width: 47rem; }
.eyebrow {
  margin-bottom: 1.6rem;
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}
.lede { color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; }

.page-intro {
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 2px solid var(--ink);
}
.page-intro h1 { max-width: 69rem; font-style: italic; }
.page-intro .lede { max-width: 50rem; }

.section {
  display: grid;
  grid-template-columns: minmax(11rem, 0.75fr) minmax(0, 2.25fr);
  column-gap: clamp(2rem, 7vw, 6rem);
  row-gap: 0;
  padding: clamp(4rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}
.section, .site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 48rem;
}
.hero + .section, .page-intro + .section { border-top: 0; }
.section > h2 {
  /* Span every row, so the right-hand column stacks on its own instead of waiting
     for a tall heading: one auto row per block would otherwise be as tall as the h2. */
  grid-column: 1;
  grid-row: 1 / span 20;
  align-self: start;
  min-width: 0;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  hyphens: auto;
  overflow-wrap: break-word;
}
.section > :not(h2) { grid-column: 2; }
.section > p, .section > ul, .section > ol { max-width: var(--reading); }
.prose { max-width: var(--reading); }

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.74rem 1.2rem;
  border: 2px solid var(--accent-strong);
  background: var(--accent-strong);
  color: var(--accent-ink);
  font: 720 0.96rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.button--secondary { background: transparent; color: var(--accent-strong); }

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 2.5rem;
  width: 100%;
  counter-reset: ledger-card;
}
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.8rem; }
.card {
  position: relative;
  min-width: 0;
  padding: 1.65rem 0 1.85rem 2.4rem;
  border-top: 1px solid var(--line);
  counter-increment: ledger-card;
}
.card::before {
  content: counter(ledger-card, decimal-leading-zero);
  position: absolute;
  top: 1.85rem;
  left: 0;
  color: var(--accent-strong);
  font: 700 0.72rem/1 var(--font-body);
}
.card h2, .card h3 { font-size: clamp(1.55rem, 2.4vw, 2.1rem); }
.card p:last-child { margin-bottom: 0; color: var(--muted); }
.card a { color: var(--ink); text-decoration-color: var(--accent); }

.checklist, .steps { max-width: var(--reading); margin: 0; padding: 0; list-style: none; }
.checklist li, .steps li { position: relative; padding: 1.2rem 0 1.2rem 2.5rem; border-top: 1px solid var(--line); }
.checklist li::before {
  content: "";
  position: absolute;
  top: 1.72rem;
  left: 0.32rem;
  width: 0.48rem;
  height: 0.48rem;
  background: var(--accent-strong);
}
.steps { counter-reset: ledger-step; }
.steps li { counter-increment: ledger-step; padding-left: 3.2rem; }
.steps li::before {
  content: counter(ledger-step, decimal-leading-zero) ".";
  position: absolute;
  top: 0.96rem;
  left: 0;
  color: var(--accent-strong);
  font: italic 560 1.5rem/1 var(--font-display);
}

.cta {
  display: block;
  margin: 1rem 0 clamp(4rem, 8vw, 7rem);
  padding: clamp(2.5rem, 6vw, 5rem);
  border: 0;
  background: var(--accent-strong);
  color: var(--accent-ink);
}
.cta > * { max-width: 48rem; }
.cta h2, .cta a:not(.button) { color: var(--accent-ink); }
.cta .button { border-color: var(--accent-ink); background: var(--accent-ink); color: var(--accent-strong); }

.table-wrap { max-width: 100%; overflow-x: auto; }
table.platforms { width: 100%; border-collapse: collapse; }
.platforms th, .platforms td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.platforms th { font-family: var(--font-display); font-size: 1.2rem; }
.platforms .vendor { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.55rem 1.5rem; max-width: var(--reading); }
.facts dt { color: var(--accent-strong); font-weight: 760; }
.facts dd { margin: 0; }
.founder { display: grid; grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr); gap: 2.5rem; }
.founder__role, .small { color: var(--muted); font-size: 0.9rem; }

.contact { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(14rem, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.form .field { margin-bottom: 1.25rem; }
.form label { display: block; margin-bottom: 0.35rem; font-weight: 720; }
.form input, .form textarea {
  width: 100%;
  padding: 0.78rem 0.82rem;
  border: 1px solid var(--muted);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.form textarea { resize: vertical; }
.form [aria-invalid="true"] { border: 2px solid var(--error); }
.field__error, .form__alert { color: var(--error); font-weight: 720; }
.form__ok { padding: 1rem; border-left: 0.3rem solid var(--moss); background: var(--paper); font-weight: 720; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Round B page systems: each family is a variation on one annotated ledger. */
.ledger-index {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  counter-reset: ledger-index;
  border-bottom: 2px solid var(--ink);
}
.ledger-index .card {
  display: grid;
  grid-template-columns: 3.5rem minmax(14rem, 0.9fr) minmax(0, 1.3fr);
  gap: 1rem 2rem;
  align-items: baseline;
  padding: 1.7rem 0;
  counter-increment: ledger-index;
}
.ledger-index .card::before {
  position: static;
  content: counter(ledger-index, decimal-leading-zero);
  color: var(--accent-strong);
  font: italic 600 1.25rem/1 var(--font-display);
}
.ledger-index .card h2 { margin: 0; }
.ledger-index .card p { margin: 0; }

.service-intro {
  position: relative;
  padding-right: clamp(0rem, 9vw, 8rem);
}
.service-intro::after {
  content: "■" / "";
  position: absolute;
  right: 0;
  bottom: 4.8rem;
  color: var(--accent-strong);
  font-size: 1rem;
}
.service-block > :not(h2) { min-width: 0; }

.industry-dossiers {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
  counter-reset: dossier;
}
.industry-dossiers .card {
  min-height: 18rem;
  padding: 5.5rem 1.5rem 1.6rem;
  border: 1px solid var(--line);
  background: var(--paper);
  counter-increment: dossier;
}
.industry-dossiers .card::before {
  content: counter(dossier, decimal-leading-zero);
  top: 1.5rem;
  left: 1.5rem;
  color: var(--accent-strong);
  font: italic 600 2.2rem/1 var(--font-display);
}
main:has(> .industry-intro) .care-note {
  position: relative;
  align-self: start;
  padding: clamp(1.6rem, 4vw, 2.7rem);
  border-top: 0.35rem solid var(--moss);
  background: var(--paper);
}
main:has(> .industry-intro) .care-note > :last-child { margin-bottom: 0; }

.platform-ledger { grid-column: 1 / -1; }
.platforms tbody { counter-reset: platform-row; }
.platforms tbody tr { counter-increment: platform-row; }
.platforms tbody th { position: relative; padding-left: 3.6rem; }
.platforms tbody th::before {
  content: counter(platform-row, decimal-leading-zero);
  position: absolute;
  top: 1.15rem;
  left: 1rem;
  color: var(--accent-strong);
  font: italic 600 1rem/1 var(--font-display);
}
.cell-label { display: none; }

.process-ledger {
  grid-column: 1 / -1;
  display: grid;
  max-width: none;
  border-bottom: 2px solid var(--ink);
}
.process-ledger li {
  display: grid;
  grid-template-columns: minmax(7rem, 0.45fr) minmax(0, 2fr);
  min-height: 8rem;
  align-items: center;
  padding: 1.7rem 0 1.7rem clamp(5rem, 10vw, 9rem);
}
.process-ledger li::before {
  top: 50%;
  left: 0;
  translate: 0 -50%;
  font-size: clamp(3.3rem, 7vw, 6rem);
  color: var(--paper-deep);
}
.process-ledger strong {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 560;
}

.founder-profile {
  grid-template-columns: minmax(0, var(--reading));
  justify-content: space-between;
}
.founder-profile > img {
  grid-column: 2;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-top: 0.35rem solid var(--accent);
}
.founder-profile:has(> img) { grid-template-columns: minmax(0, 1.7fr) minmax(14rem, 0.8fr); }
.founder-profile > .founder__text { grid-column: 1; }
.founder__text {
  padding-left: clamp(1.3rem, 4vw, 3.2rem);
  border-left: 0.3rem solid var(--moss);
}

.partners-intro,
.policy-intro { position: relative; }
.partners-intro::after,
.policy-intro::after {
  content: "§" / "";
  position: absolute;
  right: 0;
  bottom: 3rem;
  color: var(--paper-deep);
  font: italic 500 clamp(4rem, 9vw, 8rem)/1 var(--font-display);
}
main:has(> .partners-intro) { counter-reset: disclosure-entry; }
main:has(> .partners-intro) > .section { counter-increment: disclosure-entry; }
main:has(> .partners-intro) > .section > h2::before {
  content: counter(disclosure-entry, decimal-leading-zero) "." / "";
  display: block;
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font: italic 600 1rem/1 var(--font-display);
}
main:has(> .partners-intro) > .section:nth-child(2) {
  margin-top: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-top: 0.45rem solid var(--accent);
  background: var(--paper);
}

.contact-ledger { grid-column: 1 / -1; }
/* The contact grid places its own two columns: without these, `.section > :not(h2)` pushes the
   form and the side note both into column 2 (the narrow one), leaving column 1 empty. */
.contact > .contact__form { grid-column: 1; }
.contact > .contact__direct { grid-column: 2; }
.contact__form {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-top: 0.45rem solid var(--accent);
  background: var(--paper);
}
.contact__direct {
  align-self: start;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 0.3rem solid var(--moss);
}
.form__alert {
  padding: 0.85rem 1rem;
  border-left: 0.3rem solid var(--error);
  background: color-mix(in srgb, var(--error) 8%, var(--paper));
}
.field__error { margin: 0.35rem 0 0; font-size: 0.9rem; }

/* «Spør oss» (app/spor.php): the questions, the answer and the form share the contact panel. */
.field__hint { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9rem; }
.spor__you { margin: 0 0 0.75rem; color: var(--muted); }
.spor__answer {
  margin: 0 0 1.75rem;
  padding: 1rem 1.15rem;
  border-left: 0.3rem solid var(--moss);
  background: color-mix(in srgb, var(--moss) 8%, var(--paper));
}
.spor__answer > :first-child { margin-top: 0; }
.spor__answer > :last-child { margin-bottom: 0; }
.spor__answer ul { margin: 0.5rem 0 0.75rem; padding-left: 1.25rem; }
.spor__sources { color: var(--muted); font-size: 0.9rem; }
.spor__restart { margin-left: 1rem; }

.policy-sheet {
  grid-column: 1 / -1;
  display: block;
  max-width: 70ch;
  margin-inline: auto;
  padding-inline: clamp(0rem, 5vw, 3rem);
}
.policy-sheet h2 {
  margin-top: 2.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}
.policy-sheet h2:first-child { margin-top: 0; }

.not-found-intro {
  position: relative;
  min-height: 32rem;
  padding-right: clamp(0rem, 28vw, 24rem);
}
.not-found-intro::after {
  content: "404" / "";
  position: absolute;
  right: 0;
  bottom: 1.8rem;
  color: var(--paper-deep);
  font: italic 500 clamp(7rem, 20vw, 15rem)/0.8 var(--font-display);
  letter-spacing: -0.08em;
}
.print-url { display: none; }

.site-footer {
  width: min(100% - 3rem, var(--max));
  margin: 0 auto;
  padding: 4rem 0 2rem;
  border-top: 2px solid var(--ink);
  font-size: 0.92rem;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer-col__title { font: 700 0.82rem/1.2 var(--font-body); text-transform: uppercase; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: var(--ink); }
.disclosure { max-width: 62rem; margin: 0; padding: 1.3rem 1.5rem; border-left: 0.3rem solid var(--moss); background: var(--paper); color: var(--ink); }
.legal-line { margin: 1.5rem 0 0; color: var(--muted); }

/* Evidence + Kongsberg: source trails, engineering registers and quiet precision. */
[hidden] { display: none !important; }
select:focus-visible { outline: 0.2rem solid var(--moss); outline-offset: 0.22rem; }
.form select {
  width: 100%;
  padding: 0.78rem 2.7rem 0.78rem 0.82rem;
  border: 1px solid var(--muted);
  border-radius: 0;
  background-color: var(--paper);
  color: var(--ink);
  font: inherit;
}
.form select[aria-invalid="true"] { border: 2px solid var(--error); }

.hero--evidence {
  display: grid;
  min-height: clamp(42rem, 68vw, 58rem);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}
.hero--evidence::before { content: none; }
.hero--evidence::after {
  content: "";
  z-index: 1;
  grid-area: 1 / 1;
  background: linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 94%, transparent) 43%, color-mix(in srgb, var(--paper) 22%, transparent) 72%, transparent 100%);
  pointer-events: none;
}
.hero__copy {
  z-index: 2;
  grid-area: 1 / 1;
  align-self: end;
  min-width: 0;
  width: 100%;
  max-width: 58rem;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.5rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
}
.hero__copy h1 { max-width: 50rem; }
.hero__visual { grid-area: 1 / 1; min-width: 0; width: 100%; height: 100%; margin: 0; }
.hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.evidence-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-right: 1px solid var(--line);
  border-bottom: 2px solid var(--ink);
  border-left: 1px solid var(--line);
  background: var(--paper);
}
.evidence-strip p {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.25rem 0.7rem;
  margin: 0;
  padding: 1.35rem clamp(1rem, 2vw, 1.8rem);
  border-right: 1px solid var(--line);
}
.evidence-strip p:last-child { border-right: 0; }
.evidence-strip span { grid-row: 1 / 3; color: var(--accent-strong); font: italic 600 1rem/1.3 var(--font-display); }
.evidence-strip strong { font-size: 0.92rem; }
.evidence-strip small { color: var(--muted); line-height: 1.4; }

.work-intro, .case-intro { position: relative; }
.work-intro::after, .case-intro::after {
  content: "[ source / scope / limits ]";
  position: absolute;
  right: 0;
  bottom: 2rem;
  color: var(--accent-strong);
  font: 750 0.72rem/1 var(--font-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.proof-tag {
  margin-bottom: 1rem;
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.proof-feature__body { max-width: var(--reading); padding: clamp(1.5rem, 4vw, 3rem); border-top: 0.45rem solid var(--accent); background: var(--paper); }
.proof-feature__body h3 { max-width: 34rem; font-size: clamp(2rem, 4vw, 3.2rem); }

.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.2rem, 3vw, 2.4rem); }
.work-card { display: grid; align-content: start; border-top: 0.45rem solid var(--accent); background: var(--paper); }
.work-card--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 0.75fr); }
.work-card__image { min-height: 22rem; overflow: hidden; }
.work-card__image img { width: 100%; height: 100%; object-fit: cover; }
.work-card__copy { padding: clamp(1.5rem, 4vw, 3rem); }
.work-card__copy h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.work-card__copy p:last-child { margin-bottom: 0; color: var(--muted); }

.evidence-figure { display: block; margin: 0; border: 1px solid var(--line); background: var(--paper); }
.evidence-figure img { width: 100%; }
.architecture-diagram {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 54rem;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.architecture-diagram__step { position: relative; display: grid; gap: 0.3rem; padding: 2rem 1.3rem; border-right: 1px solid var(--line); }
.architecture-diagram__step:last-child { border-right: 0; }
.architecture-diagram__step:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; top: 50%; right: -0.7rem; translate: 0 -50%; padding: 0.2rem; background: var(--bg); color: var(--accent-strong); font-size: 1.5rem; }
.architecture-diagram__step span { color: var(--accent-strong); font: italic 600 1.1rem/1 var(--font-display); }
.architecture-diagram__step strong { font-family: var(--font-display); font-size: 1.5rem; }
.architecture-diagram__step small { color: var(--muted); }
.case-limit > p { padding: 1.3rem 1.5rem; border-left: 0.3rem solid var(--moss); background: var(--paper); }

/* Purple Askepott story: reused plates, a four-door grid, a four-step diagram and a labelled
   estimate. The plates keep their own purple ink; the frame around them stays Ledger. */
.plate { display: block; max-width: 60rem; margin: 0; border: 1px solid var(--line); background: var(--paper); }
.plate img { display: block; width: 100%; height: auto; }
.plate figcaption { padding: 0.9rem 1.1rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.plate__title { display: block; margin-bottom: 0.15rem; color: var(--ink); font: italic 600 1.15rem/1.3 var(--font-display); }
.plate--small figcaption { padding: 0.7rem 0.9rem 0.8rem; overflow-wrap: anywhere; }
.plate--square { max-width: 30rem; }
.plate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); max-width: 60rem; margin: 1.8rem 0 0.8rem; }
.architecture-diagram--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 2rem 0; }
.estimate { max-width: 54rem; padding: clamp(1.3rem, 3vw, 2.2rem); border-top: 0.45rem solid var(--moss); background: var(--paper); }
.estimate__label { margin: 0 0 0.6rem; color: var(--moss); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.estimate table { width: 100%; margin-top: 0.4rem; border-collapse: collapse; }
.estimate th, .estimate td { padding: 0.75rem 0.9rem 0.75rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.estimate thead th { color: var(--muted); font-size: 0.75rem; font-weight: 760; letter-spacing: 0.06em; text-transform: uppercase; }
.estimate tbody th { font-weight: 600; }
.estimate td { font-family: var(--font-display); font-size: 1.15rem; white-space: nowrap; }
.estimate td:last-child { color: var(--moss); font-weight: 600; }
.estimate__method { margin: 1.1rem 0 0; color: var(--muted); font-size: 0.9rem; }
.offer-terms__grid { padding: 1.5rem; border-top: 0.45rem solid var(--accent); background: var(--paper); }
.founder__record { align-self: start; padding: 1.5rem; border-top: 0.45rem solid var(--accent); background: var(--paper); }
.founder__record .facts { grid-template-columns: 5rem minmax(0, 1fr); font-size: 0.9rem; }

.art-credit { margin: 1.2rem 0 0; color: var(--muted); font-size: 0.8rem; }
.privacy-settings { margin-top: 0.7rem; padding: 0; border: 0; background: transparent; color: var(--accent-strong); font: 700 0.82rem/1.3 var(--font-body); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.consent-panel { position: fixed; z-index: 40; right: 1rem; bottom: 1rem; left: 1rem; }
.consent-panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: end;
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 1.4rem;
  border: 2px solid var(--ink);
  border-top: 0.45rem solid var(--accent);
  background: var(--paper);
  box-shadow: 0 1.2rem 3rem color-mix(in srgb, var(--ink) 25%, transparent);
}
.consent-panel h2 { margin-bottom: 0.35rem; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.consent-panel p { max-width: 52rem; margin: 0; font-size: 0.9rem; }
.consent-panel__actions { display: grid; grid-template-columns: repeat(2, minmax(8rem, 1fr)); gap: 0.6rem; }
.consent-panel__actions .button { width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > :not(h1) { animation: evidence-reveal 620ms both; }
  .hero__copy > :nth-child(2) { animation-delay: 90ms; }
  .hero__copy > :nth-child(3) { animation-delay: 170ms; }
  .hero__copy > :nth-child(4) { animation-delay: 240ms; }
  .hero__visual img { animation: atlas-arrive 900ms both; }
  .work-card { transition: translate 180ms ease, box-shadow 180ms ease; }
  .work-card:hover { translate: 0 -0.25rem; box-shadow: 0 1rem 0 var(--paper-deep); }
}
@keyframes evidence-reveal { from { opacity: 0; translate: 0 1rem; } }
@keyframes atlas-arrive { from { opacity: 0; scale: 1.015; } }

@media (prefers-color-scheme: dark) {
  .wordmark__mark { filter: invert(1); }
  .hero__visual img, .work-card__image img, .evidence-figure img { filter: brightness(0.78) contrast(1.08); }
  .cta {
    border-top: 0.45rem solid var(--accent);
    background: var(--paper);
    color: var(--ink);
  }
  .cta h2, .cta a:not(.button) { color: var(--ink); }
  .cta .button {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--bg);
  }
  .cta .button:hover {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
  }
}

@media (max-width: 950px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; }
  .site-nav ul { justify-content: flex-start; }
  .section { grid-template-columns: 1fr; gap: 1.4rem; }
  .section > h2 { grid-row: auto; }
  .section > :not(h2) { grid-column: 1; }
  .cards--3 { grid-template-columns: 1fr; }
  .industry-dossiers { grid-template-columns: 1fr; }
  .industry-dossiers .card { min-height: 0; }
}

@media (max-width: 650px) {
  body { font-size: 1rem; }
  .site-header, main, .site-footer { width: min(100% - 2rem, var(--max)); }
  .site-header { gap: 0.8rem 1rem; padding-top: 1rem; }
  .wordmark__mark { width: 2rem; height: 2rem; }
  .wordmark__name { font-size: 1.28rem; }
  .site-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem 1rem; }
  .site-nav a { display: block; padding: 0.3rem 0; }
  .hero { margin-top: 1rem; padding: 3.5rem 1.25rem 3rem; }
  .hero--evidence { grid-template-columns: 1fr; min-height: 0; padding: 0; }
  .hero--evidence::after { display: none; }
  .hero__copy { grid-area: 1 / 1; align-self: auto; padding: 3.5rem 1.25rem 3rem; }
  .hero__visual { grid-area: 2 / 1; height: auto; border-top: 1px solid var(--line); }
  .hero__visual img { aspect-ratio: 16 / 9; object-position: 67% center; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4.2rem); overflow-wrap: normal; }
  .page-intro h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); hyphens: auto; overflow-wrap: normal; }
  .hero::before { font-size: 10rem; }
  .section { padding: 3.5rem 0; }
  .cards, .cards--3 { grid-template-columns: 1fr; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .contact, .founder { grid-template-columns: 1fr; }
  .contact > .contact__direct { grid-column: 1; }
  .facts { grid-template-columns: 1fr; gap: 0.1rem; }
  .facts dd { margin-bottom: 0.8rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .evidence-strip { grid-template-columns: 1fr; }
  .evidence-strip p { border-right: 0; border-bottom: 1px solid var(--line); }
  .evidence-strip p:last-child { border-bottom: 0; }
  .work-intro::after, .case-intro::after { display: none; }
  .work-grid, .work-card--wide { grid-template-columns: 1fr; }
  .work-card--wide { grid-column: auto; }
  .work-card__image { min-height: 0; }
  .architecture-diagram { grid-template-columns: 1fr; }
  .architecture-diagram__step { border-right: 0; border-bottom: 1px solid var(--line); }
  .architecture-diagram__step:last-child { border-bottom: 0; }
  .architecture-diagram__step:not(:last-child)::after { content: "↓"; top: auto; right: 50%; bottom: -0.85rem; translate: 50% 0; }
  .plate-grid { grid-template-columns: 1fr; }
  .estimate th, .estimate td { padding-right: 0.6rem; }
  .estimate td { font-size: 1rem; white-space: normal; }
  .consent-panel { inset: auto 0.5rem 0.5rem; }
  .consent-panel__inner { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
  .consent-panel__actions { grid-template-columns: 1fr 1fr; }
  .consent-panel__actions .button { min-width: 0; padding-inline: 0.65rem; }
  .disclosure { padding: 1rem; }
  .ledger-index .card {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.55rem 0.8rem;
  }
  .ledger-index .card p { grid-column: 2; }
  .service-intro::after { bottom: 2rem; }
  .process-ledger li {
    display: block;
    min-height: 0;
    padding: 5rem 0 1.6rem;
  }
  .process-ledger li::before {
    top: 1.4rem;
    translate: 0;
    font-size: 3.4rem;
  }
  .founder__text { padding-left: 1rem; }
  .founder-profile:has(> img) { grid-template-columns: 1fr; }
  .founder-profile > img { grid-column: 1; }
  .partners-intro::after,
  .policy-intro::after { bottom: 2rem; font-size: 4rem; }
  .contact__form { padding: 1.25rem; }
  .contact__direct { padding-left: 1rem; }
  .not-found-intro { min-height: 29rem; padding-right: 0; padding-bottom: 11rem; }
  .not-found-intro::after { right: 0.15rem; bottom: 2.5rem; font-size: 8rem; }

  .table-wrap { overflow: visible; }
  table.platforms, .platforms tbody, .platforms tr, .platforms th, .platforms td { display: block; width: 100%; }
  .platforms thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .platforms tbody tr {
    margin-bottom: 1.2rem;
    border: 1px solid var(--line);
    background: var(--paper);
  }
  .platforms tbody th {
    padding: 1.25rem 1rem 1.1rem 3.5rem;
    border-bottom: 2px solid var(--ink);
  }
  .platforms tbody td {
    display: grid;
    grid-template-columns: minmax(5.8rem, 0.38fr) minmax(0, 1fr);
    gap: 0.8rem;
    padding: 1rem;
    overflow-wrap: anywhere;
  }
  .platforms tbody td::before {
    content: attr(data-label) / "";
    color: var(--accent-strong);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
}

@media print {
  @page { size: A4; margin: 9mm 12mm; }
  :root {
    color-scheme: light;
    --bg: #ffffff;
    --paper: #ffffff;
    --paper-deep: #eeeeee;
    --ink: #000000;
    --muted: #333333;
    --line: #777777;
    --accent: #000000;
    --accent-strong: #000000;
    --accent-ink: #ffffff;
    --moss: #000000;
  }
  body { background: #ffffff; color: #000000; font-size: 8.7pt; line-height: 1.3; }
  .site-header { padding: 0 0 3mm; border-bottom: 1pt solid #000000; }
  .site-nav, .lang-switch, .footer-cols, .disclosure, .skip-link, .privacy-settings, .art-credit, .consent-panel { display: none !important; }
  .wordmark__mark { filter: none !important; width: 6mm; height: 6mm; }
  .wordmark__name { font-size: 12pt; }
  main, .site-header, .site-footer { width: 100%; }
  main:has(> .service-intro) .page-intro { padding: 5mm 0 4mm; }
  main:has(> .service-intro) .page-intro::after { display: none; }
  main:has(> .service-intro) .page-intro h1 { font-size: 25pt; }
  main:has(> .service-intro) .page-intro .lede { max-width: none; font-size: 9.5pt; }
  main:has(> .service-intro) .section {
    grid-template-columns: 34mm minmax(0, 1fr);
    column-gap: 5mm;
    row-gap: 0;
    padding: 3.5mm 0;
    break-inside: avoid;
  }
  main:has(> .service-intro) .section > :not(h2) { grid-column: 2; }
  main:has(> .service-intro) .section > h2 { grid-row: 1 / span 20; font-size: 15pt; }
  main:has(> .service-intro) .checklist li, main:has(> .service-intro) .steps li { padding-block: 1.5mm; break-inside: avoid; }
  main:has(> .service-intro) .checklist li::before { top: calc(1.5mm + 0.35em); }
  main:has(> .service-intro) .cta { margin: 2mm 0 3mm; padding: 3.5mm; border: 1pt solid #000000; background: #ffffff; color: #000000; }
  main:has(> .service-intro) .cta h2 { font-size: 14pt; }
  main:has(> .service-intro) .cta h2, main:has(> .service-intro) .cta a:not(.button) { color: #000000; }
  main:has(> .service-intro) .button { min-height: 0; padding: 2mm 3mm; border: 1pt solid #000000; background: #ffffff; color: #000000; }
  .site-footer { padding: 3mm 0 0; border-top: 1pt solid #000000; font-size: 7.5pt; }
  .legal-line { margin: 0; color: #000000; }
  .print-url { display: block; margin: 2mm 0 0; color: #000000; font-size: 8pt; overflow-wrap: anywhere; }
  a { color: #000000; text-decoration: underline; }
}
