/* ============================================================================
   ADAM RUBIN — TRANSFORMATION STUDIO · site stylesheet (v2)
   Consumes brand/tokens.css. No raw hex / font / spacing values here that
   aren't tokens. Pair with <link rel="stylesheet" href="/assets/css/fonts.css">.
   ========================================================================== */
@import url("../../brand/tokens.css");

*,*::before,*::after { box-sizing: border-box; }

.skip-link { position: absolute; left: var(--space-md); top: -100px; z-index: 1000; padding: var(--space-sm) var(--space-md); background: var(--ink-bg); color: var(--on-dark); font-family: var(--font-mono); font-size: var(--fs-small); text-decoration: none; border-radius: var(--radius); }
.skip-link:focus { top: var(--space-md); box-shadow: var(--focus-ring-dark); }
html {
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce){ html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: var(--weight-body);
  line-height: var(--lh-body);
}

img,svg,video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 2px; }
.on-dark :focus-visible { box-shadow: var(--focus-ring-dark); }

/* ------------------------------------------------------------- primitives -- */
.wrap { width: min(var(--container), calc(100% - 2*var(--gutter))); margin-inline: auto; }
.wrap--wide { width: min(var(--container-wide), calc(100% - 2*var(--gutter))); }
.measure { max-width: var(--container-text); }

.band { padding-block: var(--section-y); position: relative; background: var(--bg); color: var(--text); isolation: isolate; }
.band--paper-deep { background: var(--paper-deep); }
.band--paper-warm { background: var(--paper-warm); }
.band--dark { background: var(--ink-bg); color: var(--on-dark); }
.band--dark, .band--dark * { --bg: var(--ink-bg); }
.band--dark { --text: var(--on-dark); --text-2: var(--on-dark-2); --text-muted: var(--on-dark-muted); --hairline: var(--line-on-dark); --hairline-strong: var(--line-on-dark-strong); }
.band > .wrap { position: relative; z-index: 1; }

/* -------------------------------------------------- background treatments -- */
/* Apply .bg-grid and/or .bg-wash to a .band. Leave some bands with neither —
   the plain ones make the treated ones read as choices. */
.bg-grid::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-light-v) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: var(--grid-mask); mask-image: var(--grid-mask);
}
.band--dark.bg-grid::before {
  background-image:
    linear-gradient(var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-dark-v) 1px, transparent 1px);
}
.bg-wash::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--wash-light);
}
.bg-wash--right::after { background: var(--wash-light-right); }
.band--dark.bg-wash::after { background: var(--wash-dark); }

/* section header block — title left, an ambient accent animation opposite it */
/* One section-head standard (QA round 2, H2/H3): every section h2 is the
   standard --fs-h2 size, and the head plus the text right below it run to
   about two-thirds of the page. (Was 46ch, with a smaller-type --wide variant.) */
.sec-head { max-width: 66%; margin-bottom: var(--space-xl); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head + .measure, .sec-head-grid + .measure { max-width: 66%; }
.sec-head-grid {
  display: grid; grid-template-columns: minmax(0,2fr) minmax(0,1fr);
  gap: var(--space-2xl); align-items: center; margin-bottom: var(--space-xl);
}
.sec-head-grid .sec-head { margin-bottom: 0; max-width: none; }
.sec-head-grid--solo { grid-template-columns: minmax(0,1fr); }
.sec-head-grid--solo .sec-head { max-width: 66%; }
@media (max-width: 860px){
  .sec-head-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .sec-head, .sec-head-grid--solo .sec-head, .sec-head + .measure, .sec-head-grid + .measure { max-width: none; }
}
.eyebrow {
  /* sized to match .hero-kicker (D143) — no reason for section eyebrows to
     read smaller than the hero's, they're the same kind of label */
  font-family: var(--font-mono); font-size: var(--fs-small); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--tracking-label);
  color: var(--accent); margin: 0 0 var(--space-md);
}
.band--dark .eyebrow { color: var(--accent-bright); }
.eyebrow a { color: inherit; }

h1,h2,h3,h4 { font-family: var(--font-serif); font-weight: var(--weight-heading); margin: 0; font-optical-sizing: auto; }
.h1, h1 { font-size: var(--fs-h1); line-height: var(--lh-heading); letter-spacing: var(--tracking-heading); font-variation-settings: var(--fvs-heading); }
.h2, h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); letter-spacing: var(--tracking-heading); font-variation-settings: var(--fvs-heading); }
.h3, h3 { font-size: var(--fs-h3); line-height: var(--lh-tight); letter-spacing: var(--tracking-h3); font-variation-settings: var(--fvs-heading); }
.h4, h4 { font-size: var(--fs-h4); line-height: var(--lh-tight); letter-spacing: -0.005em; }
.display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--tracking-display); font-weight: var(--weight-display); font-variation-settings: var(--fvs-display); }

.lede { font-size: var(--fs-lede); line-height: 1.5; color: var(--text-2); margin: var(--space-md) 0 0; }
/* POV line — serif, never italic (Adam). Distinction comes from size + a hair
   more weight, and it usually sits alone with space around it. */
.pov { font-family: var(--font-serif); font-size: var(--fs-pov); line-height: var(--lh-pov); font-weight: var(--weight-emphasis); color: var(--text); font-variation-settings: var(--fvs-heading); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* section kicker — mono, accent: every section opens on an accent label.
   Caption is the quiet muted one. */
.fig-label { font-family: var(--font-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--accent); margin: 0 0 var(--space-sm); }
.band--dark .fig-label { color: var(--accent-bright); }
.fig-label .sep { color: var(--text-muted); }
.fig-caption { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: var(--tracking-caption); color: var(--text-muted); margin: var(--space-sm) 0 0; }
.fig-caption .arrow { color: var(--accent); }
.band--dark .fig-caption .arrow { color: var(--accent-bright); }

/* phrase emphasis inside running text — bold only, never italic (Adam) */
.em { font-weight: var(--weight-strong); color: var(--text); }

/* provisional / placeholder marker (master spec: never publish unverified) */
.provisional {
  font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent);
  border: 1px dashed var(--accent-soft); border-radius: 2px;
  padding: 2px 6px; display: inline-block;
}
.placeholder-fill { color: var(--text-muted); }

/* ------------------------------------------------------------------ nav ---- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  /* 94% keeps the accent text (current link, studio wordmark) at 4.77:1 even
     over a fully dark band; 88% let it fall to 4.23:1 (D219). */
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap { display: flex; align-items: center; gap: var(--space-lg); min-height: var(--nav-height); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand svg { width: 26px; height: 26px; color: var(--ink-2); }
.brand .mark-core { fill: var(--accent-bright); }
.brand-name { font-family: var(--font-serif); font-size: 1.22rem; letter-spacing: -0.01em; color: var(--ink); font-variation-settings: var(--fvs-heading); transition: color var(--dur-1) var(--ease); }
/* nav wordmark swap (D170/D156) — "Adam Rubin" alternates with a mono, accent
   "Transformation Studio" via a matrix-style character scramble. anim.js
   wraps .brand-name in .wordmark at runtime (no per-page markup needed) and
   reserves its width to the wider of the two strings, measured once per
   font, so the nav links never shift mid-scramble. Untouched entirely under
   prefers-reduced-motion — anim.js skips the whole feature, not just the
   animation, since a wordmark that keeps changing state is still motion. */
.wordmark { position: relative; display: inline-block; white-space: nowrap; }
.brand-name.is-studio { font-family: var(--font-mono); font-size: 1.0rem; letter-spacing: 0.01em; color: var(--accent); font-variation-settings: normal; }
.brand-name .ch { display: inline-block; }
.brand-name .ch.is-scrambling { color: var(--accent-bright); }
.nav-links { display: flex; align-items: center; gap: var(--space-md); }
.nav-links a { font-size: 0.92rem; color: var(--ink-2); text-decoration: none; padding: 6px 2px; transition: color var(--dur-1) var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
/* the nav Contact button carries the nav's own sans typography, not the mono
   CTA face — it's a nav item, and mono reads as out of place at this size. */
.nav-links .btn--sm { font-family: var(--font-sans); font-size: 0.92rem; font-weight: 500; letter-spacing: 0; min-height: 0; padding: 8px 18px; margin-left: 4px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.3rem; color: var(--ink); cursor: pointer; }
/* the brand plus six links need about 860px; collapse to the menu button before they overflow */
@media (max-width: 900px){
  .nav-toggle { display: block; width: 44px; height: 44px; margin-right: -10px; padding: 0; position: relative; font-size: 0; }
  /* the three bars are injected by anim.js; they turn into a cross while open */
  .nav-toggle b { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform var(--dur-3) var(--ease-in-out), top var(--dur-3) var(--ease-in-out), opacity var(--dur-1) var(--ease); }
  .nav-toggle b:nth-child(1) { top: 16px; } .nav-toggle b:nth-child(2) { top: 22px; } .nav-toggle b:nth-child(3) { top: 28px; }
  .nav-toggle[aria-expanded="true"] b:nth-child(1) { top: 22px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] b:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] b:nth-child(3) { top: 22px; transform: rotate(-45deg); }

  /* Full-screen menu (D236): one slat per link rolls down from under the nav
     bar in turn, each edged with a Performance System hue; Contact lands last
     as a dark slat. anim.js scrambles each label in, as the wordmark does.
     Hidden by visibility (not display) so the roll-up can play on close. */
  .site-nav .nav-links {
    position: absolute; top: var(--nav-height); left: 0; right: 0; height: calc(100vh - var(--nav-height)); height: calc(100dvh - var(--nav-height));
    display: flex; flex-direction: column; align-items: stretch; gap: 0; overflow: hidden; visibility: hidden;
    counter-reset: slat;
    transition: visibility 0s calc(var(--dur-3) + var(--dur-2));
  }
  .site-nav .nav-links.open { visibility: visible; transition-delay: 0s; }
  .site-nav .nav-links a {
    --pipc: var(--accent-bright);
    position: relative; flex: 1 1 0; display: flex; align-items: center; gap: var(--space-sm); padding: 0 var(--space-md) 0 calc(var(--space-md) + 3px);
    font-family: var(--font-serif); font-variation-settings: var(--fvs-heading); font-size: var(--fs-h2); line-height: 1; letter-spacing: var(--tracking-heading); color: var(--ink);
    background: var(--paper-deep); border-bottom: 1px solid var(--line-strong);
    transform: translateY(-100%); transition: transform var(--dur-3) var(--ease-in-out), color var(--dur-1) var(--ease);
  }
  .site-nav .nav-links a:nth-child(even) { background: var(--paper-warm); }
  .site-nav .nav-links a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--pipc); }
  .site-nav .nav-links a::after { counter-increment: slat; content: counter(slat, decimal-leading-zero); margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-small); letter-spacing: var(--tracking-label); color: var(--text-muted); }
  .site-nav .nav-links a:nth-child(1) { --pipc: var(--fam-1); } .site-nav .nav-links a:nth-child(2) { --pipc: var(--fam-2); }
  .site-nav .nav-links a:nth-child(3) { --pipc: var(--fam-3); } .site-nav .nav-links a:nth-child(4) { --pipc: var(--fam-4); }
  .site-nav .nav-links a:nth-child(5) { --pipc: var(--fam-5); }
  .site-nav .nav-links a[aria-current="page"] { color: var(--accent); }
  .site-nav .nav-links a:hover { color: var(--accent); }
  /* Contact: the dark slat, taller, label only */
  .site-nav .nav-links a.btn { flex-grow: 1.4; min-height: 0; margin: 0; border: 0; border-radius: 0; background: var(--ink-bg); color: var(--on-dark); font-size: var(--fs-h3); letter-spacing: var(--tracking-h3); box-shadow: none; }
  .site-nav .nav-links a.btn::after { content: "→"; counter-increment: none; color: var(--accent-bright); font-size: var(--fs-body); }
  .site-nav .nav-links a.btn:hover, .site-nav .nav-links a.btn[aria-current="page"] { color: var(--accent-bright); background: var(--ink-bg); }
  .site-nav .nav-links.open a { transform: none; }
  /* roll-up on close runs bottom to top; roll-down on open runs top to bottom */
  .site-nav .nav-links a:nth-child(1) { transition-delay: calc(var(--dur-1) * 1.25), 0s; }
  .site-nav .nav-links a:nth-child(2) { transition-delay: var(--dur-1), 0s; }
  .site-nav .nav-links a:nth-child(3) { transition-delay: calc(var(--dur-1) * 0.75), 0s; }
  .site-nav .nav-links a:nth-child(4) { transition-delay: calc(var(--dur-1) * 0.5), 0s; }
  .site-nav .nav-links a:nth-child(5) { transition-delay: calc(var(--dur-1) * 0.25), 0s; }
  .site-nav .nav-links a:nth-child(6) { transition-delay: 0s, 0s; }
  .site-nav .nav-links.open a:nth-child(1) { transition-delay: 0s, 0s; }
  .site-nav .nav-links.open a:nth-child(2) { transition-delay: calc(var(--dur-1) * 0.5), 0s; }
  .site-nav .nav-links.open a:nth-child(3) { transition-delay: var(--dur-1), 0s; }
  .site-nav .nav-links.open a:nth-child(4) { transition-delay: calc(var(--dur-1) * 1.5), 0s; }
  .site-nav .nav-links.open a:nth-child(5) { transition-delay: calc(var(--dur-1) * 2), 0s; }
  .site-nav .nav-links.open a:nth-child(6) { transition-delay: calc(var(--dur-1) * 2.5), 0s; }
  html.menu-open { overflow: hidden; }
  .nav-links .ch { display: inline-block; white-space: pre; }
  .nav-links .ch.is-scrambling { color: var(--accent-bright); }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce){
  .site-nav .nav-links, .site-nav .nav-links a, .nav-toggle b { transition: none !important; }
}
/* scroll-progress bar — full-bleed 2px accent hairline pinned to the very top
   edge of the viewport (above the sticky nav); width driven by scaleX() from
   anim.js. Injected into <body> on every page that has .site-nav; the /brand
   styleguide adds its own (no anim.js there). */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 60;
  background: var(--accent); transform-origin: left; transform: scaleX(0);
  transition: opacity var(--dur-1) var(--ease);
}

/* ---------------------------------------------------- buttons + text links -- */
/* ONE system. Every .btn is a pill carrying an arrow disc (QA round 2, D229):
   .btn-primary is a filled pill with an indigo disc, .btn-ghost an outlined pill
   whose indigo ring fills on hover; .btn--sm (the nav Contact) is a pill with no
   disc. .text-link is an underlined mono label with a sliding arrow. Light vs
   dark changes only the --cta-* tokens below; structure and hover are the same
   everywhere. Hover: the disc steps forward and a soft glow appears. */
body {
  --cta-fill:    var(--ink);
  --cta-on-fill: #f7f4ee;
  --cta-label:   var(--ink-2);
  --cta-line:    var(--line-strong);
  --cta-accent:  var(--accent);
  --cta-glow:    0 12px 30px rgba(90, 72, 216, 0.22);
  --cta-tint:    var(--accent-mist);
  --cta-disc:    var(--accent);
  --cta-on-disc: var(--paper);
}
.hero, .band--dark, .site-footer {
  --cta-fill:    var(--paper-warm);
  --cta-on-fill: var(--ink);
  --cta-label:   var(--on-dark-2);
  --cta-line:    var(--line-on-dark-strong);
  --cta-accent:  var(--accent-bright);
  --cta-glow:    0 14px 38px rgba(122, 92, 255, 0.4);
  --cta-tint:    rgba(122, 92, 255, 0.12);
}

.btn {
  -webkit-appearance: none; appearance: none; margin: 0;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 54px; padding: 7px 7px 7px 24px; border: 1px solid var(--cta-line);
  border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 0.8rem;
  font-weight: 500; letter-spacing: 0.04em; line-height: 1.3; color: var(--cta-label);
  background: transparent; cursor: pointer; text-decoration: none;
  transition: transform var(--dur-1) var(--ease), background var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease),
              box-shadow var(--dur-1) var(--ease);
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn--sm { min-height: 38px; padding: 0 18px; justify-content: center; }

/* the arrow disc: decorative, so its arrow is hidden from screen readers (the "/ ''" alt text) */
.btn:not(.btn--sm)::after {
  content: "\2192"; content: "\2192" / "";
  flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--radius-pill); background: var(--cta-disc); color: var(--cta-on-disc);
  font-family: var(--font-sans); font-size: 1rem; font-weight: 400; letter-spacing: 0;
  transition: transform var(--dur-2) var(--ease), background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.btn:not(.btn--sm):hover::after, .btn:not(.btn--sm):focus-visible::after { transform: translateX(3px) scale(1.08); }

.btn-primary { background: var(--cta-fill); border-color: var(--cta-fill); color: var(--cta-on-fill); }
.btn-primary:hover, .btn-primary:focus-visible { box-shadow: var(--cta-glow); }
.btn-ghost:not(.btn--sm)::after { background: transparent; color: var(--cta-accent); box-shadow: inset 0 0 0 1.5px var(--cta-accent); }
.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: var(--cta-accent); color: var(--cta-accent);
  background: var(--cta-tint); box-shadow: var(--cta-glow);
}
.btn-ghost:not(.btn--sm):hover::after, .btn-ghost:not(.btn--sm):focus-visible::after { background: var(--cta-disc); color: var(--cta-on-disc); box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); align-items: center; margin-top: var(--space-lg); }
/* a fig. label sitting opposite the CTA in a btn-row */
.cta-fig { margin-left: auto; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--text-muted); }
@media (max-width: 520px){ .cta-fig { margin-left: 0; } }
/* phone portrait: the figure label sits under its figure box, and the
   button comes last (home /performance system). */
@media (max-width: 720px) and (orientation: portrait){
  .btn-row:has(> .cta-fig) { flex-direction: column-reverse; align-items: flex-start; gap: var(--space-md); }
  .btn-row:has(> .cta-fig) .cta-fig { margin-top: calc(-1 * var(--space-xs)); }
  /* home "where to start": buttons and links centered */
}

.text-link {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--cta-label); font-family: var(--font-mono); font-size: 0.8rem;
  font-weight: 500; letter-spacing: 0.04em; text-decoration: none;
  border-bottom: 1px solid var(--cta-line); padding-bottom: 5px;
  transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.text-link .arrow { display: inline-block; transition: transform var(--dur-1) var(--ease-out); }
.text-link:hover, .text-link:focus-visible { color: var(--cta-accent); border-color: var(--cta-accent); }
.text-link:hover .arrow, .text-link:focus-visible .arrow { transform: translateX(3px); }
.link-row { margin-top: var(--space-lg); }

/* ------------------------------------------------------------- figure ----- */
/* A framed panel for content that IS a figure: a 48px ruled grid over a
   slightly lighter ground, an inset top highlight, a blurred indigo glow low-right, a mono label top-left and a
   lowercase-roman fig. mark top-right. Also available as the class .panel. */
.figure, .panel {
  /* overflow: clip, not hidden — the blurred glow below extends past the
     box's own edge, and `hidden` still makes an element a scroll container
     even with no visible scrollbar, so a panel holding a focusable field
     (the /contact form) would get auto-scrolled sideways by the browser's
     focus-into-view behavior. `clip` clips the same way without creating
     that scrollport. */
  position: relative; isolation: isolate; overflow: clip;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius);
  padding: calc(var(--space-lg) + 14px) var(--space-lg) var(--space-lg);
  margin-top: var(--space-lg);
  background:
    linear-gradient(rgba(20,24,43,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,24,43,0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(243,236,220,0.92), rgba(236,228,210,0.72));
  background-size: 48px 48px, 48px 48px, auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.34);
}
.band--dark .figure, .band--dark .panel {
  border-color: rgba(236,228,210,0.2);
  background:
    linear-gradient(rgba(236,228,210,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,228,210,0.045) 1px, transparent 1px),
    rgba(236,228,210,0.035);
  background-size: 48px 48px, 48px 48px, auto;
  box-shadow: inset 0 1px 0 rgba(236,228,210,0.08);
}
/* blurred glow, low-right + the top accent signal-rule */
.figure::after, .panel::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  inset: auto -26% -28% 36%; height: 52%;
  background: radial-gradient(circle, rgba(122,92,255,0.13), transparent 68%);
  filter: blur(14px);
}
.band--dark .figure::after, .band--dark .panel::after {
  background: radial-gradient(circle, rgba(122,92,255,0.26), transparent 68%);
}
.figure > *, .panel > * { position: relative; z-index: 1; }
.figure-label {
  position: absolute; top: var(--space-sm); left: var(--space-md); z-index: 2;
  font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent);
}
.band--dark .figure-label { color: var(--accent-bright); }
.figure-mark {
  position: absolute; top: var(--space-sm); right: var(--space-md); z-index: 2;
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.04em;
  color: var(--text-muted);
}
/* a long label + a long mark can collide on a narrow box — neither had a
   width limit, so they'd overlap instead of wrapping in their own corner.
   The extra top padding gives a wrapped second line room to breathe. */
@media (max-width: 600px){
  .figure-label { max-width: calc(52% - var(--space-md)); line-height: 1.3; }
  .figure-mark { max-width: calc(48% - var(--space-md)); line-height: 1.3; text-align: right; }
  .figure, .panel { padding-top: calc(var(--space-lg) + 30px); }
}
/* the fig. label's title (e.g. "disconnections") — bold italic, a step more
   present than the "fig. i —" prefix: darker on light, lighter on dark. */
.figure-mark i, .cta-fig i {
  font-style: italic; font-weight: 600; color: var(--ink-2);
}
.band--dark .figure-mark i, .band--dark .cta-fig i { color: var(--on-dark); }

/* ---------------------------------------------------- geometry figures ---- */
/* The performance field as a *figure* (vs .field-bg, which is ambient).
   Four states — fragmented / aligned / activated / sustained — each argues
   the thesis. Used sparingly at the points where geometry earns its place. */
.geo { margin: var(--space-lg) 0 var(--space-sm); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; background: var(--ink-bg); }
.geo svg { display: block; width: 100%; height: auto; }
.geo--bare { border: 0; background: transparent; margin-block: var(--space-md); }
.geo .lk { stroke: var(--on-dark); stroke-opacity: 0.16; stroke-width: 1.25; fill: none; }
.geo .lk--dim { stroke-dasharray: 2 8; stroke-opacity: 0.24; }
.geo .lk--live { stroke: var(--accent-bright); stroke-opacity: 0.9; stroke-width: 1.75; }
.geo .nd { fill: var(--n, var(--on-dark)); }
.geo .nd--ghost { fill: var(--on-dark); fill-opacity: 0.28; }
.geo .nd--live { filter: drop-shadow(0 0 6px var(--pc)); }
.geo .lbl { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; fill: var(--on-dark-muted); }
.geo .lbl--n { font-family: var(--font-mono); font-size: 11px; fill: var(--accent-bright); }
.geo-cap { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: var(--tracking-caption); color: var(--text-muted); margin: 0 0 var(--space-lg); }

/* --------------------------------------------------- pentagon system figure -- */
/* The five components as a perfect pentagon, one node each, every node linked
   to every other by a dotted connection. Ambient: each edge breathes on its
   own random phase — "always a little alive." Hover a node: it lifts and
   glows. Click a node: pulses run out along its four edges, bounce back and
   forth with decaying amplitude, then fade back to the ambient state. */
.hero.hero--split .wrap { grid-template-columns: 1fr 1.15fr; align-items: center; }
.pentagon-figure { margin: 0 auto; padding-block: calc(var(--space-lg) + 14px) var(--space-sm); max-width: 560px; }
.band--dark .pentagon-figure { background-color: var(--ink-bg); }  /* solid, so the diagram reads clearly over the hero grid */
.pentagon-figure svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero .geo-cap { margin-top: var(--space-sm); text-align: center; max-width: 560px; margin-inline: auto; color: var(--on-dark-2); }
.p-edge { fill: none; stroke: var(--on-dark-2); stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 0.1 6; opacity: 0.4; }
.p-pulse { fill: var(--pc, var(--accent-bright)); filter: drop-shadow(0 0 4px var(--pc, var(--accent-bright))); }
.pnode { cursor: pointer; --pc: var(--accent-bright); color: var(--pc); }
.pnode[data-i="0"] { --pc: var(--fam-1-bright); }
.pnode[data-i="1"] { --pc: var(--fam-2-bright); }
.pnode[data-i="2"] { --pc: var(--fam-3-bright); }
.pnode[data-i="3"] { --pc: var(--fam-4-bright); }
.pnode[data-i="4"] { --pc: var(--fam-5-bright); }

/* a mouse click focuses the node; the browser's default outline on a focused
   SVG <g> read as a stray box, so it is off. Keyboard focus keeps the halo
   (below) plus a ring on it. */
.pnode:focus, .pnode:focus-visible { outline: none; }
.pnode:focus-visible .pn-halo { stroke: var(--pc); stroke-width: 1.5; }
.pn-halo { fill: var(--pc); fill-opacity: 0; transform-box: fill-box; transform-origin: center;
  transition: fill-opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.pnode:hover .pn-halo, .pnode:focus-visible .pn-halo, .pnode.is-active .pn-halo { fill-opacity: 0.16; transform: scale(1.3); }
.pn-icon { transform-box: fill-box; transform-origin: center; transition: transform var(--dur-2) var(--ease), filter var(--dur-2) var(--ease); }
.pn-icon path, .pn-icon rect, .pn-icon circle { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pnode:hover .pn-icon, .pnode:focus-visible .pn-icon, .pnode.is-active .pn-icon { transform: scale(1.18); filter: drop-shadow(0 0 6px var(--pc)); }
.pn-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; fill: var(--on-dark-2); pointer-events: none; transition: fill var(--dur-2) var(--ease); }
.pnode:hover .pn-label, .pnode:focus-visible .pn-label { fill: var(--on-dark); }

@media (max-width: 1000px){ .hero.hero--split .wrap { grid-template-columns: 1fr; } }

/* -------------------------------------------- component panels (/system) --- */
/* Each component is a framed panel — the sophontic.ai/about "iteration-panel"
   treatment: a 48px ruled grid over a lighter ground, an inset top highlight,
   a blurred indigo glow low-right. A header bar (label / label, hairline
   under) sits on top; row 1 is identity | lead text; row 2 is three
   hairline-divided cells (the shift, the Elements, the proof).
   On /system the band behind each panel takes its family hue (see "Family
   sub-brand" below); elsewhere (/speaking #book) it keeps the plain accent wash. */
.chapter-band { position: relative; isolation: isolate; overflow: hidden; padding-block: calc(var(--section-y) / 2); }
.chapter-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--ch-grad, linear-gradient(120deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 55%));
}
.chapter-band > .wrap { position: relative; z-index: 1; }

.component-panel {
  position: relative; isolation: isolate; overflow: hidden;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 36px);
  background:
    linear-gradient(rgba(20,24,43,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,24,43,0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(243,236,220,0.94), rgba(236,228,210,0.82));
  background-size: 48px 48px, 48px 48px, auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.34);
}
.component-panel::after {
  content: ""; position: absolute; z-index: 0; inset: auto -24% -30% 34%; height: 54%;
  pointer-events: none; background: radial-gradient(circle, rgba(122,92,255,0.12), transparent 68%); filter: blur(16px);
}
.component-panel > * { position: relative; z-index: 1; }

.cp-head { display: flex; justify-content: space-between; gap: var(--space-md);
  padding-bottom: var(--space-md); border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-muted); }

.cp-row1 { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(24px, 4vw, 64px);
  padding-block: var(--space-xl); border-bottom: 1px solid var(--hairline); align-items: start; }
.cp-icon { width: 60px; height: 60px; color: var(--accent); margin-bottom: var(--space-md); }
.cp-icon svg { width: 100%; height: 100%; display: block; }
.cp-icon path, .cp-icon rect, .cp-icon circle { fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.cp-title { font-family: var(--font-serif); font-size: var(--fs-h1); line-height: 1; letter-spacing: var(--tracking-heading);
  font-variation-settings: var(--fvs-heading); margin: 0 0 var(--space-sm); }
.cp-tagline { font-family: var(--font-serif); font-size: var(--fs-h3); line-height: var(--lh-tight); letter-spacing: var(--tracking-h3); color: var(--text-2); margin: 0; }
.cp-lead .cp-tagline { margin: 0 0 var(--space-sm); }
.cp-def { color: var(--text-2); margin: 0; padding-right: var(--space-xl); }

.cp-row2 { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(0, 1fr); padding-top: var(--space-lg); }
.cp-cell { padding: var(--space-lg) var(--space-lg) 0; }
.cp-cell:first-child { padding-left: 0; }
.cp-cell:last-child { padding-right: 0; }
.cp-cell + .cp-cell { border-left: 1px solid var(--hairline); }
.cp-cell h3 { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 var(--space-md); }


.cp-pairs { grid-column: auto; }
.cp-pairs-head, .cp-pairs li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cp-pairs-head h3 + h3 { padding-left: var(--space-md); }
.cp-pairs.el-list li a { margin-right: var(--space-sm); padding-block: 4px; }
.cp-pairs .el-out { position: relative; font-size: var(--fs-small); line-height: 1.4; color: var(--text-2); padding: 4px 0 4px calc(var(--space-md) + 14px); white-space: nowrap; }
.cp-pairs .el-out::before { content: ""; position: absolute; left: var(--space-md); top: 0.85em; width: 5px; height: 5px; border-radius: 50%; background: var(--h, var(--accent)); }
.cp-pairs ul { gap: 0; }
.el-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
/* hover reuses the periodic table's own language (a family-hue glow
   radiating from beneath the cell, see .periodic .el:hover) instead of a
   flat color-swap — the family color set per-<li> now actually does
   something on hover rather than just recoloring text against a fixed
   indigo underline. */
.el-list li a {
  display: block; margin: 0 -8px; padding: 3px 8px; border-radius: 4px;
  font-size: var(--fs-small); color: var(--text-2); text-decoration: none;
  transition: color var(--dur-2) var(--ease), background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
.el-list li a:hover, .el-list li a:focus-visible {
  color: var(--text); background: color-mix(in srgb, var(--accent) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent),
              0 6px 16px -6px color-mix(in srgb, var(--accent) 55%, transparent);
  outline: none;
}
.el-list li a:hover code, .el-list li a:focus-visible code { color: var(--text); }
.el-list li code { font-family: var(--font-mono); font-size: 0.82em; color: var(--accent); margin-right: 0.6ch; }

.cp-proof { font-size: var(--fs-small); color: var(--text-2); margin: 0 0 var(--space-sm); }
.cp-proof-quote { font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.42; color: var(--text);
  border-left: 2px solid var(--accent-soft); padding-left: var(--space-sm); margin: 0 0 var(--space-md); }

/* Family sub-brand (D211). Each component panel takes its Element family's hue,
   a deliberate exception to "family hues are table-only". --h is the raw hue
   (fills, rules, glows). --h-text is the hue mixed toward ink: it is the only
   form used for text, and holds 4.5:1 or better on the panel and the tinted
   Strong box for all five hues (Activation's raw ochre is 2.6:1). */
.fam-band--1 { --h: var(--fam-1); }
.fam-band--2 { --h: var(--fam-2); }
.fam-band--3 { --h: var(--fam-3); }
.fam-band--4 { --h: var(--fam-4); }
.fam-band--5 { --h: var(--fam-5); }
.fam-band { --h-text: color-mix(in srgb, var(--h) 60%, var(--ink)); }
.fam-band::before {
  background:
    radial-gradient(60% 70% at 85% 0%, color-mix(in srgb, var(--h) 16%, transparent), transparent 70%),
    linear-gradient(120deg, color-mix(in srgb, var(--h) 9%, transparent), transparent 58%);
}
.fam-band .component-panel {
  border-color: color-mix(in srgb, var(--h) 40%, var(--hairline-strong));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.34), inset 0 2px 0 var(--h),
              0 18px 40px -24px color-mix(in srgb, var(--h) 70%, transparent);
}
.fam-band .component-panel::after { background: radial-gradient(circle, color-mix(in srgb, var(--h) 30%, transparent), transparent 68%); }
.fam-band .cp-head { border-bottom-color: color-mix(in srgb, var(--h) 45%, transparent); }
.fam-band .cp-head span:first-child { color: var(--h-text); }
.fam-band .cp-row1 { border-bottom-color: color-mix(in srgb, var(--h) 30%, transparent); }
.fam-band .cp-title { color: var(--h-text); }
.fam-band .cp-icon {
  box-sizing: border-box; width: 4.5rem; height: 4.5rem; padding: var(--space-xs); border-radius: var(--radius);
  color: var(--h-text); background: color-mix(in srgb, var(--h) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 40%, transparent);
}
.fam-band .el-list li code { color: var(--h-text); }
.fam-band .el-list li a:hover, .fam-band .el-list li a:focus-visible {
  background: color-mix(in srgb, var(--h) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 50%, transparent),
              0 6px 16px -6px color-mix(in srgb, var(--h) 60%, transparent);
}
.fam-band .cp-proof-quote { border-left-color: var(--h); }
.fam-band .text-link { color: var(--h-text); border-color: var(--h-text); }
.fam-band .text-link:hover, .fam-band .text-link:focus-visible { color: var(--ink); border-color: var(--ink); }

@media (max-width: 1200px){
  .cp-row2 { grid-template-columns: 1fr; }
  .cp-cell { padding: var(--space-lg) 0 0; }
  .cp-cell + .cp-cell { border-left: 0; border-top: 1px solid var(--hairline); }
}
@media (max-width: 920px){
  .cp-row1 { grid-template-columns: 1fr; gap: var(--space-lg); }
  .cp-row2 { grid-template-columns: 1fr; }
  .cp-cell { padding: var(--space-lg) 0 0; }
  .cp-cell:first-child { padding-top: var(--space-lg); }
  .cp-cell + .cp-cell { border-left: 0; border-top: 1px solid var(--hairline); }
  .cp-pairs-head h3 + h3 { display: none; }
  .cp-pairs .el-out::before { display: none; }
  .cp-pairs-head, .cp-pairs li { grid-template-columns: 1fr; }
  .cp-pairs .el-out { padding: 0 0 var(--space-xs) var(--space-md); font-size: 0.82rem; color: var(--text-muted); white-space: normal; }
  .cp-pairs li a { margin-right: -8px; }
}

/* -------------------------------------------- component nav (/system) ------ */
/* A secondary nav — icon + title for each of the five components. It scrolls
   with the page, then pins under the main nav so the reader can jump around.
   The link for the section currently in view is marked .is-current. */
.component-nav {
  position: sticky; top: var(--nav-height); z-index: 40;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
  margin-bottom: 0;
}
.component-nav ol { list-style: none; margin: 0; padding: 0;
  width: min(var(--container), calc(100% - 2*var(--gutter))); margin-inline: auto;
  display: flex; gap: clamp(4px, 1.5vw, 20px); }
.component-nav li { flex: 1 1 0; min-width: 0; }
.component-nav a {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 6px; text-decoration: none; color: var(--text-muted);
  font-family: var(--font-sans); font-size: 0.9rem; font-weight: 500; line-height: 1.1;
  border-bottom: 2px solid transparent; transition: color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.component-nav a:hover, .component-nav a:focus-visible { color: var(--ink-2); }
.component-nav a.is-current { color: var(--accent); border-bottom-color: var(--accent); }
.component-nav li:nth-child(1) a.is-current { --h: var(--fam-1); }
.component-nav li:nth-child(2) a.is-current { --h: var(--fam-2); }
.component-nav li:nth-child(3) a.is-current { --h: var(--fam-3); }
.component-nav li:nth-child(4) a.is-current { --h: var(--fam-4); }
.component-nav li:nth-child(5) a.is-current { --h: var(--fam-5); }
.component-nav a.is-current { color: color-mix(in srgb, var(--h) 60%, var(--ink)); border-bottom-color: var(--h); }
.component-nav .cn-icon { flex: none; width: 20px; height: 20px; }
.component-nav .cn-icon svg { width: 100%; height: 100%; display: block; }
.component-nav .cn-icon path, .component-nav .cn-icon rect, .component-nav .cn-icon circle {
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.component-nav .cn-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* anchor jumps land clear of both nav bars */
.chapter-band { scroll-margin-top: calc(var(--nav-height) + 54px); }
@media (max-width: 720px){
  /* icon-only on phones, but the name stays available to screen readers */
  .component-nav .cn-name { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .component-nav a { padding: 12px 4px; gap: 0; }
}

/* ----------------------------------------- system-principle band (/system) - */
.principle-band .pov { font-size: clamp(2.1rem, 4.4vw, 3.6rem); line-height: 1.1; }
.principle-band .lede { font-size: var(--fs-h4); line-height: 1.5; max-width: 62ch; margin-top: var(--space-lg); }
.principle-band .btn-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-top: var(--space-xl); }
.principle-band .btn-row .btn { width: 100%; }
@media (max-width: 640px){
  .principle-band .btn-row { grid-template-columns: 1fr; justify-items: center; }
  .principle-band .btn-row .btn { max-width: 360px; }
}
/* a primary CTA + a secondary .text-link, not three equal buttons — the
   pairing used wherever the Builder and Contact are offered together
   (e.g. the homepage's "Where to start" close). Overrides the 3-up grid
   above back to natural flex sizing (D147). */
.principle-band .btn-row.btn-row--pair { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); }
.principle-band .btn-row.btn-row--pair .btn { width: auto; }
@media (max-width: 640px){ .principle-band .btn-row.btn-row--pair { justify-content: center; } }

/* ------------------------------------- scroll-lit checklist (/approach, D209) -
   "What we bring". Each line lights as it passes 62% of the viewport height; a
   rail fills with scroll and each node pulses once. Without JS every line shows
   lit (the .wb--js class is what makes them start dim). */
.wb { margin-top: var(--space-xl); --wb-py: var(--space-md); --wb-box: 2.1rem; }
.wb-list { list-style: none; margin: 0; padding: 0; position: relative; }
.wb-item {
  position: relative; display: flex; align-items: center; gap: var(--space-md); padding-block: var(--wb-py);
  font-family: var(--font-serif); font-weight: var(--weight-emphasis); font-variation-settings: var(--fvs-heading);
  font-size: clamp(1.55rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: var(--tracking-heading);
  color: var(--on-dark);
}
.wb-box {
  flex: none; position: relative; z-index: 1; display: grid; place-items: center; width: var(--wb-box); height: var(--wb-box);
  border: 1.5px solid var(--accent-bright); border-radius: var(--radius); background: var(--ink-bg-raised);
}
.wb-box svg { width: 70%; height: 70%; fill: none; stroke: var(--accent-bright); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wb--js .wb-list::before, .wb--js .wb-list::after {
  content: ""; position: absolute; left: calc(var(--wb-box) / 2); width: 1px; top: var(--rail-top, 0); height: var(--rail-h, 0); background: var(--line-on-dark-strong);
}
.wb--js .wb-list::after { background: var(--accent-bright); box-shadow: 0 0 var(--space-xs) var(--accent-bright); transform-origin: top; transform: scaleY(var(--p, 0)); }
.wb--js .wb-box { border-color: var(--line-on-dark-strong); background: var(--ink-bg); transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease); }
.wb--js .wb-box path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset var(--dur-3) var(--ease-out) 0.1s; }
.wb--js .wb-text { opacity: 0.55; transform: translateY(var(--space-2xs)); filter: blur(3px); transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out), filter var(--dur-3) var(--ease-out); }
.wb--js .wb-item { color: var(--on-dark-muted); transition: color var(--dur-3) var(--ease-out); }
.wb--js .wb-item.is-lit { color: var(--on-dark); }
.wb--js .wb-item.is-lit .wb-text { opacity: 1; transform: none; filter: none; }
.wb--js .wb-item.is-lit .wb-box { border-color: var(--accent-bright); background: var(--ink-bg-raised); animation: wb-ring var(--dur-4) var(--ease-out) 1; }
.wb--js .wb-item.is-lit .wb-box path { stroke-dashoffset: 0; }
@keyframes wb-ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-bright) 70%, transparent); } to { box-shadow: 0 0 0 var(--space-xs) transparent; } }
.wb.is-static .wb-list::after { transform: scaleY(1); }
@media (prefers-reduced-motion: reduce) { .wb--js .wb-item.is-lit .wb-box { animation: none; } }
.wb + .btn-row { margin-top: var(--space-xl); }

/* pentagon ambient dust — small dots drifting continuously, under the edges;
   the edge-breathing, hover and click effects sit on top of this. */
.p-dust-dot { fill: var(--accent-bright); opacity: 0.22; }

/* --------------------------------------------------- performance field bg -- */
.field-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.field-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.field-bg .node { fill: currentColor; opacity: 0.28; }
.field-bg .link { stroke: currentColor; stroke-width: 1; opacity: 0.14; }
.field-bg--illum::after {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-illumination);
}
.band > .wrap { position: relative; z-index: 1; }

/* ----------------------------------------------------------------- hero ---- */
.hero { background: var(--ink-bg); color: var(--on-dark); position: relative; overflow: hidden;
  --text: var(--on-dark); --text-2: var(--on-dark-2); --text-muted: var(--on-dark-muted);
  --hairline: var(--line-on-dark); --hairline-strong: var(--line-on-dark-strong);
  padding-block: clamp(88px, 12vh, 168px);
  isolation: isolate;
}
/* hero ground: a corner wash. No grid, no animation. */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--wash-dark);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-2xl); align-items: center; }
/* inner-page heroes don't reserve a text column for a portrait — a
   .hero-portrait, when one's used (D149), is an independent absolutely-
   positioned background layer, not a grid item, so .wrap just goes
   single-column, left-aligned, same as any other .hero--plain page */
.hero--plain .wrap { display: block; }
.hero--plain .lede { max-width: 54ch; }
.hero-portrait {
  position: absolute; right: 0; top: 0; bottom: 0; width: 52%; z-index: 0;
  -webkit-mask-image: linear-gradient(270deg, #000 8%, rgba(0,0,0,0.55) 46%, transparent 94%);
  mask-image: linear-gradient(270deg, #000 8%, rgba(0,0,0,0.55) 46%, transparent 94%);
  mix-blend-mode: luminosity;
  overflow: clip;   /* a scaled image (/approach) must not widen the page */
}
.hero-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: 68% 34%;
  opacity: 0.16; filter: grayscale(1) contrast(1) brightness(1.08);
}
@media (max-width: 720px){ .hero-portrait { width: 82%; } .hero-portrait img { opacity: 0.5; } }
/* homepage portrait, desktop — Adam's tuner settings (D221): less faded,
   lighten blend, a longer fade toward the text. Home only; /approach and
   /speaking keep the base rule. 721-1000px still takes the 62% width below. */
@media (min-width: 721px){
  .hero-portrait--home { width: 50%; mix-blend-mode: lighten;
    -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0,0,0,0.75) 55%, transparent 100%);
    mask-image: linear-gradient(270deg, #000 0%, rgba(0,0,0,0.75) 55%, transparent 100%); }
  .hero-portrait--home img { object-position: 60% 50%; opacity: 0.2; filter: grayscale(1) contrast(1.31) brightness(1.17); }
}
/* homepage portrait and title, phone — Adam's tuner settings and notes (D222).
   Two classes so this beats the later shared 62% width rule at <=1000px. */
@media (max-width: 720px){
  .hero-portrait.hero-portrait--home { width: 70%;
    -webkit-mask-image: linear-gradient(270deg, #000 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
    mask-image: linear-gradient(270deg, #000 0%, rgba(0,0,0,0.5) 50%, transparent 100%); }
  .hero-portrait.hero-portrait--home img { object-position: 50% 100%; opacity: 0.5; filter: grayscale(1) contrast(1.09) brightness(1); }
  .hero-title--home { font-size: calc(var(--fs-display) * 0.84); }
  .hero-title--home .hero-line { display: block; }
}
/* homepage, phone portrait only: kicker and title sit higher, with a gap
   before the paragraph, so more of the portrait shows between them. */
@media (max-width: 720px) and (orientation: portrait){
  .hero:has(.hero-portrait--home) { padding-top: calc(clamp(88px, 12vh, 168px) - var(--space-xl)); }
  .hero-title--home { margin-bottom: calc(var(--space-xl) * 2); }
}
/* /approach hero — same faded/luminosity treatment as the homepage
   (D149, Adam: "similar to how you treated my photo on the home page
   hero section"), reusing the last photo in this page's own About Adam
   gallery. Only the crop needs its own object-position: this source is
   a wide group workshop shot, not a headshot, and Adam sits around 45%
   across / 24% down the frame, not the homepage portrait's 68%/34%. */
.hero-portrait--appr img { object-position: 45% 24%; }
/* D150 — Adam liked the mobile crop but found himself too faded and a
   bystander (bottom-right of the source photo) too prominent on wide
   desktop. Root cause: the portrait box is right:0/top:0/bottom:0, so
   its aspect ratio follows the hero's own width/height — at mobile
   widths the box is narrow and tall relative to the 3:2 source photo,
   so object-fit: cover already crops in tight around Adam; at desktop
   widths the box is close to the photo's own aspect ratio, so almost
   the FULL frame shows — including the bystander. A `transform: scale()`
   on the already-cover-fitted image zooms further into whatever
   object-position is centered on, cropping the periphery (the
   bystander) from all sides without touching the box/mask/blend
   mechanics shared with every other hero-portrait on the site. */
@media (min-width: 721px){
  .hero-portrait--appr img {
    opacity: 0.46;
    object-position: 30% 20%;
    transform: scale(1.32);
    filter: grayscale(1) contrast(1) brightness(1.16);
  }
}
.hero-kicker { font-family: var(--font-mono); font-size: var(--fs-small); text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--accent-bright); margin: 0 0 var(--space-lg); }
.hero h1 { max-width: 15ch; }
.hero h1.h1--long { font-size: var(--fs-h2); max-width: 24ch; }   /* sentence-length headlines (/work) */
.hero .lede { max-width: 48ch; }
.hero .lede .em { color: var(--on-dark); }
.hero .arc-line { margin-top: var(--space-xl); }

/* ------------------------------------------------------- stat / evidence -- */
.stat-row { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: var(--space-sm); }
@media (max-width: 1180px){ .stat-row { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.figure > .stat-row { margin-top: 0; }
/* inner boxes inside a .figure read as dotted outlines at rest, solid accent
   when active (hover/focus). */
.stat { border: 1px dotted var(--hairline-strong); border-radius: 3px; padding: var(--space-sm) var(--space-sm) var(--space-md); transition: border-color var(--dur-2) var(--ease), border-style var(--dur-2) var(--ease); }
.stat:hover { border-style: solid; border-color: var(--accent); }
.band--dark .stat:hover { border-color: var(--accent-bright); }
/* sized for the 5-up evidence row — the --fs-stat token is for 1–2-up displays
   and overflows a fifth-width column at wide viewports */
.stat-num { font-family: var(--font-serif); font-size: clamp(2.6rem, 3.6vw, 4rem); line-height: 1; letter-spacing: -0.02em; font-variation-settings: var(--fvs-display); color: var(--text); font-variant-numeric: lining-nums; white-space: nowrap; }
.stat-pct { font-size: 0.44em; vertical-align: 0.5em; margin-left: 0.04em; color: var(--text-muted); }
.stat-cap { font-size: var(--fs-small); color: var(--text-2); margin-top: var(--space-xs); }
/* the scannable fragment: big number + .stat-key words carry the gist on their
   own; the rest of .stat-cap is context. Colour is emphasis, never the sole
   carrier of meaning — the sentence reads without it. */
.stat-key { color: color-mix(in srgb, var(--accent) 80%, var(--text)); font-weight: var(--weight-strong); }
.band--dark .stat-key { color: var(--accent-bright); font-weight: var(--weight-emphasis); }
.stat-src { font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-top: var(--space-xs); }
/* the POV line ends each item — this section's accent moment */
.stat-interp { font-family: var(--font-serif); font-size: 1.06rem; line-height: 1.3; color: var(--accent); font-weight: var(--weight-emphasis); font-variation-settings: var(--fvs-text); margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: 1px solid var(--hairline); }
.band--dark .stat-interp { color: var(--accent-bright); }

/* failure patterns — five cards inside fig. i. Uniform accent (NOT the
   Element family hues — those are reserved for the periodic table). */
.fail-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-xs); }
.fail-card {
  position: relative; isolation: isolate;
  border: 1px dotted var(--hairline-strong); border-radius: 3px;
  padding: var(--space-md); display: flex; flex-direction: column; gap: 6px;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), border-style var(--dur-2) var(--ease);
}
.fail-card:hover { border-style: solid; border-color: var(--accent-soft); }
.band--dark .fail-card:hover { border-color: var(--accent-bright); }
.fail-card .fail-idx { position: relative; z-index: 1; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.fail-card .fail-have { position: relative; z-index: 1; font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.22; letter-spacing: var(--tracking-h3); font-variation-settings: var(--fvs-heading); color: var(--text); }
.fail-card .fail-lack { position: relative; z-index: 1; font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.22; letter-spacing: var(--tracking-h3); font-variation-settings: var(--fvs-heading); color: var(--accent); }
.band--dark .fail-card .fail-lack { color: var(--accent-bright); }
@media (max-width: 900px){ .fail-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .fail-row { grid-template-columns: 1fr; } }

/* --- card hover: a soft indigo wash fades in from a top corner. The dotted
   border going solid accent (below) supplies the ring. On .fail-card and .state. --- */
.fail-card::after, .state::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(72% 62% at 28% 0%, var(--accent-mist), transparent 72%);
  transition: opacity var(--dur-3) var(--ease);
}
.band--dark .fail-card::after, .band--dark .state::after { background: radial-gradient(72% 62% at 28% 0%, rgba(122,92,255,0.16), transparent 72%); }
.fail-card:hover::after, .state:hover::after { opacity: 1; }
.state { position: relative; isolation: isolate; transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), border-style var(--dur-2) var(--ease); }

/* --------------------------------------------------------- definition ----- */
/* dictionary entry — for "transformation studio" on the Approach page.
   term (with syllable middots) bold + serif · part of speech italic · gloss. */
.definition { max-width: 40ch; }
.definition dfn { display: block; font-style: normal; font-family: var(--font-serif); font-weight: var(--weight-strong); font-size: var(--fs-h3); letter-spacing: var(--tracking-h3); font-variation-settings: var(--fvs-heading); color: var(--text); }
.definition .pron { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.definition .pos { font-family: var(--font-serif); font-style: italic; color: var(--text-muted); }
.definition .gloss { font-size: var(--fs-lede); line-height: 1.5; color: var(--text-2); margin-top: var(--space-sm); }
.definition .gloss .pos { font-size: 0.9em; margin-right: 0.4ch; }

/* ---------------------------------------------------------- arc line ------ */
/* the delivery arc as one tracked mono line (hero + Approach page) */
.arc-line { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-top: var(--space-lg); }
.band--dark .arc-line, .hero .arc-line { color: var(--accent-bright); }
.arc-line .sep { color: var(--text-muted); }
.band--dark .arc-line .sep, .hero .arc-line .sep { color: var(--on-dark-muted); }

/* the five components — a bordered strip.
   Accent only; the Element family hues are reserved for the periodic table. */
.system-figure { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: var(--space-lg); border: 1px solid var(--hairline-strong); border-radius: var(--radius); overflow: hidden; }
.component { padding: var(--space-lg) var(--space-md); border-right: 1px solid var(--hairline); position: relative; transition: background var(--dur-2) var(--ease); }
.component:last-child { border-right: 0; }
.component:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.component .c-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); }
.band--dark .component .c-num { color: var(--accent-bright); }
.component .c-icon { display: block; width: 24px; height: 24px; color: var(--accent); }
.band--dark .component .c-icon { color: var(--accent-bright); }
.component .c-icon svg { width: 100%; height: 100%; display: block; }
.component h3 { font-size: 1.12rem; margin: 12px 0 6px; }
.component p { font-size: var(--fs-small); color: var(--text-2); margin: 0; }
.component::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); z-index: 2; }
.band--dark .component::after { background: var(--accent-bright); box-shadow: 0 0 9px rgba(122,92,255,0.5); }
.component:last-child::after { display: none; }

/* ---------------------------------------------------- client situations --- */
.states-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xs); }
.state { border: 1px dotted var(--hairline-strong); border-radius: 3px; padding: var(--space-lg); }
.state:hover { border-style: solid; border-color: var(--accent-soft); }
.band--dark .state:hover { border-color: var(--accent-bright); }
.state .s-idx { position: relative; z-index: 1; font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.band--dark .state .s-idx { color: var(--accent-bright); }
.state h3 { position: relative; z-index: 1; font-size: 1.2rem; margin: 10px 0; }
.state .symptom { position: relative; z-index: 1; font-size: var(--fs-small); color: var(--text-2); }

/* ------------------------------------------------------------------ bio --- */
/* Adam's bio, shared by two pages: the canonical full version on /approach
   (bio + credentials left, photos right) and a short speaker-specific
   blurb on /speaking (paragraphs + a trimmed credentials list only, no
   grid/gallery — reuses .bio/.bio-verb/.credentials, not .bio-grid). */
.bio-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-2xl); align-items: start; margin-top: var(--space-xl); }
.bio p { margin: 0 0 var(--space-sm); }
/* the six delivery-arc verbs, called out bold + accent inline (D111) */
.bio-verb { color: var(--accent); font-weight: var(--weight-strong); }
.band--dark .bio-verb { color: var(--accent-bright); }
.credentials { display: grid; gap: var(--space-sm); margin-top: var(--space-lg); }
.credentials dt { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.band--dark .credentials dt { color: var(--accent-bright); }
.credentials dd { margin: 2px 0 0; font-size: var(--fs-small); color: var(--text); }

/* the photos alongside the /approach bio — same tonal family as the hero
   portrait (grayscale-luminosity) but full opacity; real photos, not a
   backdrop. A soft blurred accent bloom sits behind the stack (D111) —
   same technique as the .figure glow / .spk-takeaway wash elsewhere. */
.bio-gallery { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr; gap: var(--space-sm); }
.bio-gallery::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -12% -24%;
  background: radial-gradient(65% 55% at 75% 15%, var(--accent-mist), transparent 70%);
  filter: blur(28px);
}
.bio-gallery figure { margin: 0; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; }
.bio-gallery img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.25) contrast(1.05); transition: filter var(--dur-2) var(--ease), transform var(--dur-3) var(--ease); }
.bio-gallery figure:hover img { filter: grayscale(0); transform: scale(1.03); }
@media (max-width: 860px){
  .bio-grid { grid-template-columns: 1fr; }
  .bio-gallery { grid-template-columns: repeat(3, 1fr); }
  .bio-gallery::before { inset: -12% 0; }   /* full-width gallery: keep the glow inside the page */
}
@media (max-width: 560px){ .bio-gallery { grid-template-columns: 1fr; } }

/* ================================================================ SPEAKING ==
   /speaking — hero portrait, signature topics, formats, gallery, bio, booking
   inquiry form. */

/* less-faded portrait variant — the homepage hero is 0.16 opacity; Adam asked
   for something more visible here. Same luminosity/grayscale treatment for
   tonal consistency, higher opacity, a gentler mask. */
.hero-portrait--spk img { opacity: 0.4; object-position: 38% 22%; }
.hero-portrait--spk { -webkit-mask-image: linear-gradient(270deg, #000 18%, rgba(0,0,0,0.7) 50%, transparent 96%); mask-image: linear-gradient(270deg, #000 18%, rgba(0,0,0,0.7) 50%, transparent 96%); }
/* on narrow screens the base .hero-portrait rule grows the crop to 82% width
   and spans the full hero height (top:0;bottom:0) — with this portrait's
   face sitting high/left in the frame (object-position 38% 22%), that put
   the face directly behind the top-aligned kicker/H1/lede, so a word could
   land on it. Anchor the visible band to the BOTTOM of the hero instead —
   clear of the text block regardless of how the copy wraps — rather than
   chasing one word's position. */
@media (max-width: 720px){
  /* .hero-portrait.hero-portrait--spk (both classes), not just
     .hero-portrait--spk: the site-wide responsive rule further down
     (.hero-portrait { width: 62%; } at <=1000px) has equal specificity to
     a single-class .hero-portrait--spk selector, and it comes later in the
     file, so on a plain equal-specificity tie it was silently winning —
     this portrait has actually been rendering at 62% width instead of the
     92% intended here the whole time. The compound selector outranks it. */
  .hero-portrait.hero-portrait--spk { top: auto; bottom: 0; height: clamp(130px, 19vh, 160px); width: 92%; }
  .hero-portrait--spk img { opacity: 0.62; object-position: 48% 4%; }
}

/* signature topics — index + readout (D120): a list you scan on the left,
   a panel that holds still and cross-fades on the right. The same
   interaction language as the /elements table-to-readout. Nested inside a
   .figure with no static label — the fig-mark alone names whichever topic
   is showing (D111, carried over). .figure supplies the frame + top
   margin, so no margin-top on the layout itself. Replaces the rotateY cube
   carousel (D111) — Adam didn't like it (D116); chosen from three
   prototypes (D120). */
.spk-idx-layout { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: var(--space-xl); align-items: start; margin-top: var(--space-sm); }

.spk-idx-list { display: flex; flex-direction: column; border-top: 1px solid var(--hairline-strong); }
.spk-idx-row {
  display: flex; align-items: center; gap: var(--space-sm); width: 100%;
  padding: var(--space-sm) 4px; border: 0; border-bottom: 1px solid var(--hairline);
  border-left: 2px solid transparent; background: none; text-align: left; cursor: pointer;
  font: inherit; color: var(--text);
  transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease), padding-left var(--dur-1) var(--ease);
}
.spk-idx-row:hover { background: var(--paper-warm); }
.band--dark .spk-idx-row:hover { background: var(--ink-bg-raised); }
.spk-idx-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); flex: none; width: 18px; }
.spk-idx-icon { display: block; width: 22px; height: 22px; color: var(--text-muted); flex: none; }
.spk-idx-icon svg { width: 100%; height: 100%; display: block; }
.spk-idx-title { font-family: var(--font-serif); font-size: 1.02rem; line-height: 1.25; }
.spk-idx-row.is-active { border-left-color: var(--accent); padding-left: calc(4px + var(--space-xs)); background: var(--paper-warm); }
.band--dark .spk-idx-row.is-active { border-left-color: var(--accent-bright); background: var(--ink-bg-raised); }
.spk-idx-row.is-active .spk-idx-num, .spk-idx-row.is-active .spk-idx-icon { color: var(--accent); }
.band--dark .spk-idx-row.is-active .spk-idx-num, .band--dark .spk-idx-row.is-active .spk-idx-icon { color: var(--accent-bright); }
.spk-idx-row.is-active .spk-idx-title { color: var(--accent); font-weight: var(--weight-emphasis); }
.band--dark .spk-idx-row.is-active .spk-idx-title { color: var(--accent-bright); }

.spk-idx-panel {
  position: relative; isolation: isolate; overflow: hidden;
  /* D132: without this, a horizontal swipe on the panel could also be read
     by the browser as its own gesture (edge back-navigation, horizontal
     rubber-banding) at the same time our JS was handling it — the page
     would visibly shift right. touch-action: pan-y hands vertical panning
     to the browser as normal but reserves horizontal movement for our
     swipe handler; touchmove backs it up with preventDefault() once a
     gesture is confirmed horizontal. */
  touch-action: pan-y;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg);
  min-height: clamp(360px, 46vh, 440px);
  background:
    linear-gradient(rgba(20,24,43,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,24,43,0.025) 1px, transparent 1px),
    var(--paper-warm);
  background-size: 44px 44px, 44px 44px, auto;
}
.band--dark .spk-idx-panel {
  background:
    linear-gradient(rgba(236,228,210,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,228,210,0.035) 1px, transparent 1px),
    var(--ink-bg-raised);
  background-size: 44px 44px, 44px 44px, auto;
}
/* only the active slide participates in layout (position: relative), so the
   panel's height follows real content per topic instead of a fixed box;
   min-height above is just a floor. */
.spk-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(24px, 3.4vw, var(--space-xl));
  opacity: 0; pointer-events: none;
  transform: translateX(0);
}
.spk-slide.is-active { position: relative; opacity: 1; pointer-events: auto; }
/* D133: while JS is swapping topics, the outgoing and incoming slide are
   both opaque and share the box, one sliding out as the other slides in —
   a card swap, not a crossfade. Only set during the transition; JS clears
   it and the inline transform once the swap settles. */
.spk-slide.is-sliding { opacity: 1; transition: transform var(--dur-2) var(--ease); }
.spk-slide-head { display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-md); }
.spk-slide-icon { display: block; width: 52px; height: 52px; flex: none; color: var(--accent); }
.band--dark .spk-slide-icon { color: var(--accent-bright); }
.spk-slide-icon svg { width: 100%; height: 100%; display: block; }
.spk-slide-idx { font-family: var(--font-mono); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; color: var(--text-muted); }
.spk-slide h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; margin: 0 0 var(--space-md); }
.spk-slide > p:not([class]) { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-2); margin: 0; }
.spk-for { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); margin: var(--space-md) 0 0; }
.spk-for b { color: var(--text); font-weight: var(--weight-emphasis); }
/* the takeaway — the important line, pulled out and weighted like the
   why-it-matters-now Insight paragraph: bold accent, soft wash behind it. */
.spk-takeaway { position: relative; isolation: isolate; margin-top: var(--space-sm); font-size: 1.05rem; line-height: 1.4; font-weight: var(--weight-emphasis); color: color-mix(in srgb, var(--accent) 82%, var(--ink)); }
.band--dark .spk-takeaway { color: var(--accent-bright); }
.spk-takeaway-label { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 4px; }
.spk-takeaway::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -0.5em -1em; border-radius: var(--radius);
  background: radial-gradient(85% 130% at 1% 30%, var(--accent-mist), transparent 72%);
  filter: blur(8px);
}
.band--dark .spk-takeaway::before { background: radial-gradient(85% 130% at 1% 30%, rgba(122,92,255,0.16), transparent 72%); }

/* grip + close + scrim exist for the ≤760px sheet mode only (D121) — hidden
   at rest so desktop is untouched. Same technique as /elements' hardened
   mobile readout sheet (scroll-lock, focus-trap, drag-to-dismiss), ported
   rather than reinvented: grip drag / .is-open / .is-dragging / the scrim. */
.spk-idx-grip { display: none; }
.spk-idx-close {
  display: none; align-items: center; justify-content: center;
  position: absolute; top: var(--space-sm); right: var(--space-sm); z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0;
  background: var(--hairline); color: var(--text-muted); cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.spk-idx-close svg { width: 16px; height: 16px; }
.spk-idx-close:hover { background: var(--hairline-strong); color: var(--text); }
.spk-scrim { display: none; }
body.spk-sheet-lock { overflow: hidden; }

@media (max-width: 760px){
  .spk-idx-layout { grid-template-columns: 1fr; }
  .spk-slide-icon { width: 40px; height: 40px; }
  .spk-idx-panel {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60;
    /* a fixed element sized with left:0;right:0 can end up a little wider
       than the real viewport on mobile Safari (the containing block it's
       measured against isn't always the same box the layout viewport uses,
       most visibly while the URL bar is animating during scroll) — the
       panel would then poke a few px past the right edge and iOS would
       read that as real horizontal overflow, rubber-banding the whole page
       sideways when you tried to scroll (D132). max-width: 100vw is a hard
       ceiling at the viewport's own width regardless of that mismatch. */
    max-width: 100vw;
    min-height: 0; max-height: 82vh; overflow-y: auto; overflow-x: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(101%);
    transition: transform var(--dur-2) var(--ease-out);
  }
  .spk-idx-panel.is-open { transform: none; }
  .spk-idx-panel.is-dragging { transition: none; }
  .spk-idx-grip { display: block; position: relative; height: 20px; margin-bottom: 4px; touch-action: none; cursor: grab; }
  .spk-idx-grip::before { content: ""; position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; border-radius: 2px; background: var(--hairline-strong); transform: translateX(-50%); }
  .spk-idx-close { display: flex; }
  .spk-scrim {
    display: block; position: fixed; inset: 0; z-index: 55;
    max-width: 100vw; /* same fixed-width overflow guard as the panel above */
    background: rgba(20, 24, 43, 0.5); opacity: 0; pointer-events: none;
    transition: opacity var(--dur-2) var(--ease);
  }
  .spk-scrim.is-on { opacity: 1; pointer-events: auto; }
  /* the bug: .figure sets overflow:hidden (to clip its own sweep/glow
     pseudo-elements) — that also clips a position:fixed descendant's paint
     to the figure's own box, so the sheet looked "stuck" inside the topics
     card instead of covering the viewport. Free this specific figure from
     that clip at the sheet breakpoint, and turn off its sweep/glow so
     nothing spills past the (now unclipped) rounded corners. */
  .spk-topics-figure { overflow: visible; }
  .spk-topics-figure::before, .spk-topics-figure::after { display: none; }
}

/* nested inside a .figure ("Engagement formats") — .figure supplies the frame
   and top margin, so no margin-top here. */
.spk-formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.spk-format-icon { display: block; width: 26px; height: 26px; color: var(--accent); margin-bottom: 10px; }
.band--dark .spk-format-icon { color: var(--accent-bright); }
.spk-format-icon svg { width: 100%; height: 100%; display: block; }
.spk-format h3 { font-size: 1.05rem; margin: 0 0 6px; }
.spk-format p { font-size: var(--fs-small); color: var(--text-2); margin: 0; }
@media (max-width: 900px){ .spk-formats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .spk-formats { grid-template-columns: 1fr; } }

/* generic two-up form row + submit row, shared by any .contact-form.
   .form-row--3 is a three-up variant (/contact's Name/Email/Organization row). */
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.contact-form .form-row--3 { grid-template-columns: repeat(3, 1fr); }
.contact-form .dx-attach { display: flex; gap: var(--space-xs); align-items: flex-start; font-family: var(--font-sans); font-size: var(--fs-small); text-transform: none; letter-spacing: 0; line-height: 1.5; }
.contact-form .dx-attach[hidden] { display: none; }
.contact-form .dx-attach input { width: auto; margin-top: 0.25rem; flex: none; }
.contact-form .form-footer-row { display: flex; align-items: center; gap: var(--space-md); margin-top: var(--space-xs); }
@media (max-width: 560px){ .contact-form .form-row, .contact-form .form-row--3 { grid-template-columns: 1fr; } }

/* ============================================================ THE ELEMENTS ==
   /elements (D217): the hero carries the full 30-Element table at full width
   (details open in one shared inspector dialog); below it the guided story,
   six example shifts with a sticky combination panel; then the light band
   with the Performance Gap Diagnostic start card.
   ========================================================================== */

/* the instrument is a hero variant — tighter to the nav than a page hero */
.hero--instrument { padding-block: clamp(46px, 7vh, 84px) clamp(52px, 8vh, 100px); }

/* offset hero: kicker across the top, headline left, subtitle low-right */
.ei-head {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: clamp(14px, 2vw, 28px);
  max-width: min(100%, 52rem); margin-bottom: var(--space-xl);
}
.ei-head .hero-kicker { grid-column: 1 / -1; margin: 0; }
.ei-head h1 { max-width: 20ch; font-size: clamp(1.9rem, 3.4vw, 2.9rem); text-wrap: balance; }
.ei-sub { color: var(--on-dark); font-size: var(--fs-lede); line-height: 1.5; margin: 0; max-width: 46ch; text-wrap: pretty; }
.ei-sub .em { color: var(--on-dark); }
@media (max-width: 900px){ .ei-head { margin-bottom: var(--space-lg); } }

/* ------------------------------------------------------- the full table -- */
/* reserve the table's space until elements.js builds it (prevents a layout shift) */
#periodic:empty { aspect-ratio: 3 / 1; }
@media (max-width: 1240px) { #periodic:empty { aspect-ratio: auto; min-height: 1000px; } }
@media (max-width: 820px) { #periodic:empty { min-height: 1500px; } }
.ei-table { min-width: 0; scroll-margin-top: calc(var(--nav-height) + var(--space-md)); }
/* under the table: fig. i left, the hint and the route to the story right */
.ei-tablefoot { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-xs) var(--space-md); margin-top: var(--space-sm); }
.ei-tablefoot .ei-fig-mark { margin: 0; }
.ei-route { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-xs) var(--space-md); font-size: var(--fs-small); color: var(--on-dark-muted); }
.ei-route .text-link { color: var(--on-dark); }

/* figure descriptor — under the table, not boxed (matches the homepage fig. marks) */
.ei-fig-mark { margin: var(--space-sm) 0 0; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--on-dark-muted); }
.ei-fig-mark i { font-style: italic; font-weight: 600; color: var(--on-dark); }

/* ---------------------------------------------------------- periodic table -- */
.periodic { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
/* Each family's cells are wrapped in a .pt-fam group. On desktop the wrapper is
   `display: contents` and its header is removed, so #periodic renders as one
   flat 10-column grid exactly as before (the D72-locked layout). The wrapper
   and header only take effect in the ≤680 reflow (search "stacked families"). */
.pt-fam { display: contents; }
.pt-fam-head { display: none; }
/* on the dark ground the family hues lift a step — the cells, the key, the
   story's Element buttons and the inspector all pick it up */
.band--dark .periodic, .band--dark .periodic-key, .es-section, .el-dialog {
  --fam-1: var(--fam-1-bright); --fam-2: var(--fam-2-bright); --fam-3: var(--fam-3-bright);
  --fam-4: var(--fam-4-bright); --fam-5: var(--fam-5-bright);
}
.periodic .el {
  position: relative; aspect-ratio: 1; overflow: hidden;
  border: 1px solid var(--hairline-strong); border-radius: 3px; padding: 6px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg-raised); color: var(--text); --fam: var(--text-muted);
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease),
              box-shadow var(--dur-1) var(--ease), opacity var(--dur-2) var(--ease);
  cursor: default;
}
.band--dark .periodic .el { background: var(--ink-bg-raised); border-color: var(--line-on-dark-strong); }
.periodic button.el { -webkit-appearance: none; appearance: none; margin: 0; text-align: left; font: inherit; cursor: pointer; }
.periodic .el .code { font-family: var(--font-mono); font-size: 0.56rem; color: var(--fam); opacity: 0.9; letter-spacing: 0.02em; }
.periodic .el .nm { font-size: 0.58rem; line-height: 1.14; font-weight: var(--weight-strong); hyphens: auto; }
.periodic .spacer { visibility: hidden; }
/* the table has the full width on /elements (no readout column), so its type steps up */
#periodic .el { aspect-ratio: auto; min-height: clamp(72px, 6.4vw, 92px); gap: 6px; padding: 9px 10px; border-top: 2px solid color-mix(in srgb, var(--fam) 75%, transparent); }
#periodic .el .code { font-size: 0.66rem; }
/* names never break inside a word (D226): each cell is a size container and the name's type is capped
   so the longest single word ("Experimentation", about 8.1em) fits the cell; below the stacked-family
   breakpoint the 10-wide grid would need type too small to read, so it reflows instead */
#periodic .el { container-type: inline-size; }
#periodic .el .nm { font-size: min(clamp(0.64rem, 0.42rem + 0.36vw, 0.84rem), calc(100cqi / 8.1)); line-height: 1.2; hyphens: manual; overflow-wrap: normal; }

/* hover / focus: no lift — a family-hue glow radiates from beneath the cell */
.periodic .el:hover, .periodic .el:focus-visible {
  border-color: var(--fam); background: var(--bg); outline: none;
  box-shadow: 0 10px 22px -6px color-mix(in srgb, var(--fam) 42%, transparent),
              0 3px 10px -3px color-mix(in srgb, var(--fam) 22%, transparent);
}
.band--dark .periodic .el:hover, .band--dark .periodic .el:focus-visible { background: var(--ink-bg); }
.periodic .el:focus-visible { box-shadow: var(--focus-ring-dark); }

.periodic .el.is-selected {
  border-color: var(--fam); background: var(--bg);
  box-shadow: 0 0 0 1px var(--fam), 0 12px 26px -6px color-mix(in srgb, var(--fam) 48%, transparent);
}
.band--dark .periodic .el.is-selected { background: var(--ink-bg); }
/* select → a ring pulses off the cell */
.periodic .el.is-selected::after {
  content: ""; position: absolute; inset: -1px; border-radius: 3px;
  border: 1px solid var(--fam); opacity: 0; animation: el-ring var(--dur-3) var(--ease-out);
}
@keyframes el-ring { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.22); } }

.ei-eyebrow { margin-bottom: var(--space-sm); }

/* ------------------------------------------------------- the guided story -- */
/* Six example shifts down the left; a framed, sticky panel of the current
   shift's named Elements on the right (it releases at the end of the section).
   ≤1023px the panel hides and each chapter carries its own combination inline. */
.es-section { border-top: 1px solid var(--line-on-dark); }
.es-head { max-width: none; }
.es-head h2 { font-size: var(--fs-h2); max-width: 66.667%; margin: 0; text-wrap: balance; }
.es-lede { margin: var(--space-md) 0 0; max-width: 66.667%; font-size: var(--fs-lede); line-height: 1.55; color: var(--on-dark-2); }
@media (max-width: 820px){ .es-head h2, .es-lede { max-width: none; } }

.es-jump { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-sm); margin-top: var(--space-xl); padding-block: var(--space-sm); border-block: 1px solid var(--line-on-dark); }
.es-jump-label { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--on-dark-muted); margin-right: var(--space-xs); }
.es-jump-list { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.es-jump-list a, .es-jump-back {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--on-dark-2); text-decoration: none;
  border: 1px solid var(--line-on-dark-strong); border-radius: var(--radius);
  transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), background var(--dur-1) var(--ease);
}
.es-jump-list a:hover, .es-jump-back:hover { border-color: var(--accent-bright); color: var(--on-dark); }
.es-jump-list a[aria-current="step"] { border-color: var(--accent-bright); background: var(--accent); color: var(--on-dark); }
.es-jump-back { margin-left: auto; gap: 8px; }
.es-jump a:focus-visible { outline: none; box-shadow: var(--focus-ring-dark); }

.es-layout { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: var(--space-xl); align-items: start; }
.es-steps { min-width: 0; }
.es-step { min-height: clamp(540px, 80vh, 720px); padding-block: var(--space-2xl); border-bottom: 1px solid var(--line-on-dark); scroll-margin-top: calc(var(--nav-height) + var(--space-sm)); }
.es-step:last-child { border-bottom: 0; }
.es-index { margin: 0 0 var(--space-md); font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--accent-bright); }
.es-from { margin: 0 0 var(--space-xs); font-size: var(--fs-h4); color: var(--on-dark-2); }
.es-title { margin: 0; max-width: 15ch; font-size: clamp(2rem, 3.3vw, 3rem); text-wrap: balance; }
.es-symptom { margin: var(--space-md) 0 0; max-width: 40ch; font-size: var(--fs-lede); line-height: 1.55; color: var(--on-dark-2); }
.es-why { margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--line-on-dark-strong); }
.es-lab { margin: 0 0 10px; font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--on-dark-muted); }
.es-why p { margin: 0; max-width: 52ch; color: var(--on-dark); line-height: 1.6; }
.es-changes { margin-top: var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--line-on-dark-strong); color: var(--on-dark-2); }
.es-changes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.es-changes li::before { content: "\2014\00a0\00a0"; color: var(--accent-bright); }
.es-case { margin-top: var(--space-sm); color: var(--on-dark); }

/* the combination panel: fine grid, corner marks, mono furniture */
.es-instrument {
  position: relative; padding: var(--space-md);
  border: 1px solid var(--line-on-dark-strong); border-radius: 2px;
  background:
    linear-gradient(color-mix(in srgb, var(--line-on-dark) 35%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line-on-dark) 35%, transparent) 1px, transparent 1px),
    var(--ink-bg-raised);
  background-size: 48px 48px; box-shadow: inset 0 1px var(--line-on-dark-strong);
}
.es-instrument::before, .es-instrument::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; }
.es-instrument::before { top: -1px; left: -1px; border-top: 2px solid var(--accent-bright); border-left: 2px solid var(--accent-bright); }
.es-instrument::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent-bright); border-right: 2px solid var(--accent-bright); }
.es-panel-head, .es-panel-foot { display: flex; justify-content: space-between; gap: var(--space-sm); font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--on-dark-2); }
.es-panel-head { text-transform: uppercase; padding-bottom: var(--space-xs); border-bottom: 1px solid var(--line-on-dark-strong); margin-bottom: var(--space-sm); }
.es-panel-foot { margin-top: var(--space-sm); padding-top: var(--space-xs); border-top: 1px solid var(--line-on-dark-strong); letter-spacing: 0.02em; }
.es-mix-title { margin: 0 0 var(--space-sm); font-family: var(--font-serif); font-weight: var(--weight-heading); font-variation-settings: var(--fvs-heading); font-size: var(--fs-h3); line-height: var(--lh-tight); letter-spacing: var(--tracking-h3); color: var(--on-dark); }
.es-els { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.es-el {
  -webkit-appearance: none; appearance: none; width: 100%; margin: 0; font: inherit; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 10px;
  color: var(--on-dark); border: 1px solid var(--line-on-dark-strong); border-left: 3px solid var(--fam); border-radius: 2px;
  background: color-mix(in srgb, var(--fam) 8%, var(--ink-bg));
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
}
.es-el:hover { background: color-mix(in srgb, var(--fam) 20%, var(--ink-bg)); border-color: var(--fam); }
.es-el:focus-visible { outline: none; box-shadow: var(--focus-ring-dark); }
.es-el-code { flex: none; font-family: var(--font-mono); font-size: 0.64rem; color: var(--fam); }
.es-el-name { font-size: 0.8rem; line-height: 1.3; }
.es-el-open { margin-left: auto; color: var(--fam); font-size: 0.8rem; }
/* a change of shift resets the panel (D218): the old set dims and blurs out
   (.is-leaving), a scan line sweeps down the frame, and the new set cascades in
   top to bottom, each Element flashing its family hue as it lands (.is-reset) */
.es-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent-bright) 20%, var(--accent-bright) 80%, transparent);
  box-shadow: 0 0 16px 2px color-mix(in srgb, var(--accent-bright) 55%, transparent); }
.es-instrument.is-leaving .es-el, .es-instrument.is-leaving .es-mix-title, .es-instrument.is-leaving .es-key {
  opacity: 0.15; filter: blur(2px); transform: translateX(-4px);
  transition: opacity 0.14s var(--ease), filter 0.14s var(--ease), transform 0.14s var(--ease);
}
.es-instrument.is-reset .es-scan { animation: es-scan 0.7s var(--ease-in-out) both; }
.es-instrument.is-reset .es-mix-title { animation: es-title var(--dur-2) var(--ease-out) both; }
.es-instrument.is-reset .es-el { animation: es-cascade 0.55s var(--ease-out) both; animation-delay: calc(80ms + var(--i, 0) * 42ms); }
.es-instrument.is-reset .es-key { animation: es-title var(--dur-2) var(--ease-out) both; animation-delay: 0.45s; }
@keyframes es-scan { 0% { top: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 0.9; } 100% { top: 100%; opacity: 0; } }
@keyframes es-title { from { opacity: 0; filter: blur(3px); transform: translateY(-3px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes es-cascade {
  0%   { opacity: 0; transform: translateY(-8px); filter: blur(3px); }
  55%  { opacity: 1; transform: none; filter: none; border-color: var(--fam); background: color-mix(in srgb, var(--fam) 34%, var(--ink-bg)); box-shadow: 0 0 18px -4px var(--fam); }
  100% { opacity: 1; transform: none; filter: none; }
}
.es-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: var(--space-sm) 0 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 0.66rem; color: var(--on-dark-2); }
.es-key li { display: inline-flex; align-items: center; gap: 6px; }
.es-key i { width: 7px; height: 7px; background: var(--fam); }
.es-key .is-unused { color: var(--on-dark-muted); }
.es-key .is-unused i { background: transparent; border: 1px solid var(--on-dark-muted); }
.es-stage { position: sticky; top: calc(var(--nav-height) + var(--space-md)); margin-block: var(--space-2xl); min-width: 0; }
.es-stage-meta { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); padding-top: var(--space-sm); }
.es-stage-meta .ei-fig-mark { margin: 0; }
.es-note { margin: 0; font-family: var(--font-mono); font-size: 0.7rem; color: var(--on-dark-muted); }
.es-inline { display: none; }
/* .es-sr: each chapter's Elements as one sentence for screen readers on wide
   screens, where the buttons live only in the sticky panel */
/* shorter laptop screens: the 14-Element combination must fit beside the story */
@media (min-width: 1024px) and (max-height: 820px) {
  .es-instrument { padding: var(--space-sm) var(--space-md); }
  .es-mix-title { font-size: 1.4rem; margin-bottom: var(--space-xs); }
  .es-el { min-height: 40px; padding: 5px 9px; }
  .es-stage { top: calc(var(--nav-height) + var(--space-xs)); }
}
@media (min-width: 1024px) and (max-height: 700px) {
  .es-els { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .es-el-open { display: none; }
}
@media (max-width: 1023px) {
  .es-layout { display: block; }
  .es-stage { display: none; }
  .es-step { min-height: 0; padding-block: var(--space-xl); }
  .es-title { max-width: 22ch; }
  .es-inline { display: block; margin-top: var(--space-lg); }
  .es-sr { display: none; }   /* the inline combination says it here */
}
@media (max-width: 560px) {
  .es-els { grid-template-columns: minmax(0, 1fr); }
  .es-el-name { font-size: 0.86rem; }
  .es-instrument { padding: var(--space-sm); }
  .es-jump-back { margin-left: 0; }
}

/* --------------------------------------------- the Element inspector (dialog) -- */
/* one dialog for the table and the story: native modal (focus stays inside,
   Esc closes, focus returns to the Element that opened it) */
.el-dialog {
  width: min(600px, calc(100% - 2 * var(--space-md))); max-height: min(85dvh, 760px); overflow: auto;
  margin: auto; padding: var(--space-md) var(--space-lg) var(--space-lg);
  color: var(--on-dark); background: var(--ink-bg-raised);
  border: 1px solid var(--line-on-dark-strong); border-top: 2px solid var(--k, var(--accent-bright)); border-radius: var(--radius);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
}
.el-dialog::backdrop { background: color-mix(in srgb, var(--ink-bg) 72%, transparent); backdrop-filter: blur(4px); }
.el-dialog[open] { animation: eld-in var(--dur-2) var(--ease-out); }
@keyframes eld-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.eld-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); padding-bottom: var(--space-sm); margin-bottom: var(--space-md); border-bottom: 1px solid var(--line-on-dark-strong); }
.eld-tag { font-family: var(--font-mono); font-size: var(--fs-label); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--on-dark-muted); }
.eld-close { -webkit-appearance: none; appearance: none; width: 44px; height: 44px; padding: 0; display: inline-grid; place-items: center; cursor: pointer; font-family: var(--font-sans); font-size: 1.5rem; line-height: 1; color: var(--on-dark); background: transparent; border: 1px solid var(--line-on-dark-strong); border-radius: var(--radius); }
.eld-close:hover { border-color: var(--accent-bright); }
.eld-close:focus-visible { outline: none; box-shadow: var(--focus-ring-dark); }
.eld-id { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--k); }
.eld-id i { width: 10px; height: 10px; border-radius: 3px; background: var(--k); }
.eld-name { margin: var(--space-xs) 0 var(--space-sm); font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--on-dark); text-wrap: balance; }
.eld-more { margin: var(--space-lg) 0 0; }
.eld-more .text-link { color: var(--on-dark); }
.eld-def { margin: 0; color: var(--on-dark-2); font-size: var(--fs-body); line-height: 1.6; }
.eld-sec { margin-top: var(--space-md); padding-top: var(--space-sm); border-top: 1px solid var(--line-on-dark); }
.eld-lab { margin: 0 0 10px; font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--on-dark-muted); }
.eld-outcomes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.eld-outcomes li { padding: 4px 10px; font-size: 0.86rem; border-radius: var(--radius-pill); border: 1px solid color-mix(in srgb, var(--k) 55%, transparent); background: color-mix(in srgb, var(--k) 12%, transparent); }
.eld-shifts { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.eld-shifts a { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; color: var(--on-dark); text-decoration: none; font-size: var(--fs-small); }
.eld-shifts a span { font-family: var(--font-mono); font-size: 0.7rem; color: var(--accent-bright); }
.eld-shifts a:hover { text-decoration: underline; text-underline-offset: 3px; }
.eld-shifts a:focus-visible { outline: none; box-shadow: var(--focus-ring-dark); }
.eld-none { margin: 0; font-size: var(--fs-small); color: var(--on-dark-2); }

/* --------------------------------------- Performance Gap Diagnostic (light) -- */
/* the question is a full-width centred headline across the top; then text left / questionnaire right */
.pgd-head { text-align: center; margin: 0 0 clamp(28px, 4vw, 52px); }
.pgd-q {
  font-family: var(--font-serif); font-weight: var(--weight-emphasis); font-size: var(--fs-pov);
  line-height: var(--lh-pov); letter-spacing: var(--tracking-heading); font-variation-settings: var(--fvs-heading);
  color: var(--text); margin: 0; text-wrap: balance;
}
/* text + questionnaire sit centred under the centred title, not stretched edge to edge */
/* the box alone, centered (QA round 2, E4: the text column beside it is gone) */
.pgd .pgd-grid { display: grid; grid-template-columns: minmax(0, 43rem); justify-content: center; }
.pgd-panel {
  position: relative; border: 1px solid var(--line-on-dark-strong); border-top: 2px solid var(--accent-bright);
  border-radius: var(--radius); background: var(--ink-bg-raised); color: var(--on-dark);
  padding: var(--space-sm) var(--space-lg) var(--space-lg); overflow: hidden;
}
.pgd-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(58% 68% at 100% 0%, color-mix(in srgb, var(--accent-bright) 22%, transparent), transparent 60%); }
/* the card is a dark object on the light band: buttons take the dark-ground CTA set */
.pgd-panel { --cta-fill: var(--paper-warm); --cta-on-fill: var(--ink); --cta-label: var(--on-dark-2); --cta-line: var(--line-on-dark-strong); --cta-accent: var(--accent-bright); --cta-glow: 0 14px 38px rgba(122, 92, 255, 0.4); }
.pgd-panel > * { position: relative; z-index: 1; }
/* Begin in the accent (D223): paper-on-indigo label, 6.2:1 */
.pgd-panel .pgd-begin { --cta-fill: var(--accent); --cta-on-fill: var(--on-dark); --cta-disc: var(--paper-warm); --cta-on-disc: var(--accent); }
.pgd-phead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pgd-figlabel { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); }
.pgd-start-h { font-family: var(--font-serif); font-weight: var(--weight-heading); font-variation-settings: var(--fvs-heading); font-size: var(--fs-h3); line-height: var(--lh-tight); letter-spacing: var(--tracking-h3); color: var(--on-dark); margin: var(--space-md) 0 var(--space-sm); text-wrap: balance; }
.pgd-disc { color: var(--on-dark-2); margin: 0 0 var(--space-md); max-width: 56ch; }
.pgd-begin { margin: 0; }
.pgd-time { font-size: var(--fs-small); color: var(--on-dark-muted); margin-left: var(--space-sm); }

/* ------------------------------------------------ reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .periodic .el.is-selected::after, .es-instrument .es-el, .es-instrument .es-mix-title, .es-instrument .es-key, .es-scan { animation: none !important; }
  .es-instrument.is-leaving .es-el, .es-instrument.is-leaving .es-mix-title, .es-instrument.is-leaving .es-key { opacity: 1; filter: none; transform: none; }
}

/* narrow: the diagnostic panel loses its side breathing room and the head
   label + counter no longer share a line */
@media (max-width: 560px) {
  .pgd-panel { padding-left: var(--space-md); padding-right: var(--space-md); }
  .pgd-phead { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ------------------- the table reflows to stacked families -- */
/* D73, moved from 680 to 820px in D217 and to 1240px in D226 (the table no longer shares the row with
   a readout, but a 10-wide grid below ~820px squeezes names too small): the
   10-wide grid becomes five stacked family blocks, each
   with its own labelled header; cells wrap (auto-fill, ~2-up on a phone) and
   keep their names. Nothing on the page scrolls horizontally. The .periodic-key
   above the table is redundant here and hides. */
@media (max-width: 1240px) {
  .periodic { display: block; }
  .pt-fam {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 4px;
    margin-bottom: var(--space-md);
  }
  .pt-fam:last-child { margin-bottom: 0; }
  .pt-fam-head {
    grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap;
    gap: 2px 8px; margin: 0 0 8px; padding-bottom: 8px;
    border-bottom: 1px solid var(--line-on-dark);
    font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.02em; color: var(--on-dark-2);
  }
  .pt-fam-head .pt-fam-sw { width: 10px; height: 10px; border-radius: 3px; background: var(--k); align-self: center; flex: none; }
  .pt-fam-head b { color: var(--k); font-weight: 600; }
  .pt-fam-head span { margin-left: auto; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
  .pt-fam-head em { flex-basis: 100%; margin-left: 18px; font-style: normal; color: var(--on-dark-muted); font-size: 0.72rem; }
  /* bigger, more readable cell text on a phone (the tiles have the room here) */
  .periodic .el, #periodic .el { aspect-ratio: auto; min-height: 74px; padding: 8px; }
  .periodic .el .code, #periodic .el .code { font-size: 0.62rem; }
  .periodic .el .nm, #periodic .el .nm { display: block; font-size: 0.8rem; line-height: 1.2; }
  .periodic .spacer { display: none; }
}

/* the key — a swatch, the code (in the family hue), the name, the count.
   Sits ABOVE the table. */
.periodic-key { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.periodic-key span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--text-2); }
.periodic-key span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--k); flex: none; }
.periodic-key span[data-fam="1"]{ --k: var(--fam-1); } .periodic-key span[data-fam="2"]{ --k: var(--fam-2); }
.periodic-key span[data-fam="3"]{ --k: var(--fam-3); } .periodic-key span[data-fam="4"]{ --k: var(--fam-4); }
.periodic-key span[data-fam="5"]{ --k: var(--fam-5); }
.periodic-key b { color: var(--k); font-weight: 600; }
.periodic-key i { font-style: normal; color: var(--text-muted); margin-left: 4px; }
@media (max-width: 640px){ .periodic-key { gap: var(--space-md) var(--space-lg); } }
/* ≤1240 the stacked-family headers carry the legend — the key above the table is
   redundant (this rule sits after the base .periodic-key to win on order) */
@media (max-width: 1240px){ .periodic-key { display: none; } }

/* --------------------------------------------------------------- approach -- */
/* the hero is the dictionary entry (D21/D136) — no headline/lede, just the
   .definition component sized up to page-title scale for hero prominence. */
.hero .definition { max-width: none; }
.hero .definition dfn { font-size: var(--fs-h1); line-height: var(--lh-heading); }
.hero .definition .pron { font-size: 0.9rem; }
.hero .definition .gloss { font-size: var(--fs-h4); max-width: 46ch; color: var(--on-dark); }


/* the six modes, icon inline with the name (D144 — was icon-above-name,
   taller) + one-line definition. Four icons reuse the matching
   Performance System component icon for a deliberate visual echo:
   Advise↔Direction, Facilitate↔Engagement, Build↔Capability,
   Embed↔Sustainment; Design and Coach are new. Laid out 3-across, 2 rows
   (D144 — was a single stacked column, too tall) inside the figure.
   Adam's own .arc-line (one tracked mono line) is the compact version
   used in the homepage hero. */
.arc { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.arc-step { border: 1px solid var(--hairline); border-radius: var(--radius); padding: var(--space-md); transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease); }
.arc-step:hover { border-color: var(--accent-soft); background: var(--accent-mist); }
.arc-step-head { display: flex; align-items: center; gap: var(--space-xs); }
.arc-step-icon { display: block; flex: none; width: 18px; height: 18px; color: var(--accent); }
.band--dark .arc-step-icon { color: var(--accent-bright); }
.arc-step-icon svg { width: 100%; height: 100%; display: block; }
.arc-step .a-name { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.band--dark .arc-step .a-name { color: var(--accent-bright); }
.arc-step .a-def { font-size: var(--fs-small); color: var(--text-2); margin-top: var(--space-xs); }
@media (max-width: 760px){ .arc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .arc { grid-template-columns: 1fr; } }

/* clip sideways overflow on a band without making it a scroll container */
.band--clip-x { overflow-x: clip; }

/* signature building capability — what gets built, nested inside a .figure
   like /speaking's formats grid. */
.build-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.build-item-icon { display: block; width: 26px; height: 26px; color: var(--accent); margin-bottom: 10px; }
.band--dark .build-item-icon { color: var(--accent-bright); }
.build-item-icon svg { width: 100%; height: 100%; display: block; }
.build-item h3 { font-size: 1.05rem; margin: 0 0 6px; }
.build-item p { font-size: var(--fs-small); color: var(--text-2); margin: 0; }
@media (max-width: 960px){ .build-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .build-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- builder --- */
.builder-preview { position: relative; border: 1px solid var(--hairline-strong); border-radius: var(--radius); padding: var(--space-xl); margin-top: var(--space-lg); background: var(--bg-raised); overflow: hidden; }
.builder-preview::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 30%;
  background: linear-gradient(90deg, var(--accent), transparent); }
.builder-preview .progress { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--text-muted); }
.builder-preview .progress b { color: var(--accent); font-weight: 500; }
.band--dark .builder-preview .progress b { color: var(--accent-bright); }
.builder-preview .q { font-family: var(--font-serif); font-size: var(--fs-h3); margin: var(--space-md) 0 var(--space-lg); font-variation-settings: var(--fvs-heading); }
.builder-preview .answers { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.builder-preview .answers span { border: 1px solid var(--hairline-strong); border-radius: var(--radius-pill); padding: 8px 16px; font-size: 0.85rem; transition: border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.builder-preview .answers span:hover { border-color: var(--accent); color: var(--accent); }
.band--dark .builder-preview .answers span:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

/* --------------------------------------------------------------- contact --- */
.contact-panel { max-width: 620px; }
.contact-panel .contact-form { margin-top: 0; }
.contact-form { display: grid; gap: var(--space-md); max-width: 560px; margin-top: var(--space-lg); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--text); background: transparent;
  border: 0; border-bottom: 1px solid var(--hairline-strong); padding: 12px 2px;
}
/* grid items default to a min-width driven by their content's own intrinsic
   size, so a bare <input> keeps a track from shrinking below its browser-
   default width and the row overflows its container — needs min-width: 0
   to let the 1fr tracks actually divide the row evenly. */
.contact-form .form-row > div, .contact-form .form-row--3 > div { min-width: 0; }
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-bottom-color: var(--accent-bright); box-shadow: none; }
/* honeypot: invisible to sighted users, but kept inside the normal box
   instead of the old left:-9999px trick — that pushed the panel's
   scrollable content 10,000px wide, and focusing any real field inside
   an overflow:hidden ancestor made the browser's auto-scroll-into-view
   shift the whole form sideways to "reach" it. */
.contact-form .hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.contact-form label { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); display: block; margin-bottom: 4px; }
.form-status { font-size: var(--fs-small); min-height: 1.2em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #b4453a; }

/* ---------------------------------------------------------------- footer --- */
.site-footer { position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink-bg); color: var(--on-dark); padding-block: var(--space-2xl) var(--space-xl);
  --text: var(--on-dark); --text-2: var(--on-dark-2); --text-muted: var(--on-dark-muted); --hairline: var(--line-on-dark); }
.site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-dark-v) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: var(--grid-mask); mask-image: var(--grid-mask);
}
.site-footer .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--space-xl); }
.footer-main { display: grid; gap: var(--space-lg); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--space-md); font-size: 0.88rem; }
.footer-links a { color: var(--on-dark-2); text-decoration: none; }
.footer-links a:hover { color: var(--accent-bright); }
.footer-copy { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; color: var(--on-dark-muted); }
/* the brand mark, bottom-right, sized to the footer's own content height
   rather than a fixed px value so it scales with the footer across pages */
.footer-mark { align-self: stretch; height: 100%; width: auto; max-height: clamp(56px, 8vw, 120px); color: var(--on-dark-faint); }
.footer-mark .mark-core { fill: var(--accent-bright); }
@media (max-width: 640px){
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-mark { display: none; }
}

/* ------------------------------------------------------------- responsive -- */
@media (max-width: 1000px){
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-portrait { width: 62%; }
  .stat-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .system-figure { grid-template-columns: 1fr; }
  .component { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .component::after { right: 50%; top: auto; bottom: -4px; transform: translateX(50%); }
  /* .periodic responsive lives with the instrument block (search "THE ELEMENTS") */
  /* .case-grid responsive lives with the My Work block (search "MY WORK") */
}
@media (max-width: 640px){
  .states-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  * { transition-duration: 0.001s !important; animation-duration: 0.001s !important; }
}

/* ========================================================= WHY IT MATTERS NOW ==
   /why-it-matters-now — the evidence manifesto. One band per selected statistic,
   alternating light / dark. Each band: a large serif headline over the main
   column, then a grid —
     [ headline    .      ]
     [ body      figure    ]   the stat box top-aligns with the Evidence line
     [ body      ask       ]   ask (question + link) bottom-aligns with Insight
   The whole layout mirrors on .womn-band--flip (the even-numbered bands), so the
   breakout stat alternates left / right. Structure per master spec §5.1.

   ITALIC FRAUNCES IS PERMITTED HERE, on .womn-cap and .womn-q ONLY — a scoped
   exception to non-negotiable #4 / D4 (Adam, D86). Nowhere else on the site.
   ============================================================================= */

/* long single-sentence hero headline — a notch smaller than a page H1 */
.womn-hero h1 { font-size: var(--fs-h2); max-width: 22ch; }

.womn-band > .wrap { position: relative; z-index: 1; }
/* each band is a #direction/#engagement/#capability/#activation/#sustainment
   deep-link target (linked from /work's per-case "Why it matters now"
   cross-links) — clear the sticky nav on jump, same insurance as
   .chapter-band on /system */
.womn-band { scroll-margin-top: var(--nav-height); }

.womn-cols {
  --aside-w: clamp(270px, 30%, 400px);
  display: grid;
  grid-template-columns: minmax(0, 44ch) var(--aside-w);
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "head   ."
    "body   figure"
    "body   ask";
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: var(--space-lg);
  /* pull the two columns together toward the middle of the page (Adam) */
  justify-content: center;
}
.womn-band--flip .womn-cols {
  grid-template-columns: var(--aside-w) minmax(0, 44ch);
  grid-template-areas:
    ".      head"
    "figure body"
    "ask    body";
}
.womn-headwrap { grid-area: head; }
.womn-body     { grid-area: body; min-width: 0; max-width: 46ch; }
.womn-figure   { grid-area: figure; align-self: start; }
.womn-ask      { grid-area: ask; align-self: end; }

/* --- kicker + headline --- */
.womn-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--space-md); }
.womn-kicker .womn-ico { width: 20px; height: 20px; flex: none; color: var(--accent); }
.band--dark .womn-kicker .womn-ico { color: var(--accent-bright); }
.womn-kicker .womn-ico svg { width: 100%; height: 100%; display: block; }
.womn-kicker .womn-ico path, .womn-kicker .womn-ico rect, .womn-kicker .womn-ico circle {
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.womn-kicker span {
  font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: var(--tracking-label); color: var(--accent);
}
.band--dark .womn-kicker span { color: var(--accent-bright); }

.womn-head {
  font-family: var(--font-serif); font-weight: var(--weight-heading);
  font-size: clamp(2.5rem, 4.8vw, 4.25rem); line-height: 1.03;
  letter-spacing: var(--tracking-display); font-variation-settings: var(--fvs-display);
  color: var(--text); margin: 0; max-width: 15ch; text-wrap: balance;
}

/* --- body copy --- */
.womn-body > p { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text-2); margin: 0 0 var(--space-md); }
.womn-body > p:last-child { margin-bottom: 0; }
.womn-lead { font-weight: var(--weight-strong); color: var(--accent); margin-right: 0.35ch; }
.band--dark .womn-lead { color: var(--accent-bright); }
/* the Insight paragraph — bold, in the accent color, with a soft accent wash
   pooled behind it (same idea as the bloom behind the stat numbers).
   Selector carries `.womn-body` so it outweighs `.womn-body > p`. */
.womn-insight { position: relative; isolation: isolate; }
.womn-body .womn-insight {
  font-weight: var(--weight-strong);
  color: color-mix(in srgb, var(--accent) 82%, var(--ink));
}
.band--dark .womn-body .womn-insight { color: var(--accent-bright); }
.womn-insight::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -0.6em -1em;
  background: radial-gradient(85% 130% at 1% 50%, var(--accent-mist), transparent 72%);
  border-radius: var(--radius); filter: blur(8px);
}
.band--dark .womn-insight::before {
  background: radial-gradient(85% 130% at 1% 50%, rgba(122, 92, 255, 0.16), transparent 72%);
}

/* --- the breakout stat box --- */
.womn-figure {
  position: relative; isolation: isolate; overflow: visible; margin: 0;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.2vw, 44px) clamp(26px, 3.2vw, 44px) clamp(22px, 2.6vw, 32px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--paper-warm) 42%, transparent), transparent 58%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.womn-figure.is-in { opacity: 1; transform: none; }
.band--dark .womn-figure {
  border-color: var(--line-on-dark);
  background: linear-gradient(180deg, rgba(243, 236, 220, 0.045), transparent 58%);
  box-shadow: inset 0 1px 0 rgba(243, 236, 220, 0.06);
}
/* a soft indigo bloom pools inside the frame, behind the number */
.womn-figure::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 70%; aspect-ratio: 1 / 1; top: 2%; right: 4%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
  filter: blur(12px);
}
.womn-band--flip .womn-figure::before { right: auto; left: 4%; }
.band--dark .womn-figure::before {
  background: radial-gradient(closest-side, rgba(122, 92, 255, 0.24), transparent);
}
.womn-figure > * { position: relative; z-index: 1; }

.womn-stat {
  font-family: var(--font-serif); font-weight: var(--weight-display);
  font-size: clamp(3.4rem, 7vw, 7rem); line-height: 0.82; letter-spacing: -0.035em;
  font-variation-settings: var(--fvs-display); color: var(--text);
  font-variant-numeric: lining-nums; white-space: nowrap;
  text-align: right; margin: -0.08em 0 0;   /* sits inside the frame, even padding — both grounds */
}
.womn-band--flip .womn-stat { text-align: left; }

.womn-cap {
  font-family: var(--font-serif); font-style: italic; font-weight: var(--weight-heading);  /* D86 */
  font-size: var(--fs-h4); line-height: 1.4; color: var(--text-2);
  margin: var(--space-md) 0 0 auto; max-width: 34ch; text-align: right; text-wrap: pretty;
}
.womn-band--flip .womn-cap { margin: var(--space-md) auto 0 0; text-align: left; }

/* the spectrum rule — a hairline with one bright accent segment off-center */
.womn-rule { display: flex; align-items: center; gap: 12px; margin: var(--space-lg) 0 var(--space-md); }
.womn-rule i { height: 1px; background: var(--hairline-strong); border-radius: 1px; }
.womn-rule i:nth-child(1) { flex: 5; }
.womn-rule i:nth-child(2) { flex: 2.4; height: 3px; border-radius: 2px; background: var(--accent); }
.womn-rule i:nth-child(3) { flex: 7; }
.band--dark .womn-rule i { background: var(--line-on-dark-strong); }
.band--dark .womn-rule i:nth-child(2) { background: var(--accent-bright); }
.womn-band--flip .womn-rule i:nth-child(1) { flex: 7; }
.womn-band--flip .womn-rule i:nth-child(3) { flex: 5; }

.womn-src {
  margin: 0; font-family: var(--font-mono); font-size: var(--fs-caption);
  line-height: 1.6; letter-spacing: var(--tracking-caption); color: var(--text-muted);
}
.womn-src .womn-src-pub { color: var(--text-2); font-weight: 600; }
.womn-src a { color: var(--accent); text-decoration: none; white-space: nowrap; }
.band--dark .womn-src a { color: var(--accent-bright); }
.womn-src a:hover, .womn-src a:focus-visible { text-decoration: underline; }

/* --- the challenging question + link: below the box, bottom-aligned with Insight --- */
.womn-q {
  font-family: var(--font-serif); font-style: italic; font-weight: var(--weight-heading);  /* D86 */
  font-size: clamp(1.5rem, 2.3vw, 2.05rem); line-height: 1.3; letter-spacing: -0.01em;
  color: var(--text); text-wrap: pretty;
  border-left: 2px solid var(--accent); padding-left: var(--space-md); margin: 0;
}
.band--dark .womn-q { border-left-color: var(--accent-bright); }
.womn-ask .link-row { margin-top: var(--space-md); }
.womn-ask .text-link { font-size: 0.92rem; }

/* --- the conclusion: the performance equation (left, in the shared figure
       frame) + the closing statement and the three CTAs (right) --- */
.womn-synth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 76px);
  align-items: center;
}
.womn-eq { min-width: 0; }
.womn-formula { margin: 0; }
/* solid panel ground — the shared .figure's ruled-grid fill made this box too
   busy next to the band's own grid (Adam) */
.band--dark .womn-formula {
  background: var(--ink-bg-raised);
  background-image: none;
}
/* the descriptor sits UNDER the box, left-aligned (like the /elements fig marks) */
.womn-eq-cap {
  margin: var(--space-sm) 0 0; font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.04em; color: var(--on-dark-muted);
}
.womn-eq-cap i { font-style: italic; font-weight: 600; color: var(--on-dark); }
/* the equation reads as a vertical stack at every width — the term on its own
   line, the plain-language gloss beneath it (Adam likes the narrow form) */
.wf-terms { list-style: none; margin: 0; padding: 0; }
.wf-terms li { display: block; margin-bottom: var(--space-md); }
.wf-terms li:last-child { margin-bottom: 0; }
.wf-name {
  display: block;
  font-family: var(--font-serif); font-weight: var(--weight-heading);
  font-size: var(--fs-h3); line-height: 1.1; letter-spacing: var(--tracking-h3);
  font-variation-settings: var(--fvs-heading); color: var(--on-dark);
}
.wf-op { color: var(--accent-bright); font-weight: var(--weight-heading); font-style: normal; }
.wf-gloss {
  display: block; margin-top: 5px;
  font-family: var(--font-mono); font-size: var(--fs-small); line-height: 1.5;
  color: var(--on-dark-muted);
}
.wf-result {
  display: flex; align-items: baseline; gap: 0.4em; flex-wrap: wrap;
  margin: var(--space-lg) 0 0; padding-top: var(--space-lg);
  border-top: 1px solid var(--line-on-dark);
  font-family: var(--font-serif); font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.12; letter-spacing: var(--tracking-heading); font-variation-settings: var(--fvs-heading);
}
.wf-result .wf-eq { color: var(--accent-bright); }
.wf-result span:last-child { color: var(--on-dark); font-weight: var(--weight-emphasis); }

.womn-synth-h {
  font-family: var(--font-serif); font-weight: var(--weight-heading);
  font-size: clamp(2.1rem, 3.6vw, 3.3rem); line-height: 1.05; letter-spacing: var(--tracking-heading);
  font-variation-settings: var(--fvs-heading); color: var(--text);
  margin: var(--space-sm) 0 var(--space-md); text-wrap: balance;
}
.womn-synth-text > p { font-size: var(--fs-lede); line-height: 1.6; color: var(--text-2); margin: 0; max-width: 44ch; }
.womn-synth-text .btn-row {
  display: flex; flex-direction: column; align-items: stretch;
  gap: var(--space-sm); margin-top: var(--space-xl); max-width: 360px;
}
.womn-synth-text .btn { width: 100%; }

@media (max-width: 900px){
  /* phone order: eyebrow, title, subtitle, the equation, then the buttons.
     The text block is dissolved (display: contents) so its buttons can sort
     after the equation. */
  .womn-synth-grid { grid-template-columns: 1fr; gap: 0; }
  .womn-synth-text { display: contents; }
  .womn-eq { order: 1; margin-block: var(--space-xl); }
  .womn-synth-text .btn-row { order: 2; max-width: none; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce){
  .womn-figure { opacity: 1; transform: none; }
}

/* stacked flow: headline → stat box → body copy → question + link */
@media (max-width: 900px){
  .womn-cols, .womn-band--flip .womn-cols {
    display: flex; flex-direction: column; gap: var(--space-lg);
  }
  .womn-headwrap { order: 1; }
  .womn-figure   { order: 2; opacity: 1; transform: none; align-self: auto; }
  .womn-body     { order: 3; max-width: none; }
  .womn-ask      { order: 4; align-self: auto; }
  .womn-head { font-size: clamp(2.3rem, 8.5vw, 3.1rem); max-width: 16ch; }
  .womn-stat, .womn-band--flip .womn-stat { text-align: left; margin: -0.06em 0 0; }
  .womn-cap, .womn-band--flip .womn-cap { margin: var(--space-md) 0 0; text-align: left; max-width: 44ch; }
  .womn-rule i:nth-child(1), .womn-band--flip .womn-rule i:nth-child(1) { flex: 5; }
  .womn-rule i:nth-child(3), .womn-band--flip .womn-rule i:nth-child(3) { flex: 7; }
}

/* screen-reader-only utility */
.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;
}

/* ================================================================ MY WORK ==
   /work — a pinned-visual scrollytelling reader (dark), chosen by Adam
   (D152/D153) over an accordion-grid design (D151, rejected) and two other
   prototypes. No cards: a sticky index tracks position; each case's visual
   pins in place while its story scrolls past. (Pattern-view table dropped, D156.) */

.scrolly { display: grid; grid-template-columns: 240px 1fr; gap: var(--space-2xl); align-items: start; }
@media (max-width: 900px){ .scrolly { grid-template-columns: 1fr; gap: var(--space-lg); } }

.work-index { position: sticky; top: calc(var(--nav-height) + var(--space-lg)); align-self: start; }
.work-index-list { display: grid; gap: 4px; }
.work-index-toggle { display: none; }
.work-index-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px; border-radius: var(--radius);
  border-left: 2px solid transparent; background: transparent; border-top: 0; border-right: 0; border-bottom: 0;
  text-align: left; width: 100%; cursor: pointer; color: var(--on-dark-muted); font: inherit;
  transition: color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.work-index-item b, .work-index-toggle b { flex: none; min-width: 2ch; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; line-height: 1.3; padding-top: 1px; color: var(--kb, var(--k)); opacity: 0.6; transition: opacity var(--dur-2) var(--ease); }
.work-index-item span, .work-index-toggle span { font-size: 0.86rem; line-height: 1.3; }
.work-index-item.is-active { color: var(--on-dark); border-left-color: var(--k); }
.work-index-item.is-active b { opacity: 1; }
.work-index-item:hover { color: var(--on-dark); }
.work-index-item:focus-visible, .work-index-toggle:focus-visible { outline: none; box-shadow: var(--focus-ring-dark); }
/* mobile: the index collapses to a light bar under the site nav (it reads as
   navigation, like /system's component nav) naming the current case; the
   chevron button opens the full list, picking one jumps there. */
@media (max-width: 900px){
  .work-index {
    top: var(--nav-height); z-index: 20; margin: 0 calc(var(--gutter) * -1);
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-block: 1px solid var(--line);
  }
  .work-index-toggle {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px var(--gutter);
    background: transparent; border: 0; color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  }
  .work-index-toggle:focus-visible, .work-index-item:focus-visible { box-shadow: var(--focus-ring); }
  .work-index-toggle b, .work-index-item b { color: color-mix(in srgb, var(--k) 60%, var(--ink)); opacity: 1; padding-top: 0; }
  .work-index-toggle span { flex: 1; font-weight: 500; }
  .work-index-toggle em {
    flex: none; display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--line-strong); border-radius: var(--radius-pill); color: var(--ink);
    transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease);
  }
  .work-index-toggle em svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-2) var(--ease); }
  .work-index-toggle:hover em, .work-index.is-open .work-index-toggle em { border-color: var(--accent); background: var(--accent-mist); color: var(--accent); }
  .work-index.is-open .work-index-toggle em svg { transform: rotate(180deg); }
  .work-index-list { display: none; padding: 0 var(--space-sm) var(--space-sm); border-top: 1px solid var(--line); }
  .work-index.is-open .work-index-list { display: grid; }
  .work-index-item { color: var(--ink-2); }
  .work-index-item.is-active, .work-index-item:hover { color: var(--ink); }
}

.case-sec { min-height: 128vh; padding-top: var(--space-2xl); }
.case-sec:first-child { padding-top: 0; }
.case-sec:last-child { min-height: 0; padding-bottom: var(--space-lg); }
.case-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; }

.case-visual { position: sticky; top: var(--space-xl); display: grid; gap: var(--space-md); }

/* stacked (≤1080px): the 148vh scroll-buffer above is sized for the
   desktop pin-and-scroll and isn't needed once .case-visual goes
   static — dropped for a deliberate margin between cases instead
   (Adam: wants "a bit of a gap" reading through on a phone). The
   photo/at-a-glance/Elements/text pieces are also reordered: Adam wants
   case number + title, then the at-a-glance box, then the photo, then
   the narrative (challenge/approach/outcome/why), then the Elements
   exhibit — not the desktop's "whole visual column, then whole text
   column" split. .case-visual/.case-text flatten to `display: contents`
   (the same technique as /elements' .pt-fam mobile reflow) so their
   children become directly orderable grid items of .case-inner. */
@media (max-width: 1080px){
  .case-inner { grid-template-columns: 1fr; gap: var(--space-lg); opacity: 0.4; transition: opacity 0.4s var(--ease); }
  .case-sec.is-current .case-inner { opacity: 1; }
  .case-sec { min-height: 0; padding-top: 0; margin-top: var(--space-2xl); }
  .case-sec:first-child { margin-top: 0; }

  .case-visual, .case-text { position: static; display: contents; }
  .case-head { order: 1; }
  .visual-glance { order: 2; }
  .visual-photo { order: 3; }
  .case-body { order: 4; }
  .visual-elements { order: 5; }
}

.visual-photo { aspect-ratio: 16 / 10; position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line-on-dark-strong); background: linear-gradient(155deg, var(--ink-bg-raised), var(--ink-bg)); }
/* the photo itself: grayscale + darkened so every case reads as one
   consistent moody instrument regardless of the source stock photo's own
   colors — the two accent washes below (::after) are what actually color
   it, case by case. */
.visual-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(0.6); }
.visual-photo::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, var(--line-on-dark-strong) 1px, transparent 0); background-size: 16px 16px; opacity: 0.35; mix-blend-mode: overlay; }
/* duotone wash: the case's own family hue (top-left) plus the studio's
   signature accent (bottom-right, --accent-bright — same indigo used for
   .hero-kicker etc.) so every case photo carries a shared brand thread on
   top of its own component color, not just one flat tint. */
.visual-photo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 20% 12%, var(--k), transparent 68%), radial-gradient(55% 65% at 88% 94%, var(--accent-bright), transparent 66%); opacity: 0.6; mix-blend-mode: color; }

.visual-glance { display: grid; gap: var(--space-sm); border: 1px solid var(--line-on-dark-strong); border-radius: var(--radius-lg); padding: var(--space-md); background: var(--ink-bg-raised); }
.visual-glance div { display: grid; grid-template-columns: minmax(70px, auto) 1fr; gap: var(--space-md); font-size: 0.86rem; }
.visual-glance dt { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-dark-muted); }
.visual-glance dd { margin: 0; color: var(--on-dark); text-align: left; }
.visual-glance .glance-focus { display: inline-flex; align-items: center; gap: 8px; color: var(--kb); font-weight: 500; }
.glance-focus svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.visual-elements { border: 1px solid var(--line-on-dark-strong); border-radius: var(--radius-lg); padding: var(--space-md); background: var(--ink-bg-raised); }
.visual-elements .ve-label { font-family: var(--font-mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--on-dark-muted); margin: 0 0 var(--space-sm); }
.visual-elements .el-list { margin-top: var(--space-sm); }
.visual-elements .el-list li code { color: color-mix(in srgb, var(--accent) 60%, var(--on-dark)); }

/* the mini periodic table — a compact glyph, not a legible instrument; the
   adjacent .el-list carries the legible names. Rows aren't padded to a
   common width like #periodic on /elements — each row is just its own
   family's real cell count. */
.pt-mini { display: grid; gap: 6px; }
.pt-mini-row { display: flex; align-items: center; gap: 3px; }
.pt-mini-row b { width: 24px; flex: none; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.03em; color: var(--on-dark-muted); }
.pt-mini-cell { width: 9px; height: 9px; border-radius: 2px; background: var(--line-on-dark-strong); flex: none; }
.pt-mini-cell.is-lit { background: var(--k); box-shadow: 0 0 5px var(--k); }

.case-text { opacity: 0.4; transition: opacity 0.4s var(--ease); }
.case-sec.is-current .case-text { opacity: 1; }
.case-idx { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.04em; color: color-mix(in srgb, var(--k) 60%, var(--on-dark)); margin-bottom: var(--space-sm); }
.case-text h2 { font-size: var(--fs-h2); max-width: 20ch; margin-bottom: var(--space-md); }
.case-block { margin-bottom: var(--space-lg); }
.case-block h3 { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--kb); margin: 0 0 8px; }
.case-block p { color: var(--on-dark-2); max-width: 54ch; }
.case-block ol { margin: 0; padding-left: 1.15em; color: var(--on-dark-2); display: grid; gap: 5px; max-width: 54ch; }
.case-why { font-family: var(--font-serif); font-size: clamp(1.35rem, 1.9vw, 1.65rem); line-height: 1.32; color: var(--on-dark); padding-left: var(--space-md); border-left: 2px solid var(--k); max-width: 48ch; margin: var(--space-xl) 0 var(--space-lg); }


/* ===================================================== PERFORMANCE GAP DIAGNOSTIC ==
   /performance-gap-diagnostic/. The stage (#dx) is driven by assets/js/diagnostic.js.
   Light card on a light band, below a dark hero. Family hues (--k) appear only on
   the Element table, its list, the pie and the five-condition progress line. */
.dx-band { padding-block: var(--space-xl) var(--section-y); }
.dx {
  position: relative; border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg);
  background: var(--paper-warm); color: var(--ink); box-shadow: var(--shadow-1); overflow: clip;
  min-height: 32rem;
}
.dx .f1 { --k: var(--fam-1); } .dx .f2 { --k: var(--fam-2); } .dx .f3 { --k: var(--fam-3); }
.dx .f4 { --k: var(--fam-4); } .dx .f5 { --k: var(--fam-5); }
.dx-body { padding: var(--space-xl) var(--space-lg); max-width: 52rem; margin-inline: auto; min-height: 28rem; display: flex; flex-direction: column; justify-content: center; }
.dx-body.dx-wide { max-width: 64rem; justify-content: flex-start; }
.dx-body.dx-center { text-align: center; align-items: center; }
.dx-fade { animation: dx-fade var(--dur-3) var(--ease-out) both; }
@keyframes dx-fade { from { opacity: 0; transform: translateY(0.6rem); } to { opacity: 1; transform: none; } }
.dx-mono { font-family: var(--font-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--tracking-label); margin: 0 0 var(--space-xs); }
.dx-accent { color: var(--accent); }
.dx-small { font-size: var(--fs-small); color: var(--muted); margin-left: var(--space-sm); }
.dx-note { font-size: 0.82rem; color: var(--muted); margin: var(--space-2xs) 0 0; max-width: 62ch; }
.dx-disc { max-width: 56ch; color: var(--ink-2); margin: 0 0 var(--space-md); }
/* Begin in the accent, as on the /elements card (D225); hover keeps the light-page glow */
.dx-begin { --cta-fill: var(--accent); --cta-on-fill: var(--on-dark); --cta-disc: var(--paper-warm); --cta-on-disc: var(--accent); }
.dx [data-focus]:focus { outline: none; }
.dx-q { font-family: var(--font-serif); font-weight: var(--weight-heading); font-variation-settings: var(--fvs-heading); font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: var(--lh-tight); letter-spacing: var(--tracking-h3); margin: 0 0 var(--space-lg); text-wrap: balance; }
.dx-q--intro { font-size: var(--fs-h3); margin-bottom: var(--space-sm); }
.dx-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: var(--fs-small); color: inherit; opacity: 0.75; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.dx-linkbtn:hover { opacity: 1; color: var(--accent); }
.dx-resume { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); align-items: center; font-size: var(--fs-small); padding: calc(var(--space-xs) + 1.6rem) var(--space-lg) var(--space-xs); background: var(--accent-mist); border-bottom: 1px solid var(--hairline); }
.dx button:focus-visible, .dx a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* progress: one line, five condition colors, no names */
.dx-prog { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.dx-prog .dx-mono { margin: 0; }
.dx-line { flex: 1; display: flex; gap: 4px; height: 4px; width: 100%; }
.dx-line s { display: block; background: var(--hairline); border-radius: 2px; overflow: hidden; text-decoration: none; }
.dx-line b { display: block; height: 100%; background: var(--k); transition: width var(--dur-2) var(--ease); }
.dx-line--full { margin-bottom: var(--space-2xl); }

/* chapter card */
.dx-chap-title { font-family: var(--font-serif); font-weight: var(--weight-heading); font-variation-settings: var(--fvs-heading); font-size: var(--fs-h2); color: var(--k); margin: var(--space-2xs) 0 var(--space-xs); letter-spacing: var(--tracking-heading); }
.dx-chap .dx-mono { color: var(--k); }
.dx-chap p:not(.dx-mono) { color: var(--ink-2); max-width: 44ch; margin: 0 0 var(--space-md); }
.dx-chap-btn { --cta-fill: var(--k); --cta-accent: var(--ink); --cta-on-fill: #fff; --cta-disc: var(--paper-warm); --cta-on-disc: var(--ink); }

/* the scale: five answers on one line, gradient track behind */
.dx-scale { position: relative; display: flex; justify-content: space-between; padding-inline: 0.4rem; }
.dx-scale::before { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 1.05rem; height: 2px; background: linear-gradient(90deg, var(--fam-5), var(--fam-4), var(--fam-3)); opacity: 0.5; }
.dx-opt { position: relative; background: none; border: 0; display: grid; justify-items: center; gap: 0.5rem; width: 5rem; font: inherit; font-size: 0.85rem; color: var(--ink); cursor: pointer; padding: 0; }
.dx-opt b { width: 2.2rem; height: 2.2rem; border-radius: var(--radius-pill); background: var(--paper-warm); border: 2px solid var(--line-strong); transition: border-color var(--dur-1) var(--ease), background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.dx-opt:hover b { border-color: var(--k); transform: scale(1.12); }
.dx-opt.is-sel b { background: var(--k); border-color: var(--k); }
.dx-kbd { font-family: var(--font-mono); font-size: 0.66rem; opacity: 0.5; }
.dx-ends { display: flex; justify-content: space-between; margin-top: var(--space-xl); gap: var(--space-sm); flex-wrap: wrap; }

/* processing */
.dx-steps-anim { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: var(--tracking-label); text-transform: uppercase; display: grid; gap: 0.5rem; justify-items: center; min-height: 4.5rem; }
.dx-steps-anim div { opacity: 0; animation: dx-fade var(--dur-3) var(--ease-out) forwards; }

/* results */
.dx-special { border-left: 3px solid var(--accent); padding: var(--space-xs) var(--space-sm); background: var(--accent-mist); border-radius: 0 var(--radius-lg) var(--radius-lg) 0; margin: var(--space-xs) 0 var(--space-sm); max-width: 62ch; }
.dx-res { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-xl); align-items: center; margin-top: var(--space-md); }
.dx-res--tbl { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: start; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--hairline-strong); }
.dx-pie { width: 100%; max-width: 21rem; display: block; margin: auto; overflow: visible; }
.dx-ring { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 4; }
.dx-ring.is-edge { stroke-dasharray: none; }
.dx-wedge { fill: var(--k); fill-opacity: 0.08; stroke: var(--line-strong); stroke-width: 1; }
.dx-slice { fill: var(--k); stroke: var(--paper-warm); stroke-width: 2; transform-box: view-box; transform-origin: 160px 160px; transform: scale(0); transition: transform var(--dur-4) var(--ease-out); }
.dx-slice.is-grown { transform: scale(var(--s)); }
.dx-plabel { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; fill: var(--ink-2); }
.dx-legend { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: grid; gap: var(--space-xs); font-size: var(--fs-body); }
.dx-legend li { display: flex; gap: 0.6rem; align-items: center; }
.dx-legend i { width: 0.7rem; height: 0.7rem; border-radius: 2px; background: var(--k); flex: none; }
.dx-legend b { font-weight: var(--weight-strong); }

.dx-grid { display: grid; gap: 0.4rem; }
.dx-grow { display: grid; grid-template-columns: 1fr; gap: 0.2rem; }
.dx-gl { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.dx-gcells { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.dx-cell { position: relative; width: 2.3rem; height: 2.3rem; padding: 0; border-radius: 6px; display: grid; place-items: center; cursor: pointer; font-family: var(--font-mono); font-size: 0.72rem; border: 1px solid color-mix(in srgb, var(--k) 45%, transparent); color: color-mix(in srgb, var(--k) 70%, var(--ink)); background: color-mix(in srgb, var(--k) 7%, transparent); transition: background var(--dur-3) var(--ease), color var(--dur-3) var(--ease), transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease); }
.dx-cell.is-on { background: var(--k); color: #fff; border-color: var(--k); transform: scale(1.06); box-shadow: 0 4px 14px color-mix(in srgb, var(--k) 40%, transparent); }
.dx-cell.is-read { outline: 2px solid var(--ink); outline-offset: 2px; }
.dx-elist { display: grid; }
.dx-erow { display: flex; gap: 0.6rem; align-items: center; width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--hairline); padding: 0.5rem 0.25rem; font: inherit; font-size: var(--fs-small); color: var(--ink); cursor: pointer; }
.dx-erow i { flex: none; width: 0.6rem; height: 0.6rem; border-radius: 2px; background: var(--k); }
.dx-ec { font-family: var(--font-mono); font-size: 0.68rem; opacity: 0.6; flex: none; width: 3rem; }
.dx-erow:hover, .dx-erow.is-read { background: color-mix(in srgb, var(--k) 14%, transparent); }
.dx-detail { margin-top: var(--space-sm); border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg); padding: var(--space-sm) var(--space-md); background: var(--paper); min-height: 7rem; }
.dx-detail p { font-size: var(--fs-small); color: var(--ink-2); margin: 0; max-width: 60ch; }
.dx-detail .dx-hint { color: var(--muted); }
.dx-tag { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--k); }
.dx-dn { font-family: var(--font-serif); font-size: var(--fs-h4); margin: 0.15rem 0 0.25rem; }

.dx-write { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-xl); margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--hairline-strong); align-items: start; }
.dx-write h3, .dx-cta h3 { font-family: var(--font-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--tracking-label); font-weight: 500; color: var(--accent); margin: 0 0 var(--space-xs); }
.dx-write-lead { position: sticky; top: calc(var(--nav-height) + var(--space-md)); }
.dx-nar { font-family: var(--font-serif); font-variation-settings: var(--fvs-heading); font-size: var(--fs-h4); line-height: var(--lh-tight); margin: 0; max-width: 34ch; }
.dx-seq { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: dx-step; }
.dx-seq li { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: var(--space-sm); counter-increment: dx-step; padding-block: var(--space-sm); border-bottom: 1px solid var(--hairline); line-height: var(--lh-body); }
.dx-seq li:first-child { padding-top: 0; }
.dx-seq li::before { content: counter(dx-step); width: 1.75rem; height: 1.75rem; border-radius: var(--radius-pill); background: var(--k); color: #fff; font-family: var(--font-mono); font-size: 0.75rem; display: grid; place-items: center; margin-top: 0.1rem; }
.dx-seq p { margin: 0; color: var(--ink-2); }
.dx-seq b { font-weight: var(--weight-strong); color: var(--ink); }
.dx-cta { margin-top: var(--space-xl); padding: var(--space-md) var(--space-lg); border-radius: var(--radius-lg); background: var(--ink-bg); color: var(--on-dark); display: flex; gap: var(--space-md); align-items: center; justify-content: space-between; flex-wrap: wrap;
  --cta-fill: var(--paper-warm); --cta-on-fill: var(--ink); --cta-label: var(--on-dark-2); --cta-accent: var(--accent-bright); --cta-glow: 0 14px 38px rgba(122, 92, 255, 0.4); }
.dx-cta h3 { font-family: var(--font-serif); font-size: var(--fs-h3); text-transform: none; letter-spacing: var(--tracking-h3); font-weight: var(--weight-heading); color: var(--on-dark); margin-bottom: 0.25rem; }
.dx-cta p { font-size: var(--fs-small); color: var(--on-dark-2); max-width: 56ch; margin: 0; }
.dx-cta .dx-linkbtn:hover { color: var(--accent-bright); }
.dx-acts { display: flex; gap: var(--space-sm); align-items: center; flex-wrap: wrap; }
.dx-status { font-size: var(--fs-small); color: var(--ink-2); margin: var(--space-xs) 0 0; min-height: 1.4em; }
.dx-sendbox:not(:empty) { margin-top: var(--space-md); }
.dx-form { display: grid; gap: var(--space-sm); padding: var(--space-md) var(--space-lg); border: 1px solid var(--hairline-strong); border-radius: var(--radius-lg); background: var(--paper); }
.dx-form h3 { font-family: var(--font-serif); font-weight: var(--weight-heading); font-variation-settings: var(--fvs-heading); font-size: var(--fs-h4); margin: 0; }
.dx-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.dx-form label { display: block; font-size: var(--fs-small); color: var(--ink-2); margin-bottom: 0.25rem; }
.dx-form input[type=text], .dx-form input[type=email], .dx-form textarea { width: 100%; font: inherit; font-size: var(--fs-body); color: var(--ink); background: var(--paper-warm); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 0.55rem 0.7rem; }
.dx-form textarea { resize: vertical; }
.dx-form input:focus-visible, .dx-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.dx-consent { display: flex !important; gap: 0.6rem; align-items: flex-start; margin: 0 !important; }
.dx-consent input { margin-top: 0.3rem; flex: none; }
.dx-hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dx-ts { min-height: 4rem; }
.dx-form-actions { display: flex; gap: var(--space-md); align-items: center; flex-wrap: wrap; }
.dx-sent { font-family: var(--font-serif); font-size: var(--fs-h4); margin: 0; padding: var(--space-sm) 0; }
.dx-sent:focus { outline: none; }
.dx-status a { color: var(--accent); }

@media (max-width: 760px) {
  .dx-res, .dx-res--tbl, .dx-write { grid-template-columns: 1fr; gap: var(--space-md); }
  .dx-write-lead { position: static; }
  .dx-body { padding: var(--space-lg) var(--space-md); }
  .dx-opt { width: 3.6rem; font-size: 0.72rem; }
  .dx-cell { width: 2.2rem; height: 2.2rem; }
  .dx-cta { padding: var(--space-md); }
  .dx-fields { grid-template-columns: 1fr; }
  .dx-form { padding: var(--space-md); }
}
@media (prefers-reduced-motion: reduce) {
  .dx-fade, .dx-blurin, .dx-scan, .dx-steps-anim div { animation: none; opacity: 1; }
  .dx-slice { transition: none; }
}

/* ======================================================================= LEGAL TEXT ==
   /privacy/. Plain long-form prose on a light band. */
.legal { color: var(--ink-2); }
.legal-date { font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: var(--tracking-caption); color: var(--muted); margin: 0 0 var(--space-lg); }
.legal h2 { font-family: var(--font-serif); font-weight: var(--weight-heading); font-variation-settings: var(--fvs-heading); font-size: var(--fs-h3); line-height: var(--lh-heading); letter-spacing: var(--tracking-h3); color: var(--ink); margin: var(--space-xl) 0 var(--space-sm); }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-family: var(--font-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--tracking-label); font-weight: 500; color: var(--accent); margin: var(--space-md) 0 var(--space-2xs); }
.legal p, .legal li { line-height: var(--lh-body); }
.legal p { margin: 0 0 var(--space-sm); }
.legal ul { margin: 0 0 var(--space-sm); padding-left: 1.2em; display: grid; gap: var(--space-2xs); }
.legal a { color: var(--accent); }
.legal b { font-weight: var(--weight-strong); color: var(--ink); }

/* ---- Bezel (D209): corner marks and two mono strips over the frame. Static markup outside #dx;
   diagnostic.js sets data-phase and the question readout. Decorative, aria-hidden. ---- */
.dx-band .wrap { position: relative; }
.dx-bezel { position: absolute; inset: 0; pointer-events: none; z-index: 2; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.dx-corner { position: absolute; width: var(--space-sm); height: var(--space-sm); border: 0 solid var(--accent); }
.dx-corner--tl { top: var(--space-xs); left: var(--space-xs); border-top-width: 1.5px; border-left-width: 1.5px; }
.dx-corner--tr { top: var(--space-xs); right: var(--space-xs); border-top-width: 1.5px; border-right-width: 1.5px; }
.dx-corner--bl { bottom: var(--space-xs); left: var(--space-xs); border-bottom-width: 1.5px; border-left-width: 1.5px; }
.dx-corner--br { bottom: var(--space-xs); right: var(--space-xs); border-bottom-width: 1.5px; border-right-width: 1.5px; }
.dx-bz { position: absolute; left: var(--space-lg); right: var(--space-lg); display: flex; justify-content: space-between; gap: var(--space-sm); }
.dx-bz--top { top: var(--space-xs); }
.dx-live { display: inline-flex; align-items: center; gap: var(--space-xs); }
.dx-live i { width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--fam-5); animation: dx-blink 2.4s var(--ease) infinite; }
.dx-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; opacity: 0; background: linear-gradient(90deg, transparent, var(--accent-bright), transparent); transform: translateX(-100%); }
.dx-scan.is-go { animation: dx-scan var(--dur-4) var(--ease-out) 1; }
@keyframes dx-scan { from { transform: translateX(-100%); opacity: 0.9; } to { transform: translateX(100%); opacity: 0; } }
@keyframes dx-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .dx-live i { animation: none; } }   /* after the base rule, or it loses on source order */
.dx-bezel[data-phase="compute"] .dx-bz { visibility: hidden; }
.dx-bezel[data-phase="result"] .dx-live { visibility: hidden; }
@media (max-width: 680px) { .dx-bz-long { display: none; } .dx-bz { left: var(--space-md); right: var(--space-md); } }
/* question text: blur out on answer, blur in when the next one is drawn (D209) */
.dx-blurin { animation: dx-blurin var(--dur-3) var(--ease-out) backwards; }
@keyframes dx-blurin { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }
.dx-q { transition: opacity var(--dur-2) var(--ease), filter var(--dur-2) var(--ease); }
.dx-q.is-out { opacity: 0; filter: blur(8px); }

/* home closing: the Diagnostic card beside a stack of sample report pages */
.pgd--split .pgd-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-2xl); align-items: center; justify-content: stretch; }
/* one long sample report page with numbered callouts */
.report-page { position: relative; margin: 0; --lx: calc(100% - 5px); }
.report-page img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius); background: var(--paper-warm);
  box-shadow: 0 18px 40px rgba(20, 24, 43, 0.16);
}
.rp-notes { list-style: none; margin: 0; padding: 0; }
.rp-notes li { position: absolute; top: var(--y); left: var(--lx); transform: translateY(-50%); display: flex; align-items: center; white-space: nowrap; }
.rp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent); flex: none; }
.rp-line { width: var(--space-md); height: 2px; background: var(--accent); flex: none; }
.rp-chip {
  padding: 5px var(--space-xs); border-radius: var(--radius); background: var(--accent);
  font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--on-dark); box-shadow: 0 6px 16px rgba(20, 24, 43, 0.22);
}
.rp-chip b { color: var(--on-dark-2); font-weight: 400; margin-right: 0.5em; }
.rp-mark { margin: var(--space-sm) 0 0; font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: 0.04em; color: var(--text-muted); }
.pgd--split .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-2xl); align-items: center; }
.pgd--split .sec-head { grid-column: 1; margin-bottom: var(--space-lg); max-width: none; }
.pgd--split .pgd-grid { display: contents; }
.pgd--split .pgd-panel { grid-column: 1; }
.pgd--split .report-page { grid-column: 2; grid-row: 1 / span 2; justify-self: start; width: 18rem; }
@media (max-width: 860px){
  .pgd--split .wrap { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-lg); }
  .pgd--split .sec-head, .pgd--split .pgd-panel, .pgd--split .report-page { grid-column: 1; grid-row: auto; }
  .pgd--split .report-page { width: 60%; margin-top: var(--space-lg); justify-self: start; }
  .rp-notes li { white-space: normal; width: 8.2rem; }
  .rp-chip { font-size: 0.58rem; padding: 3px 6px; line-height: 1.25; flex: 1; min-width: 0; }
  .rp-line { width: var(--space-sm); }
}

/* Diagnostic start screen: text beside the annotated sample report (shown unless the visitor came via Begin) */
.dx-body.dx-intro { max-width: 64rem; display: grid; grid-template-columns: minmax(0, 1fr) 33rem; column-gap: var(--space-md); align-items: center; }
.dx-intro .report-page { width: 18rem; }
@media (max-width: 860px) {
  .dx-body.dx-intro { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-lg); }
  .dx-intro .report-page { width: 60%; }
}
.dx-intro .dx-small { white-space: nowrap; }
