/* The Impact CTO site (design live since 22 November 2026):
   Tokens from tasteskill `start.mjs brand` (logo colours), structure from
   Meng To's operational-enterprise-ai system: hairline grids, mono labels, low radii,
   hard chapter handoffs. Round 2: each chapter gets its own ground in the logo's family. */

:root {
  --p-bg: #0e0d0b; --p-surface: #181613; --p-ink: #f3eee6; --p-muted: #a39b8f;
  --p-accent: #ec9200; --p-accent-ink: #0e0d0b;
  --p-inv-bg: #f3eee6; --p-inv-surface: #e0dcd4; --p-inv-ink: #0e0d0b; --p-inv-muted: #5a5854;

  /* chapter grounds, all mixed from the logo orange */
  --cream: #f3eee6;
  --amber: #f1d7ac;          /* 25% logo orange into cream */
  --amber-muted: #5c4a33;
  --rust: #6e3500;           /* the logo orange taken down to a deep burnt amber */
  --orange-deep: #a65500;    /* orange text on light grounds (5:1 on cream) */
  --orange-light: #ffb547;   /* orange text on rust (5.3:1) */

  --line: rgba(243, 238, 230, 0.14);
  --line-inv: rgba(14, 13, 11, 0.16);

  --font-display: "Instrument Sans", system-ui, sans-serif;
  --font-text: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --display-tracking: -0.028em;
  --display-tracking-xl: -0.036em;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 6px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;

  --fs-hero: clamp(2.5rem, min(0.9rem + 3.5vw, 7.8vh), 5rem);
  --fs-h2: clamp(2rem, 1.2rem + 2.6vw, 3.75rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  --fs-body: 1.0625rem;
  --fs-label: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--p-bg);
  color: var(--p-ink);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-stretch: 96%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure, blockquote, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--p-accent); color: var(--p-accent-ink);
  padding: 10px 16px; border-radius: var(--radius); font-weight: 600;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 3px; }
.chapter--light :focus-visible, .close :focus-visible { outline-color: var(--p-inv-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--p-muted);
  line-height: 1.5;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: var(--display-tracking-xl);
  text-wrap: balance;
}
.h3 { font-weight: 500; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--p-ink); max-width: 38em; }
.aside { color: var(--p-muted); max-width: 40em; }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 500 0.9375rem/1 var(--font-text); letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: background-color 180ms var(--ease), color 180ms var(--ease),
              border-color 180ms var(--ease), transform 180ms var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--accent { background: var(--p-accent); color: var(--p-accent-ink); }
.btn--accent:hover { background: #ffa51f; }
.btn--ghost { border-color: var(--line); color: var(--p-ink); }
.btn--ghost:hover { border-color: var(--p-ink); }
.btn--dark { background: var(--p-inv-ink); color: var(--p-inv-bg); }
.btn--dark:hover { background: #2a2622; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1rem; }

.link {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px;
  font-weight: 500; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 0 1px no-repeat;
  transition: background-size 260ms var(--ease);
}
.link:hover { background-size: 100% 1px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background-color 240ms var(--ease), border-color 240ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.nav--solid { background: rgba(14, 13, 11, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.nav__row { height: 100%; display: flex; align-items: center; gap: 32px; }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-height: 44px; }
.nav__logo { width: 36px; height: 36px; border-radius: 4px; }
.nav__name { font-weight: 500; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; color: var(--p-muted); font-size: 0.9375rem; transition: color 180ms; padding: 12px 0; }
.nav__links a:hover { color: var(--p-ink); }
.nav__cta { min-height: 40px; padding: 0 18px; }
.nav__toggle { display: none; }
.menu { display: none; }

/* before scrolling, the links and button sit on the orange half of the hero */
@media (min-width: 901px) {
  .nav:not(.is-scrolled):not(.nav--solid) .nav__links a { color: rgba(14, 13, 11, 0.7); }
  .nav:not(.is-scrolled):not(.nav--solid) .nav__links a:hover { color: var(--p-inv-ink); }
  .nav:not(.is-scrolled):not(.nav--solid) .nav__cta { background: var(--p-inv-ink); color: var(--p-inv-bg); }
  .nav:not(.is-scrolled):not(.nav--solid) :focus-visible { outline-color: var(--p-inv-ink); }
}

@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--p-ink); font: 500 0.875rem var(--font-text); cursor: pointer;
  }
  /* the nav's backdrop blur makes it the containing block for anything fixed inside it,
     so the menu hangs off the nav's bottom edge with its own full height */
  .menu:not([hidden]) {
    display: flex; flex-direction: column; gap: 8px;
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--nav-h));
    overflow-y: auto; overscroll-behavior: contain; padding: 24px var(--gutter) 40px;
    background: var(--p-bg); border-top: 1px solid var(--line);
  }
  .nav:has(.menu:not([hidden])) { background: var(--p-bg); }
  .menu a:not(.btn) {
    font-size: 2rem; letter-spacing: var(--display-tracking); text-decoration: none;
    padding: 12px 0; border-bottom: 1px solid var(--line);
  }
  .menu .btn { margin-top: 24px; min-height: 56px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100svh;
}
.hero__copy {
  display: flex; flex-direction: column; justify-content: center; gap: 26px;
  padding: calc(var(--nav-h) + 40px) clamp(24px, 4vw, 64px) 56px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-hero);
  line-height: 1.0;
  letter-spacing: var(--display-tracking-xl);
  text-wrap: balance;
}
.hero__title em { font-style: normal; color: var(--p-accent); }
.hero__lede { color: var(--p-muted); font-size: var(--fs-lead); line-height: 1.5; max-width: 36em; }
.hero__lede strong { color: var(--p-ink); font-weight: 500; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__creds { max-width: 46em; padding-top: 20px; border-top: 1px solid var(--line); }

.hero__stage {
  position: relative; overflow: hidden;
  background: var(--p-accent);
  min-height: 100%;
}
.hero__poster {
  position: absolute; left: 50%; top: 50%; width: 86%;
  transform: translate(-50%, -50%);
  transition: opacity 600ms var(--ease);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 700ms var(--ease); }
.hero.is-3d .hero__canvas { opacity: 1; }
.hero.is-3d .hero__poster { opacity: 0; }

/* intro: the stage covers the whole hero as the logo; the copy waits behind the lenses */
.intro-pending .hero__stage { position: absolute; inset: 0; z-index: 2; }
.intro-pending .hero__poster { width: 52%; }
.intro-pending .hero__canvas { transition: none; }
.intro-pending .hero__copy { visibility: hidden; }
.intro-pending .nav { opacity: 0; pointer-events: none; }
.hero.is-intro.is-3d .hero__stage { background: transparent; }
.hero.is-intro .hero__copy { visibility: visible; }
.nav { transition: opacity 600ms var(--ease), background-color 240ms var(--ease), border-color 240ms var(--ease); }
.hero.is-wiping .hero__stage { animation: stage-wipe 1.1s var(--ease) both; }
@keyframes stage-wipe { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }

.hero__byline { display: none; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto; min-height: 0; }
  .hero__stage { order: -1; height: 36svh; min-height: 250px; margin-top: var(--nav-h); }
  .hero__copy { padding: 36px var(--gutter) 64px; gap: 22px; }
  .hero__poster { width: 88%; }

  /* home on phones and tablets: no 3D glasses; the hero opens with who you would be talking to */
  .hero:not(.hero--dx):not(.hero--ab) { min-height: 100svh; }
  .hero:not(.hero--dx):not(.hero--ab) .hero__stage { display: none; }
  .hero:not(.hero--dx):not(.hero--ab) .hero__copy { justify-content: center; padding: calc(var(--nav-h) + 32px) var(--gutter) 48px; gap: 24px; }
  .hero:not(.hero--dx):not(.hero--ab) .hero__eyebrow { display: none; }
  .hero__byline { display: flex; align-items: center; gap: 14px; }
  .hero--dx .hero__byline, .hero--ab .hero__byline { display: none; }
  .hero__byline img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--p-bg), 0 0 0 4px var(--p-accent); }
  .hero__byline p { display: flex; flex-direction: column; gap: 6px; }
  .hero__byline-name { font-weight: 500; font-size: 1.0625rem; line-height: 1.2; }
  .hero__byline .label { color: var(--p-muted); }
  .hero__creds { line-height: 1.7; }
}
@media (max-width: 600px) {
  .hero__lede-more { display: none; } /* said again in How it works */
}

/* ---------- chapters ---------- */
.chapter { padding: clamp(96px, 14vh, 160px) 0; min-height: 100svh; display: flex; align-items: center; }
.chapter > .wrap { width: 100%; }
.chapter--dark + .chapter--dark { border-top: 1px solid var(--line); }
.chapter--light { background: var(--cream); color: var(--p-inv-ink); }
.chapter--light .label, .chapter--light .aside { color: var(--p-inv-muted); }
.chapter--light .lead { color: var(--p-inv-ink); }
.chapter--amber { background: var(--amber); }
.chapter--amber .label, .chapter--amber .aside { color: var(--amber-muted); }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__head { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--nav-h) + 32px); }
.split__body { display: flex; flex-direction: column; gap: 36px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split__head { position: static; }
}

/* ---------- 01 questions (cream) ---------- */
.chapter--cream .h2 { font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4.5rem); }
.chapter--cream .h2::after {
  content: ""; display: block; width: 72px; height: 6px; margin-top: 28px;
  background: var(--p-accent); border-radius: 1px;
}
.qlist { border-top: 1px solid var(--line-inv); }
.qlist li {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: baseline;
  padding: 22px 0 22px 0; border-bottom: 1px solid var(--line-inv);
  transition: padding-left 320ms var(--ease);
}
.qlist li::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 4px;
  background: var(--p-accent); transform: scaleY(0); transform-origin: top;
  transition: transform 320ms var(--ease);
}
.qlist li:hover { padding-left: 20px; }
.qlist li:hover::before { transform: scaleY(1); }
.qlist p { font-size: var(--fs-lead); line-height: 1.45; letter-spacing: -0.01em; }
.chapter--light .qlist__n { color: var(--orange-deep); font-weight: 500; }

/* ---------- 02 track record (amber) ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(56px, 8vh, 96px);
}
.stat { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 16px; padding: 32px 28px 36px 0; border-bottom: 1px solid var(--line-inv); }
.stat::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--p-inv-ink); transform-origin: left;
}
.stat + .stat { border-left: 1px solid var(--line-inv); padding-left: 28px; }
.stat + .stat::before { left: 28px; }
.stat__n {
  font-size: clamp(3rem, 1.6rem + 4.4vw, 6rem); line-height: 0.95;
  letter-spacing: -0.045em; font-variant-numeric: tabular-nums;
}
.stat__plus { color: var(--orange-deep); }
html.js .stat::before { transform: scaleX(0); transition: transform 1.1s var(--ease); }
html.js .stat.is-in::before { transform: scaleX(1); }
.stat dt { max-width: 22em; }

.records {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: clamp(40px, 6vh, 72px);
}
.record { display: flex; flex-direction: column; gap: 12px; padding: 0 28px 0 0; }
.record + .record { padding-left: 28px; border-left: 1px solid var(--line-inv); }
.record .h3::before {
  content: ""; display: block; width: 28px; height: 3px; margin-bottom: 16px; background: var(--orange-deep);
}
.record p { color: #3d3428; font-size: 0.975rem; }

.logos { margin-top: clamp(48px, 7vh, 88px); display: flex; flex-direction: column; gap: 20px; }
.logos__row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px; }
.logos__row img { height: 30px; width: auto; mix-blend-mode: multiply; transition: transform 240ms var(--ease); }
.logos__row img:hover { transform: translateY(-2px); }

@media (max-width: 1024px) {
  .records { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .record:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 24px 0; border-left: 0; }
  .stat + .stat::before { left: 0; }
  .records { grid-template-columns: 1fr; }
  .record, .record + .record { padding: 0; border-left: 0; }
  .logos__row { gap: 20px 32px; }
  .logos__row img { height: 24px; }
}

/* ---------- 03 how it works (dark, pinned on desktop) ---------- */
#how { padding: clamp(88px, 11vh, 128px) 0 clamp(64px, 9vh, 112px); }
.steps { margin-top: clamp(40px, 6vh, 72px); display: flex; flex-direction: column; gap: 28px; }
/* solid to step 3; dotted after it, as step 3 is optional */
.steps__rail {
  --opt: calc((100% + clamp(24px, 4vw, 56px)) * 2 / 3); /* the step 3 dot */
  position: relative; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--line) var(--opt), transparent 0), repeating-linear-gradient(90deg, var(--line) 0 3px, transparent 3px 9px);
}
.steps__fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--p-accent) var(--opt), transparent 0), repeating-linear-gradient(90deg, var(--p-accent) 0 3px, transparent 3px 9px);
}
.steps__dot {
  position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  background: var(--p-bg); border: 2px solid var(--p-muted);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}
.steps__dot:nth-of-type(2) { left: 0; }
.steps__dot:nth-of-type(3) { left: calc((100% + clamp(24px, 4vw, 56px)) / 3); }
.steps__dot:nth-of-type(4) { left: calc((100% + clamp(24px, 4vw, 56px)) * 2 / 3); }
.steps__dot:nth-of-type(4) { border-style: dashed; }
.steps__dot.is-on { background: var(--p-accent); border-color: var(--p-accent); border-style: solid; transform: scale(1.25); }
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); width: 100%; }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.step__big {
  font-size: clamp(4.5rem, 2rem + 6vw, 8.5rem); line-height: 0.85; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 238, 230, 0.35);
  margin-bottom: 12px; transition: color 500ms var(--ease), -webkit-text-stroke-color 500ms var(--ease);
}
.step p { color: var(--p-muted); }
html.js .step { opacity: 0.38; transition: opacity 500ms var(--ease), border-color 400ms var(--ease); }
html.js .step.is-on { opacity: 1; }
.step .h3 { transition: color 400ms var(--ease); }
.step.is-on .step__big { color: var(--p-accent); -webkit-text-stroke-color: var(--p-accent); }
.step.is-on .h3 { color: var(--p-accent); }
.steps__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-top: 12px; }

html.js .steps__fill { clip-path: inset(0 100% 0 0); }
@media (max-width: 820px) {
  .steps__rail { display: none; }
  .steps__list { grid-template-columns: 1fr; gap: 40px; }
  .step { padding-left: 24px; border-left: 2px solid var(--line); transition: border-color 400ms var(--ease); }
  .step.is-on { border-left-color: var(--p-accent); }
  .step:nth-child(3) { border-left-style: dashed; }
  .step__big { font-size: 4.5rem; }
}

/* ---------- 04 quote (rust, scroll-lit words) ---------- */
.chapter--quote { background: var(--rust); color: var(--p-ink); position: relative; overflow: hidden; }
.chapter--quote .label { color: rgba(243, 238, 230, 0.62); }
.quote { position: relative; display: flex; flex-direction: column; gap: 32px; max-width: 1120px; }
.quote__mark {
  position: absolute; left: -0.08em; top: -0.42em; z-index: 0;
  font-size: clamp(14rem, 10rem + 16vw, 30rem); line-height: 1; color: var(--p-accent);
  opacity: 0.22; pointer-events: none; user-select: none;
}
.quote > *:not(.quote__mark) { position: relative; z-index: 1; }
.quote__text {
  font-size: clamp(2rem, 1rem + 3.2vw, 4.25rem); line-height: 1.1; letter-spacing: var(--display-tracking-xl);
}
.quote__text mark { background: none; color: var(--orange-light); }
.quote__by { display: flex; flex-direction: column; gap: 4px; padding-top: 20px; border-top: 1px solid rgba(243, 238, 230, 0.24); font-weight: 500; font-size: 1.125rem; }

/* scroll-scrubbed-word-reveal tokens */
.sw {
  --wp: 1;
  display: inline-block;
  opacity: calc(0.16 + 0.84 * var(--wp));
  filter: blur(calc((1 - var(--wp)) * 6px));
  transform: translateY(calc((1 - var(--wp)) * 0.16em));
}

/* ---------- 05 about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--p-inv-surface); }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1); transition: filter 600ms var(--ease), transform 900ms var(--ease); }
.about__photo:hover img { filter: grayscale(0); transform: scale(1.025); }
.about__body { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.about__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 8px; }
#about { min-height: 80svh; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 240px; }
}

/* ---------- 06 insights (cards with orange duotone photos) ---------- */
.posts__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 6vh, 64px); }
.posts__title { display: flex; flex-direction: column; gap: 20px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.post {
  position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%;
  padding: 14px 14px 22px; border-radius: 10px; text-decoration: none;
  background: var(--p-surface); border: 1px solid var(--line);
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), background-color 320ms var(--ease);
}
.post:hover { transform: translateY(-4px); border-color: var(--p-accent); }
.post__img { display: block; aspect-ratio: 9 / 6.4; overflow: hidden; border-radius: 6px; background: var(--p-accent); margin-bottom: 6px; }
.post__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply;
  transition: transform 700ms var(--ease), filter 500ms var(--ease);
}
.post:hover .post__img img { transform: scale(1.04); filter: grayscale(0.2) contrast(1.05); }
.post__date { padding: 0 6px; }
.post__t { padding: 0 6px; font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.75rem); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.post__go { margin-top: auto; padding: 8px 6px 0; color: var(--p-accent); font-weight: 500; font-size: 0.9375rem; transition: transform 300ms var(--ease); }
.post:hover .post__go { transform: translateX(6px); }
.post__s { padding: 0 6px; color: var(--p-muted); font-size: 0.9375rem; line-height: 1.5; }
@media (max-width: 900px) {
  .posts { grid-template-columns: 1fr; }
  .posts__head { flex-direction: column; align-items: flex-start; }
}

/* ---------- close: the logo's own ground ---------- */
.close { background: var(--p-accent); color: var(--p-accent-ink); padding: clamp(96px, 16vh, 180px) 0; }
.close__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.close__mark { width: clamp(120px, 14vw, 200px); }
.close__title { font-weight: 400; font-size: clamp(2.75rem, 1.2rem + 5vw, 6.5rem); line-height: 1; letter-spacing: var(--display-tracking-xl); }
.close__text { font-size: var(--fs-lead); max-width: 30em; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer__row { display: grid; grid-template-columns: 1fr auto; gap: 40px 64px; align-items: end; }
.footer__brand { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.footer__brand img { border-radius: 3px; }
.footer__legal { grid-column: 1 / -1; }
.subscribe { display: flex; flex-direction: column; gap: 12px; }
.subscribe__row { display: flex; gap: 8px; }
.subscribe input {
  min-height: 48px; min-width: 0; width: 280px; padding: 0 16px;
  background: var(--p-surface); color: var(--p-ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 0.9375rem;
}
.subscribe input::placeholder { color: var(--p-muted); }
@media (max-width: 700px) {
  .footer__row { grid-template-columns: 1fr; }
  .subscribe input { width: auto; flex: 1; }
}

/* ---------- diagnostic page ---------- */
.chapter--auto { min-height: 0; }
.nav__links a[aria-current="page"] { color: var(--p-ink); }
@media (min-width: 901px) {
  .nav:not(.is-scrolled):not(.nav--solid) .nav__links a[aria-current="page"] { color: var(--p-inv-ink); }
}
.chapter--dark .h3 + p, .chapter--dark article p { color: var(--p-muted); }

/* hero: the sample deliverable on the logo's orange */
.dx-stage { display: flex; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 32px) 7% 80px; }
/* the pack: four deliverables fanned on the orange */
.dx-pack { position: relative; width: 100%; max-width: 720px; aspect-ratio: 10 / 9; }
.dx-doc {
  position: absolute; margin: 0; rotate: var(--r, 0deg);
  transition: translate 500ms var(--ease), scale 500ms var(--ease);
}
.dx-doc__in {
  position: relative; width: 100%; height: 100%; border-radius: 6px; background: #fbf7f0; overflow: visible;
  box-shadow: 0 40px 70px -30px rgba(70, 32, 0, 0.55), 0 12px 24px -8px rgba(70, 32, 0, 0.26);
}
.dx-doc:hover { translate: 0 -10px; scale: 1.03; z-index: 9; }
.dx-doc__tag {
  position: absolute; left: 12px; top: -13px; z-index: 2; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px; background: var(--p-bg); color: var(--p-ink);
  font: 500 0.6875rem/1 var(--font-mono); letter-spacing: 0.04em;
}
.dx-doc--report { left: 1%; top: 4%; width: 37%; aspect-ratio: 1 / 1.38; z-index: 1; }
.dx-doc--report .dx-doc__in { box-shadow: 7px 7px 0 -1px #ece4d6, 14px 14px 0 -2px #e0d6c4, 0 40px 70px -30px rgba(70, 32, 0, 0.55); }
.dx-doc--plan { right: 0; top: 0; width: 46%; aspect-ratio: 3 / 2; z-index: 2; }
.dx-doc--snap { left: 14%; top: 27%; width: 68%; aspect-ratio: 2573 / 1819; z-index: 3; }
/* the snapshot as a wireframe: verdict and priority moves on top, posture by area below */
.dds { display: grid; grid-template-columns: 2fr 3fr; grid-template-rows: auto 1fr; gap: 10px; height: 100%; padding: 24px 16px 14px; }
.dds > div { border: 1px solid #e6ddce; border-radius: 4px; background: #fffdf9; }
.dds i { display: block; height: 4px; border-radius: 2px; background: #ddd5c7; width: 100%; }
.dds__verdict { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; }
.dds__verdict b { display: block; height: 16px; width: 76%; border-radius: 3px; background: var(--orange-deep); margin: 2px 0 4px; }
.dds__moves { display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 10px 12px; }
.dds__move { display: flex; align-items: center; gap: 10px; }
.dds__t { flex: none; width: 64px; padding: 4px 0; border-radius: 3px; text-align: center; font: 500 0.5625rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: #fff6ea; }
.dds__t--decide { background: #b3392b; } .dds__t--direct { background: var(--orange-deep); }
.dds__t--authorise { background: var(--p-inv-ink); } .dds__t--approve { background: #2f7a4a; }
.dds__posture { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; align-content: center; padding: 6px 12px; }
.dds__area { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #efe8dc; }
.dds__area:nth-last-child(-n + 2) { border-bottom: 0; }
.dds__band { flex: none; display: flex; gap: 3px; }
.dds__band u { display: block; width: 14px; height: 9px; border-radius: 2px; background: #ebe3d5; }
.dds__band[style*="--on:2"] u:nth-child(2) { background: #2f7a4a; }
.dds__band[style*="--on:3"] u:nth-child(3) { background: #b88a1e; }
.dds__band[style*="--on:4"] u:nth-child(4) { background: #b3392b; }
html.js .dx-pack .dds__move { opacity: 0; transform: translateX(-8px); animation: ddr-in 700ms var(--ease) forwards; }
html.js .dx-pack .dds__move:nth-child(1) { animation-delay: 1.3s; } html.js .dx-pack .dds__move:nth-child(2) { animation-delay: 1.42s; }
html.js .dx-pack .dds__move:nth-child(3) { animation-delay: 1.54s; } html.js .dx-pack .dds__move:nth-child(4) { animation-delay: 1.66s; }
html.js .dx-pack .dds__band u { animation: dds-pop 500ms var(--ease) both; animation-delay: 1.9s; }
html.js .dx-pack .dds__area:nth-child(2) .dds__band u { animation-delay: 2.02s; }
html.js .dx-pack .dds__area:nth-child(3) .dds__band u { animation-delay: 2.14s; }
html.js .dx-pack .dds__area:nth-child(4) .dds__band u { animation-delay: 2.26s; }
@keyframes dds-pop { from { transform: scale(0.4); opacity: 0; } }
@media (max-width: 600px) {
  .dds { gap: 6px; padding: 18px 9px 8px; }
  .dds__verdict, .dds__moves { padding: 6px 7px; gap: 4px; } .dds__verdict b { height: 9px; }
  .dds i { height: 3px; } .dds__move { gap: 6px; }
  .dds__t { width: 40px; font-size: 0.375rem; padding: 3px 0; }
  .dds__posture { padding: 2px 7px; column-gap: 10px; } .dds__area { padding: 4px 0; gap: 6px; }
  .dds__band u { width: 7px; height: 5px; } .dds__band { gap: 2px; }
}
.dx-doc--readout { right: 1%; bottom: 3%; width: 42%; aspect-ratio: 16 / 10; z-index: 4; }

/* report: a wireframe page with a cover line, headings and body text */
.dxr { display: flex; flex-direction: column; gap: 7px; padding: 22px 18px; height: 100%; overflow: hidden; }
.dxr i, .dxr b, .dxr em { display: block; flex: none; height: 4px; border-radius: 2px; background: #ddd5c7; width: 100%; }
.dxr b { height: 9px; background: var(--p-inv-ink); margin-bottom: 2px; }
.dxr em { height: 6px; background: var(--orange-deep); margin-top: 8px; }
.dxr__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dxr__head i { background: #cfc5b4; }
.dxr__mark { width: 26px; aspect-ratio: 662 / 203; background: var(--p-accent); -webkit-mask: url(./assets/glasses.svg) center / contain no-repeat; mask: url(./assets/glasses.svg) center / contain no-repeat; }

/* plan: three horizons, first one hot */
.dxp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 26px 14px 14px; height: 100%; }
.dxp__col { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 4px; background: #f0e9dd; }
.dxp__col span { font: 500 0.625rem/1 var(--font-mono); color: var(--p-inv-muted); margin-bottom: 4px; }
.dxp__col:first-child span { color: var(--orange-deep); }
.dxp__col i { display: block; height: 14px; width: 100%; border-radius: 3px; background: #ddd4c4; }
.dxp__col i.hot { background: var(--p-accent); }

/* readout: a call with the slide shared and the presenter in the corner */
.dxv { position: relative; height: 100%; border-radius: 6px; background: #1d1a16; padding: 10px; }
.dxv__slide { display: flex; flex-direction: column; gap: 10px; height: 100%; border-radius: 3px; background: #fbf7f0; padding: 12px 14px; }
.dxv__slide b { display: block; height: 7px; border-radius: 2px; background: var(--p-inv-ink); }
.dxv__bars { flex: 1; display: flex; align-items: flex-end; gap: 10%; padding: 0 6% 2px; border-bottom: 1px solid #d8cfbf; }
.dxv__bars i { flex: 1; border-radius: 2px 2px 0 0; background: #d8cfbf; }
.dxv__bars i:nth-child(4) { background: var(--p-accent); }
.dxv__face { position: absolute; right: 16px; bottom: 16px; width: 24%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 2px solid #1d1a16; }

@media (max-width: 600px) {
  .dx-doc__tag { font-size: 0.5625rem; padding: 4px 7px; top: -10px; left: 8px; }
  .dxr { gap: 4px; padding: 14px 11px; } .dxr i, .dxr em { height: 3px; } .dxr b { height: 6px; }
  .dxp { gap: 5px; padding: 20px 8px 8px; } .dxp__col { padding: 5px; gap: 4px; } .dxp__col i { height: 8px; }
  .dxv { padding: 6px; } .dxv__slide { padding: 7px 8px; gap: 6px; } .dxv__slide b { height: 4px; }
  .dxv__face { right: 10px; bottom: 10px; }
}
.dx-stage__label { position: absolute; left: 7%; bottom: 28px; color: rgba(14, 13, 11, 0.72); }
@media (max-width: 900px) {
  .hero--dx .hero__copy { padding-top: calc(var(--nav-h) + 36px); }
  .hero--dx .hero__stage { order: 0; height: auto; min-height: 0; margin-top: 0; padding: 40px var(--gutter) 64px; }
  .dx-stage__label { position: static; margin-top: 24px; }
  .dx-stage { flex-direction: column; }
}

.dx-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(40px, 6vh, 72px); }

/* 01 when: seven equal cards in two rows; the one you hover widens, turns orange and its words grow */
.dx-when { display: flex; flex-direction: column; gap: 14px; }
.dx-when__row { display: flex; gap: 14px; }
.dx-card {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 28px; min-height: 300px;
  padding: 26px 26px 30px; border: 1px solid var(--line-inv); border-radius: 10px;
  background: rgba(255, 255, 255, 0.32);
  transition: flex-grow 600ms var(--ease), background-color 400ms var(--ease), border-color 400ms var(--ease), box-shadow 400ms var(--ease);
}
.dx-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.dx-card__top .label { color: var(--orange-deep); font-weight: 500; transition: color 400ms var(--ease); }
.dx-card .ico { transition: color 400ms var(--ease), width 600ms var(--ease), height 600ms var(--ease); }
.dx-card p {
  margin-top: auto; font-size: 1.0625rem; line-height: 1.5; color: var(--p-inv-muted); text-wrap: pretty;
  transition: font-size 600ms var(--ease), line-height 600ms var(--ease), letter-spacing 600ms var(--ease), color 400ms var(--ease);
}
.dx-card b { font-weight: 600; color: var(--p-inv-ink); }
@media (hover: hover) and (min-width: 901px) {
  .dx-card:hover { flex-grow: 2.1; background: var(--p-accent); border-color: transparent; box-shadow: 0 26px 50px -28px rgba(70, 32, 0, 0.5); }
  .dx-card:hover .ico { color: var(--p-inv-ink); width: 60px; height: 60px; }
  .dx-card:hover .label { color: var(--p-inv-ink); }
  .dx-card:hover p { font-size: 1.5rem; line-height: 1.22; letter-spacing: -0.015em; color: rgba(14, 13, 11, 0.72); }
  .dx-card:hover b { font-weight: 500; }
}
@media (max-width: 900px) {
  .dx-when__row { flex-direction: column; gap: 10px; }
  .dx-card { flex: none; min-height: 0; gap: 18px; flex-direction: row; align-items: flex-start; padding: 20px; }
  .dx-card__top { flex-direction: column; gap: 10px; flex: none; }
  .dx-card p { margin-top: 0; }
}

/* line icons: drawn with stroke-dashoffset when their group arrives */
.ico { flex: none; width: 48px; height: 48px; color: var(--orange-deep); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ico .f { fill: currentColor; stroke: none; transition: opacity 600ms var(--ease) 700ms; }
html.js [data-draw] .ico [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js [data-draw] .ico .f { opacity: 0; }
html.js [data-draw].is-drawn .ico .f { opacity: 1; }
@media (hover: hover) {
  .dx-card:hover .ico, .dx-seat:hover .ico { animation: ico-nudge 700ms var(--ease); }
}
@keyframes ico-nudge { 40% { transform: translateY(-4px) rotate(-4deg); } }

/* 02 who: four quarters of a crosshair, lines draw out from the centre */
.dx-quad { position: relative; }
.dx-quad__list { display: grid; grid-template-columns: 1fr 1fr; }
.dx-quad__h, .dx-quad__v { position: absolute; background: var(--line); pointer-events: none; }
.dx-quad__h { left: 0; right: 0; top: 50%; height: 1px; }
.dx-quad__v { top: 0; bottom: 0; left: 50%; width: 1px; }
.dx-quad__dot {
  position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--p-accent); z-index: 1;
}
.dx-quad__dot::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--p-accent);
  animation: dot-pulse 2.6s var(--ease) infinite;
}
@keyframes dot-pulse { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
html.js .dx-quad__h { transform: scaleX(0); transition: transform 1.4s var(--ease); }
html.js .dx-quad__v { transform: scaleY(0); transition: transform 1.4s var(--ease) 0.1s; }
html.js .dx-quad__dot { transform: scale(0); transition: transform 700ms var(--ease); }
html.js .dx-quad.is-drawn .dx-quad__h, html.js .dx-quad.is-drawn .dx-quad__v, html.js .dx-quad.is-drawn .dx-quad__dot { transform: none; }

.dx-seat {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: clamp(36px, 5vw, 72px) clamp(28px, 4.5vw, 72px);
}
.dx-seat::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 500ms var(--ease);
}
.dx-seat:nth-child(1)::before { background: radial-gradient(circle at 100% 100%, rgba(236, 146, 0, 0.16), transparent 70%); }
.dx-seat:nth-child(2)::before { background: radial-gradient(circle at 0% 100%, rgba(236, 146, 0, 0.16), transparent 70%); }
.dx-seat:nth-child(3)::before { background: radial-gradient(circle at 100% 0%, rgba(236, 146, 0, 0.16), transparent 70%); }
.dx-seat:nth-child(4)::before { background: radial-gradient(circle at 0% 0%, rgba(236, 146, 0, 0.16), transparent 70%); }
.dx-seat:hover::before { opacity: 1; }
.dx-seat .ico { color: var(--p-accent); width: 52px; height: 52px; margin-bottom: 10px; }
.dx-seat .h3 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2.125rem); letter-spacing: var(--display-tracking); line-height: 1.1; transition: color 240ms var(--ease); }
.dx-seat:hover .h3 { color: var(--p-accent); }
.dx-seat p { color: var(--p-muted); max-width: 34ch; font-size: 1.0625rem; }
html.js .dx-seat { opacity: 0; transform: translateY(20px); transition: opacity 800ms var(--ease), transform 900ms var(--ease); }
html.js .dx-seat.is-drawn { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .dx-quad__list { grid-template-columns: 1fr; }
  .dx-quad__h, .dx-quad__v, .dx-quad__dot { display: none; }
  .dx-seat { padding: 26px 0 26px 22px; border-left: 2px solid var(--line); }
  .dx-seat::before { display: none; }
  .dx-seat.is-drawn { border-left-color: var(--p-accent); transition: opacity 800ms var(--ease), transform 900ms var(--ease), border-color 900ms var(--ease) 400ms; }
}
@media (prefers-reduced-motion: reduce) { .dx-quad__dot::after { animation: none; } }

/* where I look */
.dx-areas__intro { margin: clamp(48px, 7vh, 80px) 0 16px; }
.dx-areas { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 4vw, 64px); border-top: 1px solid var(--line-inv); }
.dx-areas li {
  display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line-inv); font-size: 1.125rem; line-height: 1.45;
}
.dx-areas .label { color: var(--orange-deep); font-weight: 500; }
@media (max-width: 700px) { .dx-areas { grid-template-columns: 1fr; } }

/* what I do: a left rail where each step lights as you reach it */
.vsteps { display: flex; flex-direction: column; }
.vstep {
  display: grid; grid-template-columns: clamp(64px, 7vw, 96px) 1fr; gap: 16px; align-items: start;
  padding: 26px 0 26px 24px; border-left: 2px solid var(--line);
  transition: border-color 500ms var(--ease), opacity 500ms var(--ease);
}
.vstep p { color: var(--p-muted); margin-top: 8px; max-width: 34em; }
.vstep__n {
  font-size: clamp(2.5rem, 1.6rem + 2vw, 3.75rem); line-height: 0.9; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 238, 230, 0.4);
  transition: color 500ms var(--ease), -webkit-text-stroke-color 500ms var(--ease);
}
.vstep.is-on { border-left-color: var(--p-accent); }
.vstep.is-on .vstep__n { color: var(--p-accent); -webkit-text-stroke-color: var(--p-accent); }
html.js .vstep { opacity: 0.4; }
html.js .vstep.is-on { opacity: 1; }

/* what you get / what I need */
.dx-get, .dx-need { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.dx-need { grid-template-columns: repeat(3, 1fr); }
.dx-get__item, .dx-need article { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 4px solid var(--p-inv-ink); }
.dx-get__n { font-size: clamp(3.5rem, 2rem + 3vw, 5.5rem); line-height: 0.85; letter-spacing: -0.05em; color: var(--orange-deep); }
.dx-get p, .dx-need p { color: var(--p-inv-muted); }
.chapter--amber .dx-need p { color: var(--amber-muted); }
@media (max-width: 1024px) { .dx-get { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 640px) { .dx-get, .dx-need { grid-template-columns: 1fr; } }

/* track record: ten areas, five across */
.dx-record { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(48px, 7vh, 80px); border-top: 1px solid var(--line); }
.dx-record article { display: flex; flex-direction: column; gap: 10px; padding: 28px 22px 32px 0; border-bottom: 1px solid var(--line); }
.dx-record article:not(:nth-child(5n + 1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.dx-record .h3 { font-size: 1.125rem; }
.dx-record .h3::before { content: ""; display: block; width: 24px; height: 3px; margin-bottom: 14px; background: var(--p-accent); }
.dx-record p { font-size: 0.9375rem; line-height: 1.55; }
@media (max-width: 1100px) {
  .dx-record { grid-template-columns: 1fr 1fr; }
  .dx-record article, .dx-record article:not(:nth-child(5n + 1)) { padding: 28px 22px 32px 0; border-left: 0; }
  .dx-record article:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .dx-record { grid-template-columns: 1fr; }
  .dx-record article:nth-child(2n) { padding-left: 0; border-left: 0; }
}

/* fee and after */
.dx-fee { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.dx-fee__fee { display: flex; flex-direction: column; gap: 24px; }
.dx-fee__big { font-size: clamp(2.5rem, 1.2rem + 4vw, 5.25rem); line-height: 1.02; letter-spacing: var(--display-tracking-xl); text-wrap: balance; }
.dx-fee__after { display: flex; flex-direction: column; gap: 16px; }
.dx-after { border-top: 1px solid var(--line-inv); }
.dx-after li { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line-inv); font-size: 1.125rem; }
.dx-after .label { color: var(--orange-deep); font-weight: 500; }
@media (max-width: 900px) { .dx-fee { grid-template-columns: 1fr; } }

/* practical points */
.dx-practical { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.dx-practical article { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 8px 0; }
.dx-practical article + article { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 1024px) {
  .dx-practical { grid-template-columns: 1fr 1fr; }
  .dx-practical article:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .dx-practical { grid-template-columns: 1fr; }
  .dx-practical article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- about page ---------- */
.ab-stage { display: flex; align-items: center; justify-content: center; padding: calc(var(--nav-h) + 32px) 9% 64px; }
.ab-portrait {
  margin: 0; width: 100%; max-width: 480px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 8px;
  box-shadow: 0 50px 90px -30px rgba(70, 32, 0, 0.55), 0 14px 28px -8px rgba(70, 32, 0, 0.28);
}
.ab-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
@media (max-width: 900px) {
  .hero--ab .hero__copy { padding-top: calc(var(--nav-h) + 36px); }
  .hero--ab .hero__stage { order: 0; height: auto; min-height: 0; margin-top: 0; padding: 40px var(--gutter) 64px; }
  .ab-portrait { max-width: 320px; }
}

.stats--cream { margin-top: clamp(48px, 7vh, 88px); }

.ab-turns { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.ab-turns li {
  display: flex; flex-direction: column; gap: 18px; padding: 28px 24px 8px 0;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); line-height: 1.1; letter-spacing: var(--display-tracking);
}
.ab-turns li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.ab-turns .label { color: var(--p-accent); }
@media (max-width: 900px) {
  .ab-turns { grid-template-columns: 1fr 1fr; }
  .ab-turns li:nth-child(3) { padding-left: 0; border-left: 0; }
  .ab-turns li { padding-bottom: 28px; }
}
@media (max-width: 520px) {
  .ab-turns { grid-template-columns: 1fr; }
  .ab-turns li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

.ab-places .wrap { display: flex; flex-direction: column; gap: 28px; }
.ab-places__text { font-size: clamp(2.25rem, 1rem + 4vw, 5.25rem); line-height: 1.05; letter-spacing: var(--display-tracking-xl); max-width: 14em; text-wrap: balance; }
.ab-places__list span { display: inline-block; color: var(--orange-light); }
.ab-places__more { max-width: 46em; margin-top: 8px; padding-top: 28px; border-top: 1px solid rgba(243, 238, 230, 0.2); }
.ab-places__more p { font-size: var(--fs-lead); line-height: 1.55; color: rgba(243, 238, 230, 0.88); }
.ab-places__more span { color: var(--orange-light); }

/* ---------- reveal (masked-reveal skill) ---------- */
html.js [data-reveal] { visibility: hidden; }
html.js [data-reveal].is-split { visibility: visible; }
.word-mask { display: inline-block; overflow: hidden; text-indent: 0; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.word { display: inline-block; will-change: transform; }
html.js [data-hero-in] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal], html.js [data-hero-in] { visibility: visible; opacity: 1; }
  html.js .steps__fill { clip-path: none; }
  .sw { --wp: 1 !important; filter: none; transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------- blog: listing ---------- */
.blog-top { padding: calc(var(--nav-h) + clamp(56px, 9vh, 104px)) 0 clamp(72px, 10vh, 120px); }
.blog-top__head { display: flex; flex-direction: column; gap: 22px; max-width: 900px; margin-bottom: clamp(48px, 7vh, 80px); }
.blog-top__title { font-weight: 400; font-size: clamp(3rem, 1.4rem + 6vw, 7.5rem); line-height: 0.95; letter-spacing: var(--display-tracking-xl); }
.blog-top__title em { font-style: normal; color: var(--p-accent); }

.post__img img { width: 100%; height: 100%; object-fit: cover; }
.feature {
  display: grid; grid-template-columns: 7fr 5fr; gap: 0; text-decoration: none;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--p-surface);
  transition: border-color 320ms var(--ease), transform 320ms var(--ease);
}
.feature:hover { border-color: var(--p-accent); transform: translateY(-3px); }
.feature__img { display: block; aspect-ratio: 14 / 9; background: var(--p-accent); overflow: hidden; }
.feature__img img { filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; transition: transform 800ms var(--ease), filter 500ms var(--ease); }
.feature:hover .feature__img img { transform: scale(1.03); filter: grayscale(0.2) contrast(1.05); }
.feature__body { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(28px, 4vw, 56px); }
.feature__t { font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.75rem); line-height: 1.08; letter-spacing: var(--display-tracking); text-wrap: balance; }
.feature__s { color: var(--p-muted); font-size: 1.0625rem; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; } }

.blog-list__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px; margin-bottom: clamp(32px, 5vh, 56px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--line-inv); border-radius: 999px; background: transparent; color: var(--p-inv-ink);
  font: 500 0.875rem var(--font-text); cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.chip span { font-family: var(--font-mono); font-size: 0.75rem; color: var(--p-inv-muted); }
.chip:hover { border-color: var(--p-inv-ink); }
.chip[aria-pressed="true"] { background: var(--p-inv-ink); color: var(--cream); border-color: var(--p-inv-ink); }
.chip[aria-pressed="true"] span { color: var(--p-accent); }

.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.bcard[hidden] { display: none; }
.bcard__link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  background: #fbf8f3; border: 1px solid var(--line-inv); border-radius: 10px; overflow: hidden;
  transition: transform 320ms var(--ease), border-color 320ms var(--ease), box-shadow 320ms var(--ease);
}
.bcard__link:hover { transform: translateY(-4px); border-color: var(--orange-deep); box-shadow: 0 24px 40px -24px rgba(70, 32, 0, 0.35); }
.bcard .post__img { display: block; aspect-ratio: 3 / 2; background: var(--p-accent); overflow: hidden; }
.bcard .post__img img { filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; transition: transform 700ms var(--ease), filter 500ms var(--ease); }
.bcard__link:hover .post__img img { transform: scale(1.04); filter: grayscale(0.2) contrast(1.05); }
.bcard__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 24px; flex: 1; }
.bcard__t { font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.bcard__s { color: var(--p-inv-muted); font-size: 0.9375rem; line-height: 1.55; }
.bcard .post__go { margin-top: auto; padding: 6px 0 0; color: var(--orange-deep); }
.bcard__link:hover .post__go { transform: translateX(6px); }
@media (max-width: 1024px) { .bgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bgrid { grid-template-columns: 1fr; } }

/* ---------- blog: post ---------- */
.progress { position: fixed; inset: var(--nav-h) 0 auto; height: 3px; z-index: 49; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--p-accent); transform-origin: left; transform: scaleX(0); }

.ppost { padding: calc(var(--nav-h) + clamp(40px, 7vh, 80px)) 0 0; }
.ppost .wrap { display: flex; flex-direction: column; gap: 22px; }
.ppost__back { align-self: flex-start; color: var(--p-muted); }
.ppost__back:hover { color: var(--p-ink); }
.ppost__meta { color: var(--p-accent); }
.ppost__title { font-weight: 400; font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4.75rem); line-height: 1.02; letter-spacing: var(--display-tracking-xl); max-width: 17em; text-wrap: balance; }
.ppost__img { margin: clamp(24px, 4vh, 48px) 0 0; aspect-ratio: 2 / 1; max-height: 62vh; width: 100%; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--p-accent); }
.ppost__img img { filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; }

.pbody-wrap { background: var(--cream); color: var(--p-inv-ink); padding: clamp(56px, 9vh, 104px) var(--gutter) clamp(72px, 11vh, 128px); }
.pbody { max-width: 680px; margin: 0 auto; font-size: 1.1875rem; line-height: 1.72; color: #24201b; }
.pbody > * + * { margin-top: 1.25em; }
.pbody > p:first-child { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.55rem); line-height: 1.5; color: var(--p-inv-ink); letter-spacing: -0.01em; }
.pbody h2 { margin-top: 2em; font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); line-height: 1.2; letter-spacing: -0.02em; color: var(--p-inv-ink); }
.pbody h2::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 16px; background: var(--p-accent); }
.pbody ul, .pbody ol { padding-left: 1.2em; }
.pbody ul { list-style: none; padding-left: 0; }
.pbody ul li { position: relative; padding-left: 1.4em; }
.pbody ul li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px; border-radius: 2px; background: var(--p-accent); }
.pbody li + li { margin-top: 0.5em; }
.pbody a { color: var(--orange-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pbody a:hover { color: var(--p-inv-ink); }
.pbody img { border-radius: 8px; border: 1px solid var(--line-inv); margin-top: 2em; margin-bottom: 0.75em; }
.pbody blockquote { padding-left: 1.2em; border-left: 3px solid var(--p-accent); font-size: 1.35rem; line-height: 1.45; }
.pbody sup a { text-decoration: none; font-weight: 600; }

.blog-post__sources { margin-top: 3em !important; padding-top: 1.5em; border-top: 1px solid var(--line-inv); font-size: 0.9375rem; line-height: 1.55; color: var(--p-inv-muted); }
.blog-post__sources-label { font-family: var(--font-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.blog-post__sources-list { padding-left: 1.4em; list-style: decimal; }
.blog-post__sources-list li + li { margin-top: 0.6em; }

.pauthor { display: flex; align-items: center; gap: 16px; margin-top: 3em !important; padding-top: 1.75em; border-top: 1px solid var(--line-inv); }
.pauthor img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.pauthor__name { font-weight: 500; font-size: 1.0625rem; line-height: 1.3; }
.pauthor .label { color: var(--p-inv-muted); }

.pnext .wrap { display: flex; flex-direction: column; gap: 20px; }
.pnext__link {
  display: flex; justify-content: space-between; align-items: center; gap: 32px; text-decoration: none;
  font-size: clamp(1.75rem, 1rem + 2.6vw, 3.5rem); line-height: 1.08; letter-spacing: var(--display-tracking-xl);
  padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: color 240ms var(--ease);
}
.pnext__link span:first-child { max-width: 20em; text-wrap: balance; }
.pnext__arrow { color: var(--p-accent); flex: none; transition: transform 320ms var(--ease); }
.pnext__link:hover { color: var(--p-accent); }
.pnext__link:hover .pnext__arrow { transform: translateX(10px); }

/* ---------- technology due diligence ---------- */
/* hero: the deal's working papers, as wireframes */
.dd-doc--report { left: 0; top: 14%; width: 36%; aspect-ratio: 1 / 1.38; z-index: 1; }
.dd-doc--report .dx-doc__in { box-shadow: 7px 7px 0 -1px #ece4d6, 14px 14px 0 -2px #e0d6c4, 0 40px 70px -30px rgba(70, 32, 0, 0.55); }
.dd-doc--register { left: 22%; top: 30%; width: 62%; aspect-ratio: 1.45; z-index: 2; }
.dd-doc--clock { right: 0; top: 4%; width: 50%; aspect-ratio: 2.3; z-index: 3; }

.ddr { display: flex; flex-direction: column; justify-content: center; gap: 0; height: 100%; padding: 26px 22px 18px; }
.ddr__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #e6ddce; }
.ddr__row i { display: block; height: 5px; border-radius: 3px; background: #d9d0c0; }
.ddr__t { flex: none; padding: 4px 9px; border-radius: 3px; font: 500 0.625rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.ddr__t--price { background: var(--p-inv-ink); color: var(--p-inv-bg); }
.ddr__t--structure { background: var(--orange-deep); color: #fff6ea; }
.ddr__t--condition { background: var(--rust); color: #fff6ea; }
.ddr__t--post { border: 1px solid #bdb2a0; color: var(--p-inv-muted); }
html.js .dd-pack .ddr__row { opacity: 0; transform: translateX(-10px); animation: ddr-in 700ms var(--ease) forwards; }
html.js .dd-pack .ddr__row:nth-child(1) { animation-delay: 1.2s; } html.js .dd-pack .ddr__row:nth-child(2) { animation-delay: 1.32s; }
html.js .dd-pack .ddr__row:nth-child(3) { animation-delay: 1.44s; } html.js .dd-pack .ddr__row:nth-child(4) { animation-delay: 1.56s; }
html.js .dd-pack .ddr__row:nth-child(5) { animation-delay: 1.68s; } html.js .dd-pack .ddr__row:nth-child(6) { animation-delay: 1.8s; }
@keyframes ddr-in { to { opacity: 1; transform: none; } }

.ddc { display: flex; flex-direction: column; justify-content: center; gap: 12px; height: 100%; padding: 22px 20px 16px; }
.ddc__ends { display: flex; justify-content: space-between; font: 500 0.6875rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-inv-muted); }
.ddc__ends span:last-child { color: var(--p-inv-ink); }
.ddc__track { position: relative; height: 8px; border-radius: 4px; background: #e6ddce; }
.ddc__fill { position: absolute; inset: 0 auto 0 0; width: 64%; border-radius: 4px; background: var(--p-accent); transform-origin: left; }
.ddc__now { position: absolute; left: 64%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--p-inv-ink); box-shadow: 0 0 0 3px #fbf7f0; }
.ddc__ticks { display: flex; justify-content: space-between; padding: 0 1px; }
.ddc__ticks i { width: 1px; height: 7px; background: #cfc5b4; }
html.js .dd-pack .ddc__fill { animation: ddc-fill 2.4s var(--ease) 1.1s both; }
html.js .dd-pack .ddc__now { animation: ddc-now 2.4s var(--ease) 1.1s both; }
@keyframes ddc-fill { from { transform: scaleX(0); } }
@keyframes ddc-now { from { left: 0; } }
@media (max-width: 600px) {
  .ddr { padding: 18px 12px 10px; } .ddr__row { padding: 5px 0; gap: 8px; } .ddr__row i { height: 3px; }
  .ddr__t { font-size: 0.5rem; padding: 3px 5px; }
  .ddc { padding: 16px 12px 10px; gap: 7px; } .ddc__ends { font-size: 0.5rem; } .ddc__track { height: 5px; }
  .ddc__now { width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; }
}

/* 01 the buying moment: four situations, two by two */
.dd-intro { font-weight: 500; }
.dd-four { grid-template-columns: 1fr 1fr; row-gap: clamp(40px, 6vh, 64px); margin-top: clamp(48px, 7vh, 80px); }
.dd-four .dx-get__item { display: grid; grid-template-columns: auto 1fr; column-gap: 24px; row-gap: 12px; align-content: start; transition: border-color 320ms var(--ease); }
.dd-four .dx-get__n { grid-row: span 2; }
.dd-four .dx-get__item:hover { border-top-color: var(--p-accent); }
@media (max-width: 640px) { .dd-four { grid-template-columns: 1fr; } .dd-four .dx-get__item { grid-template-columns: 1fr; } .dd-four .dx-get__n { grid-row: auto; } }

/* 02 what generalist diligence misses: four misses with drawn icons, then the coda */
.dd-misses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(48px, 7vh, 80px); }
.dd-misses article {
  display: flex; flex-direction: column; gap: 22px; padding: 26px 24px 28px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--p-surface);
  transition: border-color 320ms var(--ease), background-color 320ms var(--ease);
}
.dd-misses article:hover { border-color: var(--p-accent); background: #1d1a16; }
.dd-misses .ico { color: var(--p-accent); }
.dd-misses p { color: var(--p-muted); line-height: 1.55; }
.dd-misses b { color: var(--p-ink); font-weight: 500; }
.dd-coda { margin-top: clamp(48px, 7vh, 80px); max-width: 30em; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); line-height: 1.2; letter-spacing: var(--display-tracking); text-wrap: balance; }
@media (max-width: 1100px) { .dd-misses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .dd-misses { grid-template-columns: 1fr; } }

/* 03 the figure under the heading */
.dd-figure { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.dd-figure span:first-child { font-size: clamp(4rem, 2.5rem + 4vw, 7rem); line-height: 0.85; letter-spacing: -0.05em; color: var(--orange-deep); }

/* 06 both sides: a longer statement than a quote, set a step smaller */
.dd-sides { font-size: clamp(1.75rem, 1rem + 2.4vw, 3.25rem); line-height: 1.14; max-width: 26em; }

/* 07 / 08 side by side */
.dd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.dd-pair__col { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; border-top: 4px solid var(--p-inv-ink); }
.dd-pair__h { font-size: clamp(1.75rem, 1.2rem + 1.4vw, 2.5rem); letter-spacing: var(--display-tracking); line-height: 1.1; }
.dd-pair p:not(.label) { font-size: 1.125rem; line-height: 1.6; color: var(--p-inv-muted); }
.dd-pair .dd-pair__fee { color: var(--p-inv-ink); font-weight: 500; padding-left: 16px; border-left: 3px solid var(--p-accent); }
@media (max-width: 900px) { .dd-pair { grid-template-columns: 1fr; } }

/* old homepage anchors (#home, #blog) kept for links from elsewhere */
section:has(> .anchor) { position: relative; }
.anchor { position: absolute; top: 0; scroll-margin-top: var(--nav-h); }

/* ---------- cyber board essentials ---------- */
/* hero: the board pack as wireframes */
.cb-doc--register { left: 0; top: 10%; width: 40%; aspect-ratio: 1 / 1.2; z-index: 1; }
.cb-doc--register .dx-doc__in { box-shadow: 7px 7px 0 -1px #ece4d6, 14px 14px 0 -2px #e0d6c4, 0 40px 70px -30px rgba(70, 32, 0, 0.55); }
.cb-doc--raci { right: 0; top: 2%; width: 42%; aspect-ratio: 1.6; z-index: 3; }
.cb-doc--snap { left: 14%; top: 28%; width: 72%; aspect-ratio: 1.414; z-index: 2; }

.cbr { display: flex; flex-direction: column; justify-content: center; gap: 0; height: 100%; padding: 24px 14px 12px; }
.cbr > div { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e6ddce; }
.cbr i { display: block; height: 4px; border-radius: 2px; background: #d9d0c0; }
.cbr__t { flex: none; width: 66px; padding: 4px 0; border-radius: 3px; text-align: center; font: 500 0.5625rem/1 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; background: var(--p-inv-ink); color: #fff6ea; }

.cbx { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 4px; height: 100%; padding: 24px 14px 12px; align-content: center; }
.cbx i { display: block; height: 4px; align-self: center; border-radius: 2px; background: #d9d0c0; }
.cbx b, .cbx span { display: grid; place-items: center; height: 20px; border-radius: 3px; font: 500 0.625rem/1 var(--font-mono); }
.cbx b { color: var(--p-inv-muted); }
.cbx span { background: #f0e9dd; color: var(--p-inv-muted); }
.cbx span.a { background: var(--p-inv-ink); color: #fff6ea; }
.cbx span.r { background: var(--p-accent); color: var(--p-inv-ink); }

/* the Phase 1 Diagnostic Snapshot: gauge and regimes on top, domains and exposures below */
.cbs { display: grid; grid-template-columns: 1fr 1.5fr; grid-template-rows: auto 1fr; gap: 8px; height: 100%; padding: 24px 14px 12px; }
.cbs > div { border: 1px solid #e6ddce; border-radius: 4px; background: #fffdf9; padding: 8px 10px; }
.cbs i { display: block; height: 4px; border-radius: 2px; background: #ddd5c7; width: 100%; }
.cbs__score { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.cbs__score svg { width: 62%; overflow: visible; }
.cbs__track, .cbs__arc { fill: none; stroke-width: 9; stroke-linecap: round; }
.cbs__track { stroke: #ebe3d5; }
.cbs__arc { stroke: #b3392b; stroke-dasharray: 0.32 1; }
.cbs__score b { display: block; width: 46%; height: 7px; border-radius: 2px; background: var(--p-inv-ink); }
.cbs__regs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: center; }
.cbs__regs div { display: flex; flex-direction: column; gap: 5px; }
.cbs__regs span { font: 500 0.5625rem/1 var(--font-mono); letter-spacing: 0.05em; color: var(--p-inv-muted); }
.cbs__regs b { display: block; height: 9px; border-radius: 2px; }
.cbs__r1 { width: 70%; background: #b3392b; } .cbs__r2 { width: 58%; background: #b88a1e; } .cbs__r3 { width: 64%; background: var(--p-inv-ink); }
.cbs__domains { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.cbs__domains div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }
.cbs__domains u { position: relative; display: block; height: 6px; border-radius: 3px; background: #ebe3d5; overflow: hidden; }
.cbs__domains u::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 3px; background: #b3392b; }
.cbs__moves { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.cbs__moves div { display: flex; align-items: center; gap: 10px; }
.cbs__t { flex: none; width: 66px; padding: 4px 0; border-radius: 3px; text-align: center; font: 500 0.5625rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; background: var(--p-inv-ink); color: #fff6ea; }
.cbs__t--hot { background: #b3392b; }
html.js .dx-pack .cbs__arc { animation: cbs-arc 1.6s var(--ease) 1.2s both; }
@keyframes cbs-arc { from { stroke-dasharray: 0 1; } }
html.js .dx-pack .cbs__domains u::after { animation: cbs-bar 1.2s var(--ease) both; animation-delay: 1.4s; transform-origin: left; }
@keyframes cbs-bar { from { transform: scaleX(0); } }
html.js .dx-pack .cbs__moves div, html.js .dx-pack .cbr > div { opacity: 0; transform: translateX(-8px); animation: ddr-in 700ms var(--ease) forwards; }
html.js .dx-pack .cbs__moves div:nth-child(1), html.js .dx-pack .cbr > div:nth-child(1) { animation-delay: 1.5s; }
html.js .dx-pack .cbs__moves div:nth-child(2), html.js .dx-pack .cbr > div:nth-child(2) { animation-delay: 1.62s; }
html.js .dx-pack .cbs__moves div:nth-child(3), html.js .dx-pack .cbr > div:nth-child(3) { animation-delay: 1.74s; }
html.js .dx-pack .cbs__moves div:nth-child(4), html.js .dx-pack .cbr > div:nth-child(4) { animation-delay: 1.86s; }
html.js .dx-pack .cbr > div:nth-child(5) { animation-delay: 1.98s; }
@media (max-width: 600px) {
  .cbs { gap: 5px; padding: 18px 8px 8px; } .cbs > div { padding: 5px 6px; }
  .cbs i { height: 3px; } .cbs__regs { gap: 5px; } .cbs__regs span, .cbs__t, .cbr__t { font-size: 0.375rem; }
  .cbs__regs b { height: 5px; } .cbs__domains { gap: 3px; } .cbs__domains u { height: 4px; }
  .cbs__moves { gap: 4px; } .cbs__moves div { gap: 5px; } .cbs__t, .cbr__t { width: 40px; padding: 3px 0; }
  .cbr { padding: 18px 8px 8px; } .cbr > div { padding: 4px 0; gap: 6px; }
  .cbx { padding: 18px 8px 8px; gap: 2px; } .cbx b, .cbx span { height: 11px; font-size: 0.4375rem; }
}

/* the larger snapshot under How the work runs */
.cb-proof { margin: clamp(48px, 7vh, 80px) 0 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.cb-proof__doc { width: min(100%, 860px); aspect-ratio: 1.414; border-radius: 8px; background: #fbf7f0; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.cb-proof__doc .cbs { padding: clamp(16px, 3vw, 36px); gap: clamp(8px, 1.4vw, 16px); }
.cb-proof__doc .cbs > div { padding: clamp(8px, 1.4vw, 18px); }
.cb-proof__doc .cbs__regs span, .cb-proof__doc .cbs__t { font-size: clamp(0.5rem, 0.4rem + 0.4vw, 0.75rem); }
.cb-proof__doc .cbs__t { width: clamp(52px, 7vw, 96px); padding: 6px 0; }
.cb-proof__doc .cbs i { height: 6px; } .cb-proof__doc .cbs__domains u { height: 9px; } .cb-proof__doc .cbs__regs b { height: 12px; }
.cb-proof__caption { max-width: 52em; color: var(--p-muted); font-size: 0.9375rem; }
.cb-optional { border-left-style: dashed; }

/* closing statements and two-column prose */
.cb-coda { margin-top: clamp(48px, 7vh, 80px); max-width: 46em; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); line-height: 1.35; letter-spacing: -0.015em; text-wrap: pretty; }
.cb-coda--dark { color: var(--p-ink); }
.cb-cols { columns: 2 340px; column-gap: clamp(32px, 5vw, 72px); margin-top: clamp(40px, 6vh, 64px); }
.cb-cols p { break-inside: avoid; margin-bottom: 1.2em; font-size: 1.0625rem; line-height: 1.65; color: var(--p-inv-muted); }
.cb-cols--dark p { color: var(--p-muted); }
.chapter--dark .cb-note { color: var(--p-ink); }

/* 03: two registers at different altitudes */
.cb-layers { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.cb-layer { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border-radius: 10px; }
.cb-layer > div { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-layer > div span { padding: 7px 12px; border-radius: 999px; font-size: 0.875rem; }
.cb-layer--board { background: var(--p-inv-ink); color: var(--p-ink); box-shadow: 0 24px 40px -24px rgba(70, 32, 0, 0.6); margin-right: 8%; }
.cb-layer--board .label { color: var(--p-accent); }
.cb-layer--board > div span { background: rgba(236, 146, 0, 0.16); color: #ffd79a; }
.cb-layer--it { border: 1px dashed rgba(92, 74, 51, 0.5); margin-left: 8%; }
.cb-layer--it > div span { background: rgba(255, 255, 255, 0.4); color: var(--amber-muted); }

/* 05: the NIS2 dates */
.cb-time { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: clamp(48px, 7vh, 72px); padding-top: 28px; }
.cb-time::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--p-inv-ink); transform-origin: left; transition: transform 1.6s var(--ease); }
.cb-time li { position: relative; display: flex; flex-direction: column; gap: 6px; }
.cb-time li::before { content: ""; position: absolute; top: -27px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--p-inv-ink); }
.cb-time .label { color: var(--orange-deep); font-weight: 500; }
.cb-time p { font-size: 1.0625rem; line-height: 1.35; }
.cb-time__next::before { background: var(--cream) !important; border: 2px dashed var(--orange-deep); }
html.js .cb-time::before { transform: scaleX(0); }
html.js .cb-time.is-drawn::before { transform: none; }
html.js .cb-time li { opacity: 0; transform: translateY(10px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.js .cb-time li.is-drawn { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .cb-time { grid-template-columns: 1fr; padding: 0 0 0 28px; gap: 22px; }
  .cb-time::before { left: 5px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: top; }
  html.js .cb-time::before { transform: scaleY(0); }
  .cb-time li::before { top: 4px; left: -28px; }
}

/* 06: seven domains and the overlay */
.cb-domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: clamp(40px, 6vh, 64px); }
.cb-domains li { display: flex; flex-direction: column; gap: 14px; min-height: 120px; padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--p-surface); font-size: 1.0625rem; line-height: 1.35; transition: border-color 300ms var(--ease); }
.cb-domains li:hover { border-color: var(--p-accent); }
.cb-domains .label { color: var(--p-accent); }
.cb-domains__overlay { border-style: dashed !important; border-color: rgba(236, 146, 0, 0.5) !important; background: transparent !important; color: var(--p-muted); }
@media (max-width: 900px) { .cb-domains { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cb-domains { grid-template-columns: 1fr; } .cb-domains li { min-height: 0; } }

/* 08: where this sits */
.cb-sits { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.cb-sits > div:first-child { display: flex; flex-direction: column; gap: 28px; }
.cb-sits__text { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); line-height: 1.15; letter-spacing: var(--display-tracking); }
.cb-sits__text mark { background: none; color: var(--orange-light); }
.cb-map { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "above above" "mid beside" "below below"; gap: 10px; }
.cb-map span { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 10px; border: 1px solid rgba(243, 238, 230, 0.24); color: rgba(243, 238, 230, 0.8); font-size: 1rem; }
.cb-map b { font: 500 0.6875rem/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(243, 238, 230, 0.6); }
.cb-map__above { grid-area: above; } .cb-map__below { grid-area: below; } .cb-map__beside { grid-area: beside; }
.cb-map__mid { grid-area: mid; background: var(--p-accent); border-color: transparent !important; color: var(--p-inv-ink) !important; font-weight: 500; font-size: 1.125rem !important; }
.cb-map__mid b { color: rgba(14, 13, 11, 0.7); }
@media (max-width: 900px) { .cb-sits { grid-template-columns: 1fr; } }

/* 09: what this is, and what it is not */
.cb-big { font-size: clamp(1.375rem, 1rem + 1vw, 2rem) !important; line-height: 1.25 !important; letter-spacing: -0.015em; color: var(--p-inv-ink) !important; }
.cb-not { border-top-style: dashed !important; }

/* ---------- ai: pilot to production ---------- */
/* hero: opportunity map, protected surfaces, build / buy / stop */
.ap-doc--surfaces { left: 0; top: 10%; width: 40%; aspect-ratio: 1 / 1.2; z-index: 1; }
.ap-doc--surfaces .dx-doc__in { box-shadow: 7px 7px 0 -1px #ece4d6, 14px 14px 0 -2px #e0d6c4, 0 40px 70px -30px rgba(70, 32, 0, 0.55); }
.ap-doc--stop { right: 0; top: 2%; width: 42%; aspect-ratio: 1.7; z-index: 3; }
.ap-doc--map { left: 16%; top: 28%; width: 66%; aspect-ratio: 1.3; z-index: 2; }

.aps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: 100%; padding: 26px 12px 12px; }
.aps__col { display: flex; flex-direction: column; gap: 7px; padding: 8px; border-radius: 4px; background: #f0e9dd; }
.aps__col i { display: block; height: 10px; width: 100%; border-radius: 3px; background: #ddd4c4; }
.aps__col--human { background: var(--p-inv-ink); }
.aps__col--human i { background: #3a352d; }
.aps__h { font: 500 0.5625rem/1 var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--p-inv-muted); margin-bottom: 2px; }
.aps__col--human .aps__h { color: var(--p-accent); }

.apb { display: flex; flex-direction: column; justify-content: center; gap: 9px; height: 100%; padding: 24px 14px 12px; }
.apb > div { display: flex; align-items: center; gap: 10px; }
.apb i { display: block; height: 4px; border-radius: 2px; background: #d9d0c0; }
.apb__t { flex: none; width: 52px; padding: 4px 0; border-radius: 3px; text-align: center; font: 500 0.5625rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; background: #2f7a4a; color: #fff6ea; }
.apb__t--buy { background: var(--p-inv-ink); } .apb__t--stop { background: #b3392b; }

.apm { position: relative; height: 100%; padding: 26px 16px 26px 30px; }
.apm__plot { position: relative; height: 100%; border-left: 2px solid var(--p-inv-ink); border-bottom: 2px solid var(--p-inv-ink); background:
  linear-gradient(#e9e1d3, #e9e1d3) 50% 0 / 1px 100% no-repeat, linear-gradient(#e9e1d3, #e9e1d3) 0 50% / 100% 1px no-repeat; }
.apm__q { position: absolute; right: 0; top: 0; width: 50%; height: 50%; background: rgba(236, 146, 0, 0.14); }
.apm__dot { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #cfc5b4; }
.apm__dot--go { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--p-accent); box-shadow: 0 0 0 4px rgba(236, 146, 0, 0.22); }
.apm__dot--x { background: none; }
.apm__dot--x::before, .apm__dot--x::after { content: ""; position: absolute; left: -1px; right: -1px; top: 5px; height: 2.5px; border-radius: 2px; background: #b3392b; transform: rotate(45deg); }
.apm__dot--x::after { transform: rotate(-45deg); }
.apm__ax { position: absolute; font: 500 0.5625rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--p-inv-muted); }
.apm__ax--x { right: 16px; bottom: 9px; }
.apm__ax--y { left: 8px; top: 50%; transform: rotate(-90deg) translateX(50%); transform-origin: left top; }
html.js .dx-pack .apm__dot { opacity: 0; transform: scale(0.3); animation: ap-pop 600ms var(--ease) forwards; }
html.js .dx-pack .apm__dot:nth-of-type(1) { animation-delay: 1.3s; } html.js .dx-pack .apm__dot:nth-of-type(2) { animation-delay: 1.4s; }
html.js .dx-pack .apm__dot:nth-of-type(3) { animation-delay: 1.5s; } html.js .dx-pack .apm__dot:nth-of-type(4) { animation-delay: 1.6s; }
html.js .dx-pack .apm__dot:nth-of-type(5) { animation-delay: 1.7s; } html.js .dx-pack .apm__dot:nth-of-type(6) { animation-delay: 1.8s; }
html.js .dx-pack .apm__dot:nth-of-type(7) { animation-delay: 2s; }
@keyframes ap-pop { to { opacity: 1; transform: none; } }
html.js .dx-pack .apb > div { opacity: 0; transform: translateX(-8px); animation: ddr-in 700ms var(--ease) forwards; }
html.js .dx-pack .apb > div:nth-child(1) { animation-delay: 1.5s; } html.js .dx-pack .apb > div:nth-child(2) { animation-delay: 1.62s; }
html.js .dx-pack .apb > div:nth-child(3) { animation-delay: 1.74s; }
@media (max-width: 600px) {
  .aps { padding: 18px 7px 7px; gap: 5px; } .aps__col { padding: 5px; gap: 4px; } .aps__col i { height: 6px; } .aps__h { font-size: 0.375rem; }
  .apb { padding: 18px 8px 8px; gap: 5px; } .apb__t { width: 34px; font-size: 0.375rem; padding: 3px 0; }
  .apm { padding: 18px 10px 18px 18px; } .apm__ax { font-size: 0.375rem; } .apm__ax--x { bottom: 5px; right: 10px; } .apm__ax--y { left: 4px; }
  .apm__dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; } .apm__dot--go { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
}

/* 01 */
.ap-body { color: var(--p-inv-muted); font-size: 1.0625rem; line-height: 1.65; }

/* 02: demo against production */
.ap-vs { display: grid; grid-template-columns: 1fr auto 1.4fr; gap: 0; align-items: stretch; margin-top: clamp(48px, 7vh, 80px); }
.ap-vs__col { display: flex; flex-direction: column; gap: 16px; padding: 24px 26px; border: 1px solid var(--line); border-radius: 10px; }
.ap-vs__col ul { display: flex; flex-direction: column; gap: 10px; }
.ap-vs__col li { padding-left: 18px; position: relative; color: var(--p-muted); font-size: 1.0625rem; }
.ap-vs__col li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--p-muted); }
.ap-vs__col--prod { background: var(--p-surface); border-color: rgba(236, 146, 0, 0.45); }
.ap-vs__col--prod .label { color: var(--p-accent); }
.ap-vs__col--prod li { color: var(--p-ink); }
.ap-vs__col--prod li::before { background: var(--p-accent); }
.ap-vs__gap { position: relative; display: flex; align-items: center; justify-content: center; width: clamp(80px, 12vw, 180px); }
.ap-vs__gap::before { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--p-accent) 0 6px, transparent 6px 12px); }
.ap-vs__gap span { position: relative; padding: 6px 10px; border-radius: 999px; background: var(--p-bg); font: 500 0.6875rem/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-accent); text-align: center; }
@media (max-width: 900px) {
  .ap-vs { grid-template-columns: 1fr; }
  .ap-vs__gap { width: auto; height: 64px; }
  .ap-vs__gap::before { left: 50%; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--p-accent) 0 6px, transparent 6px 12px); }
}

/* 03: the retrieval example */
.ap-rank { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 10px; background: rgba(255, 255, 255, 0.35); }
.ap-rank__row { display: flex; flex-direction: column; gap: 8px; }
.ap-rank__bar { position: relative; display: flex; align-items: center; height: 34px; border-radius: 6px; background: rgba(92, 74, 51, 0.12); overflow: hidden; }
.ap-rank__bar u { position: absolute; inset: 0 auto 0 0; width: var(--w); background: rgba(179, 57, 43, 0.22); transform-origin: left; transition: transform 1.4s var(--ease); }
.ap-rank__row--hit .ap-rank__bar u { background: var(--p-accent); }
.ap-rank__bar b { position: relative; padding: 0 12px; font-weight: 500; font-size: 0.9375rem; color: var(--p-inv-ink); }
.ap-rank__row--hit .ap-rank__bar b { margin-left: 10%; }
.ap-rank__miss { color: #8a2b20 !important; }
html.js .ap-rank__bar u { transform: scaleX(0); }
html.js .ap-rank__row.is-drawn .ap-rank__bar u { transform: none; }

/* 06: the two surfaces */
.ap-surfaces { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(48px, 7vh, 80px); }
.ap-surface { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 26px; border: 1px dashed rgba(243, 238, 230, 0.3); border-radius: 10px; }
.ap-surface > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ap-surface > div span { padding: 8px 14px; border-radius: 999px; background: rgba(243, 238, 230, 0.08); font-size: 0.9375rem; }
.ap-surface__why { color: var(--p-muted); font-size: 0.9375rem; }
.ap-surface--human { border: 1px solid var(--p-accent); background: var(--p-surface); }
.ap-surface--human .label { color: var(--p-accent); }
.ap-surface--human > div span { background: rgba(236, 146, 0, 0.16); color: #ffd79a; }
.ap-strong { color: var(--p-ink) !important; font-weight: 500; }
@media (max-width: 760px) { .ap-surfaces { grid-template-columns: 1fr; } }

