.context-system {
  --context-line: #493725;
  --context-muted: #b8aa98;
  --context-amber: #FDA947;
  width: min(86%, 1440px);
  margin: 0 auto;
  color: var(--paper, #f6f2ea);
  font-family: var(--font-body, sans-serif);
}
.context-system__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.context-system__heading h3 { margin: 0; font: 400 clamp(30px, 2.8vw, 47px)/1.12 var(--font-display, sans-serif); letter-spacing: 0; text-transform: none; }
.context-steps { display: flex; flex: none; border-bottom: 1px solid var(--context-line); gap: 27px; }
/* Center labels inside the same hit box used by the pointer halo. */
.context-steps button { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; border: 0; padding: 11px 0; background: none; color: var(--context-muted); font: 500 16px/1.2 var(--font-body, sans-serif); }
.context-steps button::after { content: ""; position: absolute; inset: auto 0 -1px; height: 2px; background: var(--context-amber); transform: scaleX(0); transform-origin: left; transition: transform .2s ease-out; }
.context-steps button[aria-pressed="true"] { color: var(--context-amber); }
.context-steps button[aria-pressed="true"]::after { transform: scaleX(1); }
.context-steps button:hover { color: #f6f2ea; }
.context-steps button:focus-visible { outline: 2px solid var(--context-amber); outline-offset: 6px; }
.context-diagram { position: relative; height: 260px; margin: 30px 0 25px; isolation: isolate; }
.context-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: -1; pointer-events: none; }
.context-wire-group { fill: none; stroke: var(--context-line); stroke-width: 1; transition: stroke .25s; }
.context-wire-group path { vector-effect: non-scaling-stroke; }
[data-context-stage="connect"] .context-wire-group[data-context-route="connect"], [data-context-stage="remember"] .context-wire-group[data-context-route="remember"], [data-context-stage="act"] .context-wire-group[data-context-route="act"] { stroke: #bc7c39; }
.context-packets path { fill: none; stroke: #ffe0b3; stroke-width: 2.5px; stroke-linecap: round; stroke-dasharray: .085 .915; stroke-dashoffset: 1; opacity: 0; }
.context-label { margin: 0; color: var(--context-muted); font-size: 16px; font-weight: 400; line-height: 1.4; }
.context-sources { position: absolute; top: 35px; left: 0; width: 17%; }
.context-sources ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.context-sources li { display: flex; align-items: center; justify-content: space-between; padding-right: 4px; color: #d7ccbf; font-size: 17px; line-height: 1.4; }
.context-sources i { display: block; width: 5px; height: 5px; border-radius: 50%; border: 1px solid #8d6c45; background: #080604; transition: background .2s; }
[data-context-stage="connect"] .context-sources i { background: var(--context-amber); border-color: var(--context-amber); }
.context-core { position: absolute; top: 27px; left: 43%; width: 166px; height: 166px; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; flex-direction: column; background: #080604; border-radius: 50%; }
.context-core__ring { position: absolute; inset: 0; border: 1px solid #735030; border-radius: 50%; }
.context-core__ring i { position: absolute; border: 1px solid #493421; border-radius: 50%; inset: 5px; }
.context-core__ring i:nth-child(2) { inset: 12px; border-color: #332719; }
.context-core__ring i:nth-child(3) { inset: -8px; border-color: transparent; border-right-color: var(--context-amber); border-left-color: #8c5727; transform: rotate(-32deg); }
.context-core img { display: block; width: 34px; height: 34px; margin-bottom: 5px; border-radius: 5px; }
.context-core strong { font-size: 25px; line-height: 1.2; font-weight: 500; }
.context-result { position: absolute; top: 35px; right: 0; width: 30%; min-height: 160px; padding: 0 0 0 27px; border-left: 1px solid var(--context-line); transition: border-color .2s; }
.context-result h4 { margin: 17px 0 15px; font: 500 clamp(24px, 2vw, 34px)/1.15 var(--font-display, sans-serif); letter-spacing: 0; text-transform: none; }
.context-result__action { display: flex; gap: 10px; margin: 0; font-size: 17px; line-height: 1.4; color: var(--context-muted); transition: color .2s; }
.context-result__action > span:first-child { color: var(--context-amber); font-size: 25px; line-height: 1; }
.context-result__action-copy { font: inherit; color: inherit; }
[data-context-stage="act"] .context-result { border-color: var(--context-amber); }
[data-context-stage="act"] .context-result__action { color: var(--context-amber); }
.context-knowledge { position: absolute; bottom: 0; left: 18%; display: flex; align-items: center; gap: 10px; width: 24%; padding-top: 13px; border-top: 1px solid var(--context-line); background: #030302; }
.context-knowledge--memory { left: 45%; }
.context-knowledge__symbol { color: #816345; font-size: 22px; line-height: 1; }
.context-knowledge h4 { margin: 0; font-size: 17px; line-height: 1.4; font-weight: 500; }
[data-context-stage="remember"] .context-knowledge { border-color: var(--context-amber); }
[data-context-stage="remember"] .context-knowledge__symbol { color: var(--context-amber); }
.context-system__notes { display: grid; gap: 6px; border-top: 1px solid #30271e; padding-top: 17px; }
.context-caption { margin: 0; min-height: 1.5em; font-size: 17px; line-height: 1.5; color: #d7ccbf; }
.context-details { width: 100%; font-size: 16px; line-height: 1.6; color: var(--context-muted); }
.context-details summary { display: flex; align-items: center; gap: 10px; width: max-content; max-width: 100%; min-height: 44px; padding: 5px 0; list-style: none; cursor: pointer; color: var(--context-amber); font-size: 16px; font-weight: 500; }
.context-details summary::-webkit-details-marker { display: none; }
.context-details summary > span { width: 8px; height: 8px; margin: -3px 2px 0; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.context-details[open] summary > span { transform: translateY(3px) rotate(225deg); }
.context-details summary:hover { color: #f6dfbf; }
.context-details summary:focus-visible { outline: 2px solid var(--context-amber); outline-offset: 5px; }
.context-details__body { max-width: 72ch; padding: 8px 0 2px; }
.context-details__body p { margin: 0 0 14px; }
.context-details__body strong { font-weight: 500; color: #d7ccbf; }
.context-details__links { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-bottom: 3px; }
.context-details a { display: inline-flex; align-items: center; min-height: 44px; color: #ebc28e; text-decoration: underline; text-underline-offset: 4px; }
.context-details a:hover { color: #f8dfbb; }
@media (max-width: 1000px) {
  .context-system { width: 86%; }
  .context-system__heading { gap: 20px; }
  .context-steps { gap: 18px; }
  .context-steps button { font-size: 16px; }
  .context-core { width: 145px; height: 145px; top: 36px; }
  .context-knowledge { left: 13%; width: 28%; }
  .context-knowledge--memory { left: 44%; }
  .context-result { width: 29%; padding-left: 18px; }
  .context-result__action { font-size: 16px; }
}
@media (max-width: 740px) {
  .context-system { width: 86%; }
  .context-system__heading { display: block; }
  .context-system__heading h3 { font-size: clamp(29px, 6.4vw, 40px); }
  .context-steps { display: inline-flex; gap: 26px; margin-top: 24px; }
  .context-steps button { font-size: 16px; gap: 6px; }
  .context-diagram { height: 480px; margin-top: 26px; margin-bottom: 26px; }
  .context-sources { inset: 0 0 auto; width: auto; text-align: center; }
  .context-sources ul { display: flex; align-items: center; justify-content: space-around; gap: 10px; margin-top: 0; }
  .context-sources li { flex-direction: column; gap: 8px; font-size: 16px; padding: 0; }
  .context-core { top: 91px; left: 50%; width: 150px; height: 150px; }
  .context-core img { width: 30px; height: 30px; }
  .context-core strong { font-size: 24px; }
  .context-result { top: 285px; right: 50%; width: min(84%, 330px); transform: translateX(50%); min-height: 115px; padding: 0 0 0 19px; }
  .context-result h4 { margin: 12px 0 10px; font-size: 26px; }
  .context-result__action { font-size: 16px; }
  .context-knowledge { bottom: 0; left: 0; width: 46%; gap: 6px; padding-top: 11px; }
  .context-knowledge--memory { left: auto; right: 0; }
  .context-knowledge h4 { font-size: 16px; }
  .context-knowledge__symbol { font-size: 17px; }
  .context-system__notes { gap: 5px; padding-top: 16px; }
}
@media (max-width: 360px) {
  .context-steps { gap: 20px; }
  .context-steps button { font-size: 16px; }
  .context-result h4 { font-size: 24px; }
  .context-knowledge { width: 47%; }
  .context-knowledge__symbol { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .context-system *, .context-system *::after { transition: none !important; }
  .context-packets { display: none; }
}
