/* Fable's shared Flow / Guards / Layers instrument, restored from e44926d. */
.ops-project { background: var(--bg); }
.ops-project .ops-feature { padding: 42px 38px 35px; gap: 55px; align-items: end; }
.ops-project .ops-feature h3 { font-size: clamp(34px, 3.7vw, 51px); line-height: 1.12; margin: 18px 0 0; }
.ops-project .ops-feature h3 span { color: var(--accent); }
.ops-project .ops-copy > p { font-size: 14px; line-height: 1.8; }
.ops-project .project-actions { margin-top: 23px; }
.ops-project .project-actions .button { font-size: 12px; }
.ops-capabilities { display: grid; grid-template-columns: repeat(3, 1fr); padding: 30px 38px 34px; gap: 24px; }
.ops-capabilities > div { display: flex; gap: 14px; align-items: baseline; }
.ops-capabilities > div > span { color: var(--accent); font: 10px var(--mono); }
.ops-capabilities b { font-size: 13px; font-weight: 550; }
.ops-capabilities small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.ops-architecture { border-top: 1px solid var(--line); padding: 33px 30px 30px; }
.architecture-frame { border: 1px solid var(--line); border-radius: 17px; overflow: hidden; background: var(--bg); }
.architecture-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 21px; border-bottom: 1px solid var(--line); }
.architecture-toolbar .instrument-tabs { padding: 0; display: flex; gap: 5px; }
.architecture-toolbar .instrument-tabs button { font-size: 12px; padding: 8px 22px; min-height: 40px; border-radius: 8px; }
.architecture-toolbar .instrument-tabs button[aria-pressed='true'] { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.architecture-label { font: 9px var(--mono); color: var(--quiet); }
.ops-architecture .machine { padding: 22px 24px 24px; }
.machine-view-title { display: flex; gap: 20px; justify-content: space-between; align-items: baseline; margin-bottom: 22px; color: var(--text); font-size: 13px; }
#machine-view-count { font: 9px var(--mono); color: var(--muted); }
.ops-architecture .states { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.ops-architecture .states li:not(:nth-child(3n)):after { content: none; }
.ops-architecture .states li:not(:last-child)::after { content: ''; position: absolute; height: 1px; width: 14px; left: 100%; top: 46px; background: var(--line); }
.ops-architecture .states li.done::after { background: var(--accent); }
.states button { position: relative; text-align: left; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-raised); color: var(--muted); width: 100%; padding: 15px 13px; min-height: 151px; transition: background .25s, border-color .25s; }
.states button:hover { border-color: var(--accent); background: var(--surface-raised); }
.states .flow-icon { display: grid; place-items: center; width: 29px; height: 29px; margin-bottom: 17px; color: var(--accent); }
.flow-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.flow-number { position: absolute; top: 18px; right: 12px; font: 9px var(--mono); color: var(--quiet); }
.states button strong { display: block; font: 550 13px var(--sans); color: var(--text); }
.states button small { display: block; font: 10px/1.6 var(--sans); color: var(--muted); margin-top: 7px; }
.ops-architecture .states .on button { border-color: var(--accent); background: var(--accent); color: var(--ink); box-shadow: none; }
.states .on .flow-icon, .states .on strong { color: var(--ink); }
.states .on .flow-number, .states .on small { color: var(--ink); }
.states .done button { border-color: #484848; }
.flow-inspector { display: grid; grid-template-columns: 200px 1fr; gap: 30px; align-items: center; margin-top: 22px; padding: 19px 0 20px; border-bottom: 1px solid var(--line); }
.flow-current { display: grid; grid-template-columns: 7px 1fr; gap: 8px 10px; align-items: center; }
.flow-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
#m-state { color: var(--text); font: 11px var(--mono); }
#flow-play { grid-column: 2; justify-self: start; border: 0; padding: 7px 0; min-height: 32px; color: var(--accent); background: none; font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
#flow-play:hover { color: white; }
#flow-detail { color: var(--muted); font-size: 12px; line-height: 1.8; }
.ops-architecture .rail { display: flex; gap: 14px; align-items: center; margin-top: 20px; padding: 0; border: 0; }
.rail-mark { width: 34px; height: 34px; flex: none; color: var(--accent); }
.rail-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ops-architecture .rail b { font-size: 13px; margin: 0 0 3px; }
.ops-architecture .rail div > span { font-size: 11px; color: var(--muted); }
.ops-architecture .machine[data-step='0'] .guards { display: none; }
.ops-architecture .machine:not([data-step='0']) .states,
.ops-architecture .machine:not([data-step='0']) .rail,
.ops-architecture .machine:not([data-step='0']) .flow-inspector { display: none; }
.ops-architecture .guards { margin: 0; gap: 12px; }
.ops-architecture .guards li { grid-template-columns: 26px 1fr; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 10px; padding: 21px; min-height: 90px; font-size: 12px; background: var(--surface-raised); }
.ops-architecture .guards li i { font-size: 11px; color: var(--accent); padding: 0; }
.ops-architecture .guards li.on { background: var(--surface-raised); border-color: var(--accent); }
.ops-architecture .layers { padding-top: 0; gap: 13px; }
.ops-architecture .layer { padding: 20px 23px; border: 1px solid var(--line); border-radius: 9px; grid-template-columns: 110px 1fr; background: var(--bg); gap: 23px; }
.ops-architecture .layer:nth-child(2) { margin-inline: 22px 0; background: var(--bg); }
.ops-architecture .layer:nth-child(3) { margin-inline: 44px 0; background: var(--surface-raised); }
.ops-architecture .layer b { font-size: 11px; }
.ops-architecture .layer span { font-size: 14px; }
.ops-architecture .layer small { font-size: 11px; max-width: 620px; }
.architecture-foot { display: flex; gap: 22px; justify-content: space-between; padding: 15px 24px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.architecture-foot > span { white-space: nowrap; color: var(--text); }
.ops-project .essay-link { padding-top: 23px; margin-bottom: 26px; }
.plain-explainer { margin: 0 38px 27px; font-size: 12px; color: var(--muted); }
.plain-explainer summary { width: fit-content; padding: 9px 0; color: var(--accent); }
.plain-explainer p { max-width: 700px; padding-top: 7px; line-height: 1.8; }
@media (max-width: 1150px) {
  .ops-project .ops-feature { gap: 35px; }
  .ops-architecture .states { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .states button { min-height: 126px; padding: 13px 16px; }
  .states .flow-icon { margin-bottom: 10px; }
  .ops-architecture .states li:nth-child(3)::after { display: none; }
  .architecture-label { display: none; }
}
@media (max-width: 760px) {
  .ops-project .ops-feature { padding: 27px 23px; gap: 23px; }
  .ops-project .ops-feature h3 { font-size: 35px; margin-top: 15px; }
  .ops-project .ops-copy > p { font-size: 13px; }
  .ops-project .project-actions { gap: 10px 18px; }
  .ops-capabilities { padding: 23px; grid-template-columns: 1fr; gap: 18px; }
  .ops-capabilities b { font-size: 12px; }
  .ops-capabilities small { font-size: 11px; }
  .ops-architecture { padding: 25px 12px 23px; }
  .architecture-toolbar { padding: 12px; }
  .architecture-toolbar .instrument-tabs { width: 100%; justify-content: space-between; }
  .architecture-toolbar .instrument-tabs button { padding: 9px 19px; }
  .ops-architecture .machine { padding: 18px 15px; }
  .machine-view-title { display: block; font-size: 12px; margin-bottom: 18px; }
  #machine-view-count { display: block; margin-top: 7px; font-size: 9px; }
  .ops-architecture .states { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .ops-architecture .states li:nth-child(3)::after { display: block; }
  .ops-architecture .states li:nth-child(2n)::after { display: none; }
  .states button { padding: 15px 13px; min-height: 129px; }
  .states button strong { font-size: 13px; }
  .states button small { font-size: 10px; }
  .flow-inspector { grid-template-columns: 1fr; gap: 12px; padding-bottom: 18px; margin-top: 18px; }
  .flow-current { grid-template-columns: 7px 1fr auto; }
  #flow-play { grid-column: 3; }
  .ops-architecture .rail { align-items: start; }
  .rail-mark { width: 26px; height: 26px; }
  .ops-architecture .rail b { font-size: 12px; }
  .ops-architecture .rail div > span { font-size: 11px; }
  .ops-architecture .guards { grid-template-columns: 1fr; }
  .ops-architecture .guards li { min-height: 74px; padding: 17px; font-size: 12px; }
  .ops-architecture .layer { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .ops-architecture .layer:nth-child(2) { margin-left: 8px; }
  .ops-architecture .layer:nth-child(3) { margin-left: 16px; }
  .ops-architecture .layer b { padding-top: 0; }
  .ops-architecture .layer small { font-size: 12px; }
  .architecture-foot { padding: 14px 15px; font-size: 10px; }
  .architecture-foot > span { display: none; }
  .ops-project .essay-link { margin-inline: 23px; }
  .plain-explainer { margin-inline: 23px; }
}

/* The original paired instrument and explanation. Scroll enhances wide screens. */
.ops-project { overflow: visible; }
.ops-project .ops-capabilities { padding-top: 0; border-bottom: 1px solid var(--line); }
.ops-architecture { border-top: 0; padding-top: 27px; }
.ops-story { display: grid; grid-template-columns: 1.55fr 1fr; gap: 35px; align-items: start; }
.architecture-frame { position: sticky; top: 112px; }
.ops-architecture .states { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ops-architecture .states li:nth-child(3)::after { display: none; }
.states button { min-height: 131px; }
.ops-architecture .machine { padding-inline: 20px; }
.ops-architecture .guards { grid-template-columns: 1fr 1fr; }
.ops-architecture .guards li { padding: 15px; min-height: 108px; font-size: 11px; gap: 7px; grid-template-columns: 19px 1fr; }
.ops-architecture .layer { grid-template-columns: 1fr; gap: 8px; padding: 19px; }
.ops-architecture .layer small { font-size: 12px; }
.architecture-foot { padding-inline: 20px; }
.architecture-foot > span { display: none; }
.flow-inspector { grid-template-columns: 1fr; gap: 12px; }
.flow-current { grid-template-columns: 7px 1fr auto; }
#flow-play { grid-column: 3; }
.ops-chapters { align-self: center; }
.ops-chapter { padding: 40px 7px; }
.ops-chapter .eyebrow { font: 10px var(--mono); color: var(--accent); margin-bottom: 22px; }
.ops-chapter h4 { font-size: clamp(25px, 2.2vw, 32px); line-height: 1.25; letter-spacing: -.035em; font-weight: 500; margin: 0 0 22px; }
.ops-chapter > p:not(.eyebrow) { font-size: 13px; line-height: 1.85; color: var(--muted); }
.ops-chapter > p+p { margin-top: 14px; }
.chapter-cue { display: none; color: var(--quiet); font-size: 10px; margin-top: 27px; }
.ops-chapter:not(.active) { display: none; }
@media (min-width: 1101px) and (min-height: 850px) and (prefers-reduced-motion: no-preference) {
  .ops-architecture.scroll-story .ops-chapter { display: flex; flex-direction: column; justify-content: center; min-height: 74vh; opacity: .45; transition: opacity .25s; }
  .ops-architecture.scroll-story .ops-chapter.active { opacity: 1; }
  .scroll-story .chapter-cue { display: block; }
}
@media (max-width: 1100px) {
  .ops-story { grid-template-columns: 1fr; gap: 20px; }
  .architecture-frame { position: static; }
  .ops-chapters { grid-row: 1; }
  .ops-chapter { padding: 0 8px 8px; }
  .ops-chapter h4 { font-size: 28px; margin-bottom: 15px; }
  .ops-chapter .eyebrow { margin-bottom: 14px; }
  .ops-chapter > p:not(.eyebrow) { font-size: 13px; max-width: 550px; }
  .ops-chapter > p:last-of-type { display: none; }
  .ops-architecture .states { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ops-capabilities { gap: 16px; }
}
@media (max-width: 760px) {
  .ops-architecture .states { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-architecture .states li:nth-child(3)::after { display: block; }
  .ops-architecture .states li:nth-child(2n)::after { display: none; }
  .ops-architecture .guards { grid-template-columns: 1fr; }
  .ops-architecture .guards li { min-height: 74px; font-size: 12px; gap: 13px; }
  .ops-architecture .machine { padding-inline: 15px; }
  .ops-chapter h4 { font-size: 27px; }
  .ops-project .ops-capabilities { padding-top: 0; }
}

/* The instrument sits on the page; only its controls and marks carry color. */
.ops-project .ops-feature { padding-inline: 0; }
.ops-project .ops-feature h3 span { color: var(--text); }
.ops-project .ops-capabilities { padding-inline: 0; }
.ops-architecture { padding-inline: 0; }
.architecture-frame { border: 0; border-radius: 0; }
.architecture-toolbar { padding: 0 0 18px; }
.architecture-toolbar .instrument-tabs button { border-radius: 999px; }
.ops-architecture .machine { padding: 23px 0; }
.states button { background: var(--bg); border-radius: 5px; }
.states .flow-icon { color: var(--muted); }
.ops-architecture .states .on button { background: var(--bg); color: var(--text); border-color: var(--accent); }
.states .on .flow-icon, .states .on strong { color: var(--accent); }
.states .on .flow-number, .states .on small { color: var(--muted); }
.ops-architecture .guards li { background: var(--bg); border-radius: 4px; }
.ops-architecture .guards li.on { background: var(--bg); }
.ops-architecture .layer { padding: 20px 0; background: var(--bg); border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.ops-architecture .layer:nth-child(2), .ops-architecture .layer:nth-child(3) { margin: 0; background: var(--bg); }
.architecture-foot { padding: 17px 0; }
.ops-project .essay-link { margin-inline: 0; }
@media (max-width: 760px) { .ops-chapter { padding-inline: 0; } }
