/* The homepage hero: standard inference vs Test Time Cognition (2 October 2026). The section is a
   scroll track with a pinned stage. This stylesheet places the copy; hero-compare.20261002.js draws
   the graphic on the canvas, moves the copy as the reader scrolls and places the chapter heads, the
   labels and the legend. Every colour is a site theme token, so both themes work. The design study
   is in design-explorations/hero-compare/. */
.hc-hero {
  --hc-margin: max(56px, calc(50% - 720px));  /* the page's side margin, as .page-width sets it */
  --hc-header: 118px;                          /* the header's height, until the script measures the stage */
  position: relative;
  height: calc(100vh + var(--hc-track, 0px));
}
.hc-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hc-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.hc-stage > :is(.hc-head, .hc-label, .hc-legend, .hc-skip, .hc-cue) { position: absolute; left: 0; top: 0; z-index: 1; will-change: transform, opacity; }
/* Until the script has placed them, and without it, only the copy shows. */
.hc-hero:not(.is-live) :is(.hc-canvas, .hc-head, .hc-label, .hc-legend, .hc-skip, .hc-cue) { visibility: hidden; }
.hc-description {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* The hero copy. It sits at the page's side margin and, on wide screens, a little above the centre
   of the part of the stage below the header (--hc-vis, which the script sets exactly); when it is
   taller than that, it starts at the top. The script reads where it is and only moves it. */
.hc-stage > .hc-copy {
  position: absolute;
  z-index: 1;
  left: var(--hc-margin);
  top: 0;
  box-sizing: border-box;
  width: min(560px, 40vw);
  height: var(--hc-vis, calc(100vh - var(--hc-header)));
  padding: 24px 0 calc(var(--hc-vis, calc(100vh - var(--hc-header))) * 0.08 + 24px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  justify-content: safe center;
  pointer-events: auto;
  will-change: transform, opacity;
}
.hc-copy h1 { margin: 0 0 32px; font-size: clamp(44px, 4.15vw, 66px); font-weight: 400; letter-spacing: -.06em; line-height: 1.08; }
.hc-copy h1 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.078em; }
.hc-copy .hero-dek { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; letter-spacing: -.35px; }

/* A line of narration: a dot in the colour of whoever is at work, then the sentence. */
.hc-live {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.38;
  letter-spacing: -.3px;
}
.hc-live[hidden] { display: none; }
.hc-live i, .hc-name i {
  position: relative;
  top: -.08em;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
[data-tag="priors"] > i { background: rgb(var(--field-glow-rgb)); }
[data-tag="likely"] > i { background: color-mix(in srgb, rgb(var(--field-glow-rgb)) 64%, var(--ink)); }
[data-tag="memory"] > i { background: var(--coral); }
[data-tag="search"] > i { background: var(--accent); }
[data-tag="agent"] > i { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
[data-tag=""] > i { display: none; }
/* Verdicts: a tick or a cross in a ring, as in the graphic. */
:is([data-tag="check"], [data-tag="wrong"]) > i { width: 15px; height: 15px; top: .12em; border-radius: 0; }
.hc-label:is([data-tag="check"], [data-tag="wrong"]) .hc-name i { width: 15px; height: 15px; border-radius: 0; }
:is([data-tag="check"] > i, .hc-label[data-tag="check"] .hc-name i) {
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='7'/%3E%3Cpath d='M5 8.2l2 2.2 4-4.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='7'/%3E%3Cpath d='M5 8.2l2 2.2 4-4.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is([data-tag="wrong"] > i, .hc-label[data-tag="wrong"] .hc-name i) {
  background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='7'/%3E%3Cpath d='M5.6 5.6l4.8 4.8M10.4 5.6l-4.8 4.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='7'/%3E%3Cpath d='M5.6 5.6l4.8 4.8M10.4 5.6l-4.8 4.8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* The chapter head: chapters as a rail, the chapter's title, and at most one still line under it. */
.hc-head { width: min(1240px, calc(100vw - 80px)); text-align: center; }
.hc-rail { display: flex; justify-content: center; gap: 0; margin: 0 0 18px; }
.hc-rail button {
  position: relative;
  padding: 6px 16px 9px;
  border: 0;
  background: none;
  color: var(--muted);
  font: 400 11.5px/1.4 var(--mono);
  letter-spacing: 1.25px;
  text-transform: uppercase;
  cursor: pointer;
}
.hc-rail button + button::before { content: ""; position: absolute; left: -10px; top: 50%; width: 20px; height: 1px; margin-top: -2px; background: var(--rule); }
.hc-rail button[aria-current="true"] { color: var(--ink); }
.hc-rail button[aria-current="true"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 1.5px; background: var(--ink); }
.hc-rail button:hover { color: var(--ink); }
.hc-title { margin: 0; color: var(--ink); font-size: clamp(30px, 2.75vw, 44px); line-height: 1.1; letter-spacing: -.045em; text-wrap: balance; }
.hc-sub { min-height: 1.45em; margin: 14px auto 0; max-width: 760px; color: var(--muted-text, var(--muted)); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.45; letter-spacing: -.25px; }

/* Labels beside the graphic: a name, a note, and a verdict that comes in at the end. */
.hc-label { width: max-content; max-width: 460px; }
.hc-label[data-align="c"] { text-align: center; }
.hc-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--ink);
  font: 400 12px/1.4 var(--mono);
  letter-spacing: 1.35px;
  text-transform: uppercase;
}
.hc-name i { display: none; top: 0; }
.hc-note { margin: 3px 0 0; color: var(--muted); font-size: 14px; line-height: 1.35; letter-spacing: -.1px; }
.hc-note:empty { display: none; }
.hc-label .hc-live { justify-content: center; margin-top: 10px; font-size: 16.5px; }
.hc-label[data-align="l"] .hc-live { justify-content: flex-start; }
.hc-label[data-align="end"] .hc-name i { display: none; }
.hc-label[data-align="key"] .hc-name i { display: block; }
.hc-label[data-align="end"] .hc-name { color: var(--muted-text, var(--muted)); }
.hc-label[data-align="end"][data-tag="check"] .hc-name { color: var(--accent-text, var(--accent)); }

/* The legend: the site's mono tags, one colour each. The one the graphic has at work is lit. */
.hc-legend {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
  color: var(--muted);
  font: 400 11.5px/1.4 var(--mono);
  letter-spacing: 1.25px;
  text-transform: uppercase;
}
.hc-legend li { display: flex; align-items: center; gap: 9px; transition: color .25s ease; }
.hc-legend[data-runs="false"] [data-key="agent"] { display: none; }
.hc-skip { color: var(--muted); font: 400 11.5px/1.4 var(--mono); letter-spacing: 1.1px; text-transform: uppercase; text-decoration: none; }
.hc-skip:hover { color: var(--ink); }
.hc-skip span { margin-left: 4px; }
.hc-cue { margin: 0; white-space: nowrap; color: var(--muted); font: 400 11.5px/1.4 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; }
.hc-cue span { margin-left: 6px; }
.hc-legend i { position: relative; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.hc-legend [data-key="agent"] i { width: 22px; border-radius: 0; background: linear-gradient(var(--ink), var(--ink)) center / 100% 1.6px no-repeat; }
.hc-legend [data-key="agent"] i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -5.5px 0 0 -5.5px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
}
.hc-legend [data-key="priors"] i { background: rgb(var(--field-glow-rgb)); }
.hc-legend [data-key="memory"] i { background: var(--coral); }
.hc-legend [data-key="search"] i { background: var(--accent); }
.hc-legend[data-active="priors"] [data-key="priors"],
.hc-legend[data-active="memory"] [data-key="memory"],
.hc-legend[data-active="search"] [data-key="search"] { color: var(--ink); }
.hc-legend[data-active="priors"] [data-key="priors"] i,
.hc-legend[data-active="memory"] [data-key="memory"] i,
.hc-legend[data-active="search"] [data-key="search"] i { transform: scale(1.4); }

/* The page's side margins and the header's height follow the site's breakpoints. */
@media (max-width: 1100px) {
  .hc-hero { --hc-margin: 32px; --hc-header: 94px; }
}
@media (max-width: 760px) {
  .hc-hero { --hc-margin: 20px; --hc-header: 120px; }
}

/* Narrow screens: the same story in a taller stage. The copy sits at the top, with the graphic
   under it. The script switches its layout at the same width. */
@media (max-width: 899.98px) {
  .hc-stage > .hc-copy { top: 18px; width: calc(100% - 2 * var(--hc-margin)); height: auto; padding: 0; display: block; }
  .hc-copy h1 { font-size: clamp(32px, 8.7vw, 56px); margin-bottom: 22px; }
  .hc-copy .hero-dek { font-size: 17px; }
}
.hc-hero:not(.is-wide) .hc-live { font-size: 16px; }
.hc-hero:not(.is-wide) .hc-head { width: calc(100vw - 32px); }
.hc-hero:not(.is-wide) .hc-rail { margin-bottom: 8px; }
.hc-hero:not(.is-wide) .hc-rail button { padding: 5px 9px 8px; font-size: 10.5px; letter-spacing: 1px; }
.hc-hero:not(.is-wide) .hc-rail button:not([aria-current="true"]) { display: none; }
.hc-hero:not(.is-wide) .hc-rail button::before { display: none; }
.hc-hero:not(.is-wide) .hc-title { font-size: clamp(24px, 6.6vw, 32px); }
.hc-hero:not(.is-wide) .hc-sub { margin-top: 8px; font-size: 15px; }
.hc-hero:not(.is-wide) .hc-label { max-width: calc(100vw - 40px); }
.hc-hero:not(.is-wide) .hc-label .hc-live { font-size: 15px; margin-top: 6px; }
.hc-hero:not(.is-wide) .hc-note { font-size: 13px; }
.hc-hero:not(.is-wide) .hc-name { font-size: 11px; }
.hc-hero:not(.is-wide) .hc-legend { flex-wrap: wrap; width: calc(100vw - 40px); white-space: normal; gap: 8px 16px; font-size: 10.5px; }

/* The graphic keeps its colours in the dark theme, as the homepage's other graphics do
   (figure-colors.20260928.css). Print keeps the day palette. */
@media screen {
  html[data-theme="dark"] .hc-hero {
    --coral: #eb8b61;
    --accent: #75b68c;
    --accent-text: #94cda7;
    --field-glow-rgb: 181,194,132;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hc-legend li, .hc-legend i { transition: none; }
}

/* Print: the copy without the graphic, as the previous hero printed. */
@media print {
  .hc-hero { height: auto; }
  .hc-stage { position: static; height: auto; overflow: visible; }
  .hc-stage > :is(.hc-canvas, .hc-head, .hc-label, .hc-legend, .hc-skip, .hc-cue) { display: none; }
  .hc-stage > .hc-copy {
    position: static;
    display: block;
    width: auto;
    max-width: 560px;
    height: auto;
    margin-left: var(--hc-margin);
    padding: 24px 0 36px;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}
