/* Homepage polish, loaded last.
   One reading system for the page: sans for everything but the brand name,
   dark ink body text, a measure of about 75 characters, no stranded last lines. */
:root {
  --hp-ink: #16263a;
  --hp-body: #35353b;
  --hp-muted: #45505a;
  --hp-line: #dce3e5;
  --hp-accent: #2f6f5c;
  --hp-sans: var(--m2a-font-sans, 'Google Sans Flex', system-ui, Arial, sans-serif);
}

/* ---------- "Coming soon" tag ---------- */
body .soon-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e9efec;
  color: #48655a;
  font-family: var(--hp-sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .02em;
  white-space: nowrap;
}
body .header .nav .nav-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: inherit;
  opacity: .9;
  white-space: nowrap;
  cursor: default;
}

/* ---------- Hero: copy and the suite row ---------- */
body #overview .hero-intro-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em !important;
}
body #overview .hero-intro-description { font-size: 19px; line-height: 1.55; text-wrap: balance; }
body #overview .hero-intro-actions a { font-size: 15px; }

body #overview .hero-intro .hero-dims {
  position: absolute;
  z-index: 4;
  left: clamp(28px, 6vw, 116px);
  bottom: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(43%, 610px);
}
body #overview .hero-intro .hero-dims .hero-dim {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 2px solid #ffffff4d;
  border-radius: 0;
  background: none;
  color: #cfdadd;
  font-family: var(--hp-sans);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
body #overview .hero-intro .hero-dims .hero-dim b { font-size: 20px; font-weight: 650; line-height: 1.15; letter-spacing: -.01em; color: #f4f7f3; }
body #overview .hero-intro .hero-dims .hero-dim span { font-size: 14.5px; font-weight: 450; line-height: 1.4; }
body #overview .hero-intro body #overview .hero-intro .hero-dims .hero-dim[aria-current=true] { border-top-color: #bfe3d3; color: #f4f7f3; }
body #overview .hero-intro .hero-dims .hero-dim[aria-current=true] b { color: #bfe3d3; }
@media (min-width: 761px) and (max-width: 1100px) {
  body #overview .hero-intro .hero-dims { left: 4%; width: 42%; gap: 12px; }
  body #overview .hero-intro .hero-dims .hero-dim b { font-size: 17px; }
  body #overview .hero-intro .hero-dims .hero-dim span { font-size: 13px; }
}
@media (min-width: 761px) and (max-height: 760px) {
  body #overview .hero-intro .hero-dims { bottom: 8px; }
  body #overview .hero-intro .hero-dims .hero-dim span { display: none; }
}
@media (max-width: 760px) {
  body #overview .hero-intro .hero-dims { position: relative; inset: auto; order: 0; width: 100%; margin: 0 0 24px; gap: 12px; }
  body #overview .hero-intro .hero-dims .hero-dim b { font-size: 16px; }
  body #overview .hero-intro .hero-dims .hero-dim span { font-size: 12.5px; }
}

/* ---------- Authors, affiliations, actions ---------- */
html body .m2a-meta { text-align: center; color: var(--hp-ink); font-family: var(--hp-sans); }
html body .m2a-meta .project-authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  max-width: 980px;
  margin: 0 auto;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}
html body .m2a-meta .project-author sup { margin-left: 1px; font-size: .62em; font-weight: 600; color: var(--hp-muted); }
html body .m2a-affils {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px 12px;
  max-width: 980px;
  margin: 28px auto 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--hp-line);
  list-style: none;
}
html body .m2a-affils li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--hp-body);
  text-align: left;
}
html body .m2a-affils img { flex: none; width: 34px; height: 34px; object-fit: contain; }
html body .m2a-affils sup { margin-right: 3px; font-size: 11px; font-weight: 700; color: var(--hp-muted); }
html body .m2a-meta .project-contributions { margin: 20px 0 0 !important; font-size: 14px !important; color: var(--hp-muted) !important; }
html body .m2a-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
}
html body .m2a-actions--quiet { margin-top: 12px; }
html body .m2a-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-sizing: border-box;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid #c9d3d6;
  border-radius: 999px;
  background: #fff;
  color: var(--hp-ink) !important;
  font-family: var(--hp-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
html body a.m2a-action:hover,
html body button.m2a-action:hover { border-color: var(--hp-ink); background: #f3f6f4; }
html body .m2a-action.is-soon { border-style: dashed; color: var(--hp-muted) !important; cursor: default; }
html body .m2a-actions--quiet .m2a-action { min-height: 40px; padding: 7px 15px; font-size: 14.5px; font-weight: 500; }
html body .m2a-action img,
html body .m2a-action svg { flex: none; width: 19px; height: 19px; }
html body .m2a-actions #copy-feedback { font-size: 14px; color: var(--hp-accent); }
html body .m2a-meta .project-preview-date { margin: 18px 0 0 !important; font-size: 13px !important; color: var(--hp-muted) !important; }
@media (max-width: 900px) { html body .m2a-affils { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  html body .m2a-affils { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .m2a-meta .project-authors { font-size: 16px; gap: 4px 14px; }
}

/* ---------- Numbers ---------- */
html body #overview .home-stats {
  max-width: 1024px !important;
  margin: 40px auto 8px !important;
  padding: 26px 0;
  border-block: 1px solid var(--hp-line);
}
html body #overview .home-stats dl { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 28px; }
html body #overview .home-stat { padding: 0 16px; border-left: 1px solid var(--hp-line); }
html body #overview .home-stat:first-child { border-left: 0; padding-left: 0; }
html body #overview .home-stat-icon { display: none; }
html body #overview .home-stat-value {
  margin: 0 0 8px;
  font-size: clamp(34px, 3.3vw, 46px);
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--hp-ink);
}
html body #overview .home-stat dt { font-size: 15px; font-weight: 650; line-height: 1.35; color: var(--hp-ink); }
html body #overview .home-stat-detail { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--hp-muted); }
@media (max-width: 980px) {
  html body #overview .home-stats dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  html body #overview .home-stat:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 560px) {
  html body #overview .home-stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body #overview .home-stat:nth-child(n) { border-left: 1px solid var(--hp-line); padding-left: 16px; }
  html body #overview .home-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ---------- Introduction ---------- */
html body #introduction .intro-copy.intro-prose {
  width: min(760px, 100%) !important;
  max-width: 760px !important;
  margin-inline: auto !important;
  padding-block: 40px 8px !important;
}
html body #introduction .intro-prose p {
  margin: 0 0 22px !important;
  font: 400 18px/1.7 var(--hp-sans) !important;
  color: var(--hp-body) !important;
  text-wrap: pretty;
  hyphens: none;
}
html body #introduction .intro-prose p:first-child { font-size: 21px !important; line-height: 1.55 !important; color: var(--hp-ink) !important; }
html body #introduction .intro-prose p strong { font-weight: 650 !important; color: var(--hp-ink) !important; background: none !important; padding: 0 !important; }
html body #introduction .intro-prose p.intro-scoring { margin: 4px 0 0 !important; }
html body #introduction .intro-prose p.intro-scoring a {
  color: var(--hp-accent) !important;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
html body #introduction .intro-suite-cards { margin: 44px 0 0 !important; gap: 20px; }
html body #introduction .intro-suite-card > img { aspect-ratio: 16 / 10; }
html body #introduction .intro-suite-body { padding: 22px 22px 20px; text-align: left; }
html body #introduction .intro-suite-badge { padding: 3px 12px; font-size: 15px; font-weight: 650; }
html body #introduction .intro-suite-card h3 {
  min-block-size: 2.6em;
  margin: 14px 0 10px !important;
  font-family: var(--hp-sans) !important;
  font-size: 21px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  letter-spacing: -.015em !important;
  color: var(--hp-ink) !important;
  text-align: left !important;
  text-wrap: balance;
}
html body #introduction .intro-suite-card p {
  margin: 0 0 18px !important;
  font: 400 16px/1.55 var(--hp-sans) !important;
  color: var(--hp-body) !important;
  text-align: left !important;
  text-wrap: pretty;
}
html body #introduction .intro-suite-card a { font-size: 16px; }
@media (max-width: 860px) {
  html body #introduction .intro-suite-cards { grid-template-columns: minmax(0, 1fr); }
  html body #introduction .intro-suite-card h3 { min-block-size: 0; }
  html body #introduction .intro-prose p { font-size: 17px !important; }
  html body #introduction .intro-prose p:first-child { font-size: 19px !important; }
}

/* ---------- Diagnosis ---------- */
html body main #diagnosis .dx-head h2 { text-wrap: balance; }
html body main #diagnosis .dx-head p.dx-lead {
  max-width: 760px !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  color: var(--hp-body) !important;
  text-wrap: balance;
}
html body main #diagnosis .dx-home-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 32px; }
html body main #diagnosis .dx-home-grid .dx-points {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 28px;
  border-bottom: 0;
}
html body main #diagnosis .dx-home-grid .dx-points li {
  --point-ink: var(--hp-ink);
  padding: 16px 0 0;
  border-top: 2px solid var(--hp-ink);
}
html body main #diagnosis .dx-home-grid .dx-points li:nth-child(n) { --point-ink: var(--hp-ink); }
html body main #diagnosis .dx-home-grid .dx-num {
  margin-bottom: 10px;
  font: 700 15px/1 var(--hp-sans);
  letter-spacing: .04em;
  color: var(--hp-accent);
}
html body main #diagnosis .dx-home-grid .dx-num::before { content: '0'; }
html body main #diagnosis .dx-home-grid .dx-points h3 {
  margin: 0 0 8px !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  color: var(--hp-ink) !important;
}
html body main #diagnosis .dx-home-grid .dx-points p {
  font-size: 16px !important;
  line-height: 1.55 !important;
  color: var(--hp-body) !important;
  text-wrap: pretty;
}
/* Example card across the full width: a short form of every formal section of the full card. */
html body main #diagnosis .dg-excerpt { padding: 26px 28px; border-radius: 18px; }
html body main #diagnosis .dg-excerpt > header { flex-wrap: nowrap; padding-bottom: 16px; }
html body main #diagnosis .dg-excerpt .dg-overall { width: auto; margin-left: auto; text-align: right; }
html body main #diagnosis .dg-excerpt .dg-overall b { display: block; font-size: 30px; }
html body main #diagnosis .dg-excerpt .dg-overall span { font-size: 13px; }
html body main #diagnosis .dg-excerpt .dg-kicker { font-size: 13px; }
html body main #diagnosis .dg-excerpt h3 { font-size: 22px !important; }
html body main #diagnosis .dg-excerpt h4 { margin: 20px 0 10px !important; font-size: 13px !important; }
html body main #diagnosis .dg-excerpt .dg-stack { height: 18px; border-radius: 6px; }
html body main #diagnosis .dg-excerpt .dg-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin-top: 12px; font-size: 14.5px; }
html body main #diagnosis .dg-excerpt .dg-key-inline { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 0; }
html body main #diagnosis .dg-excerpt > .dg-more { display: inline-block; margin-top: 22px; font-size: 15px; }
html body main #diagnosis .dx-home-fun { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:24px; margin-top:20px; padding:24px; border:1px solid #dce5e4; border-radius:12px; background:#f8faf9; }
html body main #diagnosis .dx-home-fun .dg-fun-chars { gap:6px; }
html body main #diagnosis .dx-home-fun .dg-fun-avatar { width:32px; height:32px; }
html body main #diagnosis .dx-home-fun .dx-profile-link { display:inline-flex; align-items:center; gap:12px; color:#205fbd!important; font-size:18px; font-weight:600; line-height:1.5; text-decoration:none; white-space:nowrap; }
html body main #diagnosis .dx-profile-link:hover { text-decoration:underline; text-underline-offset:5px; }
html body main #diagnosis .dx-profile-link:focus-visible { outline:2px solid #205fbd; outline-offset:6px; border-radius:2px; }
@media(max-width:1000px) { html body main #diagnosis .dx-home-fun { grid-template-columns:auto minmax(0,1fr); gap:12px 22px; } html body main #diagnosis .dx-profile-link { grid-column:2; } }
@media(max-width:540px) { html body main #diagnosis .dx-home-fun { grid-template-columns:minmax(0,1fr); gap:16px; padding:20px; } html body main #diagnosis .dx-profile-link { grid-column:1; } }
html body main #diagnosis .dx-home-fun p { margin:0; color:#263847!important; font-size:19px!important; line-height:1.55!important; text-wrap:pretty; }
html body main #diagnosis .dx-cta { margin-top: 24px; }
@media (max-width: 860px) {
  html body main #diagnosis .dx-home-grid .dx-points { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  html body main #diagnosis .dg-excerpt { padding: 20px; }
}

/* ---------- Resources: repository not public yet ---------- */
body .resource-tool--soon { cursor: default; }
body .resource-tool--soon > .soon-tag:last-child { margin-left: auto; font-size: 12px; }

/* ---------- Typography that the site sets inside a cascade layer ----------
   The shared rules use !important within @layer m2a-typography, which outranks
   unlayered !important, so these overrides have to live in the same layer. */
@layer m2a-typography {
  html body #introduction .intro-copy.intro-prose { padding-block: 40px 8px; }
  html body #introduction .intro-prose p {
    margin: 0 0 22px !important;
    font: 400 18px/1.7 var(--hp-sans) !important;
    color: var(--hp-body) !important;
  }
  html body #introduction .intro-prose p:first-child { font-size: 21px !important; line-height: 1.55 !important; color: var(--hp-ink) !important; }
  html body #introduction .intro-prose p.intro-scoring { margin: 4px 0 0 !important; font-size: 17px !important; }
  html body main #diagnosis .dx-home-grid .dx-num { font-family: var(--hp-sans) !important; }
  @media (max-width: 860px) {
    html body #introduction .intro-prose p { font-size: 17px !important; }
    html body #introduction .intro-prose p:first-child { font-size: 19px !important; }
  }
}

/* ---------- Second pass ---------- */
body #overview .hero-intro-description { max-width: 600px; text-wrap: pretty; }

/* Hero tagline: the only line under the title, so it carries the meaning. */
body #overview .hero-intro-description {
  max-width: 560px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.005em;
  text-wrap: balance;
  text-shadow: 0 1px 14px rgba(8, 14, 22, .55);
}
body #overview .hero-intro-actions { margin-top: 26px; }
body #overview .hero-intro .hero-dims .hero-dim { cursor: default; }


/* ---------- Hero: the demo card spans the bottom and carries the suite switch ---------- */
@media (min-width: 761px) {
  html body #overview .hero-intro .hero-intro-story {
    left: clamp(28px, 6vw, 116px);
    right: clamp(28px, 6vw, 116px);
    bottom: 28px;
    width: auto;
    height: 216px;
    display: grid;
    grid-template-columns: minmax(340px, 31%) minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 30px;
    row-gap: 8px;
    padding: 18px 22px;
    border-radius: 24px;
  }
  html body #overview .hero-intro .demo-controls { display: contents; }
  html body #overview .hero-intro .demo-scene-nav {
    grid-column: 1; grid-row: 1 / -1;
    display: grid; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 6px;
    margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  }
  html body #overview .hero-intro .demo-scene-nav button {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 2px;
    min-height: 0; padding: 6px 16px; border: 1px solid #ffffff2e; border-radius: 14px;
    background: #ffffff0d; color: #cdd9de; text-align: left; cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
  }
  html body #overview .hero-intro .demo-scene-nav button b { font-size: 19px; font-weight: 650; line-height: 1.2; color: #f4f7f3; }
  html body #overview .hero-intro .demo-scene-nav button span { font-size: 14px; font-weight: 450; line-height: 1.3; color: #b4c4cb; }
  html body #overview .hero-intro .demo-scene-nav button:hover { border-color: #ffffff66; background: #ffffff1a; }
  html body #overview .hero-intro .demo-scene-nav button[aria-current=true] { border-color: #f4f7f2; background: #f4f7f2; }
  html body #overview .hero-intro .demo-scene-nav button[aria-current=true] b { color: #15263a; }
  html body #overview .hero-intro .demo-scene-nav button[aria-current=true] span { color: #44586a; }
  html body #overview .hero-intro .demo-play { grid-column: 3; grid-row: 1; align-self: start; justify-self: end; margin: 0; }
  html body #overview .hero-intro .demo-copy,
  html body #overview .hero-intro[data-phase=focus] .demo-copy { grid-column: 2; grid-row: 1; padding: 0 !important; min-height: 0; }
  html body #overview .hero-intro .demo-title { font-size: clamp(20px, 1.7vw, 24px) !important; }
  html body #overview .hero-intro .demo-workspace,
  html body #overview .hero-intro .demo-act-workspace {
    grid-column: 2 / 4; grid-row: 2; height: 100%; padding: 0; align-items: center;
  }
  html body #overview .hero-intro .demo-workspace:not([hidden]) { display: grid; }
  html body #overview .hero-intro[data-phase=reproduce] .demo-workspace { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  html body #overview .hero-intro .demo-memory-window { height: 96px; }
  html body #overview .hero-intro .demo-card { flex-basis: 112px; width: 112px; padding: 4px; }
  html body #overview .hero-intro .demo-card-caption { font-size: 12px; padding-top: 3px; }
  html body #overview .hero-intro .demo-memory-footer { min-height: 0; margin-top: 2px; }
  html body #overview .hero-intro .demo-motion { height: 100%; }
  html body #overview .hero-intro .demo-chart { height: 104px; }
  html body #overview .hero-intro .demo-act-workspace { grid-template-columns: minmax(0, 1fr) 200px; }
  html body #overview .hero-intro .demo-act-chart { height: 112px; }
  html body #overview .hero-intro .demo-joints dl { gap: 3px; margin-top: 4px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  html body #overview .hero-intro .hero-intro-story { grid-template-columns: minmax(250px, 34%) minmax(0, 1fr) auto; height: 220px; }
  html body #overview .hero-intro .demo-scene-nav button span { font-size: 13px; }
}
@media (min-width: 761px) and (max-height: 760px) {
  html body #overview .hero-intro .hero-intro-story { bottom: 12px; height: 188px; padding-block: 12px; }
  html body #overview .hero-intro .demo-scene-nav button span { display: none; }
  html body #overview .hero-intro .demo-memory-window { height: 84px; }
  html body #overview .hero-intro .demo-chart, html body #overview .hero-intro .demo-act-chart { height: 90px; }
}
@media (max-width: 760px) {
  html body #overview .hero-intro .demo-scene-nav button b { font-size: 16px; }
  html body #overview .hero-intro .demo-scene-nav button span { display: none; }
}

/* Act phase inside the bottom card: keep chart and joints within the card height. */
@media (min-width: 761px) {
  html body #overview .hero-intro .demo-act-caption,
  html body #overview .hero-intro .demo-act-legend { display: none !important; }
  html body #overview .hero-intro .demo-act-workspace { grid-template-columns: minmax(0, 1fr) 270px; column-gap: 24px; }
  html body #overview .hero-intro .demo-act-chart { height: 96px; }
  html body #overview .hero-intro .demo-act-plot .demo-panel-heading { margin-bottom: 2px; }
  html body #overview .hero-intro .demo-joints dl { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 3px 10px; align-items: baseline; font-size: 12.5px; }
  html body #overview .hero-intro .demo-joints dl > * { margin: 0; }
}
@media (min-width: 761px) and (max-height: 760px) {
  html body #overview .hero-intro .demo-act-chart { height: 74px; }
  html body #overview .hero-intro .demo-joints { display: none; }
  html body #overview .hero-intro .demo-act-workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 761px) {
  html body #overview .hero-intro .demo-joints dl { grid-template-columns: auto auto auto auto; justify-content: space-between; }
  html body #overview .hero-intro .demo-joints dl > * { white-space: nowrap; }
  html body #overview .hero-intro .demo-act-workspace { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* ---------- Bottom card, second pass: quieter selector, task eyebrow, joints in a tidy grid ---------- */
@media (min-width: 761px) {
  html body #overview .hero-intro .hero-intro-story {
    background: rgba(10, 18, 28, .74);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid #ffffff26;
    box-shadow: 0 -1px 0 #ffffff12 inset, 0 18px 50px rgba(4, 10, 18, .38);
    column-gap: 32px;
  }
  html body #overview .hero-intro .demo-scene-nav {
    counter-reset: suite;
    padding-right: 28px; border-right: 1px solid #ffffff1f;
    gap: 2px;
  }
  html body #overview .hero-intro .demo-scene-nav button {
    counter-increment: suite;
    position: relative; padding: 6px 14px 6px 50px;
    border: 0; border-radius: 12px; background: none; color: #cdd9de;
  }
  html body #overview .hero-intro .demo-scene-nav button::before {
    content: '0' counter(suite);
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    font: 600 13px/1 'JetBrains Mono', ui-monospace, monospace; color: #7f96a1;
  }
  html body #overview .hero-intro .demo-scene-nav button b { color: #eaf0ef; font-size: 18px; }
  html body #overview .hero-intro .demo-scene-nav button span { color: #9fb2ba; }
  html body #overview .hero-intro .demo-scene-nav button:hover { background: #ffffff12; border: 0; }
  html body #overview .hero-intro .demo-scene-nav button[aria-current=true] {
    background: #ffffff1f; border: 0; box-shadow: inset 3px 0 0 #bfe3d3;
  }
  html body #overview .hero-intro .demo-scene-nav button[aria-current=true]::before { color: #bfe3d3; }
  html body #overview .hero-intro .demo-scene-nav button[aria-current=true] b { color: #fff; }
  html body #overview .hero-intro .demo-scene-nav button[aria-current=true] span { color: #d5e2e5; }
  html body #overview .hero-intro .demo-copy::before,
  html body #overview .hero-intro[data-phase=focus] .demo-copy::before {
    content: 'TASK CP05 · KEYBOARD SEQUENCE';
    display: block; margin-bottom: 5px;
    font: 600 12px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .1em; color: #bfe3d3;
  }
  html body #overview .hero-intro .demo-act-workspace { grid-template-columns: minmax(0, 1fr) 400px; }
  html body #overview .hero-intro .demo-joints dl {
    grid-template-columns: repeat(3, auto auto); justify-content: space-between; gap: 6px 12px; font-size: 12.5px;
  }
}
@media (min-width: 761px) and (max-width: 1320px) {
  html body #overview .hero-intro .demo-joints { display: none; }
  html body #overview .hero-intro .demo-act-workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 761px) {
  html body #overview .hero-intro .demo-joints dl { grid-template-columns: repeat(3, max-content); }
  html body #overview .hero-intro .demo-joints dl > div { display: flex; gap: 8px; align-items: baseline; }
}

/* ---------- Lower homepage: one type scale ----------
   Section headings 34px, lead 20px, body 17-18px, supporting text 15-16px, nothing under 13px. */
html body main #benchmark-at-a-glance dl,
html body #overview .home-stats dl { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 0; }
html body #overview .home-stats { padding: 30px 0; }
html body #overview .home-stat { padding: 0 24px; }
html body #overview .home-stat-value { font-size: 48px; margin-bottom: 10px; }
html body #overview .home-stat dt { font-size: 17px; font-weight: 650; line-height: 1.3; }
html body #overview .home-stat-detail { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--hp-muted); text-wrap: balance; }
@media (max-width: 860px) {
  html body #overview .home-stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  html body #overview .home-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  html body #overview .home-stat-value { font-size: 40px; }
}
html body main #diagnosis .dx-head h2,
html body main #top-ten .hl-head h2,
html body main #tasks .ht-head h2,
html body main #news .section-copy h2,
html body main #resources-overview > h2,
html body main #contributors .section-copy h2 {
  font-size: 34px !important; font-weight: 700 !important; line-height: 1.15 !important; letter-spacing: -.025em !important;
}
html body main .home-eyebrow { font-size: 13px !important; }
html body main #diagnosis .dg-task { font-size: 14px !important; }
html body main #diagnosis h4 { font-size: 14px !important; }
html body main #diagnosis .dg-fun-tag { font-size: 13px !important; }
html body main #top-ten .hl-org, html body main #top-ten .hl-foot, html body main #top-ten .hl-col p { font-size: 14px !important; }
html body main #tasks .ht-id { font-size: 13px !important; }
html body main #news time, html body main #news .nw-model, html body main #news .nw-next { font-size: 14px !important; }
html body main #news .nw-tag, html body main #news span { font-size: 13px; }
html body main #resources-overview small, html body main #resources-overview b { font-size: 14px !important; }
html body main :is(#diagnosis, #top-ten, #tasks, #news, #resources-overview, #contributors) p { text-wrap: pretty; }
html body #introduction .intro-copy.intro-prose { width: min(800px, 100%) !important; max-width: 800px !important; }
html body #introduction .intro-prose p { text-wrap: pretty; }



/* ===== Paper block and overview figure ===== */
html body .rd-paper {
  box-sizing: border-box; width: min(1100px, calc(100% - 48px)); margin: 72px auto 0;
  color: #16263a; font-family: var(--m2a-font-sans, 'Google Sans Flex', system-ui, Arial, sans-serif); text-align: left;
}
html body .rd-title {
  max-width: 980px; margin: 0 0 40px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; letter-spacing: -.03em;
  line-height: 1.16; color: #16263a; text-wrap: balance;
}
html body .rd-grid { display: block; margin: 0; border-top: 1px solid #dce3e5; }
html body .rd-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); column-gap: 24px; margin: 0; padding: 22px 0; border-bottom: 1px solid #dce3e5; }
html body .rd-row > dt { margin: 0; padding-top: 3px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5a6b78; }
html body .rd-row > dd { margin: 0; min-width: 0; font-size: 17px; line-height: 1.6; color: #16263a; }
html body .rd-authors { margin: 0; font-size: 17px; line-height: 1.85; color: #16263a; }
html body .rd-author { white-space: nowrap; font-weight: 600; }
html body .rd-author::after { content: ','; margin-right: .4em; font-weight: 400; }
html body .rd-author:last-child::after { content: ''; margin: 0; }
html body .rd-author sup, html body .rd-affils sup, html body .rd-notes sup { font-size: .68em; font-weight: 600; color: #2f6f5c; }
html body .rd-author sup { margin-left: 1px; }
html body .rd-notes { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 12px 0 0; font-size: 14px; color: #5a6b78; }
html body .rd-affils { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px 32px; margin: 0; padding: 0; list-style: none; }
html body .rd-affils li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 15px; line-height: 1.4; color: #263847; }
html body .rd-affils img { flex: none; width: 22px; height: 22px; object-fit: contain; }
html body .rd-affils sup { margin-right: 4px; }
html body .rd-soon { display: inline-block; padding: 3px 12px; border: 1px dashed #b9c5c2; border-radius: 999px; background: #f3f6f4; color: #48655a; font-size: 14px; font-weight: 600; }
html body .rd-link { color: #2f6f5c; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
html body .rd-email { font-size: 16px; color: #263847; }
html body .rd-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
html body .rd-chip {
  display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; min-height: 40px; padding: 7px 16px;
  border: 1px solid #cfd8d6; border-radius: 999px; background: #fff; color: #16263a !important;
  font: 600 15px/1.2 var(--m2a-font-sans, 'Google Sans Flex', system-ui, Arial, sans-serif); text-decoration: none; cursor: pointer;
}
html body a.rd-chip:hover, html body button.rd-chip:hover { border-color: #16263a; background: #f3f6f4; }
html body .rd-chip.is-soon { border-style: dashed; color: #5a6b78 !important; cursor: default; }
html body .rd-chip small { padding: 2px 8px; border-radius: 999px; background: #e9efec; color: #48655a; font-size: 13px; font-weight: 600; }
html body .rd-chip img, html body .rd-chip svg { flex: none; width: 19px; height: 19px; }
html body .rd-dicon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #5865f2; color: #fff; font-size: 12px; font-weight: 700; }
html body .rd-chips #copy-feedback { font-size: 14px; color: #2f6f5c; }
@media (max-width: 760px) {
  html body .rd-paper { width: calc(100% - 32px); margin-top: 48px; }
  html body .rd-row { grid-template-columns: minmax(0, 1fr); row-gap: 8px; padding: 18px 0; }
  html body .rd-affils { grid-template-columns: minmax(0, 1fr); }
  html body .rd-author { white-space: normal; }
}

html body #introduction .intro-overview {
  box-sizing: border-box; width: 100% !important; max-width: 1100px !important; margin: 44px auto 0 !important; padding: 28px 28px 20px;
  border: 1px solid #dce3e5; border-radius: 16px; background: #fff; box-shadow: 0 10px 34px -22px rgba(22, 38, 58, .3);
}
html body #introduction .intro-overview h3 { margin: 0 0 18px !important; font-size: 24px !important; font-weight: 650 !important; letter-spacing: -.02em !important; line-height: 1.25 !important; color: #16263a !important; text-align: left !important; }
html body #introduction .intro-overview picture { display: block; }
html body #introduction .intro-overview img { display: block; width: 100% !important; height: auto !important; margin: 0 !important; border-radius: 10px; }
html body #introduction .intro-overview figcaption { margin: 16px 0 0 !important; font-size: 15px !important; line-height: 1.55; color: #5a6b78 !important; text-align: left !important; }
html body #introduction .intro-overview figcaption b { color: #16263a; font-weight: 650; }
html body #introduction .intro-overview figcaption a { color: #2f6f5c; font-weight: 600; }
@media (max-width: 760px) { html body #introduction .intro-overview { padding: 16px 14px 14px; border-radius: 12px; } html body #introduction .intro-overview h3 { font-size: 20px !important; } }
html body .rd-paper { width: min(1024px, calc(100% - 48px)); }
html body .rd-affils { display: block; columns: 2 340px; column-gap: 32px; }
html body .rd-affils li { break-inside: avoid; margin: 0 0 10px; }
@media (max-width: 760px) { html body .rd-paper { width: calc(100% - 32px); } html body .rd-affils { columns: 1; } }
html body .rd-affils li { font-size: 14.5px; gap: 9px; }
html body .rd-affils img { width: 20px; height: 20px; }


/* ---------- Introduction and numbers, one voice: same weight everywhere except the lead statement ---------- */
html body #introduction .intro-copy.intro-prose.intro-cols {
  display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start;
  width: 100% !important; max-width: none !important; padding: 56px 0 8px !important;
}
@layer m2a-typography {
  html body #introduction .intro-cols .intro-lead p {
    margin: 0 !important; font: 600 26px/1.38 var(--hp-sans) !important; letter-spacing: -.02em !important; color: var(--hp-ink) !important; text-wrap: balance;
  }
  html body #introduction .intro-cols .intro-body p {
    margin: 0 0 22px !important; font: 400 18px/1.7 var(--hp-sans) !important; letter-spacing: 0 !important; color: var(--hp-body) !important; text-wrap: pretty;
  }
  html body #introduction .intro-cols .intro-body p:first-child { font-size: 18px !important; line-height: 1.7 !important; color: var(--hp-body) !important; }
  html body #introduction .intro-cols .intro-body p strong { font-weight: 650 !important; color: var(--hp-ink) !important; }
  html body #introduction .intro-cols .intro-body p.intro-scoring { margin: 4px 0 0 !important; }
}
@media (max-width: 860px) {
  html body #introduction .intro-copy.intro-prose.intro-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 36px !important; }
  @layer m2a-typography { html body #introduction .intro-cols .intro-lead p { font-size: 24px !important; } }
}
html body #overview .home-stat-value { font-weight: 600; letter-spacing: -.03em; }
html body #overview .home-stat dt { font-weight: 600; }
html body #overview .home-stat-detail { font-weight: 400; }

@layer m2a-typography {
  html body #introduction .intro-copy.intro-prose.intro-cols {
    display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) !important; gap: 64px !important;
    align-items: start !important; width: 100% !important; max-width: none !important; padding: 56px 0 8px !important;
  }
  @media (max-width: 860px) {
    html body #introduction .intro-copy.intro-prose.intro-cols { grid-template-columns: minmax(0, 1fr) !important; gap: 24px !important; padding-top: 36px !important; }
  }
}

/* ---------- Hero: lowered piano stage with a continuous dark gradient ---------- */
body #overview .hero-intro-title .hero-intro-world {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (min-width: 761px) {
  html body #overview .demo-hero.hero-intro {
    background: linear-gradient(180deg, #252e35 0%, #303941 28%, #3c454b 58%, #152129 100%) !important;
  }
  html body #overview .hero-intro .demo-scene {
    inset: clamp(168px, 20svh, 216px) 0 0 !important;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 19%);
    mask-image: linear-gradient(180deg, transparent, #000 19%);
  }
  html body #overview .hero-intro .demo-video { object-position: 50% 0%; }
  html body #overview .hero-intro .hero-intro-copy {
    left: 50% !important; transform: translateX(-50%);
    top: clamp(98px, 12svh, 130px) !important; width: 92% !important; text-align: center !important;
  }
  html body #overview .hero-intro h1.hero-intro-title {
    justify-content: center; font-size: clamp(64px, 6.4vw, 104px);
    color: #fafbf7; text-shadow: 0 .04em 0 #0b162266;
  }
  html body #overview .hero-intro-description {
    max-width: 1280px; margin: 30px auto 0 !important;
    font-size: clamp(20px, 1.7vw, 26px); line-height: 1.45;
    color: #f0f4f2; text-align: center; text-shadow: 0 1px 10px #09111899;
  }
}

/* ---------- The numbers: one line of facts, same type as the text below ---------- */
html body #overview .home-stats { margin: 40px auto 8px !important; padding: 22px 0 !important; border-block: 1px solid var(--hp-line); }
html body #overview .home-stats .hs-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 0; margin: 0; padding: 0; list-style: none; }
html body #overview .home-stats .hs-row li { flex: 1 1 auto; margin: 0; padding: 4px 24px; text-align: center; font: 400 18px/1.3 var(--hp-sans); color: var(--hp-body); border-left: 1px solid var(--hp-line); white-space: nowrap; }
html body #overview .home-stats .hs-row li:first-child { border-left: 0; }
html body #overview .home-stats .hs-row b { font-weight: 700; font-size: 30px; letter-spacing: -.01em; margin-right: 4px; color: var(--hp-ink); font-variant-numeric: tabular-nums; }
html body #overview .home-stats .hs-row span { font-weight: 400; }
@media (max-width: 760px) {
  html body #overview .home-stats .hs-row li { flex: 1 1 50%; white-space: normal; border-left: 0; text-align: left; padding: 6px 4px; }
}

/* ---------- Introduction: one column, one size, one weight ---------- */
@layer m2a-typography {
  html body #introduction .intro-copy.intro-prose.intro-cols {
    display: block !important; width: min(760px, 100%) !important; max-width: 760px !important; margin-inline: auto !important; padding: 44px 0 8px !important;
  }
  html body #introduction .intro-cols .intro-lead p,
  html body #introduction .intro-cols .intro-body p {
    margin: 0 0 22px !important; font: 400 18px/1.7 var(--hp-sans) !important; letter-spacing: 0 !important; color: var(--hp-body) !important; text-wrap: pretty;
  }
  html body #introduction .intro-cols .intro-body p.intro-scoring { margin: 4px 0 0 !important; }
}

/* Keep the recording equally bright in Mind, Act and Mind2Act.
   The top edge still blends into the separate title background. */
html body #overview .hero-intro .demo-shade { display: none !important; }
@media (max-width: 760px) {
  html body main #diagnosis .dg-excerpt > header { flex-wrap: wrap; }
  html body main #diagnosis .dg-excerpt > header > div:nth-child(2) { flex: 1 1 0; min-width: 0; }
  html body main #diagnosis .dg-excerpt .dg-overall { flex-basis: 100%; margin-left: 0; text-align: left; }
  html body main #diagnosis .dg-excerpt--full .dg-causes li { grid-template-columns: minmax(0, 1fr) 44px; row-gap: 6px; }
  html body main #diagnosis .dg-excerpt--full .dg-causes .dg-lbl { grid-column: 1; grid-row: 1; }
  html body main #diagnosis .dg-excerpt--full .dg-causes .dg-val { grid-column: 2; grid-row: 1; text-align: right; }
  html body main #diagnosis .dg-excerpt--full .dg-causes .dg-bar { grid-column: 1 / -1; grid-row: 2; }
}

/* The content sections share a quiet reading rhythm; the hero keeps its own identity. */
html body main :is(#news, #tasks, #top-ten) { border-color: var(--m2a-line, #dde3e6) !important; border-radius: 0 !important; }
html body main :is(#news .section-copy, #tasks .ht-head, #top-ten .hl-head) h2 { color: var(--m2a-ink, #17212b) !important; letter-spacing: -.025em !important; }
html body main :is(#tasks, #top-ten) .home-link-button { min-height: 36px; padding: 4px 0; border: 0; border-radius: 0; background: none; color: var(--m2a-link, #205fbd) !important; font-weight: 600; gap: 8px; }
html body main :is(#tasks, #top-ten) .home-link-button:hover { background: none; text-decoration: underline !important; text-underline-offset: 5px; }
html body main #news :is(.nw-all, .nw-item a), html body #introduction .intro-scoring a { color: var(--m2a-link, #205fbd) !important; }
html body main #news .nw-window { border-color: var(--m2a-line, #dde3e6); }
html body main #news .nw-item { border-bottom-color: var(--m2a-line, #dde3e6); }

/* The footer logo's link is as wide as the logo, so the logo is centred under the page rather than spilling right. */
html body .footer .footer-brand { width: auto !important; }

/* Stats: four equal columns with larger numbers; two columns when the page is narrower. */
html body #overview .home-stats .hs-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 0; }
html body #overview .home-stats .hs-row li { padding: 4px 12px; font-size: 17px; }
html body #overview .home-stats .hs-row b { font-size: clamp(24px, 2.3vw, 30px); }
@media (max-width: 1100px) {
  html body #overview .home-stats .hs-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body #overview .home-stats .hs-row li:nth-child(3) { border-left: 0; }
}
/* Hero chapters: each title in its suite colour, with its moon glyph; the active bar takes the same colour. */
html body #overview .hero-intro .demo-scene-nav button[data-suite="mind"] b { color: #a9d8c2 !important; }
html body #overview .hero-intro .demo-scene-nav button[data-suite="act"] b { color: #a4c8de !important; }
html body #overview .hero-intro .demo-scene-nav button[data-suite="mind2act"] b { color: #e5c97f !important; }
html body #overview .hero-intro .demo-scene-nav button[data-suite="mind"][aria-current=true] { box-shadow: inset 3px 0 0 #a9d8c2; }
html body #overview .hero-intro .demo-scene-nav button[data-suite="act"][aria-current=true] { box-shadow: inset 3px 0 0 #a4c8de; }
html body #overview .hero-intro .demo-scene-nav button[data-suite="mind2act"][aria-current=true] { box-shadow: inset 3px 0 0 #e5c97f; }
html body #overview .hero-intro .demo-scene-nav button[aria-current=true] .suite-moon { filter: drop-shadow(0 0 4px #ffffff66); }

html body main #diagnosis .dx-home-fun .dx-fun-identity { display:flex; flex-direction:column; align-items:center; gap:12px; }
html body main #diagnosis .dx-home-fun .dg-fun-tag { display:inline-block; padding:7px 16px; border-radius:6px; background:#efe5ca; color:#70531c; font-size:18px!important; line-height:1.3; font-weight:650; letter-spacing:0; text-transform:none; white-space:nowrap; }
html body main #diagnosis .dx-home-fun .dg-fun-avatar { width:36px; height:36px; }
@media(max-width:540px) { html body main #diagnosis .dx-home-fun .dx-fun-identity { flex-direction:row; justify-content:space-between; flex-wrap:wrap; } }

/* Keep the playful label with its description, and the characters with their link. */
html body main #diagnosis .dx-home-fun { grid-template-columns:minmax(0,1fr) auto; gap:24px 40px; padding:24px 28px; background:#fafbf9; border:1px solid #dce5e4; border-radius:12px; }
html body main #diagnosis .dx-fun-copy .dg-fun-tag { margin-bottom:12px; }
html body main #diagnosis .dx-fun-copy p { max-width:none; }
html body main #diagnosis .dx-fun-action { display:flex; flex-direction:column; align-items:center; gap:12px; }
html body main #diagnosis .dx-fun-action .dx-profile-link { font-size:18px; }
@media(max-width:700px) { html body main #diagnosis .dx-home-fun { grid-template-columns:1fr; padding:22px; } html body main #diagnosis .dx-fun-action { align-items:flex-start; } }
/* ---------- Hero height follows the width, so the keys being played stay clear of the story panel ----------
   The video is 16:9, anchored at its top. The keys sit at y = 399 of 1080 and the mallets work down to
   about half the frame. The panel covers the bottom 330px plus its 28px inset. On wide or short windows a
   one-screen hero hid that region, so the hero grows to show the top half of the video above the panel. */
@media (min-width: 761px) {
  html body.dark-hero #overview .demo-hero.hero-intro {
    height: max(100svh, calc(clamp(168px, 20svh, 216px) + 28.125vw + 380px));
    max-height: none;
  }
}
