/* =============================================================
   DOELVE — THE SPECIFICATION SHEET
   Hand-written. No preprocessor, no build step, no @import.

   TWO TIERS, ENFORCED:
     --p-*      primitives. Raw values. NEVER referenced by a
                component rule. Never redefined in a media query.
     --color-*  semantics. The only colour tokens a component
                may reference. The dark block redefines ONLY
                this tier.

   Light is canonical: this is a paper document. Dark is a
   deliberate NEGATIVE PRINT, not a dimmed clone.

   Every ratio in a comment below was computed against the exact
   hex pair named. Change a value, recompute the comment.

   CONTENTS
     1  Fonts
     2  Tokens
     3  Dark / negative print
     4  Base + focus
     5  Utilities
     6  The trace (signature motif)
     7  Layout: wrap, section, grid
     8  Controls
     9  Masthead
    10  Hero + anatomy drawing
    11  Gap
    12  Checks table
    13  Exposure report
    14  Services
    15  Method + terms (nodes)
    16  Standards
    17  Founders
    18  Client No. 001
    19  Spanish band
    20  FAQ
    21  Contact form
    22  Footer
    23  404 / legal pages
    24  Motion
   ============================================================= */

/* -------------------------------------------------------------
   1  FONTS
   Self-hosted. A security company's own site does not open a
   font-src exception to a third-party origin, and self-hosting
   removes a connection from the critical path.
   Both faces are variable and OFL — see assets/fonts/OFL.txt.
   The fallback faces are metrics-matched (computed from the real
   outlines with fontTools) so swap-induced CLS is ~0.
   ------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 105.62%;
  ascent-override: 91.72%;
  descent-override: 22.84%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono Fallback";
  src: local("Consolas"), local("Menlo"), local("DejaVu Sans Mono");
  size-adjust: 109.13%;
  ascent-override: 93.47%;
  descent-override: 27.49%;
  line-gap-override: 0%;
}

/* -------------------------------------------------------------
   2  TOKENS
   ------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* ---------- PRIMITIVE / LIGHT GROUNDS ---------- */
  --p-paper: #F2F0EA;  /* page ground. Warm bond stock, deliberately not #FFF */
  --p-sheet: #FFFFFF;  /* raised sheet: tables, panels, form                  */
  --p-tint:  #E7E4DB;  /* inset: zebra rows, callouts, reserved slot, footer  */
  /* Separation is 1.14:1 (sheet/paper) and 1.12:1 (tint/paper) — both far
     below 3:1, so a raised surface is NEVER signalled by fill alone. Every
     sheet, table, input and panel carries a --color-rule border. That single
     rule is why the dark theme is not a special case: it enforces itself
     twice. */

  /* ---------- PRIMITIVE / LIGHT INK ---------- */
  --p-ink:   #101418;  /* 16.23 paper | 18.50 sheet | 14.55 tint — AAA body   */
  --p-ink-2: #4A5157;  /*  7.07 paper |  8.06 sheet |  6.34 tint — AAA body   */
  --p-ink-3: #545A61;  /*  6.12 paper |  6.97 sheet |  5.48 tint — AA at 12px */

  /* ---------- PRIMITIVE / BOUNDARY — one token, both themes ---------- */
  --p-steel: #667786;
  /* THE informational-boundary token, verified on every ground it can touch
     in BOTH themes:
       4.05 --p-paper | 4.62 --p-sheet | 3.63 --p-tint
       4.01 --p-ink-bg | 3.59 --p-panel-d
     Worst case 3.59 — clears WCAG 1.4.11 (3:1 non-text) on all five. There is
     deliberately NO dark sibling; collapsing the pair halves the theme
     verification surface of the direction with the most rules to verify.
     BOUNDARY ONLY. At 3.63 on --p-tint it FAILS 4.5:1 body text. Never set
     type in steel. The text grey is --p-ink-3. */

  --p-hair: #C9C6BE;
  /* 1.50 on --p-paper. DECORATIVE ONLY — registration crosshairs and hairline
     separators. May never be the sole indicator of a boundary, grouping or
     state. If you are tempted, you want --p-steel. */

  /* ---------- PRIMITIVE / CHANNELS — the two pillars ---------- */
  --p-blue: #0A4A94;  /* PRESENCE. 7.61 paper | 8.68 sheet | 6.83 tint — AA   */
  --p-red:  #A8261D;  /* SECURITY. 6.23 paper | 7.09 sheet | 5.58 tint — AA   */
  /* Hard cap: red stays under ~10% of inked area, and every red mark on the
     page names a CHECK plus its FIX. Red is never left as an unresolved
     threat — that is fear-selling and it contradicts the positioning. */

  --p-ochre: #6A5010; /* PENDING. 6.66 paper | 7.59 sheet | 5.97 tint — AA    */
  /* One token, not two: it clears 4.5:1 on every light ground, so it is
     automatically safe as a 2px rule too. Do not add a lighter
     "decorative ochre" — that is precisely how a palette drifts. */

  /* ---------- PRIMITIVE / DARK GROUNDS — negative print ---------- */
  --p-ink-bg:  #101418;  /* same hex as --p-ink by design: the sheet inverts, */
  --p-panel-d: #1A1F25;  /* the ink does not change identity                  */
  /* 1.12:1 separation — identical logic to light. Borders, always. */

  /* ---------- PRIMITIVE / DARK INK ---------- */
  --p-paper-d: #E7E4DB;  /* 14.55 ink-bg | 13.04 panel-d — AAA body */
  --p-ink-2-d: #B7C0C9;  /* 10.04 ink-bg |  9.00 panel-d — AAA body */
  --p-hair-d:  #2E353D;  /*  1.49 ink-bg — decorative only          */

  /* ---------- PRIMITIVE / DARK CHANNELS ---------- */
  --p-blue-d:  #7FB2F0;  /*  8.39 ink-bg | 7.52 panel-d — AA body */
  --p-red-d:   #FFB4A6;  /* 10.86 ink-bg | 9.74 panel-d — AA body */
  --p-ochre-d: #D9B45B;  /*  9.36 ink-bg | 8.39 panel-d — AA body */
  /* The saturated light channels are BANNED on dark: #0A4A94 on #101418 is
     2.13:1 and #A8261D on #101418 is 2.61:1. Each ground gets its own channel
     value. No exceptions, ever. */

  /* ---------- SEMANTIC — the only tier a component may reference ------- */
  --color-surface:        var(--p-paper);
  --color-surface-raised: var(--p-sheet);
  --color-surface-inset:  var(--p-tint);

  --color-text:       var(--p-ink);
  --color-text-muted: var(--p-ink-2);
  --color-text-meta:  var(--p-ink-3);

  --color-rule:       var(--p-steel);  /* informational. 3.59:1 minimum  */
  --color-rule-decor: var(--p-hair);   /* decorative. never load-bearing */

  --color-presence:   var(--p-blue);
  --color-security:   var(--p-red);
  --color-pending:    var(--p-ochre);

  --color-link:       var(--p-blue);
  --color-focus:      var(--p-blue);

  /* Filled primary control. Light = ink fill / paper label, 16.23:1.
     Deliberately NOT a blue fill: a saturated institutional-navy button is the
     strongest visual tell of the managed-IT category this company is
     differentiating from. Blue stays a 2px line weight and a link colour. */
  --color-action-bg:       var(--p-ink);
  --color-action-text:     var(--p-paper);
  --color-action-bg-hover: #23292F;  /* paper label on it: 12.89:1 — AAA */

  /* ---------- TYPE ---------- */
  --font-body: "Inter", "Inter Fallback", -apple-system, "Segoe UI",
               system-ui, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace,
               "SFMono-Regular", Consolas, monospace;
  /* Two families, two variable WOFF2 files, 78KB total. One display face was
     cut from the original direction on purpose: a second grotesque muddies
     against the body face between 20 and 28px. Display is Inter 700 at
     -0.02em. */

  --fs-display:    clamp(2.25rem, 1.35rem + 4.00vw, 3.75rem);   /* 36 -> 60 */
  --fs-h2:         clamp(1.625rem, 1.20rem + 1.90vw, 2.375rem); /* 26 -> 38 */
  --fs-h3:         clamp(1.125rem, 1.00rem + 0.55vw, 1.375rem); /* 18 -> 22 */
  --fs-lede:       clamp(1.125rem, 1.03rem + 0.42vw, 1.3125rem);/* 18 -> 21 */
  --fs-body:       clamp(1rem, 0.975rem + 0.11vw, 1.0625rem);   /* 16 -> 17 */
  --fs-small:      0.8125rem;                                   /* 13       */
  --fs-mono-label: 0.75rem;                                     /* 12 FLOOR */
  --fs-step:       clamp(1.5rem, 1.10rem + 1.70vw, 2.25rem);    /* 24 -> 36 */

  --lh-display: 1.05;
  --lh-head:    1.15;
  --lh-body:    1.60;
  --lh-data:    1.50;
  --ls-display: -0.02em;
  --ls-mono:     0.12em;
  --measure:      68ch;
  --measure-lede: 46ch;

  /* ---------- SPACING / 8pt base, 4pt fine, all rem for reflow --------- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-8:  3rem;
  --space-10: 4rem;
  --space-12: 6rem;
  --space-16: 8rem;

  --content-max: 1240px;
  --content-narrow: 46rem;
  /* Deliberately px, not rem. The page gutter is structure, not type: under
     text-only zoom a rem gutter doubles too and eats the content box it is
     supposed to protect. Everything that carries text stays in rem. */
  --gutter: clamp(20px, 3.2vw, 32px);
  --header-h: 4rem;
  --tap: 2.75rem;  /* 44px house floor; WCAG 2.5.8 only requires 24 */

  /* ---------- THE TRACE — signature motif ---------- */
  --spine-w:     2px;   /* each line                                */
  --spine-gap:   4px;   /* between the two lines of a doubled spine */
  --spine-total: 8px;   /* 2 + 4 + 2                                */
  --node:        2rem;  /* the numbered step square                 */

  /* ---------- RADII / crisp. 2px is the ceiling. ---------- */
  --radius: 2px;

  /* No shadow token exists. Elevation is a rule, never a shadow. If you reach
     for one, the layout has been mis-solved. */

  /* ---------- MOTION ---------- */
  --dur-fast: 120ms;
  --dur-base: 180ms;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

/* =============================================================
   3  DARK / NEGATIVE PRINT
   Redefines the SEMANTIC tier only. No primitive is touched and
   no component rule is duplicated. Guarded so a future
   data-theme="light" wins without a rewrite.
   ============================================================= */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-surface:        var(--p-ink-bg);
    --color-surface-raised: var(--p-panel-d);
    --color-surface-inset:  var(--p-panel-d);

    --color-text:       var(--p-paper-d);
    --color-text-muted: var(--p-ink-2-d);
    --color-text-meta:  var(--p-ink-2-d);  /* no dimmer tier on dark: 12px
                                              mono meta needs 9.00 minimum */

    --color-rule:       var(--p-steel);    /* unchanged, by design */
    --color-rule-decor: var(--p-hair-d);

    --color-presence:   var(--p-blue-d);
    --color-security:   var(--p-red-d);
    --color-pending:    var(--p-ochre-d);

    --color-link:       var(--p-blue-d);
    --color-focus:      var(--p-blue-d);

    /* Buttons INVERT fill and label. Never white-on-light-blue. */
    --color-action-bg:       var(--p-paper-d);
    --color-action-text:     var(--p-ink);   /* 14.55 on the fill — AAA */
    --color-action-bg-hover: #FFFFFF;        /* 18.50 vs the ink label  */
  }
}

/* Explicit opt-in so a future toggle wins in both directions without touching
   the primitive layer. Ships inert — there is no toggle in this build. */
:root[data-theme="dark"] {
  --color-surface:        var(--p-ink-bg);
  --color-surface-raised: var(--p-panel-d);
  --color-surface-inset:  var(--p-panel-d);
  --color-text:           var(--p-paper-d);
  --color-text-muted:     var(--p-ink-2-d);
  --color-text-meta:      var(--p-ink-2-d);
  --color-rule:           var(--p-steel);
  --color-rule-decor:     var(--p-hair-d);
  --color-presence:       var(--p-blue-d);
  --color-security:       var(--p-red-d);
  --color-pending:        var(--p-ochre-d);
  --color-link:           var(--p-blue-d);
  --color-focus:          var(--p-blue-d);
  --color-action-bg:      var(--p-paper-d);
  --color-action-text:    var(--p-ink);
  --color-action-bg-hover:#FFFFFF;
}

/* =============================================================
   4  BASE + FOCUS
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--color-surface);  /* explicit. never transparent. */
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-synthesis-weight: none;
  overflow-x: clip;  /* clip, never hidden; never on html — overflow:hidden on
                        html kills position:sticky and scroll anchoring */
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: var(--lh-head); }
p, ul, ol, dl, figure, table { margin: 0; }

/* Text may never be clipped by its own box. At 200% text zoom on a 320px
   viewport the rem-based padding grows with the type, and the remaining
   content box gets narrower than a single long word — "authentication",
   "samuelmendieta.com". Breaking the word is the accessible outcome; losing
   it is a 1.4.4 failure. */
h1, h2, h3, h4, p, li, dt, dd, th, td, summary, legend, label, figcaption {
  overflow-wrap: break-word;
}
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--color-link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

/* FOCUS.
   The 2px offset is LOAD-BEARING, not decoration: it puts the ring against the
   page ground on both of its edges, so only ring-vs-ground has to clear 3:1
   (WCAG 2.4.13). At outline-offset:0 the ring sits directly on a filled button
   — 2.13:1 light, 1.73:1 dark — and fails. NEVER set it to 0.
   Ring against every ground it can land on:
     light  7.61 paper | 8.68 sheet | 6.83 tint
     dark   8.39 ink-bg | 7.52 panel-d
   Focus is never animated. A fading focus ring is an accessibility defect. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius);
}
/* Belt and braces on filled controls: a surface-coloured band inside the fill,
   so the indicator still reads if a later edit reduces the offset.
   --color-surface against the fill is 16.23:1 light, 14.55:1 dark. */
.btn--primary:focus-visible { box-shadow: inset 0 0 0 2px var(--color-surface); }

/* Anchor targets never land under the sticky header. */
[id] { scroll-margin-top: calc(var(--header-h) + 0.5rem); }
/* A heading given tabindex="-1" so an in-page anchor can move focus to it must
   not then draw a ring on the mouse path. */
[tabindex="-1"]:focus { outline: none; }

::selection { background: var(--color-presence); color: var(--p-paper); }

/* =============================================================
   5  UTILITIES
   ============================================================= */
.u-visually-hidden:not(:focus):not(:active) {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Used by the form honeypot. A class, not an inline style attribute, so
   style-src can stay 'self' with no 'unsafe-inline'. */
.u-hidden { display: none !important; }

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  line-height: var(--lh-data);
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: var(--space-3);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: var(--space-3) var(--space-4);
  background: var(--color-action-bg);
  color: var(--color-action-text);
  font-family: var(--font-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Registration crosshairs. The only purely decorative mark on the page, and
   the only one permitted. Drawn from two borders, in the sub-3:1 hairline
   token precisely because they carry no information. */
.marks { position: relative; }
.marks::before,
.marks::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  pointer-events: none;
}
.marks::before {
  top: 0; left: 0;
  border-top: 1px solid var(--color-rule-decor);
  border-left: 1px solid var(--color-rule-decor);
}
.marks::after {
  bottom: 0; right: 0;
  border-bottom: 1px solid var(--color-rule-decor);
  border-right: 1px solid var(--color-rule-decor);
}

/* =============================================================
   6  THE TRACE — the doubled spine drawn as ONE background
   gradient so both lines rasterise on the same subpixel grid. A
   2px border plus an offset box-shadow drifts apart, or smears
   into a single 3px line, at 1.5x, 2.625x and 2.75x DPR —
   exactly the mid-range Android class this page must survive.
   One paint op cannot disagree with itself.
   ============================================================= */
.spine {
  padding-left: calc(var(--spine-total) + var(--space-5));
  background-image: linear-gradient(
    to right,
    var(--color-presence) 0 var(--spine-w),
    transparent var(--spine-w) calc(var(--spine-w) + var(--spine-gap)),
    var(--color-security) calc(var(--spine-w) + var(--spine-gap)) var(--spine-total)
  );
  background-repeat: no-repeat;
  background-size: var(--spine-total) 100%;
}
.spine--presence,
.spine--security,
.spine--pending {
  padding-left: calc(var(--spine-w) + var(--space-5));
  background-repeat: no-repeat;
  background-size: var(--spine-w) 100%;
}
.spine--presence { background-image: linear-gradient(var(--color-presence) 0 0); }
.spine--security { background-image: linear-gradient(var(--color-security) 0 0); }
.spine--pending  { background-image: linear-gradient(var(--color-pending) 0 0); }

/* =============================================================
   7  LAYOUT
   ============================================================= */
.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-10); }
.section + .section { border-top: 1px solid var(--color-rule-decor); }

.section__head { margin-bottom: var(--space-6); }
.section__num {
  display: block;
  color: var(--color-text-meta);
  margin-bottom: var(--space-3);
}
.section__title {
  font-size: var(--fs-h2);
  letter-spacing: var(--ls-display);
  max-width: 22ch;
  /* "commitments." sets 258px at the 38px cap; the title column has to be at
     least that wide or the longest word in the deck overflows it. See the
     17rem floor on the head column below. break-word is the safety net for
     whatever word someone adds next. */
  overflow-wrap: break-word;
}
.section__scope {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--fs-lede);
  max-width: var(--measure-lede);
}
.section__body > * + * { margin-top: var(--space-5); }
.section__body p { max-width: var(--measure); }

.panel {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-rule);
  padding: var(--space-5);
}
.inset {
  background: var(--color-surface-inset);
  border: 1px solid var(--color-rule);
  padding: var(--space-5);
}
.inset__label,
.panel__label { display: block; color: var(--color-text-meta); margin-bottom: var(--space-3); }

.lede { font-size: var(--fs-lede); color: var(--color-text-muted); max-width: var(--measure-lede); }

@media (min-width: 64rem) {
  .section__grid {
    display: grid;
    grid-template-columns: minmax(min(17rem, 100%), 3fr) minmax(0, 9fr);
    gap: var(--space-8);
    align-items: start;
  }
  .section__head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + var(--space-5)); }
  .section { padding-block: var(--space-12); }
}

/* =============================================================
   8  CONTROLS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;                 /* 48px */
  /* A button must never exceed its container. At 200% text zoom the label
     grows past the column and the fill spills out of the card it sits in. */
  max-width: 100%;
  overflow-wrap: break-word;
  padding: var(--space-3) var(--space-5);
  border: 2px solid var(--color-action-bg);
  border-radius: 0;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease);
}
.btn--primary {
  background: var(--color-action-bg);
  color: var(--color-action-text);
}
.btn--primary:hover {
  background: var(--color-action-bg-hover);
  border-color: var(--color-action-bg-hover);
}
.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-rule);
}
.btn--secondary:hover { border-color: var(--color-text); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);   /* 24px minimum separation between targets */
}

/* =============================================================
   9  MASTHEAD
   No hamburger anywhere. A fifteen-section one-pager does not
   need mobile nav, it needs one button.
   ============================================================= */
.masthead {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-rule);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
}
/* The brand never shrinks, or its wordmark clips at 320px. The right group
   may (a flex item's default min-width:auto refuses to, which is what pushed
   the bar past the viewport under text-only zoom).
   flex-wrap was tried here and reverted: it drops the button onto its own row
   at 320px and takes the bar from 80px to 140px for every mobile visitor,
   which is a real cost paid by everyone to fix a Firefox-only text-zoom edge.
   The residual is documented on /accessibility.html instead of hidden. */
.masthead__brand { flex: none; }
.masthead__right { min-width: 0; }
.masthead__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--tap);
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: var(--ls-display);
  text-decoration: none;
}
.masthead__mark { width: 1.5rem; height: 1.5rem; flex: none; }
.masthead__nav { display: none; }
.masthead__right { display: flex; align-items: center; gap: var(--space-5); }
.masthead__lang { display: none; color: var(--color-text-meta); }
/* The full label wraps to three lines inside a 375px bar and pushes the header
   to 132px — a fifth of the viewport, before any content. Below 768px the
   button says "Exposure Report" and the bar stays one row. */
/* The cap belongs on the GROUP, not on the button. A percentage max-width on
   the button resolves against .masthead__right, which is itself shrink-to-fit
   around that same button — so 62% squeezed a 160px button to 112px, wrapped
   its label to two lines, and left a 69px hole between the button and the
   gutter. Capping the group leaves the button its natural width and keeps it
   flush to the gutter. */
.masthead__right { max-width: 62%; }
/* Two whole labels, one visible at a time. Splitting a single label into a
   span plus a bare text node makes the text node its own flex item, and the
   button's own `gap` then opens a visible double space mid-sentence. */
.masthead__cta-lead { display: none; }
.masthead__cta-short { display: inline; }
.masthead__hair { height: 1px; background: var(--color-rule-decor); }

/* The Spanish line lives under the bar on small screens, full width. */
.masthead__lang-bar {
  background: var(--color-surface-inset);
  border-bottom: 1px solid var(--color-rule-decor);
  color: var(--color-text-meta);
  padding-block: var(--space-2);
}

/* 768–1023px is sticky, but stays brand + one button. Four nav items plus the
   Spanish line plus the CTA do not fit there without wrapping the labels to
   two and three lines, which pushes the bar past --header-h and breaks every
   scroll-margin-top on the page. The nav appears only when it fits on one
   line. */
@media (min-width: 48rem) {
  .masthead { position: sticky; top: 0; z-index: 50; }
  .masthead__right { max-width: none; }
  .masthead__cta-lead { display: inline; }
  .masthead__cta-short { display: none; }
}

@media (min-width: 64rem) {
  .masthead__nav { display: flex; gap: var(--space-5); }
  .masthead__nav a {
    display: inline-flex;
    align-items: center;
    min-height: var(--tap);
    white-space: nowrap;
    color: var(--color-text-meta);
    text-decoration: none;
  }
  .masthead__nav a:hover { color: var(--color-text); text-decoration: underline; }
}

/* The Spanish line is the last thing that fits. Adding it at 1024 pushes the
   nav labels onto two lines and the bar to 82px — 18px taller than
   --header-h, which silently breaks every scroll-margin-top on the page and
   drops anchored headings behind the sticky bar. It joins the bar only when
   there is room, and until then it keeps its own full-width strip. */
@media (min-width: 78rem) {
  .masthead__lang { display: inline; white-space: nowrap; }
  .masthead__lang-bar { display: none; }
}

/* =============================================================
   10  HERO + ANATOMY DRAWING
   ============================================================= */
.hero { padding-block: var(--space-8) var(--space-10); }
.hero__kicker { color: var(--color-text-meta); }
.hero__title {
  margin-top: var(--space-4);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
  max-width: 18ch;
  text-wrap: balance;
  /* At 200% text zoom on a 320px viewport "targeted." alone is wider than the
     column. Breaking a word is ugly; clipping it is a 1.4.4 failure. */
  overflow-wrap: break-word;
}
.hero__lede { margin-top: var(--space-5); }
.hero__actions { margin-top: var(--space-6); }
.hero__terms { margin-top: var(--space-4); color: var(--color-text-meta); text-wrap: pretty; }
.hero__honesty {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-rule);
  color: var(--color-text-meta);
}

.figure { margin-top: var(--space-8); }
.anatomy {
  width: 100%;
  height: auto;
  color: var(--color-text-muted);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-rule);
}
.anatomy .ch-p { stroke: var(--color-presence); }
.anatomy .ch-s { stroke: var(--color-security); }
.anatomy .fill-p { fill: var(--color-presence); stroke: none; }
.anatomy .fill-s { fill: var(--color-security); stroke: none; }
.anatomy .num { fill: var(--color-surface-raised); stroke: none; font: 600 9px var(--font-body); }

.figure__caption {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--fs-small);
  max-width: var(--measure);
}
.figure__note {
  display: block;
  margin-top: var(--space-3);
  color: var(--color-text-meta);
}

.callouts { margin-top: var(--space-6); display: grid; gap: var(--space-5); }
.callouts__group > .mono { display: block; color: var(--color-text-meta); margin-bottom: var(--space-3); }
.callouts__list { display: grid; gap: var(--space-3); }
.callouts__list li {
  padding-left: var(--space-4);
  border-left: 3px solid var(--color-rule);
  font-size: var(--fs-small);
}
.callouts__list--presence li { border-left-color: var(--color-presence); }
.callouts__list--security li { border-left-color: var(--color-security); }
.callouts__num {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-label);
  color: var(--color-text-meta);
  margin-right: var(--space-2);
}

@media (min-width: 64rem) {
  .hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-8);
    align-items: start;
  }
  .figure { margin-top: 0; }
  .callouts { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   11  GAP
   ============================================================= */
.gap-blocks { display: grid; gap: var(--space-5); }
.gap-block {
  background: var(--color-surface-inset);
  border: 1px solid var(--color-rule);
  padding: var(--space-5);
}
.gap-block__label { display: block; color: var(--color-text-meta); margin-bottom: var(--space-2); }
.gap-kicker { font-size: var(--fs-h3); max-width: var(--measure); }

/* =============================================================
   12  CHECKS TABLE
   border-collapse so adjacent borders share one edge and render
   at a consistent weight at fractional DPR.
   ============================================================= */
.checks {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-rule);
}
.checks__table { width: 100%; border-collapse: collapse; text-align: left; }
.checks__table caption { text-align: left; padding: var(--space-4); color: var(--color-text-meta); }
.checks__table th, .checks__table td {
  padding: var(--space-4);
  border-top: 1px solid var(--color-rule);
  vertical-align: top;
}
.checks__table thead th { color: var(--color-text-meta); font-weight: 600; }
.checks__table tbody tr:nth-child(odd) { background: var(--color-surface-inset); }
.checks__table th[scope="row"] { font-weight: 700; width: 34%; }
.checks__n {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-mono-label);
  letter-spacing: var(--ls-mono);
  color: var(--color-security);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--space-1);
}
.checks__note {
  padding: var(--space-4);
  border-top: 1px solid var(--color-rule);
  background: var(--color-surface-inset);
  color: var(--color-text-meta);
}

/* Below 768px the table becomes stacked rows. Table semantics are dropped
   deliberately: with the header in a th[scope=row] the content reads correctly
   as a sequence, and this sidesteps the horizontal-scroll-region keyboard
   problem (WCAG 2.1.1) instead of solving it. Nothing is truncated or hidden
   behind a disclosure — this list IS the argument. */
@media (max-width: 47.99rem) {
  .checks__table, .checks__table tbody, .checks__table tr,
  .checks__table th, .checks__table td { display: block; }
  .checks__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .checks__table caption { border-bottom: 1px solid var(--color-rule); }
  .checks__table tr { border-top: 1px solid var(--color-rule); border-left: 3px solid var(--color-security); }
  .checks__table th[scope="row"] { width: auto; padding-bottom: var(--space-1); border-top: 0; }
  .checks__table td { padding-top: 0; border-top: 0; color: var(--color-text-muted); }
}

/* =============================================================
   13  EXPOSURE REPORT
   ============================================================= */
.facts {
  display: grid;
  border: 1px solid var(--color-rule);
  background: var(--color-surface-raised);
}
.facts__item { padding: var(--space-5); }
.facts__item + .facts__item { border-top: 1px solid var(--color-rule); }
.facts__fig {
  display: block;
  font-size: var(--fs-step);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-display);
}
.facts__label { display: block; margin-top: var(--space-2); color: var(--color-text-meta); }

.gets { margin-top: var(--space-6); }
.gets li {
  padding: var(--space-4) 0 var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-rule);
  border-left: 3px solid var(--color-presence);
  max-width: var(--measure);
}
.gets b { font-weight: 600; }

@media (min-width: 48rem) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts__item + .facts__item { border-top: 0; border-left: 1px solid var(--color-rule); }
}

/* =============================================================
   14  SERVICES
   Two pillars stacked, never side by side — side-by-side columns
   invite the reader to pick one, and the argument is that you
   cannot.
   ============================================================= */
.pillar__eyebrow { display: block; color: var(--color-text-meta); margin-bottom: var(--space-2); }
.pillar__title { font-size: var(--fs-h3); }
.pillar__scope { margin-top: var(--space-2); color: var(--color-text-muted); }
.pillar__list { margin-top: var(--space-5); }
.pillar__list li {
  padding: var(--space-4) 0 var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--color-rule);
  border-left: 3px solid var(--color-rule);
  max-width: var(--measure);
}
.pillar--presence .pillar__list li { border-left-color: var(--color-presence); }
.pillar--security .pillar__list li { border-left-color: var(--color-security); }
.pillar__list b { font-weight: 600; }

.pillar-join {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-block: var(--space-8);
  color: var(--color-text-meta);
}
.pillar-join::before,
.pillar-join::after { content: ""; flex: 1; height: 2px; background: var(--color-rule); }

/* =============================================================
   15  METHOD + TERMS — the nodes
   Numbering is structural: counter-reset on the list,
   counter-increment on the item, content on ::before, so it
   cannot drift from the markup when someone reorders a step.
   Nodes are pseudo-elements and therefore invisible to assistive
   tech by construction; the step's own heading carries the
   number in its text.
   ============================================================= */
.steps { counter-reset: step; padding-left: 0; }
.step {
  counter-increment: step;
  position: relative;
  padding-left: calc(var(--node) + var(--space-4));
  padding-bottom: var(--space-8);
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border: 1px solid var(--color-rule);
  background: var(--color-surface);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
}
.step__title { font-size: var(--fs-h3); }
.step__body { margin-top: var(--space-2); color: var(--color-text-muted); max-width: var(--measure); }
.step--weighted { border-top: 2px solid var(--color-rule); padding-top: var(--space-5); }
.step--weighted::before { top: var(--space-5); }

.steps--spine { padding-left: calc(var(--spine-total) + var(--space-5)); }

.refusal {
  margin-top: var(--space-8);
  border-top: 2px solid var(--color-security);
  background: var(--color-surface-inset);
  border-inline: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  padding: var(--space-5);
}
.refusal__label { display: block; color: var(--color-text-meta); margin-bottom: var(--space-3); }

/* =============================================================
   16  STANDARDS
   No logos, seals, shields, badges or checkmark graphics anywhere
   near a standard's name — visual implication of certification is
   deception even when the words are clean.
   ============================================================= */
.standards { display: grid; gap: var(--space-5); }
.standard__name { display: block; color: var(--color-text-meta); margin-bottom: var(--space-3); }
.standard p { color: var(--color-text-muted); }
.standard a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; }
.limit { margin-top: var(--space-6); border-top: 2px solid var(--color-rule); padding-top: var(--space-5); }
.limit p { font-size: var(--fs-h3); line-height: 1.45; max-width: var(--measure); }

/* =============================================================
   17  FOUNDERS
   ============================================================= */
.founders { display: grid; gap: var(--space-8); }
.founder__name { font-size: var(--fs-h3); }
.founder__role { display: block; margin-top: var(--space-2); color: var(--color-text-meta); }
.founder__body { margin-top: var(--space-4); }
.founder__body p + p { margin-top: var(--space-4); }
.founder__body p { color: var(--color-text-muted); max-width: var(--measure); }
.founder__evidence { margin-top: var(--space-4); padding-left: var(--space-4); border-left: 3px solid var(--color-rule); }
.founder--security .founder__evidence { border-left-color: var(--color-security); }
.founder--presence .founder__evidence { border-left-color: var(--color-presence); }

/* Portrait plates. The <picture> markup is in the HTML, commented, with the
   exact sizes; drop two files in and uncomment. Grayscale + a channel rule so
   the two plates read as one instrument, not two headshots.
   NO monogram plate and no "photo pending" state: that reads as unfinished
   rather than careful, and it is the wrong side of the line. Text-only until
   real photographs exist. */
.founder__plate {
  width: 100%;
  max-width: 13.75rem;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
  margin-bottom: var(--space-4);
  background: var(--color-surface-inset);
  border: 1px solid var(--color-rule);
  border-left-width: 2px;
  filter: grayscale(1) contrast(1.08);
}
.founder--security .founder__plate { border-left-color: var(--color-security); }
.founder--presence .founder__plate { border-left-color: var(--color-presence); }

@media (min-width: 64rem) {
  .founders { grid-template-columns: 1fr 1px 1fr; gap: var(--space-8); }
  .founders__rule { background: var(--color-rule); }
}

/* =============================================================
   18  CLIENT No. 001
   Built as a ruled ledger row styled IDENTICALLY to a filled row
   — same border, same fill, same height — so its emptiness is
   legible as intent rather than as an unfinished build.
   ============================================================= */
.reserved {
  display: grid;
  gap: var(--space-4);
  min-height: 7.5rem;
  align-content: center;
  background: var(--color-surface-raised);
  border: 1px solid var(--color-rule);
  padding: var(--space-5);
  padding-left: calc(var(--spine-w) + var(--space-5));
}
.reserved__label { color: var(--color-text-meta); }
.reserved p { max-width: var(--measure); }
.reserved p + p { color: var(--color-text-muted); }

/* =============================================================
   19  SPANISH BAND
   The only full-bleed band on the page, which is what makes it a
   service capability rather than a footer garnish.
   ============================================================= */
.band {
  background: var(--color-surface-inset);
  border-block: 1px solid var(--color-rule);
  padding-block: var(--space-10);
}
.band__inner { max-width: var(--content-narrow); }
.band__label { display: block; color: var(--color-text-meta); margin-bottom: var(--space-3); }
.band__title { font-size: var(--fs-h2); letter-spacing: var(--ls-display); }
.band p { margin-top: var(--space-4); font-size: var(--fs-lede); color: var(--color-text-muted); }
.band .btn { margin-top: var(--space-6); }
.band__en {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-rule-decor);
  font-size: var(--fs-small);
  color: var(--color-text-meta);
}

/* Centred body copy at 360px produces ragged left edges that read as
   unprofessional in any language. Centre only from 600px up. */
@media (min-width: 37.5rem) {
  .band__inner { margin-inline: auto; text-align: center; }
  .band p { margin-inline: auto; }
}

/* =============================================================
   20  FAQ
   Native <details>/<summary>: no JS, keyboard-accessible for
   free, and the answer text is in the DOM whether or not it is
   open — which is what Google requires for FAQ markup to be
   honoured at all.
   ============================================================= */
.faq { max-width: var(--measure); }
.faq__item { border-bottom: 1px solid var(--color-rule); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 3.5rem;
  padding-block: var(--space-3);
  font-size: var(--fs-h3);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "";
  flex: none;
  width: 0.5rem; height: 0.5rem;
  margin-right: 0.75rem;
  border-right: 2px solid var(--color-rule);
  border-bottom: 2px solid var(--color-rule);
  transform: rotate(-45deg);
  transition: transform var(--dur-fast) var(--ease);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding-bottom: var(--space-5); color: var(--color-text-muted); }

/* =============================================================
   21  CONTACT FORM
   ============================================================= */
.form { display: grid; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 600; }
.field__hint { color: var(--color-text-meta); font-size: var(--fs-small); }
.field input,
.field textarea {
  width: 100%;
  min-height: 3rem;                     /* 48px */
  padding: var(--space-3);
  font: inherit;
  font-size: 1rem;                      /* 16px floor: iOS zooms below it */
  color: var(--color-text);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-rule);
  border-radius: 0;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--color-text-muted); }

/* Every error paragraph reserves one line so appearing text cannot push the
   submit button — that is the CLS trap on this page. The leading glyph means
   the state is never colour alone (WCAG 1.4.1). */
.field__error {
  min-height: 1.35rem;
  color: var(--color-security);
  font-size: var(--fs-small);
  font-weight: 600;
}
.field__error:not(:empty)::before { content: "! "; }
.field--invalid input,
.field--invalid textarea,
.fieldset--invalid { border-color: var(--color-security); border-width: 2px; }

.fieldset { border: 1px solid var(--color-rule); padding: var(--space-4); margin: 0; min-width: 0; }
.fieldset legend { padding-inline: var(--space-2); font-weight: 600; }
.choice {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--tap);
  cursor: pointer;
}
.choice + .choice { border-top: 1px solid var(--color-rule-decor); }
.choice input { width: 1.25rem; height: 1.25rem; accent-color: var(--color-presence); flex: none; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-height: 3.5rem;
  padding-top: var(--space-2);
  cursor: pointer;
}
.consent input { width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; accent-color: var(--color-presence); flex: none; }

.form__summary {
  border: 2px solid var(--color-security);
  background: var(--color-surface-inset);
  padding: var(--space-4);
  color: var(--color-text);
  font-weight: 600;
}
.form__summary[hidden] { display: none; }
.form__foot { margin-top: var(--space-5); color: var(--color-text-meta); }
.form__foot p + p { margin-top: var(--space-2); }

.form-success { border-left: var(--spine-w) solid var(--color-presence); padding-left: var(--space-5); }
.form-success__title { font-size: var(--fs-h2); letter-spacing: var(--ls-display); }
.form-success p { margin-top: var(--space-4); color: var(--color-text-muted); max-width: var(--measure); }

@media (min-width: 48rem) {
  .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
}

/* =============================================================
   22  FOOTER
   ============================================================= */
.site-footer {
  background: var(--color-surface-inset);
  border-top: 2px solid var(--color-rule);
  padding-block: var(--space-8);
  margin-top: var(--space-10);
}
.site-footer__brand { font-weight: 700; font-size: 1.125rem; letter-spacing: var(--ls-display); }
.site-footer__tag { margin-top: var(--space-2); color: var(--color-text-muted); }
.site-footer__cols { display: grid; gap: var(--space-6); margin-top: var(--space-6); }
.site-footer__col > .mono { display: block; color: var(--color-text-meta); margin-bottom: var(--space-2); }
.site-footer__col li a,
.site-footer__col li span {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  border-bottom: 1px solid var(--color-rule-decor);
}
.site-footer__col li span { color: var(--color-text-muted); }
.site-footer__fine {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-rule-decor);
  color: var(--color-text-meta);
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  line-height: 1.7;
  text-transform: none;
  letter-spacing: 0;
}
.site-footer__fine p { max-width: 80ch; }
.site-footer__fine p + p { margin-top: var(--space-4); }

@media (min-width: 48rem) {
  .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =============================================================
   23  404 + LEGAL PAGES
   svh, not vh — vh changes when the mobile URL bar collapses,
   which is a layout shift on scroll.
   ============================================================= */
.error-page {
  display: grid;
  align-content: center;
  min-height: 60svh;
  padding-block: var(--space-10);
}
.error-page__inner { max-width: var(--content-narrow); }
.error-page__code { color: var(--color-text-meta); }
.error-page__title { margin-top: var(--space-4); font-size: var(--fs-display); letter-spacing: var(--ls-display); line-height: var(--lh-display); }
.error-page p { margin-top: var(--space-5); color: var(--color-text-muted); }
.error-page .actions { margin-top: var(--space-6); }
.error-page__note { font-size: var(--fs-small); }

.prose { max-width: var(--measure); padding-block: var(--space-8); }
.prose h1 { font-size: var(--fs-h2); letter-spacing: var(--ls-display); }
.prose h2 { margin-top: var(--space-8); font-size: var(--fs-h3); }
.prose p, .prose ul { margin-top: var(--space-4); color: var(--color-text-muted); }
.prose ul { list-style: disc; padding-left: var(--space-5); }
.prose li + li { margin-top: var(--space-2); }
.prose__meta { color: var(--color-text-meta); margin-top: var(--space-3); }

/* =============================================================
   24  MOTION
   Reveal polarity is INVERTED on purpose: markup and CSS author
   every revealed element in its FINAL VISIBLE state. The
   deferred module adds .is-armed to <html> only after it has
   confirmed it will run AND that reduced motion is not
   requested; only then does the hidden state apply. A blocked
   script, a CSP misconfiguration or a thrown error therefore
   yields a complete page, never a blank one.
   ============================================================= */
.is-armed .u-reveal { opacity: 0; transition: opacity var(--dur-base) var(--ease); }
.is-armed .u-reveal.is-in { opacity: 1; }

/* Hero leader lines draw once on load. Pure CSS — no JavaScript touches the
   hero, so there is nothing here that can fail. */
.u-leader {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: leader 260ms var(--ease) forwards;
}
.u-leader:nth-of-type(1) { animation-delay: 240ms; }
.u-leader:nth-of-type(2) { animation-delay: 330ms; }
.u-leader:nth-of-type(3) { animation-delay: 420ms; }
.u-leader:nth-of-type(4) { animation-delay: 510ms; }
.u-leader:nth-of-type(5) { animation-delay: 600ms; }
.u-leader:nth-of-type(6) { animation-delay: 690ms; }
@keyframes leader { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0.01ms; --dur-base: 0.01ms; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .u-leader { stroke-dashoffset: 0 !important; }  /* final state, already drawn */
}

/* Long sections are skipped during the initial layout pass. The intrinsic size
   is mandatory — without it this reintroduces the CLS it is meant to avoid. */
@supports (content-visibility: auto) {
  #services, #faq { content-visibility: auto; contain-intrinsic-size: auto 1400px; }
}
