/* Known Surface — landing page styles.
   Hand-authored, no build step, no framework. Tokens first; everything else reads them.
   Light is the complete set. Dark changes only tokens. */

:root {
  --paper:    #f6f7f9;
  --surface:  #ffffff;
  --raised:   #eef1f4;
  --ink:      #0f1b2d;
  --muted:    #4a5768;
  --faint:    #6b7787;
  --rule:     #d9dee5;
  --rule-soft:#e8ecf0;
  --brass:    #a2712a;
  --brass-lo: #f4ead8;
  --teal:     #0f766e;
  --teal-lo:  #dcf1ee;
  --clay:     #a13d2e;
  --shadow:   0 1px 2px rgba(15,27,45,.06), 0 12px 40px -16px rgba(15,27,45,.18);
  --ease:     cubic-bezier(.22,.61,.36,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:    #0d131b;
    --surface:  #131b25;
    --raised:   #1a2430;
    --ink:      #e8ecf1;
    --muted:    #a7b3c2;
    --faint:    #7f8c9e;
    --rule:     #283442;
    --rule-soft:#1f2a37;
    --brass:    #d9a45c;
    --brass-lo: #2b2214;
    --teal:     #4cbfae;
    --teal-lo:  #12302d;
    --clay:     #e08573;
    --shadow:   0 1px 2px rgba(0,0,0,.4), 0 12px 40px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper:    #0d131b;
  --surface:  #131b25;
  --raised:   #1a2430;
  --ink:      #e8ecf1;
  --muted:    #a7b3c2;
  --faint:    #7f8c9e;
  --rule:     #283442;
  --rule-soft:#1f2a37;
  --brass:    #d9a45c;
  --brass-lo: #2b2214;
  --teal:     #4cbfae;
  --teal-lo:  #12302d;
  --clay:     #e08573;
  --shadow:   0 1px 2px rgba(0,0,0,.4), 0 12px 40px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .16em; }
p, li, dd { max-width: 62ch; }
h1, h2, h3, h4 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem); line-height: 1.12; }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.25; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--brass-lo); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 4px;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
@media (min-width: 48em) { .wrap { width: min(100% - 3rem, 72rem); } }

.eyebrow {
  font-size: .8125rem; font-weight: 600; letter-spacing: .02em;
  color: var(--brass); margin: 0 0 1rem;
}
.eyebrow--faint { color: var(--faint); }
.lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--muted); line-height: 1.55; }
.mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace; }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.25rem; border-radius: 6px; font-weight: 600; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, color .18s, border-color .18s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--teal); color: #fff; }
:root[data-theme="dark"] .btn--primary:hover,
:root:not([data-theme="light"]) .btn--primary:hover { color: #0d131b; }
.btn--ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--link { padding: .85rem .25rem; color: var(--brass); text-decoration: underline; text-underline-offset: .2em; }
.btn--link:hover { color: var(--ink); }
.btn svg { width: 1em; height: 1em; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.masthead__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4rem;
}
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 1.75rem; height: 1.75rem; color: var(--ink); }
.brand__name {
  font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 1.25rem;
  letter-spacing: -0.01em; line-height: 1;
}
.nav { display: none; gap: 1.6rem; font-size: .92rem; color: var(--muted); }
.nav a { text-decoration: none; padding: .35rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--brass); }
@media (min-width: 64em) { .nav { display: flex; } }
.masthead__tools { display: flex; align-items: center; gap: .5rem; }
.lang { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; font-size: .8rem; }
.lang a, .lang span { padding: .4rem .6rem; text-decoration: none; color: var(--muted); }
.lang span { background: var(--ink); color: var(--paper); font-weight: 600; }
.lang a:hover { color: var(--ink); }
.theme {
  width: 2.25rem; height: 2.25rem; border-radius: 6px; border: 1px solid var(--rule);
  background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.theme:hover { color: var(--ink); border-color: var(--ink); }
.theme svg { width: 1.1rem; height: 1.1rem; }
.theme .ico-moon { display: none; }
:root[data-theme="dark"] .theme .ico-sun { display: none; }
:root[data-theme="dark"] .theme .ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .ico-sun { display: none; }
  :root:not([data-theme="light"]) .theme .ico-moon { display: block; }
}
.masthead .btn { display: none; }
@media (min-width: 40em) { .masthead .btn { display: inline-flex; padding: .6rem 1rem; } }

/* ---------- Sections ---------- */
section { padding-block: clamp(3.5rem, 6vw, 6.5rem); }
.section--surface { background: var(--surface); border-block: 1px solid var(--rule-soft); }
.section-head { max-width: 46rem; }
.section-head .lede { margin-top: 1.1rem; }
.split { display: grid; gap: 2.25rem; }
@media (min-width: 64em) {
  .split { grid-template-columns: minmax(16rem, 20rem) 1fr; gap: 4rem; align-items: start; }
  .split--wide { grid-template-columns: minmax(18rem, 26rem) 1fr; }
  .split > .sticky { position: sticky; top: 5.5rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 7rem) clamp(3rem, 6vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 64em) { .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; } }
.hero h1 {
  font-size: clamp(1.9rem, 1.05rem + 3.6vw, 3.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: pretty;
  max-width: 22ch;
}
.hero h1 em { font-style: italic; color: var(--teal); }
/* Service headline: editorial scale with room for the two-part Spanish copy. */
.hero h1.hero__punch {
  font-size: clamp(2.65rem, 1.6rem + 4.5vw, 5.2rem);
  line-height: .98;
  letter-spacing: -0.035em;
  max-width: 18ch;
  text-wrap: balance;
}
.hero .lede { margin-top: 1.5rem; max-width: 56ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 2rem; }
.hero__tagline {
  margin-top: 2.25rem; font-family: "Newsreader", Georgia, serif; font-style: italic;
  font-size: 1.15rem; color: var(--muted);
}

/* The surface: a drawn estate of hosts with a check passing over it. */
.surface {
  position: relative; aspect-ratio: 1 / 1; max-width: 34rem; margin-inline: auto; width: 100%;
  border: 1px solid var(--rule); border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow); overflow: hidden;
}
.surface canvas { width: 100%; height: 100%; display: block; }
.surface__legend {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .75rem; color: var(--faint);
}
.surface__legend b { color: var(--muted); font-weight: 600; }
.dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; margin-right: .35em; vertical-align: middle; }
.dot--teal { background: var(--teal); }
.dot--ink { background: var(--ink); opacity: .55; }
.dot--brass { background: var(--brass); }
.surface__tag {
  position: absolute; top: 1rem; left: 1rem; font-size: .72rem; color: var(--faint);
  background: color-mix(in srgb, var(--paper) 80%, transparent); padding: .25rem .5rem; border-radius: 4px;
}

/* ---------- Context (cited figures) ---------- */
.figures { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); margin-top: 2.5rem; }
@media (min-width: 40em) { .figures { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figure { background: var(--paper); padding: 1.75rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.section--surface .figure { background: var(--surface); }
.figure__n {
  font-family: "Newsreader", Georgia, serif; font-size: clamp(2.6rem, 2rem + 2.2vw, 3.6rem);
  line-height: 1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; color: var(--ink);
}
.figure__n sup { font-size: .45em; vertical-align: super; margin-left: .05em; color: var(--muted); }
.figure p { margin: 0; font-size: .95rem; color: var(--muted); }
.figure cite { display: block; margin-top: auto; padding-top: .75rem; font-style: normal; font-size: .78rem; color: var(--faint); }
.figure cite a { color: inherit; }
.figures-note { margin-top: 1.25rem; font-size: .85rem; color: var(--faint); max-width: 60ch; }

/* ---------- Ledger (the question) ---------- */
.ledger { border-top: 1px solid var(--rule); margin: 0; padding: 0; list-style: none; counter-reset: q; }
.ledger li {
  display: grid; gap: .5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule);
  counter-increment: q;
}
@media (min-width: 40em) { .ledger li { grid-template-columns: 3rem 15rem 1fr; gap: 1.25rem; } }
.ledger li::before {
  content: counter(q, decimal-leading-zero);
  font-family: "Newsreader", Georgia, serif; font-size: 1.35rem; color: var(--brass); line-height: 1.2;
}
.ledger h3 { font-family: "Public Sans", system-ui, sans-serif; font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.ledger p { margin: 0; color: var(--muted); }

/* ---------- Outcomes (what changes) ---------- */
.outcomes { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
@media (min-width: 40em) { .outcomes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .outcomes { grid-template-columns: repeat(3, 1fr); } }
.outcome { background: var(--surface); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.outcome__n { font-family: "Newsreader", Georgia, serif; color: var(--brass); font-size: 1.1rem; }
.outcome h3 { font-family: "Newsreader", Georgia, serif; font-size: 1.4rem; line-height: 1.2; }
.outcome p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (min-width: 40em) and (max-width: 63.99em) { .outcome:first-child { grid-column: span 2; } }
@media (min-width: 64em) { .outcome:first-child { grid-column: span 2; } .outcome:first-child h3 { font-size: 1.7rem; max-width: 24ch; } }

/* ---------- Pull quote (the buyer's own words) ---------- */
.pull { margin: 0 0 1.5rem; padding-left: 1.25rem; border-left: 3px solid var(--brass); }
.pull p { margin: 0; font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: clamp(1.2rem, 1.05rem + .7vw, 1.55rem); line-height: 1.35; letter-spacing: -0.01em; }
.pull footer { margin-top: .6rem; font-size: .82rem; color: var(--faint); border: 0; padding: 0; }

/* ---------- Service layer: the person and the system ---------- */
.layer { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; margin-top: 2.5rem; }
@media (min-width: 48em) { .layer { grid-template-columns: 1fr 1fr; } }
.layer > div { background: var(--surface); padding: 1.75rem 1.5rem; }
.layer > div + div { background: var(--raised); }
.layer h3 { font-size: 1.35rem; display: flex; align-items: center; gap: .6rem; }
.layer h3 .dot { width: .6rem; height: .6rem; }
.layer .who { font-size: .82rem; color: var(--faint); margin: .35rem 0 0; }
.layer ol { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .85rem; counter-reset: l; }
.layer li { position: relative; padding-left: 1.6rem; color: var(--muted); font-size: .97rem; }
.layer li::before { counter-increment: l; content: counter(l); position: absolute; left: 0; top: .1em; font-family: "Newsreader", Georgia, serif; color: var(--brass); font-size: 1rem; }
.layer--sys li::before { color: var(--teal); content: "✓"; font-family: inherit; font-weight: 700; }
.layer li { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.layer.is-in li { opacity: 1; transform: none; }
.layer.is-in li:nth-child(2) { transition-delay: .1s } .layer.is-in li:nth-child(3) { transition-delay: .2s }
.layer.is-in li:nth-child(4) { transition-delay: .3s } .layer.is-in li:nth-child(5) { transition-delay: .4s }
.layer.is-in .layer--sys li { transition-delay: .05s } .layer.is-in .layer--sys li:nth-child(2) { transition-delay: .15s } .layer.is-in .layer--sys li:nth-child(3) { transition-delay: .25s }
.layer.is-in .layer--sys li:nth-child(4) { transition-delay: .35s } .layer.is-in .layer--sys li:nth-child(5) { transition-delay: .45s }
.layer-close { margin-top: 1.5rem; font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 1.25rem; color: var(--ink); }

/* ---------- Right-sized ---------- */
.refusals { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40em) { .refusals { grid-template-columns: repeat(3, 1fr); } }
.refusals li { border-left: 2px solid var(--brass); padding: .2rem 0 .2rem 1rem; }
.refusals b { display: block; font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 1.2rem; margin-bottom: .2rem; }
.refusals span { color: var(--muted); font-size: .95rem; }

/* ---------- Constancia (document facsimile) ---------- */
.doc-stage { position: relative; padding: 1rem 0; }
.doc {
  position: relative; background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 6px; box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2.25rem); max-width: 34rem; margin-inline: auto;
  transform: rotate(-.6deg);
  background-image:
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 2.5%, transparent) 0, transparent 1px);
  background-size: 100% 28px;
}
@media (min-width: 64em) { .doc { margin-inline: 0; } }
.doc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.doc__brand { display: flex; align-items: center; gap: .5rem; }
.doc__brand svg { width: 1.4rem; height: 1.4rem; color: var(--ink); }
.doc__brand b { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 1.05rem; }
.doc__title { font-family: "Newsreader", Georgia, serif; font-size: 1.5rem; margin-top: 1.25rem; letter-spacing: -0.01em; }
.doc__sub { color: var(--faint); font-size: .8rem; margin-top: .2rem; }
.doc dl { margin: 1.25rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.25rem; font-size: .92rem; }
.doc dt { color: var(--faint); font-size: .78rem; font-weight: 600; letter-spacing: .01em; padding-top: .15em; }
.doc dd { margin: 0; }
.doc dd.mono { font-size: .84rem; }
.doc__foot { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; font-size: .78rem; color: var(--faint); }
.doc__sig { font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 1.05rem; color: var(--ink); }
.seal {
  position: absolute; right: -0.75rem; top: -1.25rem; width: 6.25rem; height: 6.25rem;
  color: var(--brass); transform: rotate(8deg); opacity: .95;
}
@media (min-width: 40em) { .seal { right: -1.25rem; top: -1.5rem; width: 7.25rem; height: 7.25rem; } }
.seal text { font-family: "Public Sans", system-ui, sans-serif; font-weight: 600; font-size: 9.5px; letter-spacing: .18em; fill: currentColor; }
.example-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 600; color: var(--muted);
  background: var(--raised); border: 1px solid var(--rule); border-radius: 999px; padding: .25rem .65rem;
}
.doc-caption { margin-top: 1.5rem; font-size: .88rem; color: var(--faint); max-width: 34rem; }

/* ---------- Vigilance record ---------- */
.record { border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.record__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--rule); background: var(--raised); flex-wrap: wrap; }
.record__head b { font-size: .9rem; }
.record dl { margin: 0; display: grid; }
@media (min-width: 40em) { .record dl { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64em) { .record dl { grid-template-columns: repeat(4, 1fr); } }
.record .cell { padding: 1.25rem; border-bottom: 1px solid var(--rule-soft); border-right: 1px solid var(--rule-soft); }
.record dt { font-size: .78rem; color: var(--faint); font-weight: 600; }
.record dd { margin: .35rem 0 0; font-family: "Newsreader", Georgia, serif; font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.01em; }
.record dd small { display: block; font-family: "Public Sans", system-ui, sans-serif; font-size: .82rem; color: var(--muted); margin-top: .3rem; letter-spacing: 0; }
.record .ok { color: var(--teal); }
.record .ok::before { content: "✓ "; }
.record__foot { padding: .8rem 1.25rem; font-size: .82rem; color: var(--faint); background: var(--raised); }

/* ---------- Method ---------- */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: s; position: relative; }
@media (min-width: 48em) { .stages { grid-template-columns: repeat(2, 1fr); gap: 0 3rem; } }
@media (min-width: 64em) { .stages { grid-template-columns: repeat(4, 1fr); gap: 0 2rem; } }
.stages li { counter-increment: s; padding: 1.5rem 0 1.75rem; border-top: 1px solid var(--rule); position: relative; }
.stages li::before {
  content: counter(s, decimal-leading-zero);
  display: block; font-family: "Newsreader", Georgia, serif; font-size: 1.1rem; color: var(--brass); margin-bottom: .75rem;
}
.stages li::after {
  content: ""; position: absolute; top: -1px; left: 0; width: 2.5rem; height: 1px; background: var(--brass);
}
.stages h3 { font-size: 1.5rem; }
.stages p { margin: .6rem 0 0; color: var(--muted); font-size: .97rem; }
.stages .pkg { color: var(--ink); font-weight: 600; }

/* ---------- Manifest ---------- */
.manifest { border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: var(--surface); }
.manifest__head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.25rem; background: var(--raised); border-bottom: 1px solid var(--rule); font-size: .82rem; color: var(--faint); }
.manifest dl { margin: 0; }
.manifest .row { display: grid; gap: .35rem 1.5rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule-soft); }
.manifest .row:last-child { border-bottom: 0; }
@media (min-width: 40em) { .manifest .row { grid-template-columns: 11rem 1fr; } }
.manifest dt { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; font-size: .9rem; color: var(--teal); }
.manifest dt::before { content: "✓ "; color: var(--teal); }
.manifest dd { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Scorecard: five questions to ask any provider ---------- */
.scorecard { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: sc; border-top: 1px solid var(--rule); }
.scorecard li { counter-increment: sc; display: grid; gap: .75rem 2rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 48em) { .scorecard li { grid-template-columns: 3rem 1fr 1fr; } }
.scorecard li::before { content: counter(sc); font-family: "Newsreader", Georgia, serif; font-size: 1.75rem; line-height: 1; color: var(--brass); }
.scorecard .ask { font-family: "Newsreader", Georgia, serif; font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); line-height: 1.3; letter-spacing: -0.01em; margin: 0; }
.scorecard .ask small { display: block; font-family: "Public Sans", system-ui, sans-serif; font-size: .78rem; color: var(--faint); letter-spacing: .01em; margin-bottom: .35rem; font-weight: 600; }
.scorecard .ans { margin: 0; color: var(--muted); font-size: .97rem; padding-left: 1rem; border-left: 2px solid var(--teal); }
.scorecard .ans small { display: block; font-size: .78rem; color: var(--teal); font-weight: 600; letter-spacing: .01em; margin-bottom: .35rem; }
@media (max-width: 47.99em) { .scorecard li::before { display: none; } .scorecard .ask::before { content: counter(sc) " · "; color: var(--brass); } }
.scorecard li { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.scorecard.is-in li { opacity: 1; transform: none; }
.scorecard.is-in li:nth-child(2) { transition-delay: .1s } .scorecard.is-in li:nth-child(3) { transition-delay: .2s }
.scorecard.is-in li:nth-child(4) { transition-delay: .3s } .scorecard.is-in li:nth-child(5) { transition-delay: .4s }
.scorecard-foot { margin-top: 1.25rem; font-family: "Newsreader", Georgia, serif; font-style: italic; font-size: 1.15rem; }

/* ---------- Guarantees (retired; kept for the archive page) ---------- */
.guarantees { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.guarantees li { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.guarantees h3 { font-size: 1.35rem; }
.guarantees p { margin: .5rem 0 0; color: var(--muted); font-size: .97rem; }

/* ---------- Scope ---------- */
.scope { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
@media (min-width: 48em) { .scope { grid-template-columns: 1fr 1fr; } }
.scope > div { padding: 1.75rem 1.5rem; background: var(--surface); }
.scope > div + div { background: var(--raised); }
.scope h3 { font-family: "Public Sans", system-ui, sans-serif; font-size: .85rem; font-weight: 600; letter-spacing: .02em; display: flex; align-items: center; gap: .5rem; }
.scope ul { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .7rem; }
.scope li { padding-left: 1.5rem; position: relative; }
.scope--in li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.scope--out li { color: var(--muted); }
.scope--out li::before { content: "—"; position: absolute; left: 0; color: var(--faint); }

/* ---------- Packages ---------- */
.packages { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 48em) { .packages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pkgc { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.pkgc--accent { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; }
.pkgc__kind { font-size: .78rem; font-weight: 600; color: var(--faint); letter-spacing: .02em; }
.pkgc h3 { font-size: 1.65rem; line-height: 1.15; overflow-wrap: break-word; }
.pkgc p { margin: 0; color: var(--muted); font-size: .95rem; }
.pkgc ul { margin: .25rem 0 0; padding: 0; list-style: none; display: grid; gap: .45rem; font-size: .92rem; color: var(--muted); }
.pkgc li { padding-left: 1.2rem; position: relative; }
.pkgc li::before { content: "·"; position: absolute; left: .2rem; color: var(--brass); font-weight: 700; }
.pkgc__note { margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--rule-soft); font-size: .82rem; color: var(--faint); }
.pkgc__note b { color: var(--teal); }

.pkgc .pkgc__price { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--ink); }
.pkgc .btn { align-self: flex-start; max-width: 100%; font-size: .87rem; }
.plan-boundary { margin: 1.5rem 0 .75rem; padding: 1rem 1.25rem; border-left: 3px solid var(--teal); background: var(--teal-lo); color: var(--ink); font-size: .92rem; }
.incident-note { margin-top: 2rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }
.incident-note h3 { font-size: clamp(1.4rem, 2vw, 1.9rem); margin-bottom: .75rem; }
.incident-note p { max-width: 80ch; color: var(--muted); }
.incident-note .small { display: block; margin-top: .5rem; }

/* ---------- Closing ---------- */
.questions { list-style: none; margin: 2.25rem 0 0; padding: 0; counter-reset: k; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.questions li { counter-increment: k; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.questions li::before { content: counter(k); font-family: "Newsreader", Georgia, serif; font-size: 2rem; color: var(--brass); line-height: 1; }
.questions li p { margin: 0; font-family: "Newsreader", Georgia, serif; font-size: clamp(1.2rem, 1.05rem + .7vw, 1.6rem); line-height: 1.3; letter-spacing: -0.01em; }
.form { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
@media (min-width: 40em) { .form { flex-direction: row; flex-wrap: wrap; } }
.form input, .form select {
  flex: 1; min-width: 0; padding: .9rem 1rem; border: 1px solid var(--rule); border-radius: 6px;
  background: var(--surface); color: var(--ink); font: inherit; font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .95rem;
}
.form input::placeholder { color: var(--faint); }
.form input:focus, .form select:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px var(--brass-lo); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--rule); padding: 2.5rem 0; font-size: .88rem; color: var(--faint); }
.foot { display: flex; flex-direction: column; gap: 1rem; }

/* ---------- Policy pages: long-form prose ---------- */
.policy { max-width: 44rem; }
.policy h2 { margin-top: 2.75rem; margin-bottom: .75rem; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); }
.policy ul { padding-left: 1.25rem; }
.policy li + li { margin-top: .35rem; }
@media (min-width: 48em) { .foot { flex-direction: row; justify-content: space-between; align-items: center; } }
.foot .brand__name { font-size: 1.05rem; }

/* ---------- Motion ----------
   Every effect here is decorative and is switched off under prefers-reduced-motion. */

/* Scroll progress: a hairline of brass along the top of the masthead. */
.progress { position: absolute; left: 0; top: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--brass); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Hero: headline words rise in on load, one after another. */
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.35em); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hero h1.is-in .w { opacity: 1; transform: none; }
.hero .lede, .hero__cta, .hero__meta, .hero__tagline, .hero .eyebrow { opacity: 0; transform: translateY(10px); transition: opacity .7s var(--ease) .55s, transform .7s var(--ease) .55s; }
.hero.is-in .lede, .hero.is-in .hero__cta, .hero.is-in .hero__meta, .hero.is-in .hero__tagline, .hero.is-in .eyebrow { opacity: 1; transform: none; }
.hero .eyebrow { transition-delay: 0s; }
.hero__meta { margin-top: 1rem; font-size: .88rem; color: var(--faint); }
.hero__meta b { color: var(--muted); font-weight: 600; }

/* Manifest rows check in one after another, like a manifest being written. */
.manifest .row { opacity: 0; transform: translateX(-6px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.manifest.is-in .row { opacity: 1; transform: none; }
.manifest.is-in .row:nth-child(1) { transition-delay: .05s }
.manifest.is-in .row:nth-child(2) { transition-delay: .15s }
.manifest.is-in .row:nth-child(3) { transition-delay: .25s }
.manifest.is-in .row:nth-child(4) { transition-delay: .35s }
.manifest.is-in .row:nth-child(5) { transition-delay: .45s }
.manifest.is-in .row:nth-child(6) { transition-delay: .55s }
.manifest.is-in .row:nth-child(7) { transition-delay: .65s }

/* The seal stamps onto the constancia once the document is in view. */
.seal { opacity: 0; transform: rotate(8deg) scale(1.25); transition: opacity .45s var(--ease) .5s, transform .45s cubic-bezier(.2,.9,.3,1.2) .5s; }
.is-in .seal { opacity: .95; transform: rotate(8deg) scale(1); }

/* Stages: the connecting rule draws across as the list enters. */
.stages::before { content: ""; position: absolute; top: 0; left: 0; height: 1px; width: 100%; background: var(--brass); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease) .2s; }
.stages.is-in::before { transform: scaleX(1); }
.stages li { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.stages.is-in li { opacity: 1; transform: none; }
.stages.is-in li:nth-child(2) { transition-delay: .2s } .stages.is-in li:nth-child(3) { transition-delay: .4s } .stages.is-in li:nth-child(4) { transition-delay: .6s }

/* Outcome cards lift in sequence. */
.outcomes .outcome { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.outcomes.is-in .outcome { opacity: 1; transform: none; }
.outcomes.is-in .outcome:nth-child(2) { transition-delay: .08s } .outcomes.is-in .outcome:nth-child(3) { transition-delay: .16s }
.outcomes.is-in .outcome:nth-child(4) { transition-delay: .24s } .outcomes.is-in .outcome:nth-child(5) { transition-delay: .32s }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero h1 .w, .hero .lede, .hero__cta, .hero__meta, .hero__tagline, .hero .eyebrow,
  .manifest .row, .seal, .stages li, .outcomes .outcome, .layer li, .scorecard li { opacity: 1 !important; transform: none !important; transition: none !important; }
  .seal { transform: rotate(8deg) !important; }
  .stages::before { transform: scaleX(1) !important; transition: none !important; }
  .progress { display: none; }
  * { animation: none !important; }
}

/* ---------- Service proposal: signals, evidence and a bounded next step ---------- */
.signals { display: grid; gap: 1.25rem; margin-block: 2.25rem 1.25rem; }
.signal { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); }
.signal__n { display: block; color: var(--brass); font-family: "Newsreader", Georgia, serif; font-size: 1.3rem; margin-bottom: .65rem; }
.signal h3 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); line-height: 1.2; }
.signal p { color: var(--muted); }
.signal a { font-size: .85rem; }
@media (min-width: 48em) { .signals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.packages { margin-top: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 64em) { .packages { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pkgc { min-width: 0; }
.pkgc .pkgc__question { font-family: "Newsreader", Georgia, serif; font-size: 1.25rem; line-height: 1.3; color: var(--ink); }
.pkgc__note { margin-top: 0; }
.comparison { margin-top: 1.75rem; border-block: 1px solid var(--rule); }
.comparison summary, .faq-list summary, .inquiry-preview summary { cursor: pointer; padding: 1.25rem .25rem; font-weight: 600; line-height: 1.5; }
.comparison summary::marker, .faq-list summary::marker, .inquiry-preview summary::marker { color: var(--brass); }
.comparison__scroll { max-width: 100%; overflow-x: auto; padding-bottom: 1rem; }
.comparison table { width: 100%; min-width: 48rem; border-collapse: collapse; text-align: left; font-size: .9rem; }
.comparison caption { text-align: left; color: var(--muted); padding-block: .5rem 1rem; }
.comparison th, .comparison td { padding: 1rem .75rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.comparison thead { background: var(--raised); }
.comparison tbody th { width: 24%; font-weight: 600; }
.comparison td { color: var(--muted); }
.closure-flow { list-style: none; padding: 0; margin: 2.5rem 0 1.75rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.closure-flow li { min-width: 0; padding: 1.1rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); }
.closure-flow li > span { display: block; color: var(--brass); font-family: "Newsreader", Georgia, serif; font-size: 1.3rem; margin-bottom: 1.1rem; }
.closure-flow h3 { font-family: "Public Sans", sans-serif; font-size: .94rem; font-weight: 600; overflow-wrap: anywhere; }
.closure-flow p { font-size: .86rem; color: var(--muted); margin: .65rem 0 0; }
.closure-flow li:last-child { background: var(--teal-lo); border-color: var(--teal); }
.closure-flow li:last-child > span { color: var(--teal); }
@media (min-width: 40em) { .closure-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 64em) { .closure-flow { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.proof-example { border: 1px solid var(--rule); border-radius: 12px; padding: clamp(1.25rem, 3vw, 2rem); background: var(--surface); }
.proof-example h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 1rem 0 1.5rem; }
.proof-example dl { margin-bottom: 0; }
.proof-example dl > div { padding: 1rem 0; border-top: 1px solid var(--rule-soft); }
.proof-example dt { font-weight: 600; font-size: .9rem; }
.proof-example dd { margin: .4rem 0 0; color: var(--muted); }
@media (min-width: 48em) { .proof-example dl > div { display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; } .proof-example dd { margin: 0; } }
.campaign-panel { display: grid; gap: 2rem; border: 1px solid var(--rule); border-radius: 12px; padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--surface); margin-top: 2.25rem; }
.campaign-panel h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: .75rem 0 1rem; }
.campaign-panel p { color: var(--muted); }
.campaign-panel ul { margin: 0 0 1.5rem; padding-left: 1.2rem; color: var(--muted); }
.campaign-panel li { padding-block: .5rem; }
.campaign-panel li::marker { color: var(--teal); }
@media (min-width: 48em) { .campaign-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; } }
.faq-list { margin-top: 2rem; border-top: 1px solid var(--rule); max-width: 56rem; }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list p { margin: 0; padding: 0 .25rem 1.5rem; color: var(--muted); max-width: 72ch; }
.form textarea, .inquiry-preview textarea { width: 100%; min-width: 0; resize: vertical; border: 1px solid var(--rule); border-radius: 6px; padding: 1rem; background: var(--surface); color: var(--ink); font: inherit; line-height: 1.6; }
.form textarea { flex-basis: 100%; }
.form textarea:focus, .inquiry-preview textarea:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px var(--brass-lo); }
.form textarea::placeholder { color: var(--faint); }
.inquiry-preview { border-block: 1px solid var(--rule); }
.inquiry-preview .btn { margin-block: .75rem 1rem; }
#request-status:empty { display: none; }
@media (min-width: 40em) { .form input, .form select { flex: 1 1 14rem; } }
@media (prefers-reduced-motion: reduce) { details { scroll-behavior: auto; } }
