/* AMFinX site styles (29 Oct 2026 rebuild, pass 5 polish 30 Oct). Navy and gold, matched to the logo.
   Fraunces for display, Inter for body, IBM Plex Mono for labels. Deep navy surfaces carry a slow
   aurora and a faint grid; warm paper bands sit between white sections; gold is the accent only.
   Everything motion-related is off under prefers-reduced-motion. Content renders without JS:
   scroll-reveal hides nothing unless html.js is present. */

/* ====================================================================== tokens */
:root {
  --navy: #0b1d36; --navy-2: #102648; --navy-3: #1b3a63;
  --ink: #0b1d36; --fg: #243140; --muted: #5b6775;
  --line: #e1e5ea; --line-strong: #c7cfd8;
  --bg: #fff; --paper: #f5f4ef; --surface: #fff;
  --gold: #c9a04e; --gold-deep: #8a6625; --gold-soft: #f6efdf; --gold-bright: #e3c070;
  --band: #0b1d36; --band-fg: #f1f4f8; --band-muted: #aab7c8; --band-line: rgba(255, 255, 255, .14);
  --pos: #1e7a4f; --neg: #b23a2e; --focus: #8a6625;

  --shadow-sm: 0 1px 2px rgba(11, 29, 54, .05), 0 8px 20px -12px rgba(11, 29, 54, .18);
  --shadow: 0 1px 2px rgba(11, 29, 54, .05), 0 18px 44px -22px rgba(11, 29, 54, .35);
  --shadow-lg: 0 2px 4px rgba(11, 29, 54, .06), 0 36px 72px -30px rgba(11, 29, 54, .45);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: .875rem; --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.4rem);
  --step-5: clamp(2.9rem, 1.9rem + 4.6vw, 5.1rem);

  --wrap: 76rem; --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px; --radius-sm: 8px;
  --header-h: 4.5rem;
  /* the pill bar (services): its own height and the gap that separates it from the header */
  --subnav-h: 3.5rem; --subnav-gap: .5rem;
  --section-pad: clamp(3rem, 6vw, 5rem);
  --t: .2s;
  /* one mono label scale (eyebrows, column heads, terms), one card padding, two card heading sizes */
  --mono-size: .76rem; --mono-track: .14em;
  --card-pad: clamp(1.4rem, 2.5vw, 1.9rem); --card-pad-lg: clamp(1.5rem, 3vw, 2.4rem);
  --h-card: 1.5rem; --h-item: 1.3rem;
}

/* ====================================================================== base */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-behavior stays auto and overflow-x is clip, not hidden: the smooth + hidden pair blocked fragment
   navigation in Chrome (a page opened at /services#fpa stayed at the top). site.js does the smooth scrolling. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; }
a { color: var(--navy-3); text-underline-offset: .18em; text-decoration-thickness: 1px; transition: color .15s ease; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 {
  font-family: var(--font-display); color: var(--ink); font-weight: 400; line-height: 1.08; margin: 0;
  text-wrap: balance; letter-spacing: -.015em; font-optical-sizing: auto; font-variation-settings: "SOFT" 30;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.18; }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; color: var(--ink); margin: 0; line-height: 1.3; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--gold-deep); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }
::selection { background: var(--gold-soft); color: var(--ink); }
.band ::selection, .hero-dark ::selection, .page-hero:not(.light) ::selection, .cta-panel ::selection, .site-footer ::selection { background: var(--gold-bright); color: var(--navy); }
/* images fade in once loaded (site.js adds .is-loaded; without JS nothing is hidden) */
img { transition: opacity .2s ease-out; }
html.js img[loading="lazy"]:not(.is-loaded) { opacity: 0; }
code { font-family: var(--font-mono); font-size: .92em; }
.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: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: var(--radius-sm); }
.skip:focus { left: 1rem; top: 1rem; }
[id] { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* ====================================================================== layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 54rem; }
.section { padding-block: var(--section-pad); }
.section.paper { background: var(--paper); }
.section + .section:not(.paper):not(.band):not(.conviction) { border-top: 1px solid var(--line); }
.section.paper + .section.paper, .conviction + .section.paper { border-top: 1px solid var(--line); }
.stack { display: grid; gap: 1rem; }
.stack-lg { display: grid; gap: 1.75rem; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split.wide-left { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
@media (max-width: 880px) { .split, .split.even, .split.wide-left { grid-template-columns: 1fr; } }

/* ====================================================================== type helpers */
.eyebrow {
  font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: var(--mono-track); text-transform: uppercase;
  color: var(--gold-deep); font-weight: 500; display: inline-flex; align-items: center; gap: .65rem; line-height: 1.4;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: var(--gold); flex: none; }
.eyebrow.light { color: var(--gold-bright); }
.eyebrow.light::before { background: var(--gold-bright); }
.lede { font-size: var(--step-1); color: var(--muted); line-height: 1.55; max-width: 40rem; text-wrap: pretty; }
.lede.light { color: var(--band-muted); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); max-width: 48rem; justify-items: start; }
.section-head.flush { margin-bottom: 0; }
.section-head .lede { margin-top: .1rem; }
.pull {
  font-family: var(--font-display); font-size: var(--step-2); line-height: 1.25; color: var(--ink); font-weight: 400;
  font-variation-settings: "SOFT" 30; letter-spacing: -.01em; padding-top: 1.25rem; border-top: 2px solid var(--gold); margin-top: .75rem;
}
.pull em { color: var(--gold-deep); }

/* ====================================================================== icons */
.ico { width: 1.5rem; height: 1.5rem; flex: none; }
.ico-wrap { width: 3rem; height: 3rem; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); display: grid; place-items: center; flex: none; transition: background-color .2s ease, color .2s ease, transform .2s var(--ease); }
.ico-wrap .ico { width: 1.45rem; height: 1.45rem; }
.band .ico-wrap, .hero-dark .ico-wrap, .page-hero:not(.light) .ico-wrap, .cta-panel .ico-wrap { background: rgba(227, 192, 112, .14); color: var(--gold-bright); }

/* ====================================================================== aurora (shared dark surface) */
.hero-dark, .page-hero:not(.light), .cta-panel, .section.band {
  position: relative; overflow: hidden; isolation: isolate; color: var(--band-fg);
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(11, 29, 54, 0) 0%, rgba(11, 29, 54, .55) 55%, rgba(11, 29, 54, 1) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 64px);
}
.hero-dark::before, .page-hero:not(.light)::before, .cta-panel::before, .section.band::before,
.hero-dark::after, .page-hero:not(.light)::after, .cta-panel::after, .section.band::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
  width: max(36rem, 62%); aspect-ratio: 1; filter: blur(42px); will-change: transform;
}
.hero-dark::before, .page-hero:not(.light)::before, .cta-panel::before, .section.band::before {
  top: -35%; right: -18%;
  background: radial-gradient(circle at center, rgba(227, 192, 112, .16) 0%, rgba(227, 192, 112, .07) 38%, rgba(227, 192, 112, 0) 70%);
  animation: aurora-a 6s ease-in-out 1 both;   /* one slow drift, then still: an endless blurred drift kept older laptops' graphics busy all the time */
}
.hero-dark::after, .page-hero:not(.light)::after, .cta-panel::after, .section.band::after {
  bottom: -45%; left: -22%;
  background: radial-gradient(circle at center, rgba(27, 58, 99, .9) 0%, rgba(27, 58, 99, .45) 40%, rgba(27, 58, 99, 0) 70%);
  animation: aurora-b 6s ease-in-out 1 both;
}
.hero-dark > *, .page-hero:not(.light) > *, .cta-panel > *, .section.band > * { position: relative; z-index: 1; }
.hero-dark, .page-hero:not(.light), .section.band { border-top: 1px solid rgba(201, 160, 78, .55); }
@keyframes aurora-a { from { transform: translate3d(-6%, -4%, 0) scale(1); } to { transform: translate3d(9%, 12%, 0) scale(1.18); } }
@keyframes aurora-b { from { transform: translate3d(7%, 9%, 0) scale(1.1); } to { transform: translate3d(-9%, -7%, 0) scale(.92); } }

/* text on dark surfaces */
.band h1, .band h2, .band h3, .hero-dark h1, .hero-dark h2, .hero-dark h3, .page-hero:not(.light) h1, .page-hero:not(.light) h2, .cta-panel h2, .cta-panel h3 { color: #fff; }
.band h2 em, .band h1 em, .hero-dark h1 em, .hero-dark h2 em, .page-hero:not(.light) h1 em, .cta-panel h2 em { color: var(--gold-bright); }
.band .eyebrow, .hero-dark .eyebrow, .page-hero:not(.light) .eyebrow, .cta-panel .eyebrow { color: var(--gold-bright); }
.band .eyebrow::before, .hero-dark .eyebrow::before, .page-hero:not(.light) .eyebrow::before, .cta-panel .eyebrow::before { background: var(--gold-bright); }
.band .lede, .band p, .hero-dark .lede, .page-hero:not(.light) .lede, .cta-panel p { color: var(--band-muted); }
.band p strong, .hero-dark p strong, .page-hero:not(.light) p strong, .cta-panel p strong { color: var(--band-fg); }
.band a:not(.btn), .hero-dark a:not(.btn), .page-hero:not(.light) a:not(.btn), .cta-panel a:not(.btn) { color: #fff; }
.band a:not(.btn):hover, .hero-dark a:not(.btn):hover, .page-hero:not(.light) a:not(.btn):hover, .cta-panel a:not(.btn):hover { color: var(--gold-bright); }
.band .ticks li, .hero-dark .ticks li, .page-hero:not(.light) .ticks li { color: var(--band-fg); }
.band .ticks li::before, .hero-dark .ticks li::before { border-color: var(--gold-bright); }
.band .muted, .hero-dark .muted, .page-hero:not(.light) .muted { color: var(--band-muted); }
.band .pull { color: #fff; border-top-color: var(--gold-bright); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (max-width: 880px) { .band-grid { grid-template-columns: 1fr; } }

/* ====================================================================== header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--line);
  transition: background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
/* the 2 px gold line at the very top of every page */
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2; pointer-events: none; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright) 35%, var(--gold) 65%, var(--gold-deep)); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); min-width: 0; }
.brand svg { flex: none; }
.nav-links { display: flex; align-items: center; gap: .1rem; list-style: none; }
.nav-links a {
  position: relative; display: block; padding: .6rem .85rem; border-radius: var(--radius-sm); color: var(--fg); text-decoration: none;
  font-size: .95rem; font-weight: 500; transition: color .2s ease, background-color .2s ease;
}
.nav-links a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-cta .btn { padding: .7rem 1.1rem; font-size: .9rem; }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .6rem .8rem;
  color: var(--ink); cursor: pointer; font: 500 .9rem var(--font-body); transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.menu-btn:hover { border-color: var(--ink); }
.menu-btn[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* transparent header over a dark hero (body.has-dark-hero), solid once scrolled */
body.has-dark-hero .site-header { margin-bottom: calc(-1 * var(--header-h)); }
body.has-dark-hero .site-header:not(.scrolled) {
  background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  --lg-1: #c9d1dc; --lg-2: #d6dce3; --lg-3: #dfe2e2; --lg-4: #e3d9bf; --lg-5: #e2c98e; --lg-6: #ddbb72; --lg-7: #d9b160; --lg-8: #f0d08a; --lg-text: #f4f6f9; --lg-gold: #d9b160;
}
body.has-dark-hero .site-header:not(.scrolled) .nav-links a { color: var(--band-fg); }
body.has-dark-hero .site-header:not(.scrolled) .nav-links a:hover, body.has-dark-hero .site-header:not(.scrolled) .nav-links a[aria-current="page"] { color: #fff; }
body.has-dark-hero .site-header:not(.scrolled) .nav-links a::after { background: var(--gold-bright); }
/* the nav CTA: gold-filled over a dark hero, navy-filled once the header is solid */
body.has-dark-hero .site-header:not(.scrolled) .nav-cta .btn-primary { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--ink); border-color: transparent; box-shadow: 0 10px 24px -12px rgba(201, 160, 78, .6); }
body.has-dark-hero .site-header:not(.scrolled) .nav-cta .btn-primary:hover { background: linear-gradient(180deg, #ecd089, var(--gold-bright)); color: var(--ink); }
body.has-dark-hero .site-header:not(.scrolled) .menu-btn { color: #fff; border-color: rgba(255, 255, 255, .5); }
body.has-dark-hero .site-header:not(.scrolled) .menu-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .12); border-color: #fff; }
body.has-dark-hero .hero-dark, body.has-dark-hero .page-hero { padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem)); }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(11, 29, 54, .3); }

@media (max-width: 1060px) {   /* the menu folds into its button below 1061 px, so no item wraps to three lines */
  .menu-btn { display: inline-flex; align-items: center; gap: .4rem; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .95rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--gold-deep); }
  body.has-dark-hero .site-header:not(.scrolled) .nav-links { background: var(--navy-2); border-color: var(--band-line); }
  body.has-dark-hero .site-header:not(.scrolled) .nav-links a { color: var(--band-fg); border-color: var(--band-line); }
  body.has-dark-hero .site-header:not(.scrolled) .nav-links a[aria-current="page"] { color: var(--gold-bright); }
}
/* at 360 px the logo (144 px at 46 px high), the CTA and the menu button must share 328 px */
@media (max-width: 420px) { .nav { gap: .6rem; } .nav-cta { gap: .45rem; } .nav-cta .btn { padding-inline: .7rem; } }

/* ====================================================================== buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 600 .95rem/1 var(--font-body); padding: .95rem 1.4rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; letter-spacing: .005em;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -14px rgba(11, 29, 54, .6); }
.btn-primary:hover { background: var(--navy-3); color: #fff; }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(201, 160, 78, .7); }
.btn-gold:hover { background: linear-gradient(180deg, #ecd089, var(--gold-bright)); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--paper); }
.btn-outline-light { background: transparent; color: var(--band-fg); border-color: rgba(255, 255, 255, .4); }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.arrow::after { content: "\2192"; font-family: var(--font-body); transition: transform .2s var(--ease); }
.arrow:hover::after, .arrow:focus-visible::after { transform: translateX(3px); }
.btn:focus-visible { outline-offset: 3px; }

/* ====================================================================== home hero */
/* two halves on one 1280 x 551 screen under the transparent header: projects on the left, long-term secondment on the
   right, each with its own heading; the logo circle sits faint behind both */
.hero-dark { padding-block: clamp(2.5rem, 5vw, 3.5rem) clamp(1.25rem, 2.5vw, 1.5rem); }
body.has-dark-hero .hero-dark.hero-home { padding-top: calc(var(--header-h) + clamp(1rem, 2vw, 1.5rem)); }
.hero-stage { position: relative; }
.hero-copy { display: block; min-width: 0; }
.hero-dark h1 { color: #fff; margin-top: .9rem; max-width: 20ch; }
.hero-title {
  font-size: clamp(2.3rem, 1rem + 2.8vw, 3.4rem); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; max-width: 20ch;
  font-variation-settings: "SOFT" 30; font-optical-sizing: auto;
}
.hero-title em, .hero-dark h1 em { color: var(--gold-bright); font-weight: 300; }
.hero-dark .lede { margin-top: 1.1rem; max-width: 38rem; font-size: 1.15rem; }
.hero-dark .btn-row { margin-top: 1.6rem; }
/* the logo circle sits behind the copy, to the right; the copy and the strip stay on top */
.hero-copy { position: relative; z-index: 1; max-width: 44rem; }
.hero-figure { position: absolute; z-index: 0; margin: 0; top: 52%; right: .5rem; width: clamp(24rem, 35vw, 30rem); aspect-ratio: 1; transform: translateY(-50%); pointer-events: none; }
/* a single-column dark hero (Services): the circle sits to the right of the copy, a little stronger than behind text */
.hero-dark:not(.hero-twin) .hero-figure { opacity: .45; }
.hero-figure::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(227, 192, 112, .09), rgba(227, 192, 112, 0) 70%); }
.hero-figure svg { position: relative; width: 100%; height: auto; aspect-ratio: 1; display: block; }
.hero-pair { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-half { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding-right: clamp(2rem, 4.5vw, 4rem); }
.hero-half .btn-row { margin-top: auto; padding-top: 1.6rem; }  /* both buttons on one line, whatever the text length */
.hero-half + .hero-half { padding-right: 0; padding-left: clamp(2rem, 4.5vw, 4rem); border-left: 1px solid var(--band-line); }
.hero-half .hero-title { margin-top: .9rem; max-width: none; font-size: clamp(2rem, .9rem + 1.9vw, 2.75rem); }
.hero-half .lede { max-width: 34rem; font-size: 1.05rem; }
.hero-twin .hero-figure { top: 50%; left: 50%; right: auto; width: clamp(24rem, 36vw, 32rem); transform: translate(-50%, -50%); opacity: .22; }
.hero-home .hero-figure { width: clamp(26rem, 38vw, 34rem); }
.hero-intro .hero-title { max-width: 26ch; }
.hero-including { margin-top: 1.7rem; font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: var(--mono-track); text-transform: uppercase; color: var(--band-muted); font-weight: 500; }
.hero-ticks { margin-top: .9rem; max-width: 40rem; gap: .7rem; font-size: 1.1rem; line-height: 1.45; }
.hero-intro .btn-row { margin-top: 2rem; }
@media (min-width: 881px) { body.has-dark-hero .hero-dark.hero-home { min-height: min(100svh, 46rem); display: grid; align-content: center; } }
/* 22 Nov 2026: from 881 to 1199 px wide the words take the left 58% and the circle, with its opening charts, the right
   third, so the charts never cross the text. From 1200 px up the full-size circle already plays clear of the words. */
@media (min-width: 881px) and (max-width: 1199px) {
  .hero-home .hero-intro { max-width: 58%; }
  .hero-home .hero-figure { width: 34%; }
}
/* split page heroes (copy left, index card right) carry the same circle, centred behind both, as on Home */
.page-hero.split .hero-figure { top: 50%; left: 50%; right: auto; width: clamp(24rem, 36vw, 32rem); transform: translate(-50%, -50%); opacity: .22; }
@media (max-width: 880px) {
  .hero-dark h1, .hero-title { max-width: none; }
  /* phones and tablets: a quiet circle in the top corner, behind the words */
  .hero-figure { top: -5rem; right: -10rem; width: 24rem; transform: none; opacity: .4; }
  .hero-pair { grid-template-columns: 1fr; }
  .hero-half { padding-right: 0; }
  .hero-half + .hero-half { padding-left: 0; border-left: 0; border-top: 1px solid var(--band-line); margin-top: 2rem; padding-top: 2rem; }
  .hero-twin .hero-figure { top: -5rem; left: auto; right: -10rem; width: 24rem; transform: none; opacity: .3; }
  .page-hero.split .hero-figure { top: -5rem; left: auto; right: -10rem; width: 24rem; transform: none; opacity: .3; }
}

/* hero logo circle: the logo's own dots, scaled up, in the light tiers the header logo uses on dark. At rest the dots sit at
   just over half strength, so the circle stays behind the words. Without script that is the whole picture. With script
   (html.js) each dot carries its own fill-opacity: site.js brings the dots in from wide and turns the circle into place over
   the first 10 seconds, then leaves it still; dots near the cursor light up, scatter a little and spring back. */
.logo-orb { width: 100%; height: auto; display: block; overflow: visible; opacity: .6; transition: opacity 1.6s ease; }
html.js .logo-orb { opacity: 1; }
.logo-orb.is-waiting { opacity: 0; transition: none; }

/* ====================================================================== conviction */
.conviction { background: var(--paper); }
.conviction-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.conviction-sticky { display: grid; gap: 1.25rem; justify-items: start; }
.conviction-sticky h2 { max-width: none; }
.conviction-sticky .lede { max-width: 34rem; }
.moves { list-style: none; display: grid; gap: 1.25rem; align-items: stretch; }
.move {
  position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  padding: var(--card-pad-lg) var(--card-pad-lg) var(--card-pad-lg) calc(var(--card-pad-lg) + .2rem);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .22s var(--ease), border-color .2s ease;
}
.move:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }
.move::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); transform-origin: top; }
html.js .move::before { transform: scaleY(0); }
html.js .move.in::before { transform: scaleY(1); transition: transform .9s var(--ease) .25s; }
.move-num { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 300; line-height: .9; color: var(--gold); font-variant-numeric: tabular-nums; min-width: 2.2ch; letter-spacing: -.03em; padding-top: .1rem; }
.move h3 { font-size: var(--h-card); }
.move > div > p { color: var(--muted); margin-top: .6rem; max-width: 44rem; }
.move .ticks { margin-top: 1.1rem; }
/* compact 2x2 (home): numeral above the title, one paragraph, equal heights from the grid */
.moves.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.moves.compact .move { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 0; padding: var(--card-pad) var(--card-pad) var(--card-pad) calc(var(--card-pad) + .2rem); }
.moves.compact .move-num { font-size: clamp(3rem, 4vw, 3.8rem); line-height: .85; padding-top: 0; margin-bottom: 1rem; }
.moves.compact .move > div > p { font-size: .98rem; }
/* the left column sticks only when it is shorter than the viewport, so it never stretches the section */
@media (min-width: 961px) and (min-height: 46rem) { .conviction-sticky { position: sticky; top: 6rem; } }
@media (max-width: 960px) { .conviction-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .moves.compact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .move { grid-template-columns: 1fr; gap: .75rem; } .move-num { font-size: 2.4rem; } }

/* ====================================================================== compare ledger */
.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); box-shadow: var(--shadow-sm); }
.compare-head, .compare-row { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) minmax(0, 1.25fr); }
.compare-head { font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--paper); border-bottom: 1px solid var(--line); font-weight: 500; }
.compare-head > span, .compare-row > span { padding: 1.05rem 1.3rem; min-width: 0; }
.compare-head .is-us { background: var(--navy); color: #fff; border-left: 3px solid var(--gold); }
.compare-row { border-bottom: 1px solid var(--line); color: var(--muted); font-size: .98rem; transition: background-color .2s ease; }
.compare-row:hover { background: var(--paper); }
.compare-row:last-child { border-bottom: 0; }
.compare-label { font-weight: 600; color: var(--ink); }
.compare-row .is-us { color: var(--ink); border-left: 3px solid var(--gold); background: rgba(246, 239, 223, .45); font-weight: 500; }
@media (max-width: 720px) {
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; padding: .5rem 0; }
  .compare-row > span { padding: .5rem 1.1rem; }
  .compare-label { font-family: var(--font-display); font-size: var(--h-item); font-weight: 400; padding-top: .8rem; }
  .compare-row > span:nth-child(2)::before, .compare-row > span:nth-child(3)::before { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .2rem; }
  .compare-row > span:nth-child(2)::before { content: "A typical hire"; color: var(--muted); }
  .compare-row > span:nth-child(3)::before { content: "An AMFinX team member"; color: var(--gold-deep); }
  .compare-row .is-us { margin: .35rem .9rem .5rem; border-radius: var(--radius-sm); }
}

/* ====================================================================== bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
.bento-card {
  grid-column: span 2; position: relative; display: flex; flex-direction: column; gap: .85rem; min-height: 15rem; min-width: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--card-pad);
  text-decoration: none; color: inherit; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .2s ease, border-color .2s ease;
}
.bento-card.span-2 { grid-column: span 2; }
.bento-card.span-3 { grid-column: span 3; }
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); color: inherit; }
.bento-card:hover .ico-wrap { background: var(--navy); color: var(--gold-bright); }
.bento-card h3 { font-size: var(--h-card); margin-top: .4rem; }
.bento-card p { color: var(--muted); font-size: .98rem; }
.bento-card .go, .bento-card .article-meta { margin-top: auto; padding-top: .8rem; }
.go { font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; }
.go::after { content: "\2192"; font-family: var(--font-body); transition: transform .2s var(--ease); }
.bento-card:hover .go::after, .bento-card:focus-visible .go::after { transform: translateX(3px); }
.bento-foot { margin-top: 1.25rem; }
.bento-foot a, .service-body .small a, .service-more .small a { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 500; }
/* Home: the two services as two big cards, projects first */
.service-card h3 { font-size: var(--step-2); margin-top: 0; }
.service-card .ticks { gap: .5rem; font-size: .98rem; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bento-card, .bento-card.span-2, .bento-card.span-3 { grid-column: span 1; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .bento-card { min-height: 0; } }

/* ====================================================================== steps timeline */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.steps::before { content: ""; position: absolute; left: 1.5rem; right: 1.5rem; top: 1.45rem; height: 2px; background: linear-gradient(90deg, var(--gold-bright), var(--gold) 55%, var(--line-strong)); }
.steps li { counter-increment: step; position: relative; padding-top: 4.2rem; display: grid; gap: .5rem; align-content: start; min-width: 0; }
.steps li::before {
  content: "0" counter(step); position: absolute; top: 0; left: 0; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--navy); color: var(--gold-bright); font: 400 1.05rem var(--font-display); font-variant-numeric: tabular-nums;
  display: grid; place-items: center; box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px var(--gold);
}
.paper .steps li::before, .conviction .steps li::before { box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--gold); }
.band .steps li::before { box-shadow: 0 0 0 5px var(--navy), 0 0 0 6px var(--gold); }
.band .steps::before { background: linear-gradient(90deg, var(--gold-bright), var(--gold) 55%, var(--band-line)); }
.steps h3 { font-size: var(--h-item); }
.steps p { color: var(--muted); font-size: .97rem; }
.band .steps p { color: var(--band-muted); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps::before { left: 1.45rem; right: auto; top: 1.5rem; bottom: 1.5rem; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, var(--line-strong)); }
  .steps li { padding-top: 0; padding-left: 4.2rem; min-height: 3rem; }
}

/* ====================================================================== frames, captions, tags */
.frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s ease-out; }
.frame.tilt { transform: perspective(1400px) rotateY(-6deg); transform-origin: center; }
.frame.tilt:hover { transform: perspective(1400px) rotateY(0deg); box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .85rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.frame-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--line-strong); display: block; }
.frame-bar i:first-child { background: var(--gold); }
.frame-bar span { margin-left: .6rem; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; letter-spacing: .04em; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.band .frame, .hero-dark .frame { border-color: rgba(255, 255, 255, .18); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65); }
.caption { margin-top: .9rem; font-size: .88rem; color: var(--muted); display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.band .caption, .hero-dark .caption { color: var(--band-muted); }
.tag { display: inline-block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .22rem .5rem; border-radius: 4px; background: var(--gold-soft); color: var(--gold-deep); white-space: nowrap; font-weight: 500; }
.band .tag, .hero-dark .tag, .cta-panel .tag { background: rgba(227, 192, 112, .16); color: var(--gold-bright); }

/* ====================================================================== page hero (inner pages) */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.75rem, 6vw, 4.5rem); }
.page-hero h1 { font-size: var(--step-4); font-weight: 300; margin-top: 1.1rem; max-width: 20ch; }
.page-hero .lede { margin-top: 1.2rem; max-width: 44rem; }
.page-hero .btn-row { margin-top: 2rem; }
.page-hero .article-meta { color: var(--band-muted); }
.page-hero.light { background: linear-gradient(180deg, var(--paper), #fff); color: var(--fg); border-bottom: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 4.75rem) clamp(2.25rem, 4vw, 3.25rem); }
.page-hero.light h1 { color: var(--ink); font-weight: 400; font-size: clamp(2.1rem, 1.4rem + 2.5vw, 3.2rem); max-width: 24ch; }
.page-hero.light h1 em { color: var(--gold-deep); }
.page-hero.light .eyebrow, .page-hero.light .eyebrow.light { color: var(--gold-deep); }
.page-hero.light .eyebrow::before { background: var(--gold); }
.page-hero.light .lede, .page-hero.light .lede.light { color: var(--muted); }
.page-hero.light .article-meta { color: var(--muted); }
.article-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: var(--mono-size); color: var(--muted); margin-top: 1.1rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }

/* ====================================================================== reveal */
/* A block fades in quickly as it comes on screen, and a group of cards comes in all at once (1 Dec 2026: it was .6 s, with
   the cards of a group one after another, up to .56 s apart, which made every page feel slow). */
html.js .reveal { opacity: 0; transform: translateY(8px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity .2s ease-out, transform .2s ease-out; }

/* ====================================================================== feature rows */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 1.5rem; padding-block: 1.3rem; border-bottom: 1px solid var(--line); }
.row dt { font-weight: 600; color: var(--ink); display: flex; gap: .7rem; align-items: center; }
.row dt .ico { color: var(--gold-deep); }
.row dd { margin: 0; color: var(--muted); }
.rows.cards { border-top: 0; display: grid; gap: 1rem; }
.rows.cards .row { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .22s var(--ease), border-color .2s ease; }
.rows.cards .row:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }
.band .rows, .band .row { border-color: var(--band-line); }
.band .row dt { color: #fff; }
.band .row dt .ico { color: var(--gold-bright); }
.band .row dd { color: var(--band-muted); }
.band .rows.cards .row { background: rgba(255, 255, 255, .05); border-color: var(--band-line); box-shadow: none; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; gap: .35rem; } }

/* ====================================================================== lists */
.ticks { list-style: none; display: grid; gap: .65rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .62em; width: .72rem; height: .4rem; border-left: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(-45deg) translateY(-50%); }
.ticks a, .rows a, .prose a, .article a, .toc a, .footer-grid a, .move a, .compare a, .faq a {
  color: inherit; text-decoration: none; background-image: linear-gradient(var(--gold), var(--gold)); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .22s var(--ease), color .2s ease; padding-bottom: 1px;
}
.ticks a:hover, .rows a:hover, .prose a:hover, .article a:hover, .toc a:hover, .footer-grid a:hover, .move a:hover, .compare a:hover, .faq a:hover { background-size: 100% 2px; }
.prose a, .article a { color: var(--navy-3); background-size: 100% 1px; background-image: linear-gradient(var(--line-strong), var(--line-strong)); }
.prose a:hover, .article a:hover { background-image: linear-gradient(var(--gold), var(--gold)); background-size: 100% 2px; color: var(--ink); }



/* ====================================================================== service blocks (services page) */
/* a service lands with its lead block 1.5 rem under the pill bar at every width: the section padding is taken off
   the margin so the numeral and heading, not the empty padding, sit below the bar */
.service { scroll-margin-top: calc(var(--header-h) + var(--subnav-gap) + var(--subnav-h) + 1.5rem - var(--section-pad)); }
.ppa { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.ppa .k { display: block; font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: var(--mono-track); text-transform: uppercase; color: var(--gold-deep); margin-bottom: .45rem; }
.ppa p { color: var(--muted); font-size: .98rem; }
@media (max-width: 760px) { .ppa { grid-template-columns: 1fr; gap: 1.1rem; } }

/* ====================================================================== tour tabs (dental) */
.tour { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.tour-tabs { display: grid; gap: .3rem; list-style: none; position: sticky; top: calc(var(--header-h) + 1rem); }
.tour-tabs button {
  width: 100%; text-align: left; background: none; border: 1px solid transparent; border-left: 2px solid var(--line); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .85rem 1rem; font: inherit; color: var(--muted); cursor: pointer; display: grid; gap: .15rem; transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.tour-tabs button strong { color: var(--ink); font-weight: 600; font-size: 1rem; }
.tour-tabs button span { font-size: .88rem; }
.tour-tabs button:hover { background: var(--paper); border-left-color: var(--line-strong); }
.tour-tabs button[aria-selected="true"] { border-left-color: var(--gold); background: var(--gold-soft); }
.tour-tabs button[aria-selected="true"] strong { color: var(--gold-deep); }
.tour-tabs button:focus-visible { outline-offset: -3px; }
.tour-panel[hidden] { display: none; }
.tour-panel figure { margin: 0; }
@media (max-width: 880px) {
  .tour { grid-template-columns: 1fr; }
  .tour-tabs { position: static; display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .25rem .75rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .tour-tabs button { width: auto; flex: none; scroll-snap-align: start; border: 1px solid var(--line-strong); border-radius: 999px; padding: .55rem 1rem; gap: 0; white-space: nowrap; background: var(--bg); }
  .tour-tabs button span { display: none; }
  .tour-tabs button strong { font-size: .92rem; }
  .tour-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); }
  .tour-tabs button[aria-selected="true"] strong { color: #fff; }
}

/* ====================================================================== statement, ledger, tables */
.statement { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin: 0; }
.statement-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); background: var(--paper); flex-wrap: wrap; }
.statement-head strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); font-weight: 500; }
.statement-head span { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); letter-spacing: .04em; }
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger td { padding: .75rem 1.3rem; border-bottom: 1px dashed var(--line); vertical-align: baseline; }
.ledger td:last-child { text-align: right; font-family: var(--font-mono); white-space: nowrap; color: var(--ink); }
.ledger .op { width: 1.5rem; padding-right: 0; font-family: var(--font-mono); color: var(--muted); }
.ledger .total td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 600; color: var(--ink); padding-block: .95rem; }
.ledger .total td:last-child { color: var(--gold-deep); font-size: 1.2rem; }
.ledger .deduct td:last-child { color: var(--neg); }
.ledger .sub td { color: var(--muted); font-size: .92rem; border-bottom: 0; padding-block: .35rem; }
.statement-foot { padding: .85rem 1.3rem; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); display: flex; gap: .5rem; align-items: flex-start; }

@media (max-width: 480px) { .statement-head, .statement-foot, .ledger td { padding-inline: .9rem; } }

/* ====================================================================== in-page jump nav (services) */
/* pill bar: fixed under the header, centred, shown by site.js (.is-visible) once the page hero has scrolled out.
   Height = --subnav-h; the gap under the header = --subnav-gap. Without JS it is a plain sticky bar in the flow. */
.subnav {
  position: fixed; left: 0; right: 0; top: calc(var(--header-h) + var(--subnav-gap)); z-index: 40;
  display: flex; justify-content: center; padding-inline: var(--gutter); pointer-events: none;
}
.subnav .wrap { width: auto; max-width: 100%; padding: 0; margin: 0; min-width: 0; }
.subnav ul {
  list-style: none; display: flex; gap: .2rem; align-items: center; height: var(--subnav-h); max-width: 100%;
  padding: calc((var(--subnav-h) - 2.75rem - 2px) / 2); pointer-events: auto;
  background: rgba(255, 255, 255, .9); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a {
  position: relative; display: inline-flex; align-items: center; height: 2.75rem; padding: 0 1.05rem; border-radius: 999px; white-space: nowrap; scroll-snap-align: start;
  font-size: .88rem; font-weight: 500; color: var(--fg); text-decoration: none; transition: color var(--t) ease, background-color var(--t) ease;
}
.subnav a:hover, .subnav a:focus-visible { color: var(--ink); background: var(--paper); }
.subnav a[aria-current="true"], .subnav a[aria-current="true"]:hover { background: var(--navy); color: #fff; }
.subnav a:focus-visible { outline-offset: 1px; }
/* hidden at rest: the scripting media query hides it from the first paint, so nothing flashes before site.js runs;
   html.js covers browsers without that query. Without JavaScript it is a plain sticky bar in the flow. */
html.js .subnav:not(.is-visible) { opacity: 0; transform: translateY(-.5rem); visibility: hidden; transition: opacity .22s ease, transform .22s var(--ease), visibility 0s linear .22s; }
@media (scripting: enabled) { .subnav:not(.is-visible) { opacity: 0; transform: translateY(-.5rem); visibility: hidden; transition: opacity .22s ease, transform .22s var(--ease), visibility 0s linear .22s; } }
.subnav.is-visible { opacity: 1; transform: none; visibility: visible; transition: opacity .22s ease, transform .22s var(--ease), visibility 0s; }
@media (scripting: none) { .subnav { position: sticky; top: var(--header-h); padding-block: .5rem; background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 var(--line); } }
@media (max-width: 640px) { .subnav { padding-inline: .75rem; } .subnav a { padding-inline: .9rem; font-size: .85rem; } }

/* ====================================================================== faq, note, cta */
.faq-list, .faq:not(details) { border-top: 1px solid var(--line); }
.faq details, details.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 3rem 1.2rem 0; position: relative; display: block; width: 100%;
  font-weight: 600; color: var(--ink); font-size: 1.05rem; transition: color .2s ease, padding-left .2s var(--ease);
}
.faq summary:hover { color: var(--gold-deep); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-sm); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .6rem; top: 50%; width: .6rem; height: .6rem; margin-top: -.5rem;
  border-right: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] > summary::after, details.faq[open] > summary::after { transform: rotate(-135deg); margin-top: -.1rem; }
.faq .answer { padding: 0 0 1.4rem; color: var(--muted); max-width: 46rem; display: grid; gap: .75rem; }
.faq details[open] > .answer, details.faq[open] > .answer { animation: fade-up .22s var(--ease) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.note { border: 1px solid var(--line); border-left: 3px solid var(--gold); background: var(--paper); padding: 1.05rem 1.25rem; border-radius: var(--radius-sm); color: var(--fg); font-size: .96rem; }
.note strong { color: var(--ink); }
.band .note { background: rgba(255, 255, 255, .06); border-color: var(--band-line); border-left-color: var(--gold-bright); color: var(--band-fg); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--card-pad-lg); box-shadow: var(--shadow); }
.form-card > * + * { margin-top: 1.5rem; }
.error-page { min-height: 60vh; display: grid; justify-items: center; align-content: center; gap: 1.25rem; text-align: center; max-width: 40rem; padding-block: clamp(4rem, 10vw, 8rem); }
.error-page h1 { font-size: var(--step-5); font-weight: 300; line-height: 1; }
.error-page .lede { text-align: center; }
.error-page .ticks { text-align: left; margin-top: .5rem; }

.cta-panel {
  border-radius: var(--radius); border-top: 4px solid var(--gold);
  padding: clamp(2rem, 4vw, 3.25rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.cta-panel h2 { max-width: 22ch; margin-top: .9rem; }
.cta-panel p { max-width: 40rem; margin-top: .7rem; }
.cta-panel .btn-row { flex: 0 1 auto; min-width: 0; }  /* stays on one line while it fits; on a phone the buttons wrap inside the panel */

/* ====================================================================== profile, beliefs (About) */
.profile {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--card-pad-lg); box-shadow: var(--shadow-sm);
}
.profile img { width: 100%; max-width: 15rem; border-radius: var(--radius-sm); margin: 0 .9rem .9rem 0; box-shadow: .9rem .9rem 0 -1px var(--surface), .9rem .9rem 0 0 var(--gold); }
.profile h2, .profile h3 { font-size: var(--step-2); }
.profile .role { font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); margin-top: .5rem; }
.profile .bio { display: grid; gap: .95rem; margin-top: 1.25rem; color: var(--fg); max-width: 44rem; }
@media (max-width: 640px) { .profile { grid-template-columns: 1fr; } .profile img { max-width: 11rem; } }

.beliefs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; counter-reset: belief; }
.beliefs li { counter-increment: belief; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: var(--card-pad); display: grid; gap: .6rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .22s var(--ease), border-color .2s ease; }
.beliefs li:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); border-top-color: var(--gold); }
.beliefs li::before { content: "0" counter(belief); font-family: var(--font-display); font-size: 1.5rem; font-weight: 300; color: var(--gold); line-height: 1; }
.beliefs h3 { font-size: var(--h-card); }
.beliefs p { color: var(--muted); }
.points { display: grid; gap: 1.1rem; align-content: start; margin: 0; }
.point { padding: 1.3rem 1.5rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .22s var(--ease), border-color .2s ease; }
.point:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-strong); }
.point dt { display: flex; align-items: center; gap: .9rem; font-family: var(--font-display); font-size: var(--h-item); font-weight: 400; color: var(--ink); line-height: 1.2; }
.point dd { margin: .7rem 0 0; color: var(--muted); font-size: .98rem; }
@media (min-width: 641px) { .point dd { margin-left: 3.9rem; } }
.section-head.centre { max-width: 48rem; margin-inline: auto; justify-items: center; text-align: center; }
.values { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; margin-top: .5rem; }
.values li { grid-column: span 2; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: calc(var(--card-pad) + .5rem) var(--card-pad) var(--card-pad); text-align: center; display: grid; gap: .55rem; justify-items: center; align-content: start; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .22s var(--ease); }
.values li::before { content: ""; position: absolute; top: -.5rem; left: 50%; width: 1rem; height: 1rem; border-radius: 50%; background: var(--gold-bright); transform: translateX(-50%); box-shadow: 0 0 0 4px var(--navy); }
.values li:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.values li:nth-child(4) { grid-column: 2 / span 2; }
.values li:nth-child(5) { grid-column: 4 / span 2; }
.band .values h3 { font-size: var(--h-card); color: var(--ink); }
.band .values p { color: var(--muted); font-size: .98rem; max-width: 24rem; }
@media (max-width: 960px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } .values li, .values li:nth-child(4), .values li:nth-child(5) { grid-column: span 1; } .values li:nth-child(5) { grid-column: 1 / -1; } }
@media (max-width: 640px) { .values { grid-template-columns: 1fr; } .values li, .values li:nth-child(5) { grid-column: auto; } }
@media (max-width: 640px) { .beliefs { grid-template-columns: 1fr; } }

/* ====================================================================== articles, prose, toc
   Shared article markup: .page-hero.light (eyebrow, h1, lede, .article-meta) then .section > .wrap.article-layout holding
   article.article.prose and aside.toc (sticky on the right from 1000 px; a wrapped list above the text below that). */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.prose, .article { max-width: 68ch; min-width: 0; }
.prose > * + *, .article > * + * { margin-top: 1.15rem; }
.prose h2, .article h2 { font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2rem); line-height: 1.15; margin-top: 2.75rem; }
.prose h3, .article h3 { font-size: var(--step-1); line-height: 1.3; margin-top: 2rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.prose h2 + h3, .article h2 + h3 { margin-top: 1.25rem; }
.prose h2 + p, .prose h3 + p, .article h2 + p, .article h3 + p { margin-top: .85rem; }
.prose > :first-child, .article > :first-child { margin-top: 0; }
.prose ul, .prose ol, .article ul, .article ol { padding-left: 1.3rem; display: grid; gap: .5rem; }
.prose ul.ticks, .article ul.ticks { padding-left: 0; }
.prose li::marker, .article li::marker { color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.prose blockquote, .article blockquote { margin: 1.6rem 0; padding: .25rem 0 .25rem 1.3rem; border-left: 3px solid var(--gold); font-family: var(--font-display); font-size: var(--h-item); color: var(--ink); font-variation-settings: "SOFT" 30; }
.prose figure, .article figure { margin: 1.75rem 0; }
.prose figure img, .article figure img { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose figcaption, .article figcaption { margin-top: .75rem; font-size: .88rem; color: var(--muted); display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.prose .statement figcaption, .article .statement figcaption { margin-top: 0; }
.prose table, .article table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.prose th, .prose td, .article th, .article td { padding: .65rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th, .article th { font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.prose thead th, .article thead th { border-bottom-color: var(--line-strong); }
.prose tbody th, .article tbody th { font-family: var(--font-body); font-size: inherit; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 600; }
.prose td.num, .prose th.num, .article td.num, .article th.num { text-align: right; font-family: var(--font-mono); white-space: nowrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* article tables must fit a phone with no swipe: tighter cells, and the column heads in the body font, which is narrower than the mono */
@media (max-width: 480px) {
  .table-scroll table th, .table-scroll table td { padding-inline: .45rem; font-size: .88rem; }
  .table-scroll table thead th { font-family: var(--font-body); font-size: .76rem; letter-spacing: 0; text-transform: none; }
  .table-scroll table tr > :first-child { padding-left: 0; }
  .table-scroll table tr > :last-child { padding-right: 0; }
}
.prose .note, .article .note, .prose .rows, .article .rows { margin-top: 1.75rem; }
.prose hr, .article hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose .related, .article .related { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: .6rem; font-size: .92rem; padding-left: 1.1rem; border-left: 2px solid var(--line); }
.toc-title, .toc > .eyebrow, .toc > strong { display: block; font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: var(--mono-track); text-transform: uppercase; color: var(--gold-deep); font-weight: 500; margin-bottom: .2rem; }
.toc ol { list-style: none; display: grid; gap: .55rem; }
.toc a { color: var(--muted); line-height: 1.4; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--ink); }
@media (max-width: 999px) {
  .article-layout { grid-template-columns: 1fr; gap: 2rem; }
  .toc { position: static; order: -1; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: baseline; padding: 0 0 1.1rem; border-left: 0; border-bottom: 1px solid var(--line); }
  .toc-title, .toc > .eyebrow, .toc > strong { width: 100%; margin-bottom: .1rem; }
  .toc ol { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
}

/* ====================================================================== forms (contact) */
.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
.field { display: grid; gap: .45rem; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--fg); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: .8rem .9rem; width: 100%; min-width: 0; transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--ink); }
.field .error { color: var(--neg); font-size: .85rem; min-height: 1em; }
.field [aria-invalid="true"] { border-color: var(--neg); box-shadow: 0 0 0 3px rgba(178, 58, 46, .12); }
fieldset.choices { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
fieldset.choices legend { font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: .45rem; padding: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.choice { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; font-size: .95rem; transition: border-color .2s ease, background-color .2s ease; }
.choice:hover, .choice:focus-within { border-color: var(--ink); background: var(--paper); }
.choice:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.choice input { margin-top: .3rem; accent-color: var(--ink); }
.form-result { border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 1.4rem; background: var(--paper); display: grid; gap: .95rem; }
.form-result h2 { font-size: var(--step-2); }
.form-result pre { white-space: pre-wrap; word-break: break-word; font-family: var(--font-mono); font-size: .85rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; margin: 0; max-height: 18rem; overflow: auto; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .choice-grid { grid-template-columns: 1fr; } }

/* ====================================================================== footer */
.site-footer { background: var(--navy); color: var(--band-muted); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; font-size: .93rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60rem 20rem at 100% 0%, rgba(227, 192, 112, .08), transparent 60%); }
.site-footer > .wrap { position: relative; }
.site-footer a { color: var(--band-fg); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2.75rem 2.5rem; }
.footer-grid h2 { font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: var(--mono-track); text-transform: uppercase; color: var(--gold-bright); font-weight: 500; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; display: grid; gap: .55rem; }
.footer-grid a { background-image: linear-gradient(var(--gold-bright), var(--gold-bright)); }
.footer-brand p { margin-top: 1.1rem; max-width: 24rem; line-height: 1.6; }
.footer-place { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-base { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--band-line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ====================================================================== logo (v8, gold X option B): navy set on light surfaces, light set on dark */
:root { --lg-1: #0b1d36; --lg-2: #1e3352; --lg-3: #344a6b; --lg-4: #6b6a5e; --lg-5: #9a7f48; --lg-6: #b8923f; --lg-7: #c9a04e; --lg-8: #ddb862; --lg-text: #0b1d36; --lg-gold: #c9a04e; }
.site-footer, .hero-figure, .cta-orb { --lg-1: #c9d1dc; --lg-2: #d6dce3; --lg-3: #dfe2e2; --lg-4: #e3d9bf; --lg-5: #e2c98e; --lg-6: #ddbb72; --lg-7: #d9b160; --lg-8: #f0d08a; --lg-text: #f4f6f9; --lg-gold: #d9b160; }
.logo { display: block; height: 46px; width: auto; flex: none; }
.site-footer .logo { height: 46px; }
.logo .lg-t { font-family: "Jost", "Inter", sans-serif; fill: var(--lg-text); }
.logo .lg-x { fill: var(--lg-gold); }
.logo circle, .logo text { transition: fill .2s ease; }
.t1 { fill: var(--lg-1); } .t2 { fill: var(--lg-2); } .t3 { fill: var(--lg-3); } .t4 { fill: var(--lg-4); } .t5 { fill: var(--lg-5); } .t6 { fill: var(--lg-6); } .t7 { fill: var(--lg-7); } .t8 { fill: var(--lg-8); }
@media (max-width: 420px) { .logo { height: 40px; } .site-footer .logo { height: 36px; } }

/* ====================================================================== tap targets on phones */
@media (max-width: 640px) {
  .btn, .tour-tabs button, .subnav a, .menu-btn, .nav-links a, .footer-grid a, .faq summary, .choice, .index-card a { min-height: 44px; }
  .footer-grid a { display: inline-flex; align-items: center; }
  .footer-grid ul { gap: .25rem; }
}

/* ====================================================================== reduced motion: everything static */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .move::before { transform: none; }
  .frame.tilt, .frame.tilt:hover { transform: none; }
  .move:hover { transform: none; }
  .btn:hover, .bento-card:hover, .beliefs li:hover, .rows.cards .row:hover, .move:hover { transform: none; }
  .reveal:not(.in) { opacity: 1; transform: none; }
  .move:not(.in)::before { transform: none; }
}

/* ====================================================================== print */
@media print {
  .site-header, .site-footer, .skip, .menu-btn { display: none; }
  .hero-dark, .page-hero, .cta-panel, .section.band { background: #fff !important; color: #000; }
  html.js .reveal { opacity: 1; transform: none; }
}



/* ====================================================================================================== v4 (30 Oct 2026)
   The dot sphere is the object every inner page shares; the components below are the artefacts the sections show.
   Radii: --radius for cards, --radius-sm for pages and bars, 999px for pills. Hairlines: --line on light, --band-line on
   dark. Gold is the accent: numerals, rules, connectors, the last node. Transitions 180-220 ms; everything static
   under prefers-reduced-motion; every component has a phone layout. */

/* keyboard focus after an in-page jump lands on the heading; the scroll itself shows where you are */
main[tabindex="-1"]:focus, h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus, h3[tabindex="-1"]:focus, section[tabindex="-1"]:focus, div[tabindex="-1"]:focus { outline: none; }

/* halftone dot field for the top-right corner of a paper section: 16 px cell, 1.5 px dots, 6% navy, fading over ~24 rem */
.section.paper, .conviction, .dots-bg { position: relative; isolation: isolate; }
.section.paper::before, .conviction::before, .dots-bg::before {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: min(100%, 40rem); height: 24rem; pointer-events: none;
  background-image: radial-gradient(circle, rgba(11, 29, 54, .06) .75px, transparent 1.15px); background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 72%);
  mask-image: radial-gradient(ellipse at 100% 0%, #000 0%, rgba(0, 0, 0, .55) 35%, transparent 72%);
}

/* ---------------------------------------------------------------------------------- 4.1 split hero with index card */
.page-hero.split { display: block; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-split .hero-copy { display: grid; gap: 0; justify-items: start; min-width: 0; }
.page-hero.split h1 { font-size: clamp(2.3rem, 1.4rem + 2.6vw, 3.6rem); font-weight: 300; line-height: 1.06; margin-top: 1.1rem; max-width: none; letter-spacing: -.02em; }
.page-hero.split .lede { margin-top: 1.2rem; max-width: 34rem; }
.page-hero.split .btn-row { margin-top: 1.75rem; }
.index-card {
  position: relative; width: 100%; max-width: 30rem; justify-self: end; min-width: 0;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(227, 192, 112, .35); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  padding: 1rem 1rem .5rem; box-shadow: 0 30px 70px -32px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.index-card-title { display: block; font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: var(--mono-track); text-transform: uppercase; color: var(--gold-bright); font-weight: 500; padding: .35rem .65rem .85rem; }
.index-card ol { list-style: none; display: grid; }
.index-card li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
.index-card a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .95rem; align-items: center;
  padding: .8rem .65rem; border-radius: var(--radius-sm); text-decoration: none; color: #fff;
  transition: background-color var(--t) ease;
}
.index-card a:hover, .index-card a:focus-visible { background: rgba(255, 255, 255, .07); color: #fff; }
.index-card a:focus-visible { outline-offset: -3px; }
.idx-text { display: grid; gap: .12rem; min-width: 0; }
.idx-text strong { color: #fff; font-weight: 600; font-size: .98rem; line-height: 1.3; }
.idx-text > span { color: var(--band-muted); font-size: .86rem; line-height: 1.4; }
.idx-go { width: .55rem; height: .55rem; margin-right: .35rem; border-top: 1.5px solid var(--gold-bright); border-right: 1.5px solid var(--gold-bright); transform: rotate(45deg); opacity: .7; transition: transform var(--t) var(--ease), opacity var(--t) ease; }
.index-card a:hover .idx-go, .index-card a:focus-visible .idx-go { transform: translateX(4px) rotate(45deg); opacity: 1; }
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; gap: 2.25rem; align-items: start; }
  .index-card { justify-self: start; max-width: 36rem; }
}
@media (max-width: 420px) { .index-card { padding: .75rem .6rem .35rem; } .index-card a { gap: .7rem; padding: .7rem .5rem; } }

/* ---------------------------------------------------------------------------------- 4.2 demo-data panel, Dashboard samples
   The hero's right column: the Demo data tag, one plain sentence and the button that opens the live demo dashboard in a new
   tab. .demo-open repeats the same under the screenshots. */
.demo-panel {
  position: relative; width: 100%; max-width: 30rem; justify-self: end; min-width: 0; display: grid; gap: .9rem; justify-items: start;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(227, 192, 112, .35); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  padding: 1.5rem 1.5rem 1.4rem; box-shadow: 0 30px 70px -32px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.page-hero.split .demo-panel p { margin: 0; color: var(--band-fg); font-size: 1.05rem; line-height: 1.5; max-width: none; }
.page-hero.split .demo-panel p.small { font-size: .88rem; color: var(--band-muted); }
.page-hero.split .demo-panel .btn-row { margin-top: .2rem; }
.demo-open {
  margin-top: clamp(2rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.demo-open p { margin: .5rem 0 0; color: var(--ink); }
@media (max-width: 960px) { .demo-panel { justify-self: start; max-width: 36rem; } }

/* ---------------------------------------------------------------------------------- 4.3 editorial service section */
/* 9 Nov: the heading sits above its cards and the cards run two across. Before, the heading held the left half on its own
   (half the section stood empty) and, being pinned, slid under the pill bar at the end of each section. */
.service-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 2.25rem); margin-top: 0; align-items: start; }
.service-lead { display: grid; gap: .9rem; justify-items: start; align-content: start; min-width: 0; }
.service-lead .eyebrow { margin-top: .4rem; }
.service-lead h2 { font-size: var(--step-3); }
.service-body > .stack > .rows.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.service-body > .stack > .rows.cards .row { grid-template-columns: minmax(0, 1fr); gap: .5rem; align-content: start; }
@media (max-width: 760px) { .service-body > .stack > .rows.cards { grid-template-columns: minmax(0, 1fr); } }
.service-lead .lede { margin-top: .1rem; }
.service-body { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); min-width: 0; align-content: start; }
.service-body .ppa { margin-top: 0; }
.service-body > .rows.cards { gap: .85rem; }
/* Services: the monthly pack and the process steps run full width under a service's two columns */
.service-more { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------------------------------------------------------------------------------- 4.4 a day with your team */
.day { list-style: none; position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 0; }
.day::before { content: ""; position: absolute; left: .45rem; right: 0; top: 1.9rem; height: 2px; background: linear-gradient(90deg, var(--gold-bright), var(--gold) 65%, rgba(201, 160, 78, 0)); }
.day li { position: relative; min-width: 0; padding-top: 3.2rem; display: grid; gap: .3rem; align-content: start; }
.day li::before { content: ""; position: absolute; left: 0; top: 1.45rem; width: .95rem; height: .95rem; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--gold); }
.paper .day li::before { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold); }
.day li:last-child::before { background: var(--gold); }
.day time { position: absolute; top: 0; left: 0; font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: .12em; color: var(--gold-deep); font-weight: 500; font-variant-numeric: tabular-nums; }
.day strong { color: var(--ink); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.day p { color: var(--muted); font-size: .92rem; line-height: 1.5; margin-top: .25rem; }
.band .day::before { background: linear-gradient(90deg, var(--gold-bright), var(--gold) 65%, rgba(227, 192, 112, 0)); }
.band .day li::before { background: var(--navy-3); box-shadow: 0 0 0 3px var(--navy), 0 0 0 4px var(--gold-bright); }
.band .day strong { color: #fff; }
.band .day p { color: var(--band-muted); }
.band .day time { color: var(--gold-bright); }
@media (max-width: 760px) {
  .day { grid-auto-flow: row; gap: 1.5rem; padding-left: 2.1rem; }
  .day::before { left: .4rem; right: auto; top: .45rem; bottom: .45rem; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold-bright), var(--gold) 65%, rgba(201, 160, 78, 0)); }
  .day li { padding-top: 0; }
  .day li::before { left: calc(1px - 2.1rem + .4rem - .475rem); top: .2rem; }
  .day time { position: static; display: block; margin-bottom: .1rem; }
}
/* a five-moment day inside a service body (a narrow column) stands vertical, as on phones */
@container (max-width: 44rem) {
  .service-body .day { grid-auto-flow: row; gap: 1.5rem; padding-left: 2.1rem; }
  .service-body .day::before { left: .4rem; right: auto; top: .45rem; bottom: .45rem; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold-bright), var(--gold) 65%, rgba(201, 160, 78, 0)); }
  .service-body .day li { padding-top: 0; }
  .service-body .day li::before { left: calc(1px - 2.1rem + .4rem - .475rem); top: .2rem; }
  .service-body .day time { position: static; display: block; margin-bottom: .1rem; }
}

/* ---------------------------------------------------------------------------------- 4.5 review chain */
.chain { list-style: none; display: flex; align-items: stretch; }
.chain li { position: relative; flex: 1 1 0; min-width: 0; display: grid; gap: .65rem; align-content: start; justify-items: start; padding-right: 2.6rem; }
.chain li:last-child { padding-right: 0; }
.chain li:not(:last-child)::before { content: ""; position: absolute; left: 0; right: 0; top: 1.375rem; height: 2px; margin-top: -1px; background: var(--gold); }
.chain li:not(:last-child)::after { content: ""; position: absolute; right: .55rem; top: 1.375rem; width: .55rem; height: .55rem; margin-top: -.275rem; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: rotate(45deg); }
.chain-node {
  position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 2.75rem; padding: .5rem 1.15rem; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.2; box-shadow: 0 0 0 4px var(--bg); white-space: nowrap;
  transition: transform var(--t) var(--ease), box-shadow var(--t) ease;
}
.paper .chain-node { box-shadow: 0 0 0 4px var(--paper); }
.chain li:hover .chain-node { transform: translateY(-2px); }
.chain .is-you .chain-node { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--ink); }
.chain-note { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.band .chain-node { background: var(--navy-3); box-shadow: 0 0 0 4px var(--navy); }
.band .chain .is-you .chain-node { background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--ink); }
.band .chain-note { color: var(--band-muted); }
.band .chain li:not(:last-child)::before { background: var(--gold-bright); }
.band .chain li:not(:last-child)::after { border-color: var(--gold-bright); }
/* vertical variant (contact: what happens next) and phones */
.chain.vertical { flex-direction: column; }
.chain.vertical li { padding-right: 0; padding-bottom: 2.4rem; }
.chain.vertical li:last-child { padding-bottom: 0; }
.chain.vertical li:not(:last-child)::before { left: 1.25rem; right: auto; top: 1.375rem; bottom: 0; width: 2px; height: auto; margin: 0 0 0 -1px; }
.chain.vertical li:not(:last-child)::after { right: auto; left: 1.25rem; top: auto; bottom: .55rem; margin: 0 0 0 -.275rem; transform: rotate(135deg); }
.chain.vertical .chain-note { padding-left: 2.7rem; }
.chain.vertical .chain-node { white-space: normal; }
@media (max-width: 760px) {
  .chain { flex-direction: column; }
  .chain li { padding-right: 0; padding-bottom: 2.4rem; }
  .chain li:last-child { padding-bottom: 0; }
  .chain li:not(:last-child)::before { left: 1.25rem; right: auto; top: 1.375rem; bottom: 0; width: 2px; height: auto; margin: 0 0 0 -1px; }
  .chain li:not(:last-child)::after { right: auto; left: 1.25rem; top: auto; bottom: .55rem; margin: 0 0 0 -.275rem; transform: rotate(135deg); }
  .chain-note { padding-left: 2.7rem; }
  .chain-node { white-space: normal; }
}

/* ---------------------------------------------------------------------------------- 4.7 selection funnel */
.funnel { list-style: none; display: grid; gap: .5rem; }
.funnel li {
  --w: 100%; width: var(--w); margin-inline: auto; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem 1.1rem; align-items: baseline;
  padding: .9rem 1.4rem; border-radius: var(--radius-sm); background: var(--navy); color: #fff; transition: transform var(--t) var(--ease), box-shadow var(--t) ease;
}
.funnel li:hover { transform: scale(1.012); box-shadow: var(--shadow); }
.funnel li:nth-child(2) { --w: 78%; background: var(--navy-3); }
.funnel li:nth-child(3) { --w: 56%; background: var(--gold-deep); }
.funnel li:nth-child(4) { --w: 36%; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: var(--ink); }
.funnel strong { font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: var(--mono-track); text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.funnel span { font-size: .9rem; line-height: 1.4; opacity: .82; }
.funnel li:nth-child(4) span { opacity: .85; }
@media (max-width: 760px) {
  .funnel li { grid-template-columns: 1fr; gap: .15rem; padding: .8rem 1.1rem; }
  .funnel li:nth-child(2) { --w: 90%; } .funnel li:nth-child(3) { --w: 80%; } .funnel li:nth-child(4) { --w: 70%; }
}
@media (max-width: 420px) { .funnel li:nth-child(2) { --w: 94%; } .funnel li:nth-child(3) { --w: 88%; } .funnel li:nth-child(4) { --w: 82%; } }

/* ---------------------------------------------------------------------------------- 4.8 coaching cadence */
.cadence { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin: 0; padding-top: 1.9rem; }
.cadence::before { content: ""; position: absolute; left: .45rem; right: 0; top: .35rem; height: 4px; background: radial-gradient(circle, var(--gold) 1.4px, transparent 1.6px) 0 0 / 10px 4px repeat-x; }
.cadence > div { position: relative; display: grid; gap: .45rem; align-content: start; min-width: 0; }
.cadence > div::before { content: ""; position: absolute; left: 0; top: calc(-1.9rem + .37rem - .45rem + 2px); width: .9rem; height: .9rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--bg); }
.paper .cadence > div::before { box-shadow: 0 0 0 3px var(--paper); }
.cadence > div:first-child::before { background: var(--navy); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px var(--gold); }
.paper .cadence > div:first-child::before { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold); }
.cadence dt { font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: var(--mono-track); text-transform: uppercase; color: var(--gold-deep); font-weight: 500; }
.cadence dd { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.band .cadence dt { color: var(--gold-bright); }
.band .cadence dd { color: var(--band-muted); }
.band .cadence > div::before { box-shadow: 0 0 0 3px var(--navy); }
@media (max-width: 760px) {
  .cadence { grid-template-columns: 1fr; gap: 1.25rem; padding-top: 0; padding-left: 2.1rem; }
  .cadence::before { left: .4rem; right: auto; top: .4rem; bottom: .4rem; width: 4px; height: auto; background: radial-gradient(circle, var(--gold) 1.4px, transparent 1.6px) 0 0 / 4px 10px repeat-y; }
  .cadence > div::before { left: calc(2px - 2.1rem + .4rem - .45rem); top: .15rem; }
}

/* ---------------------------------------------------------------------------------- section rhythm */
.section.band + .section.band { border-top: 0; padding-top: 0; }
.section.band + .section.band::before, .section.band + .section.band::after { display: none; }

/* ---------------------------------------------------------------------------------- reduced motion for v4 */
@media (prefers-reduced-motion: reduce) {
  .index-card a:hover .idx-go, .index-card a:focus-visible .idx-go { transform: rotate(45deg); }
  .chain li:hover .chain-node, .funnel li:hover { transform: none; }
  html.js .subnav:not(.is-visible), .subnav:not(.is-visible) { transform: none; }
}

/* ---------------------------------------------------------------------------------- print for v4 */
@media print { .subnav { display: none; } }

/* a chain inside a narrow column (a service body, the contact aside) stands vertical: the column is the container */
.service-body, .split > aside, aside.stack-lg { container-type: inline-size; }
@container (max-width: 44rem) {
  .chain { flex-direction: column; }
  .chain li { padding-right: 0; padding-bottom: 2.4rem; }
  .chain li:last-child { padding-bottom: 0; }
  .chain li:not(:last-child)::before { left: 1.25rem; right: auto; top: 1.375rem; bottom: 0; width: 2px; height: auto; margin: 0 0 0 -1px; }
  .chain li:not(:last-child)::after { right: auto; left: 1.25rem; top: auto; bottom: .55rem; margin: 0 0 0 -.275rem; transform: rotate(135deg); }
  .chain-note { padding-left: 2.7rem; }
  .chain-node { white-space: normal; }
}

/* v4 home: the two conviction artefacts side by side */
.artefacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 860px) { .artefacts { grid-template-columns: 1fr; } }

/* ====================================================================================================== pass 5 (30 Oct 2026)
   First paint: the scripting media query hides .reveal blocks before site.js runs (no visible-then-hidden flash);
   browsers without the query keep the html.js path. Phones: the logo and header fit 360 px, tilted frames stand flat,
   nothing can scroll sideways (the sphere is clipped by its section, body overflow-x is clip). */
@media (scripting: enabled) {
  .reveal:not(.in) { opacity: 0; transform: translateY(8px); }
  .move:not(.in)::before { transform: scaleY(0); }
}
@media (max-width: 400px) { .logo { height: 36px; } .site-footer .logo { height: 36px; } }
@media (max-width: 760px) { .frame.tilt, .frame.tilt:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal:not(.in) { opacity: 1; transform: none; }
  .move:not(.in)::before { transform: none; }
}

/* a11y audit 30-Oct: form field borders at 3:1 against white */
.form-card input:not([type=checkbox]):not([type=radio]), .form-card select, .form-card textarea { border-color: #8f9aa7; }

/* Dashboard page, phones only (site.js opens it): a picture shown large. (The warning before a live dashboard went on
   22 Nov 2026 with the links to the live dashboards.)
   The phone test below is the same one site.js uses: a narrow screen, or a phone held sideways. */
.phone-screen { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--navy); color: var(--band-fg); overflow: hidden; }
.phone-screen[open] { display: flex; flex-direction: column; }
.phone-screen::backdrop { background: var(--navy); }
html:has(.phone-screen[open]) { overflow: hidden; }
.shot-viewer-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; padding-top: max(.6rem, env(safe-area-inset-top)); border-bottom: 1px solid var(--band-line); }
.shot-viewer-bar strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; font-weight: 600; }
.shot-viewer-scroll { flex: 1; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #fff; }
.shot-viewer-scroll img { width: 1100px; max-width: none; height: auto; }
@media (max-width: 767px), (pointer: coarse) and (max-height: 500px) {
  html.js .tour-panel .frame:not(.is-locked) .frame-bar::after { content: "Tap to enlarge"; flex: none; margin-left: auto; padding-left: .75rem; font-family: var(--font-mono); font-size: .68rem; color: var(--gold-deep); }
  html.js .tour-panel .frame:not(.is-locked) img { cursor: zoom-in; }
}

/* ====================================================================================================== pass 7 (9 Nov 2026)
   Motion and finish only; no wording. Nothing here keeps moving on its own: each effect plays once, or moves only while the
   visitor scrolls or moves the mouse. Every part is off under prefers-reduced-motion, and each page reads the same
   without script. */

/* the display face draws "&" as a curl that reads like a registered mark at heading sizes: a heading takes it from the body face */
.amp { font-family: var(--font-body); font-weight: 500; font-size: .9em; letter-spacing: 0; }

/* ---------------------------------------------------------------------------------- 7.1 Home: the dashboards in a screen frame
   Four screens stacked in one frame. site.js plays them through once when the frame comes into view (the four short bars
   in the frame's top bar fill in turn), then leaves the first one up. Without script it is the first screen, still. */
.showcase {
  display: block; position: relative; isolation: isolate; margin: clamp(2rem, 4vw, 3rem) auto 0; width: 100%;
  max-width: min(100%, 64rem, calc((100svh - 7.5rem) * 1.6));  /* as large as it can be with the whole screen still inside a laptop window, under the header */
  text-decoration: none; color: inherit;
}
/* the glow behind the frame never reaches past the page's side margin: on a phone that made the page a few px too wide */
.showcase::before { content: ""; position: absolute; z-index: -1; inset: 10% calc(-1 * min(5%, var(--gutter) - 4px)) -9%; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(201, 160, 78, .26), rgba(201, 160, 78, 0)); filter: blur(28px); }
.showcase .frame { box-shadow: var(--shadow-lg); }
.showcase:hover .frame { transform: translateY(-4px); }
.showcase-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.showcase-stage img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: left top; }
.showcase-stage img + img { opacity: 0; }
html.js .showcase-stage img, html.js .showcase-stage img[loading="lazy"]:not(.is-loaded) { opacity: 0; transform: scale(1.03); transition: opacity .9s ease, transform 1.8s var(--ease); }
html.js .showcase-stage img.is-on, html.js .showcase-stage img.is-on[loading="lazy"]:not(.is-loaded) { opacity: 1; transform: none; }
.showcase-pips { display: none; margin-left: auto; gap: .3rem; align-items: center; }
html.js .showcase-pips { display: flex; }
html.js .showcase.is-still .showcase-pips { display: none; }
.showcase-pips b { position: relative; display: block; width: 1.1rem; height: 3px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.showcase-pips b::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left center; }
.showcase-pips b.is-done::after { transform: none; }
.showcase-pips b.is-on::after { transform: none; transition: transform var(--dwell, 2.4s) linear; }

/* ---------------------------------------------------------------------------------- 7.2 lines that draw themselves
   The day line and the steps line run from the first stop to the last once the block is well into view (site.js adds
   .is-drawn and tells each stop how far along the line it sits, --at); each dot lights as the line reaches it. Sideways
   on wide screens, downwards where the list stands vertical. */
@media (prefers-reduced-motion: no-preference) {
  html.js .day::before, html.js .steps::before { transform: scaleX(0); transform-origin: left center; }
  html.js .day li::before, html.js .steps li::before { opacity: .3; transform: scale(.5); }
  @media (max-width: 960px) { html.js .steps::before { transform: scaleY(0); transform-origin: center top; } }
  @media (max-width: 760px) { html.js .day::before { transform: scaleY(0); transform-origin: center top; } }
  html.js .day.is-drawn::before, html.js .steps.is-drawn::before { transform: none; transition: transform .6s cubic-bezier(.4, .1, .3, 1) .05s; }
  html.js .day.is-drawn li::before, html.js .steps.is-drawn li::before {
    opacity: 1; transform: none; transition: opacity .2s ease, transform .35s cubic-bezier(.3, 1.5, .5, 1);
    transition-delay: calc(.05s + var(--at, 0) * .55s);   /* 1 Dec 2026: the whole line in about .6 s (it took 1.5 s) */
  }
}

/* ---------------------------------------------------------------------------------- 7.3 hero entrance
   Removed 1 Dec 2026. The top of each page came up part by part over one to two seconds (label, headline line by line,
   then on Home the four points and the buttons), which made every page feel slow. It now shows at once; a move between
   pages still cross-fades (7.6). */

/* ---------------------------------------------------------------------------------- 7.4 the dot circle on scroll
   The hero circle loosens as the page scrolls away from it. site.js puts a copy of it in the closing panel, where the dots
   gather into the circle as the panel comes into view. Both move only while the page is scrolling. */
/* the whole circle shows inside the panel, in the clear space beside the button (site.js measures the panel and sets --ox,
   --oy), so the dots gather next to the call to action; on phones it is a quiet circle in the top corner, as in the hero */
.cta-panel > .cta-orb { position: absolute; z-index: 0; margin: 0; left: var(--ox, 70%); top: var(--oy, 50%); width: var(--os, 12.5rem); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; opacity: .62; }
.cta-panel > .cta-orb[hidden] { display: none; }
.cta-orb svg { width: 100%; height: auto; aspect-ratio: 1; display: block; overflow: visible; }
@media (max-width: 880px) { .cta-panel > .cta-orb { left: auto; top: -4rem; right: -6rem; width: 16rem; transform: none; opacity: .24; } }

/* ---------------------------------------------------------------------------------- 7.5 gold light under the mouse
   Dark bands: a soft gold glow follows the pointer (site.js sets --mx, --my and --glow; the first layer below is the glow,
   the other three are the band's own shade and grid, restated from the top of this file). Cards: a gold edge and a faint
   gold tint under the pointer (--cx, --cy). */
@property --glow { syntax: "<number>"; inherits: false; initial-value: 0; }
.hero-dark, .page-hero:not(.light), .cta-panel, .section.band {
  background-image:
    radial-gradient(30rem circle at var(--mx, 50%) var(--my, 0%), rgba(227, 192, 112, var(--glow, 0)), rgba(227, 192, 112, 0) 68%),
    linear-gradient(180deg, rgba(11, 29, 54, 0) 0%, rgba(11, 29, 54, .55) 55%, rgba(11, 29, 54, 1) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 64px);
  transition: --glow .6s ease;
}
html.js .cta-panel.reveal.in { transition: opacity .2s ease-out, transform .2s ease-out, --glow .6s ease; }
@media (hover: hover) and (pointer: fine) {
  .bento-card:hover, .rows.cards .row:hover, .point:hover, .beliefs li:hover, .values li:hover {
    border-color: rgba(201, 160, 78, .8);
    background-image: radial-gradient(18rem circle at var(--cx, 50%) var(--cy, 0%), rgba(201, 160, 78, .14), rgba(201, 160, 78, 0) 70%);
  }
}

/* ---------------------------------------------------------------------------------- 7.6 page changes
   Moving between pages cross-fades instead of flashing white, and the header (logo, menu) holds its place through it.
   Chrome, Edge and Safari; other browsers load the page as before. The switch itself (@view-transition) is in the head of
   every page (src/partials/head.html), because the browser reads it before this file is sure to have arrived. */
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; animation-timing-function: ease; }
::view-transition-group(site-header) { animation-duration: .2s; }

/* ---------------------------------------------------------------------------------- 7.7 dashboard tours play once
   Laptop and desktop only: site.js steps through the screens once when a tour comes into view (a gold line under the
   current screen's name shows the time left), stops at the first click or key, and then shows the Replay button. */
.tour-tabs button { position: relative; }
.tour.is-playing .tour-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform-origin: left center; animation: tour-fill var(--dwell, 2.2s) linear both; }
@keyframes tour-fill { from { transform: scaleX(0); } }
.tour-replay { margin-top: .9rem; display: flex; justify-content: flex-end; }
.tour-replay[hidden] { display: none; }
.replay {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .95rem; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--bg); color: var(--gold-deep); cursor: pointer; font: 500 var(--mono-size) var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  transition: border-color .2s ease, background-color .2s ease;
}
.replay:hover { border-color: var(--gold); background: var(--gold-soft); }
.replay svg { width: .95rem; height: .95rem; flex: none; }
@media (min-width: 881px) { .tour-panel .caption { min-height: 2.9rem; } }
/* a screen fades in when its turn comes, whether the tour is playing or a name was clicked */
@media (prefers-reduced-motion: no-preference) {
  .tour-panel:not([hidden]) .frame img { animation: shot-in .2s ease both; }
  @keyframes shot-in { from { opacity: 0; transform: scale(1.012); } }
}

/* ---------------------------------------------------------------------------------- 7.8 the company name, and the opening on Home (10 Nov 2026)
   The name is written AMFinX everywhere. .keep-case holds it that way inside a label that capitals everything else.
   On a first arrival or a reload, Home plays the charts that become the logo on a canvas laid over the circle's own space
   (site.js, playCharts). The circle stands at full strength while they play, then eases back to its resting strength.
   On a move between pages nothing plays and the circle shows at once (.is-there: no fade-in). */
.keep-case { text-transform: none; }
.hero-figure canvas.chart-intro { position: absolute; left: -8.696%; top: -8.696%; width: 117.392%; height: 117.392%; display: block; pointer-events: none; }
.hero-home .hero-figure { transition: opacity 1.4s ease; }
.hero-dark .hero-figure.is-playing { opacity: 1; transition: none; }
.logo-orb.is-there { transition: none; }
/* the circle really is hidden while it waits: the older rule lost to "html.js .logo-orb" just above it in strength, so
   the circle showed through behind the charts */
html.js .logo-orb.is-waiting { opacity: 0; transition: none; }

/* reduced motion for pass 7: nothing plays, so the play markers go too */
@media (prefers-reduced-motion: reduce) {
  html.js .showcase-pips { display: none; }
  .showcase:hover .frame { transform: none; }
}

/* ---------------------------------------------------------------------------------- 7.9 (22 Nov 2026)
   Home, What we do: the heading in bold with its line under it in bold italics (Ajay's wording and styling).
   Dashboard samples: three screens open in each tour; the others carry a lock in their name and show a blurred picture
   with the call button over it. The play-through skips them (site.js). */
.section-head h2.head-bold { font-weight: 600; }
/* a line break falls between the three phrases, never inside one (except on the narrowest phones) */
.head-bold .phrase { white-space: nowrap; }
@media (max-width: 400px) { .head-bold .phrase { white-space: normal; } }
.head-tagline {
  margin: 0; max-width: 44rem; font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); line-height: 1.4; color: var(--gold-deep); text-wrap: pretty;
}
.tour-tabs button[data-locked] strong { display: inline-flex; align-items: center; gap: .45rem; }
.tour-tabs button[data-locked] strong .ico { width: .95rem; height: .95rem; opacity: .6; }
.locked-shot { position: relative; }
.locked-shot img { display: block; }
.locked-note {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .9rem; padding: 1.25rem;
  text-align: center; color: #fff; background: linear-gradient(180deg, rgba(11, 29, 54, .30), rgba(11, 29, 54, .58));
}
.locked-note p { margin: 0; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.3; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
.lock-badge {
  width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; color: var(--gold-bright);
  background: rgba(11, 29, 54, .55); border: 1px solid rgba(227, 192, 112, .6);
}
.lock-badge .ico { width: 1.35rem; height: 1.35rem; }
.locked-note .btn { white-space: normal; text-align: center; line-height: 1.25; }
/* the call button's label is long: on a phone it may wrap instead of running past the box */
@media (max-width: 600px) {
  .demo-open .btn-row, .demo-panel .btn-row { flex: 1 1 100%; min-width: 0; }
  .demo-open .btn, .demo-panel .btn { white-space: normal; text-align: center; line-height: 1.25; }
}
@media (max-width: 600px) {
  .locked-note { gap: .55rem; padding: .75rem; }
  .locked-note p { display: none; }
  .lock-badge { width: 2.3rem; height: 2.3rem; }
  .lock-badge .ico { width: 1.1rem; height: 1.1rem; }
  .locked-note .btn { padding: .7rem 1rem; font-size: .88rem; }
}

/* ---------------------------------------------------------------------------------- 7.10 dashboard clips (22 Nov 2026)
   An open screen with data-clip carries a short recording of real clicks on the live demo. site.js adds the button; the
   recording sits exactly where the picture was, plays once, and rests on its last picture. */
.tour-panel .frame[data-clip] { position: relative; }
.frame video.clip { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--surface); }
.frame.is-clip > img { display: none; }
.clip-play {
  position: absolute; right: .85rem; bottom: .85rem; display: inline-flex; align-items: center; gap: .45rem;
  padding: .5rem .95rem .5rem .75rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  background: rgba(11, 29, 54, .88); color: #fff; font: 600 .85rem/1 var(--font-body); cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(11, 29, 54, .6); transition: background .2s ease, transform .2s ease;
}
.clip-play svg { width: 1rem; height: 1rem; color: var(--gold-bright); flex: none; }
.clip-play:hover { background: var(--navy); transform: translateY(-1px); }
.clip-play:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.clip-play[hidden] { display: none; }
@media (max-width: 640px) { .clip-play { right: .5rem; bottom: .5rem; min-height: 40px; padding: .4rem .75rem .4rem .6rem; font-size: .8rem; } }
@media (prefers-reduced-motion: reduce) { .clip-play, .clip-play:hover { transition: none; transform: none; } }

/* ====================================================================== 13 code-first finance pages (cf-) */
.cf-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cf-group { margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.cf-group > h3 { font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: var(--mono-track); text-transform: uppercase; color: var(--gold-deep); font-weight: 500; margin: 0 0 .9rem; display: flex; align-items: center; gap: .6rem; }
.cf-group > h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cf-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.cf-card { display: flex; flex-direction: column; gap: .55rem; padding: var(--card-pad); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--fg); text-decoration: none; transition: box-shadow .2s ease, transform .22s var(--ease), border-color .2s ease; }
.cf-ctl .cf-card { border-top-color: var(--navy-3); }
.cf-fpa .cf-card { border-top-color: var(--gold-deep); }
.cf-den .cf-card { border-top-color: #6d86a3; }
.cf-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cf-card h4 { font-family: var(--font-display); font-weight: 500; font-size: var(--h-item); color: var(--ink); margin: 0; line-height: 1.2; }
.cf-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.cf-num { font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: .08em; color: var(--gold-deep); }
.cf-mini { list-style: none; margin: .35rem 0 0; padding: .7rem 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.cf-card .go { margin-top: auto; padding-top: .4rem; }

.cf-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.cf-facts div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; background: var(--surface); }
.cf-facts dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: var(--mono-track); text-transform: uppercase; color: var(--muted); }
.cf-facts dd { margin: .35rem 0 0; font-family: var(--font-display); font-size: var(--step-2); color: var(--ink); line-height: 1.1; }
.band .cf-facts div { background: rgba(255, 255, 255, .04); border-color: var(--band-line); }
.band .cf-facts dt { color: var(--band-muted); }
.band .cf-facts dd { color: #fff; }

.cf-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.cf-flow > li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.cf-flow > li:not(:last-child)::after { content: "\2192"; position: absolute; right: -1.15rem; top: 1.05rem; color: var(--gold); font-size: 1.1rem; z-index: 1; }
.cf-flow h3 { font-family: var(--font-mono); font-size: var(--mono-size); letter-spacing: var(--mono-track); text-transform: uppercase; color: var(--gold-deep); margin: 0 0 .7rem; font-weight: 500; }
.cf-flow ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .9rem; color: var(--fg); }
.cf-flow .cf-rows { display: block; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }
.cf-flow .cf-checks li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); align-items: start; }
.cf-tick { color: var(--pos); font-weight: 700; }
.cf-flow > li.cf-person { background: var(--gold-soft); border-color: rgba(201, 160, 78, .55); }
.cf-big { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--ink); margin: .2rem 0 .3rem; }
.cf-person p:last-child { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 880px) { .cf-flow { grid-template-columns: 1fr 1fr; } .cf-flow > li:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .cf-flow { grid-template-columns: 1fr; } .cf-flow > li:not(:last-child)::after, .cf-flow > li:nth-child(2)::after { display: block; content: "\2193"; right: auto; left: 1.2rem; top: auto; bottom: -1.3rem; } }

.cf-two { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (max-width: 880px) { .cf-two { grid-template-columns: 1fr; } }
.cf-sub { font-family: var(--font-display); font-weight: 500; font-size: var(--step-1); color: var(--ink); margin: 0 0 1rem; }
.cf-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: .7rem; color: var(--fg); }
.cf-steps li::marker { font-family: var(--font-mono); color: var(--gold-deep); }
.cf-compare { display: grid; gap: .8rem; }
.cf-compare > div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.cf-compare > div:last-child { border-color: rgba(201, 160, 78, .55); background: var(--gold-soft); }
.cf-k { font-family: var(--font-mono); font-size: .7rem; letter-spacing: var(--mono-track); text-transform: uppercase; color: var(--muted); }
.cf-compare p { margin: .35rem 0 0; }
.cf-t { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); }
.cf-illus { font-size: .8rem; color: var(--muted); margin: .7rem 0 0; }

.cf-items { margin: 0 0 1.5rem; padding: 0; list-style: none; display: grid; gap: .6rem; counter-reset: cf; }
.cf-items li { counter-increment: cf; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .6rem; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.cf-items li::before { content: counter(cf, decimal-leading-zero); font-family: var(--font-mono); font-size: .75rem; color: var(--gold-deep); padding-top: .15rem; }

.cf-result { margin: 0; }
.cf-table { width: 100%; border-collapse: collapse; font-size: .88rem; background: var(--surface); border: 1px solid var(--line); }
.cf-table caption { caption-side: bottom; text-align: left; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); padding-top: .6rem; }
.cf-table th, .cf-table td { padding: .55rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cf-table thead th { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--paper); white-space: nowrap; }
.cf-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cf-table .cf-date { white-space: nowrap; }
.cf-table tr.cf-strong td { font-weight: 600; color: var(--ink); }
.cf-table tbody tr:last-child td { border-bottom: 0; }
.cf-compare-table caption { caption-side: top; padding: 0 0 .6rem; }
.cf-compare-table th[scope="row"] { font-weight: 600; white-space: nowrap; }
.cf-compare-table th[scope="row"] a { color: var(--ink); text-decoration: none; }
.cf-compare-table th[scope="row"] a:hover { color: var(--gold-deep); }

.cf-chart-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem .8rem; }
.cf-chart { width: 100%; height: auto; display: block; }
.cf-chart .cf-grid { stroke: var(--line); stroke-width: 1; }
.cf-chart .cf-axis { font: 11px var(--font-mono); fill: var(--muted); }
.cf-chart .cf-bar { fill: var(--navy-3); }
.cf-chart .cf-bar.low { fill: var(--neg); }
.cf-chart .cf-buffer { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 6 5; }
.cf-chart .cf-buffer-t { font: 12px var(--font-body); fill: var(--gold-deep); }
.cf-chart .cf-low-t { font: 600 11px var(--font-body); fill: #fff; }
.cf-chart-wrap figcaption { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); margin-top: .5rem; }

.cf-code { margin: 0; background: #0f2240; color: #e6ebf2; border-radius: var(--radius); padding: 1rem 0; overflow-x: auto; font-family: var(--font-mono); font-size: .8rem; line-height: 1.6; box-shadow: var(--shadow); }
.cf-code code { display: block; min-width: max-content; }
.cf-l { display: block; position: relative; padding-right: 1.25rem; white-space: pre; }
.cf-n { display: inline-block; width: 3.4rem; padding-right: 1.1rem; text-align: right; color: #6f819b; user-select: none; }
.cf-l[data-note] { background: rgba(227, 192, 112, .09); box-shadow: inset 3px 0 0 var(--gold); }
.cf-mark { position: absolute; left: .45rem; top: 0; font-size: .66rem; color: var(--gold-bright); font-weight: 600; user-select: none; }
.cf-c .k { color: #f0c674; }
.cf-c .s { color: #a8d08d; }
.cf-c .c { color: #8796ad; font-style: italic; }
.cf-c .n { color: #f2a07b; }
.cf-c .f { color: #8ec5ff; }
.cf-notes { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .9rem; }
.cf-notes li { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); gap: .7rem; align-items: start; }
.cf-letter { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--gold-soft); color: var(--gold-deep); font-family: var(--font-mono); font-weight: 600; font-size: .8rem; border: 1px solid rgba(201, 160, 78, .5); }
.cf-notes p { margin: 0; }
.cf-where { display: block; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); margin-top: .25rem; }
#code .cf-sub { margin-top: 2rem; }
.cf-full { margin-top: 1rem; }
.cf-full summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); list-style: none; }
.cf-full summary::-webkit-details-marker { display: none; }
.cf-full summary::before { content: "+"; font-family: var(--font-mono); color: var(--gold-deep); margin-right: .6rem; }
.cf-full[open] summary::before { content: "\2212"; }
.cf-full[open] .cf-code { margin-top: .8rem; max-height: 75vh; overflow: auto; }

.cf-console { margin: 0; background: #07152a; color: #d7dee8; border: 1px solid var(--band-line); border-radius: var(--radius); padding: 1.1rem 1.25rem; overflow-x: auto; font-family: var(--font-mono); font-size: .78rem; line-height: 1.7; }
.cf-console code { display: block; min-width: max-content; white-space: pre; }
.cf-out.run { color: #fff; font-weight: 600; }
.cf-out.ok { color: #9fd8b5; }
.cf-out.flag { color: var(--gold-bright); }
.cf-out.info { color: #aab7c8; }
.band .cf-meta { font-size: .8rem; color: var(--band-muted); margin-top: 1rem; }
.cf-try { background: var(--navy); color: #e6ebf2; margin-bottom: 1.2rem; }

.cf-pager { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.cf-pager a { display: block; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600; background: var(--surface); }
.cf-pager a:hover { border-color: var(--gold); }
.cf-pager a span { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: var(--mono-track); text-transform: uppercase; color: var(--muted); font-weight: 400; margin-bottom: .25rem; }
.cf-prev { grid-column: 1; }
.cf-all { grid-column: 2; text-align: center; }
.cf-next { grid-column: 3; text-align: right; }
@media (max-width: 720px) { .cf-pager { grid-template-columns: 1fr; } .cf-prev, .cf-all, .cf-next { grid-column: auto; text-align: left; } }
.cf-download { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-top: 1.5rem; color: var(--muted); font-size: .9rem; }

.cf-chain { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .5rem; }
.band .cf-chain li > a, .band .cf-chain li.cf-trail { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 7rem 9rem; gap: 1rem; align-items: center; padding: .75rem 1rem; border: 1px solid var(--band-line); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03); color: var(--band-fg); text-decoration: none; }
.band .cf-chain li > a:hover { border-color: rgba(227, 192, 112, .6); background: rgba(255, 255, 255, .06); color: #fff; }
.band .cf-chain .cf-num { color: var(--gold-bright); }
.band .cf-chain .cf-name { font-weight: 600; }
.band .cf-chain .cf-stat { font-family: var(--font-mono); font-size: .72rem; color: var(--band-muted); text-align: right; }
.band .cf-chain .cf-stat.on { color: var(--gold-bright); }
.band .cf-chain li.cf-trail { border-style: dashed; }
@media (max-width: 640px) { .band .cf-chain li > a, .band .cf-chain li.cf-trail { grid-template-columns: 2.4rem minmax(0, 1fr); gap: .2rem .8rem; } .band .cf-chain .cf-stat { grid-column: 2; text-align: left; } }

/* ---------------------------------------------------------------------------------- 13b by hand vs with code (cf-lanes)
   Two lanes side by side: the same work by hand (muted) and with code (gold). On the overview each lane ends in a bar of
   where the team's time goes: an illustration, labelled as one on the page. */
.cf-lanes { display: grid; grid-template-columns: minmax(0, 1fr) 2.6rem minmax(0, 1fr); align-items: stretch; }
.cf-lanes > .cf-arrow { display: grid; place-items: center; color: var(--gold); font-size: 1.7rem; }
.cf-lane { display: flex; flex-direction: column; gap: 1rem; padding: var(--card-pad); border-radius: var(--radius); }
.cf-by-hand { background: var(--paper); border: 1px solid var(--line); }
.cf-with-code { background: var(--surface); border: 1px solid rgba(201, 160, 78, .55); border-top: 3px solid var(--gold); box-shadow: var(--shadow-sm); }
.cf-lane-head { display: flex; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; flex-wrap: wrap; }
.cf-lane-head h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); color: var(--ink); }
.cf-by-hand .cf-lane-head h3 { color: var(--muted); }
.cf-lane-t { font-family: var(--font-display); font-size: var(--step-1); color: var(--muted); }
.cf-with-code .cf-lane-t { color: var(--gold-deep); font-weight: 500; }
.cf-path { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; counter-reset: cfstep; }
.cf-path li { counter-increment: cfstep; display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); gap: .75rem; align-items: center; padding: .6rem .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .95rem; color: var(--fg); }
.cf-path li::before { content: counter(cfstep); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; font-family: var(--font-mono); font-size: .78rem; background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.cf-by-hand .cf-path li { color: var(--muted); }
.cf-with-code .cf-path li { border-color: rgba(201, 160, 78, .35); }
.cf-with-code .cf-path li::before { background: var(--gold-soft); color: var(--gold-deep); border-color: rgba(201, 160, 78, .55); }
.cf-lane-note { margin: 0; font-size: .95rem; color: var(--fg); }
.cf-by-hand .cf-lane-note { color: var(--muted); }
.cf-split { display: grid; height: 2.2rem; margin-top: auto; border-radius: 999px; overflow: hidden; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; }
.cf-by-hand .cf-split { grid-template-columns: 4fr 1fr; }
.cf-with-code .cf-split { grid-template-columns: 1fr 6fr; }
.cf-split span { display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; color: var(--ink); }
.cf-split .prep { background: #cfd5dd; }
.cf-split .review { background: var(--gold); }
.cf-lanes + .cf-illus { margin-top: .9rem; }
@media (max-width: 760px) { .cf-lanes { grid-template-columns: minmax(0, 1fr); } .cf-lanes > .cf-arrow { transform: rotate(90deg); padding: .5rem 0; } }
/* process cards: the time by hand and with code */
.cf-times { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: .35rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); }
.cf-times dt { font-family: var(--font-mono); font-size: .66rem; letter-spacing: var(--mono-track); text-transform: uppercase; color: var(--muted); }
.cf-times dd { margin: .2rem 0 0; font-size: .92rem; font-weight: 600; color: var(--ink); }
.cf-times div:last-child dd { color: var(--gold-deep); }
