/* Valenso marketing site [#1309]: mockup v28 as approved. Engraved pattern at medium strength throughout, the invitation
   stamp right of the closing text, direction F tokens (Frost light, steel and gold dark). No script; fonts self-hosted. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-latin-opsz-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-latin-opsz-italic.woff2") format("woff2-variations"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2-variations"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("fonts/source-sans-3-latin-wght-italic.woff2") format("woff2-variations"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --page: #f7fbfe; --panel: #ffffff; --ink: #1b2b3b; --steel: #27527c; --steel-deep: #1c3d5e; --muted: #3f5060;
  --line: #d8e1e9; --line-strong: #a3b6c9; --soft: #e1e8f0; --mist: #eaf1f8;
  --on-steel: #ffffff; --focus: #1f5fa0; --logo: #27527c; --bound: #7a8fa4; --quiet-border: #a3b6c9;
  --pos-fill: #4a7c7c; --amber: #76501a; --line-bottom: #c8d4df;
  --seal-fill: #c9d9e8; --seal-shade: #1c3d5e; --seal-shade-a: .55; --seal-light: #ffffff; --seal-light-a: 1;
  /* The engraving in light reads in a deeper ink so the bands show on Frost. */
  --pat-ink: #1c3d5e; --pat-a: .15;
  --shadow: 0 1px 0 rgb(27 43 59 / .06), 0 1px 3px rgb(27 43 59 / .06), 0 10px 24px -14px rgb(27 43 59 / .14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #121a24; --panel: #1a2431; --ink: #e3eaf2; --steel: #8fb6dd; --steel-deep: #b3d3f2; --muted: #a7b5c4;
    --line: #2a3644; --line-strong: #3e4e60; --soft: #1f3044; --mist: #232f3c;
    --on-steel: #0f1b28; --focus: #b3d3f2; --logo: #c9a96a; --bound: #6a7d91; --quiet-border: #6a7d91;
    --pos-fill: #76b1a8; --amber: #edc584; --line-bottom: #2a3644;
    --seal-fill: #b8924f; --seal-shade: #000000; --seal-shade-a: .6; --seal-light: #ecdcb4; --seal-light-a: .6;
    --pat-ink: #8fb6dd; --pat-a: .12;
    --shadow: 0 1px 0 rgb(0 0 0 / .35), 0 1px 3px rgb(0 0 0 / .3), 0 10px 24px -14px rgb(0 0 0 / .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #121a24; --panel: #1a2431; --ink: #e3eaf2; --steel: #8fb6dd; --steel-deep: #b3d3f2; --muted: #a7b5c4;
  --line: #2a3644; --line-strong: #3e4e60; --soft: #1f3044; --mist: #232f3c;
  --on-steel: #0f1b28; --focus: #b3d3f2; --logo: #c9a96a; --bound: #6a7d91; --quiet-border: #6a7d91;
  --pos-fill: #76b1a8; --amber: #edc584; --line-bottom: #2a3644;
  --seal-fill: #b8924f; --seal-shade: #000000; --seal-shade-a: .6; --seal-light: #ecdcb4; --seal-light-a: .6;
  --pat-ink: #8fb6dd; --pat-a: .12;
  --shadow: 0 1px 0 rgb(0 0 0 / .35), 0 1px 3px rgb(0 0 0 / .3), 0 10px 24px -14px rgb(0 0 0 / .5);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.0625rem/1.6 "Source Sans 3", system-ui, sans-serif; overflow-x: hidden; }
a { color: var(--steel); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: Newsreader, Georgia, serif; font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -.01em; }
p, figure, blockquote { margin: 0; }
h1, h2, h3, .pull p { text-wrap: balance; }
.body, .lead, .attrs p, .loop p, .ledger p, .golden p, .posture p, .closing, .disclaimer { text-wrap: pretty; }
.defs { position: absolute; }
.wrap { max-width: 1184px; margin: 0 auto; padding: 0 48px; }
.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: 16px; top: -100px; z-index: 10; background: var(--panel); color: var(--steel); padding: 12px 16px; border-radius: 9px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
#case-study:focus { outline: none; }

/* Labels: sentence case in the body sans (owner, twice); the story's section labels in steel. */
.mono { font: 600 1.1875rem/1.4 "Source Sans 3", system-ui, sans-serif; letter-spacing: normal; color: var(--muted); }
.page-story .rail > .mono { color: var(--steel); }

/* Header */
.site-head { border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; color: var(--logo); min-height: 44px; min-width: 44px; }
.brand svg { display: block; fill: currentColor; }
.brand .wordmark { width: 150px; height: auto; }
.brand .vmark { display: none; width: 40px; height: 40px; }
.nav { display: flex; align-items: center; gap: 4px 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.9375rem; display: inline-flex; align-items: center; min-height: 44px; }
.nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 9px; font: 600 0.9375rem/1 "Source Sans 3", system-ui, sans-serif; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--steel); color: var(--on-steel); }
.btn-primary:hover { background: var(--ink); color: var(--page); }
.btn-quiet { border: 1px solid var(--quiet-border); color: var(--ink); background: var(--panel); }
.btn-quiet:hover { border-color: var(--steel); color: var(--steel); }
.sign-in { margin-left: 8px; }
.nav a.btn-primary { color: var(--on-steel); }
.nav a.btn-primary:hover { color: var(--page); }
/* The story's section nav: links in the header on desktop, a second row that scrolls sideways within itself below 1000px. */
.story-nav-strip { display: none; border-top: 1px solid var(--line); position: relative; }
.story-nav-strip::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; pointer-events: none; background: linear-gradient(to right, transparent, var(--page)); }
.story-nav-strip ul { list-style: none; margin: 0; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.story-nav-strip ul::-webkit-scrollbar { display: none; }
.story-nav-strip a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--muted); text-decoration: none; white-space: nowrap; font-size: 0.9375rem; }
.story-nav-strip li:first-child a { padding-left: 0; }

/* Shared type */
.display-1 { font-size: clamp(2.6rem, 1.2rem + 5vw, 5.4rem); line-height: 1.02; letter-spacing: -.025em; font-weight: 350; font-variation-settings: "opsz" 72; }
.display-2 { font-size: clamp(2rem, 1.1rem + 2.8vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; font-weight: 350; font-variation-settings: "opsz" 60; }
.display-3 { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.15; font-weight: 400; }
.lead { font-family: Newsreader, Georgia, serif; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.65rem); line-height: 1.45; color: var(--ink); font-weight: 350; }
.body { color: var(--muted); max-width: 64ch; }
.body + .body { margin-top: 18px; }
.after-heading { margin-top: 28px; }

/* Sections: an index rail and a content column */
.section { padding: 112px 0; border-top: 1px solid var(--line); }
.rail { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 48px; }
.rail > .mono { padding-top: 14px; }
.stack > * + * { margin-top: 24px; }
.sub { margin-top: 88px; }
.sub > .mono { margin-bottom: 18px; }

/* Attribute lists (label / title / text) */
.attrs { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 0 40px; }
.attrs li { border-top: 1px solid var(--ink); padding-top: 18px; padding-bottom: 8px; }
.attrs .mono { display: block; margin-bottom: 10px; font: 600 1.0625rem/1.45 "Source Sans 3", system-ui, sans-serif; color: var(--muted); }
.attrs .t { font-family: Newsreader, Georgia, serif; font-size: 1.3rem; line-height: 1.25; color: var(--ink); margin-bottom: 8px; }
.attrs .t em { font-style: italic; }
.attrs p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.attrs p.t { color: var(--ink); font-size: 1.3rem; line-height: 1.25; }
/* Built for leads the row as the reader it's for; the two principles sit side by side beneath it. */
.attrs.audience { --cols: 2; gap: 36px 40px; }
.attrs.audience li:first-child { grid-column: 1 / -1; padding-top: 22px; }
.attrs.audience li:first-child .t { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.15; margin-bottom: 12px; max-width: 24ch; }
.attrs.audience li:first-child p:not(.t) { font-size: 1.0625rem; max-width: 60ch; }
.attrs.two-up { --cols: 2; gap: 32px 40px; }
/* Kanso's four tests under the pull quote: each term set large in italic, as a specimen, not another ruled list. */
.terms { margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 40px; }
.terms dt { font: italic 350 clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem)/1.1 Newsreader, Georgia, serif; color: var(--steel); letter-spacing: -.01em; }
.terms dt::after { content: ""; display: block; width: 28px; height: 1px; margin: 16px 0 14px; background: var(--line-strong); }
.terms dd { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; text-wrap: pretty; }
@media (min-width: 37.5625em) { .attrs.why-now { --cols: 2; } }

/* Home hero: the copy and the Plan card side by side */
.hero { position: relative; overflow: hidden; padding: 88px 0 112px; }
.hero > .wrap { position: relative; z-index: 1; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 64px; align-items: center; }
.split > .frag { justify-self: end; width: 100%; }
.hero-rule { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.hero .display-1 { max-width: 12ch; }
.hero .lead { margin-top: 36px; max-width: 30ch; }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero .frag, .story-hero .frag { position: relative; isolation: isolate; }
.split-sec .mono { margin-bottom: 24px; }
.split-sec .body { margin-top: 24px; }
.points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 24px; }
.points li { border-top: 1px solid var(--ink); padding-top: 16px; }
.points .t { font-family: Newsreader, Georgia, serif; font-size: 1.3rem; line-height: 1.25; color: var(--ink); margin-bottom: 6px; }
.points p:not(.t) { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.home-principle .display-2 { max-width: 16ch; }
.home-principle .body { margin-top: 28px; }
.rail > h2.mono { padding-top: 14px; }
.trust-link { margin-top: 32px; }
.trust-link .text-link, .text-link.flush { padding-left: 0; }
.more { margin-top: 28px; }

/* Story hero */
.story-hero { position: relative; overflow: hidden; padding: 88px 0 104px; }
.story-hero > .wrap { position: relative; z-index: 1; }
.story-hero .display-1 { font-size: clamp(2.3rem, 1.1rem + 4.2vw, 4.6rem); max-width: 17ch; }
.story-hero .lead { margin-top: 40px; max-width: 40ch; }
.byline { margin-top: 32px; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 1rem; }
.byline::before { content: ""; width: 40px; height: 1px; background: var(--ink); }
.story-hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* The story's card: text left and the card in the spotlight, as on Home: the build loop, then its story beats. */
.story-split { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
.build-card .ui-h { margin-bottom: 4px; font-family: "Source Sans 3", system-ui, sans-serif; letter-spacing: normal; color: var(--ink); }
/* The loop: four steps clockwise in a 2×2 cycle, arrows between them in steel. */
.cycle { list-style: none; counter-reset: step; margin: 16px 0 20px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 34px; }
.cycle li { counter-increment: step; position: relative; display: grid; place-items: center; align-content: center; gap: 2px; min-height: 52px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; text-align: center; font-size: 0.875rem; line-height: 1.125rem; font-weight: 600; color: var(--ink); cursor: default; }
.cycle li::before { content: counter(step) / ""; font: 500 0.75rem/1 "IBM Plex Mono", ui-monospace, monospace; color: var(--steel); }
.cycle li:nth-child(3) { grid-area: 2 / 2; }
.cycle li:nth-child(4) { grid-area: 2 / 1; }
.cycle li::after { position: absolute; color: var(--steel); font-weight: 700; font-size: 1.125rem; line-height: 1; }
.cycle li:nth-child(1)::after { content: "\2192" / ""; left: 100%; top: 50%; margin: -9px 0 0 8px; }
.cycle li:nth-child(2)::after { content: "\2193" / ""; top: 100%; left: 50%; margin: 6px 0 0 -5px; }
.cycle li:nth-child(3)::after { content: "\2190" / ""; right: 100%; top: 50%; margin: -9px 8px 0 0; }
.cycle li:nth-child(4)::after { content: "\2191" / ""; bottom: 100%; left: 50%; margin: 0 0 6px -5px; }
/* The beats: a dotted rail, the latest filled. */
.beats { list-style: none; position: relative; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.beats li { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 8px; padding-left: 22px; font-size: 0.875rem; line-height: 1.25rem; }
.beats li::before { content: ""; position: absolute; top: 4px; left: 0; width: 11px; height: 11px; border-radius: 999px; background: var(--panel); border: 1.5px solid var(--steel); box-sizing: border-box; }
.beats li:last-child::before { background: var(--steel); }
.beats li:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 15px; bottom: -16px; width: 1px; background: var(--line-strong); }
.beats time { font: 500 0.75rem/1.25rem "IBM Plex Mono", ui-monospace, monospace; color: var(--steel); font-variant-numeric: tabular-nums; }
.beats b { display: block; font-weight: 600; color: var(--ink); }
.beats span { color: var(--muted); }
.build-foot { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }

/* Pull quote */
.pull { margin: 48px 0 0; padding: 40px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.pull p { font-family: Newsreader, Georgia, serif; font-style: italic; font-weight: 350; font-size: clamp(1.7rem, 1.1rem + 2vw, 2.7rem); line-height: 1.2; letter-spacing: -.015em; max-width: 26ch; color: var(--ink); }
.pull p::before { content: "\201C"; color: var(--steel); margin-left: -.45em; padding-right: .05em; }
.pull p::after { content: "\201D"; color: var(--steel); }

/* Numbered steps (Home's how it works, the story's build loop) */
.loop { list-style: none; margin: 56px 0 0; padding: 0; }
.loop.loop-flush { margin-top: 0; }
.loop li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.loop li:last-child { border-bottom: 1px solid var(--line); }
.loop .n { font-family: Newsreader, Georgia, serif; font-size: 3.4rem; line-height: .9; font-weight: 300; color: var(--steel); font-variant-numeric: lining-nums; }
.loop h3 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 10px; }
.loop p { color: var(--muted); max-width: 60ch; }
.loop .tags { margin-top: 14px; font: 400 0.875rem/1.5 "IBM Plex Mono", ui-monospace, monospace; color: var(--steel); letter-spacing: .02em; }
.closing { margin-top: 48px; font-family: Newsreader, Georgia, serif; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); line-height: 1.4; max-width: 44ch; font-weight: 350; }

/* Architecture diagram */
.arch { margin: 56px 0 0; padding: 40px 32px 32px; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow); }
.arch svg { display: block; width: 100%; height: auto; overflow: visible; }
.arch .tall { display: none; }
.arch figcaption { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; color: var(--ink); font-size: 1rem; }
.arch figcaption::before { content: "\2192"; color: var(--steel); font-family: "IBM Plex Mono", monospace; }
.d-label { font: 500 11px "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .12em; fill: var(--steel); }
.d-title { font: 400 22px Newsreader, Georgia, serif; fill: var(--ink); }
.d-detail { font: 400 14px "Source Sans 3", system-ui, sans-serif; fill: var(--muted); }
.d-hair { stroke: var(--line); stroke-width: 1; }
.d-spine { stroke: var(--steel); stroke-width: 1.5; }
.d-dot { fill: var(--panel); stroke: var(--steel); stroke-width: 1.5; }
.d-bound { fill: none; stroke: var(--bound); stroke-width: 1.25; stroke-dasharray: 3 5; }
.d-flow { stroke: var(--ink); stroke-width: 1.25; fill: none; }
.d-gate { stroke: var(--steel); stroke-width: 2.5; }
.d-head { fill: var(--ink); }

/* Governance */
.golden { margin-top: 56px; padding: 36px 0 32px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.golden .mono { margin-bottom: 16px; }
.golden h3 { font-size: clamp(1.7rem, 1.15rem + 2vw, 2.6rem); line-height: 1.15; max-width: 22ch; font-weight: 400; }
.golden p { margin-top: 18px; color: var(--muted); max-width: 60ch; }
.ledger { list-style: none; margin: 8px 0 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 72px minmax(180px, 280px) minmax(0, 1fr); gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger .idx { font: 500 0.875rem/1 "IBM Plex Mono", ui-monospace, monospace; color: var(--steel); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.ledger h3 { font-size: 1.35rem; line-height: 1.25; }
.ledger p { color: var(--muted); }
.posture { margin-top: 48px; display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; gap: 24px; }
.posture p { color: var(--muted); }
.posture .t { font-family: Newsreader, Georgia, serif; font-size: 1.25rem; line-height: 1.3; color: var(--ink); }
.disclaimer { margin-top: 32px; padding: 16px 20px; background: var(--mist); border-radius: 9px; font-size: 0.9375rem; color: var(--muted); max-width: 72ch; }

/* Closing sections: the text block and the stamp side by side */
.continue .display-2 { max-width: 20ch; }

/* Not found: one short message under the engraved band, and the way back */
.not-found { position: relative; overflow: hidden; padding: 120px 0 144px; }
.not-found > .wrap { position: relative; z-index: 1; }
.not-found .display-2 { max-width: 16ch; }
.not-found .body { margin-top: 24px; }
.not-found .actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.continue .actions, .cta-s .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.cta-s .actions { gap: 12px 16px; }
.cta-s { position: relative; overflow: hidden; }
.cta-s > .wrap { position: relative; z-index: 1; }

/* Footer: a compact sign-off */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 14px 48px; align-items: center; }
.site-foot .brand { justify-self: start; }
.site-foot .brand .wordmark { width: 128px; }
.foot-lines { display: grid; gap: 0; justify-items: end; text-align: right; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.foot-legal { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }

/* Product fragments: the app's Card, Line, goal row and Inbox item, not interactive */
.frag { min-width: 0; }
.ui { font: 400 1rem/1.5 "Source Sans 3", system-ui, sans-serif; color: var(--ink); overflow-wrap: anywhere; cursor: default; }
.ui-card { background: var(--panel); border: 1px solid var(--line); border-bottom-color: var(--line-bottom); border-radius: 14px; box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.ui-h { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; }
.ui-u { text-decoration: underline; text-underline-offset: 4px; }
.ui-sm { font-size: 0.875rem; line-height: 1.25rem; }
.ui-xs { font-size: 0.75rem; line-height: 1rem; }
.ui-muted { color: var(--muted); }
.ui-num { font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.ui-lines { list-style: none; margin: 0; padding: 0; }
.ui-line { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.ui-line > :last-child { margin-left: auto; }
.ui-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; column-gap: 12px; margin-bottom: 4px; }
.ui-goal { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }
.ui-goal b { font-weight: 600; }
.ui-goal .ui-row { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 12px; }
.ui-track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--line); }
.ui-fill { height: 100%; border-radius: 999px; background: var(--pos-fill); }
.ui-fill.fill-40 { width: 40%; }
.ui-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ui-item { display: flex; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-bottom-color: var(--line-bottom); border-radius: 14px; box-shadow: var(--shadow); }
.ui-item-main { display: flex; gap: 12px; min-height: 64px; min-width: 0; flex: 1 1 12rem; padding: 12px 14px; }
.ui-glyph { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid currentColor; font-size: 0.75rem; line-height: 1; font-weight: 700; }
.ui-glyph.calm { color: var(--steel); }
.ui-glyph.attention { color: var(--amber); }
.ui-item-main b { display: block; font-weight: 600; line-height: 1.375; }
.ui-item-main .ui-sm { display: block; margin-top: 2px; }
.ui-act { display: flex; align-items: center; justify-content: center; min-height: 44px; flex-basis: 100%; border-top: 1px solid var(--line); padding: 0 12px; font-size: 0.875rem; font-weight: 600; color: var(--steel); }

/* The stamp: blind-debossed on Frost, gold foil in dark. Kit: 64px minimum, 1.5s clear space. */
.stamp { display: block; width: 210px; height: 210px; }
.stamp path { fill: var(--seal-fill); }
.seal-shade { flood-color: var(--seal-shade); flood-opacity: var(--seal-shade-a); }
.seal-light { flood-color: var(--seal-light); flood-opacity: var(--seal-light-a); }
.cta-seal, .story-seal { display: flex; justify-content: center; padding: 47px; }

/* The engraving: one tile, weight and opacity everywhere. A 40px full-bleed band at the top of each hero and above the
   trust moments (Home: Trust, the closing invitation; Story: Governance, Continuing), and feathered fields at the focal
   points (Home: the hero card, the stamp; Story: the hero, the stamp). Never behind body text. */
.band { position: absolute; z-index: 0; left: 0; right: 0; top: 0; height: 40px; pointer-events: none; color: var(--pat-ink); opacity: var(--pat-a);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(transparent, #000 25%, #000 75%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent), linear-gradient(transparent, #000 25%, #000 75%, transparent); mask-composite: intersect; }
.band svg { display: block; }
.has-band, .trust-s { position: relative; }
.has-band > .wrap, .trust-s > .wrap { position: relative; z-index: 1; }
.has-band, .trust-s, .cta-s { border-top-color: transparent; }
.pat { position: absolute; z-index: 0; pointer-events: none; overflow: hidden; color: var(--pat-ink); opacity: var(--pat-a); transform: translate(-50%, -50%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent), linear-gradient(transparent, #000 24%, #000 76%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent), linear-gradient(transparent, #000 24%, #000 76%, transparent); mask-composite: intersect; }
.pat svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.pat-hero { left: 50%; top: 50%; width: 560px; height: 560px; z-index: -1; }
.pat-cta, .pat-story-seal { left: calc(min(100%, 50% + 592px) - 200px); top: 50%; width: 360px; height: 360px; }
.continue { overflow: hidden; }

/* Desktop: the closing text block in the content column, the stamp right of it, vertically centred */
@media (min-width: 62.5625em) {
  .cta-s .rail, .continue .rail { grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr) 304px; gap: 48px; align-items: center; }
  .cta-s .rail > :not(.cta-seal) { grid-column: 2; grid-row: 1; }
  .cta-s .cta-seal { grid-column: 3; grid-row: 1; }
  .continue .rail > .mono { align-self: start; }
}

/* Narrower frames. Breakpoints in em follow the reader's text-size setting, so large text gets the narrow layout. */
@media (max-width: 62.5em) {
  .wrap { padding: 0 32px; }
  .rail { grid-template-columns: 1fr; gap: 20px; }
  .rail > .mono, .rail > h2.mono { padding-top: 0; }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
  .story-nav-links { display: none; }
  .story-nav-strip { display: block; }
  .arch .wide { display: none; }
  .arch .tall { display: block; max-width: 380px; margin: 0 auto; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .split > .frag { justify-self: start; max-width: 440px; }
  .pat-hero { width: calc(100% + 96px); height: calc(100% + 96px); }
  /* The stamp centres above the closing heading as a seal. */
  .cta-s .rail, .continue .rail { grid-template-columns: minmax(0, 1fr); gap: 0; align-items: start; }
  .cta-seal, .story-seal { padding: 0 0 40px; }
  .story-seal { order: -1; }
  .stamp { width: 147px; height: 147px; }
  .pat-cta, .pat-story-seal { left: 50%; top: 186px; width: 420px; height: 226px; }
}
@media (max-width: 37.5em) {
  .wrap { padding: 0 16px; }
  body { font-size: 1rem; }
  .head-row { min-height: 64px; gap: 8px; }
  .brand .wordmark { display: none; }
  .brand .vmark { display: block; }
  .nav { gap: 4px 16px; }
  .sign-in { margin-left: 0; padding: 0 14px; }
  .hero { padding: 64px 0 80px; }
  .story-hero { padding: 56px 0 72px; }
  .hero .lead, .story-hero .lead { margin-top: 28px; }
  .hero-rule { margin-bottom: 28px; }
  .section { padding: 72px 0; }
  .sub { margin-top: 64px; }
  .attrs, .attrs.audience, .attrs.two-up { --cols: 1; gap: 24px; margin-top: 36px; }
  .terms { margin-top: 32px; gap: 28px 24px; }
  .not-found { padding: 72px 0 96px; }
  .loop li { grid-template-columns: 1fr; gap: 8px; padding: 28px 0; }
  .loop .n { font-size: 2.6rem; }
  .arch { padding: 24px 16px 20px; margin-left: -4px; margin-right: -4px; }
  .ledger li { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 12px; }
  .ledger li p { grid-column: 2; }
  .posture { grid-template-columns: 1fr; gap: 8px; }
  .foot-grid { grid-template-columns: 1fr; gap: 10px; }
  .foot-lines { justify-items: start; text-align: left; }
  .foot-legal { padding-top: 10px; }
  .foot-legal .foot-sep { display: none; }
  .foot-legal .foot-note { display: block; }
  .site-foot .brand .wordmark { display: block; }
  .story-hero .actions .btn { flex: 1 1 auto; }
  .cta-seal, .story-seal { padding-bottom: 32px; }
  .stamp { width: 112px; height: 112px; }
  .pat-cta, .pat-story-seal { top: 128px; width: 340px; height: 176px; }
}
