/* /own-your-intelligence (30 Oct 2026): the instrument is a seal of ownership (own-your-intelligence.aspx.vb):
   the core inside three rings (memory, rules, learning) and interchangeable engines outside that take turns
   connecting to it, over a panel that plays each chapter's scene. Shown by the run (sub.js) from .oi[data-st].
   Ambient motion: the engines take turns (the models change, the core does not). Reduced motion shows one engine
   connected and every scene at rest. Light and the one orange accent; tokens only. */
.oi { --oi-r: 14px; width: 100%; max-width: 620px; margin-inline: auto; }
.oi-win { border: 1px solid var(--lp-rule-2); border-radius: var(--oi-r); background: var(--lp-paper); overflow: hidden; box-shadow: 0 18px 50px -28px color-mix(in srgb, var(--lp-ink) 45%, transparent); }
.oi-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--lp-rule); }
.oi-name { display: flex; align-items: center; gap: 8px; margin-inline-end: auto; font: 600 12px var(--tos-font-mono); letter-spacing: .14em; color: var(--lp-ink-2); }
.oi-name::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lp-accent); opacity: .55; }
.oi-chip { font-size: 12px; padding: 5px 10px; border: 1px solid var(--lp-rule-2); border-radius: 7px; color: var(--lp-ink); background: var(--lp-paper); white-space: nowrap; }
.oi-top { padding: 8px 12px 0; background: color-mix(in srgb, var(--lp-paper-2) 55%, var(--lp-paper)); }

/* ---- the seal ---- */
.oi-seal { display: block; width: 100%; height: auto; direction: ltr; overflow: visible; }
.oi-arc { fill: none; stroke: none; }
.oi-rg { fill: none; stroke: var(--lp-rule-2); stroke-width: 1.4; transition: stroke .35s ease, stroke-width .35s ease; }
.oi-rl { font: 600 9px var(--tos-font-mono); letter-spacing: .22em; fill: var(--lp-muted); text-anchor: middle; transition: fill .35s ease; }
.oi-core { fill: var(--lp-ink); }
.oi-halo { fill: none; stroke: var(--lp-accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.oi-ct { font: 600 11px var(--tos-font-body); fill: var(--lp-paper); text-anchor: middle; }
.oi-owner { font: 600 9.5px var(--tos-font-mono); letter-spacing: .16em; text-transform: uppercase; fill: var(--lp-muted); }
.oi-owner-v { font: 600 13px var(--tos-font-body); fill: var(--lp-ink); }
.oi-eng rect, .oi-exit rect { fill: var(--lp-paper); stroke: var(--lp-rule-2); stroke-width: 1.2; }
.oi-eng text, .oi-exit text { font: 500 11.5px var(--tos-font-mono); fill: var(--lp-ink-2); text-anchor: middle; }
.oi-eng .cn, .oi-exit .cn { stroke: var(--lp-accent); stroke-width: 1.6; stroke-dasharray: 4 4; }
.oi-eng { opacity: .35; }
.oi-eng .cn { opacity: 0; }
.oi-eng.e1 { opacity: 1; } .oi-eng.e1 .cn { opacity: 1; }
.oi-eng.e1 rect { stroke: var(--lp-ink); }
.oi-flow circle { fill: var(--lp-accent); opacity: 0; }
.oi-exit { opacity: 0; transition: opacity .35s ease; }

/* each chapter lights its part */
.oi[data-st="memory"] .rg-mem, .oi[data-st="context"] .rg-mem, .oi[data-st="rules"] .rg-rules, .oi[data-st="learning"] .rg-learn { stroke: var(--lp-accent); stroke-width: 2.6; }
.oi[data-st="memory"] .rl-mem, .oi[data-st="context"] .rl-mem, .oi[data-st="rules"] .rl-rules, .oi[data-st="learning"] .rl-learn { fill: var(--lp-accent-text); }
.oi[data-st="hd"] .oi-rg { stroke: var(--lp-ink-2); }
.oi[data-st="leave"] .oi-eng { opacity: .12; }
.oi[data-st="leave"] .oi-exit { opacity: 1; }
.oi[data-st="leave"] .oi-exit rect { stroke: var(--lp-accent); }
.oi[data-st="models"] .oi-eng text { fill: var(--lp-ink); }

/* ---- the scene panel ---- */
.oi-panel { position: relative; height: 206px; background: color-mix(in srgb, var(--lp-paper-2) 55%, var(--lp-paper)); border-top: 1px solid var(--lp-rule); }
.oi-ly { position: absolute; inset: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 9px; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.oi[data-st="hd"] .ly-hd, .oi[data-st="memory"] .ly-memory, .oi[data-st="context"] .ly-context, .oi[data-st="rules"] .ly-rules,
.oi[data-st="models"] .ly-models, .oi[data-st="learning"] .ly-learning, .oi[data-st="leave"] .ly-leave { opacity: 1; visibility: visible; transition: opacity .3s ease .1s, visibility 0s; }
.oi-card { border: 1px solid var(--lp-rule); border-radius: 12px; background: var(--lp-paper); padding: 12px 14px; display: grid; gap: 7px; }
.oi-card b { font-size: 15px; line-height: 1.3; }
.oi-card p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--lp-ink-2); }
.oi-k { display: flex; justify-content: space-between; gap: 10px; font: 600 10.5px var(--tos-font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--lp-accent-text); }
.oi-k span { color: var(--lp-muted); letter-spacing: 0; text-transform: none; font-weight: 400; }
.oi-src { display: flex; flex-wrap: wrap; gap: 6px; }
.oi-src span, .oi-dates span { font: 400 11px var(--tos-font-mono); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--lp-rule-2); color: var(--lp-ink-2); background: var(--lp-paper); }
.oi-dates { display: flex; flex-wrap: wrap; gap: 6px; }
.oi-dates .ac { border-color: color-mix(in srgb, var(--lp-accent) 45%, transparent); color: var(--lp-accent-text); }
.oi-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-block: auto; }
.oi-stats div { display: grid; align-content: center; gap: 4px; border: 1px solid var(--lp-rule); border-radius: 12px; background: var(--lp-paper); padding: 12px; }
.oi-stats b { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.oi-stats span { font-size: 12.5px; line-height: 1.35; color: var(--lp-ink-2); }
.oi-me { align-self: flex-end; max-width: 80%; background: var(--lp-ink); color: var(--lp-paper); border-radius: 12px 12px 3px 12px; padding: 8px 12px; font-size: 13.5px; }
.oi-read { border: 1px solid var(--lp-rule); border-radius: 12px; background: var(--lp-paper); padding: 10px 14px; display: grid; gap: 5px; }
.oi-read p { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.ck { flex: none; width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--lp-accent) 14%, var(--lp-paper)); position: relative; }
.ck::after { content: ""; position: absolute; left: 4px; top: 2.5px; width: 4px; height: 7px; border-right: 2px solid var(--lp-accent); border-bottom: 2px solid var(--lp-accent); transform: rotate(40deg); }
.oi-rule { display: grid; grid-template-columns: 78px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center; border: 1px solid var(--lp-rule); border-radius: 10px; background: var(--lp-paper); padding: 8px 12px; font-size: 13.5px; }
.oi-rule small { grid-column: 2; font: 400 11px var(--tos-font-mono); color: var(--lp-muted); }
.oi-rule .tag { grid-row: 1 / span 2; justify-self: start; font: 600 10.5px var(--tos-font-mono); letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--lp-ink); color: var(--lp-ink); }
.oi-rule .tag.ho { border-color: var(--lp-accent); background: var(--lp-accent); color: var(--lp-on-accent); }
.oi-rule .tag.re { border-color: var(--lp-rule-2); color: var(--lp-muted); text-decoration: line-through; }
.oi-kept { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13.5px; }
.oi-kept span { display: flex; align-items: center; gap: 7px; }
.oi-loop { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.oi-loop span { font: 600 11px var(--tos-font-mono); letter-spacing: .04em; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--lp-rule-2); background: var(--lp-paper); color: var(--lp-ink-2); }
.oi-loop { gap: 4px 16px; }
.oi-loop span { position: relative; }
.oi-loop span + span::before { content: ""; position: absolute; inset-inline-start: -12px; top: 50%; width: 5px; height: 5px; margin-top: -3px; border-top: 1.5px solid var(--lp-muted); border-right: 1.5px solid var(--lp-muted); transform: rotate(45deg); }
[dir="rtl"] .oi-loop span + span::before { transform: rotate(-135deg); }
.oi-loop span.on { border-color: var(--lp-accent); color: var(--lp-accent-text); }
.oi-file { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; align-items: center; border: 1px solid var(--lp-rule); border-radius: 10px; background: var(--lp-paper); padding: 6px 12px; font-size: 13.5px; }
.oi-file b { font: 600 11px var(--tos-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lp-accent-text); }
.oi-file span { color: var(--lp-ink-2); }
.oi .ro-set { text-align: start; }

/* ---- motion ---- */
@keyframes oi-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes oi-turn { 0%, 30% { opacity: 1; } 34%, 100% { opacity: .35; } }
@keyframes oi-link { 0%, 30% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes oi-edge { 0%, 30% { stroke: var(--lp-ink); } 34%, 100% { stroke: var(--lp-rule-2); } }
@keyframes oi-dash { to { stroke-dashoffset: -16; } }
@keyframes oi-loop { to { stroke-dashoffset: -628; } }
@keyframes oi-halo { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes oi-flow1 { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(0, 52px); } }
@keyframes oi-flow2 { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(44px, -26px); } }
@keyframes oi-flow3 { 0% { opacity: 0; transform: translate(0, 0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(-44px, -26px); } }
@media (prefers-reduced-motion: no-preference) {
  /* the models change, the core does not: the engines take turns */
  .oi-eng { animation: oi-turn 9s linear infinite; }
  .oi-eng .cn { animation: oi-link 9s linear infinite, oi-dash 1s linear infinite; }
  .oi-eng rect { animation: oi-edge 9s linear infinite; }
  .oi-eng.e2, .oi-eng.e2 rect { animation-delay: 3s; }
  .oi-eng.e3, .oi-eng.e3 rect { animation-delay: 6s; }
  .oi-eng.e2 .cn { animation-delay: 3s, 0s; }
  .oi-eng.e3 .cn { animation-delay: 6s, 0s; }
  .oi[data-st="models"] .oi-eng, .oi[data-st="models"] .oi-eng .cn, .oi[data-st="models"] .oi-eng rect { animation-duration: 4.5s; }
  .oi[data-st="models"] .oi-eng.e2, .oi[data-st="models"] .oi-eng.e2 rect { animation-delay: 1.5s; }
  .oi[data-st="models"] .oi-eng.e3, .oi[data-st="models"] .oi-eng.e3 rect { animation-delay: 3s; }
  .oi[data-st="models"] .oi-eng.e2 .cn { animation-delay: 1.5s, 0s; }
  .oi[data-st="models"] .oi-eng.e3 .cn { animation-delay: 3s, 0s; }
  .oi[data-st="leave"] .oi-eng, .oi[data-st="leave"] .oi-eng .cn, .oi[data-st="leave"] .oi-eng rect { animation: none; }
  .oi[data-st="leave"] .oi-eng .cn { opacity: 0; }
  .oi[data-st="leave"] .oi-exit .cn { animation: oi-dash 1s linear infinite; }
  /* context: what the company knows flows into the core */
  .oi[data-st="context"] .oi-flow circle:nth-child(1) { animation: oi-flow1 1.6s ease-in infinite; }
  .oi[data-st="context"] .oi-flow circle:nth-child(2) { animation: oi-flow2 1.6s ease-in .5s infinite; }
  .oi[data-st="context"] .oi-flow circle:nth-child(3) { animation: oi-flow3 1.6s ease-in 1s infinite; }
  .oi[data-st="context"] .oi-halo, .oi[data-st="hd"] .oi-halo { animation: oi-halo 2.4s ease-out infinite; }
  /* learning: the loop turns */
  .oi[data-st="learning"] .rg-learn { stroke-dasharray: 10 6; animation: oi-loop 14s linear infinite; }
  /* each scene's pieces arrive in order */
  .oi[data-st] .oi-ly .s1 { animation: oi-in .45s ease .2s both; }
  .oi[data-st] .oi-ly .s2 { animation: oi-in .45s ease .8s both; }
  .oi[data-st] .oi-ly .s3 { animation: oi-in .45s ease 1.4s both; }
  .oi[data-st] .oi-ly .s4 { animation: oi-in .45s ease 2s both; }
}

/* on a phone the chapter copies do not pin: the instrument is too tall for the reading band */
.sp.js .run .inst.oi:not(.is-hero) { position: static; border: 0; padding: 0; margin-inline: 0; background: transparent; }
@media (max-width: 560px) {
  .oi-top { padding: 4px 6px 0; }
  .oi-panel { height: 272px; }
  .oi-rule { padding: 7px 10px; font-size: 13px; }
  .oi-stats { grid-template-columns: 1fr; gap: 6px; }
  .oi-stats div { grid-template-columns: 64px minmax(0, 1fr); align-items: center; padding: 8px 12px; }
  .oi-stats b { font-size: 20px; }
  .oi-rule { grid-template-columns: 70px minmax(0, 1fr); }
  .oi-file { grid-template-columns: 70px minmax(0, 1fr); }
  .oi-kept { gap: 8px 12px; }
}

/* ---- the hero line under the definition ---- */
.sp.oi-page .oi-line { margin-top: 16px; font: 600 clamp(19px, 2.4vw, 23px)/1.3 var(--tos-font-body); letter-spacing: -.01em; color: var(--lp-ink); }

/* ---- 07 the comparison table ---- */
.oi-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.oi-cmp { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.oi-cmp caption { caption-side: top; text-align: start; padding-bottom: 12px; font: 600 13px var(--tos-font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--lp-muted); }
.oi-cmp th, .oi-cmp td { text-align: start; vertical-align: top; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--lp-rule); }
.oi-cmp thead th { font-weight: 600; font-size: 13px; color: var(--lp-ink-2); border-bottom: 1px solid var(--lp-ink); }
.oi-cmp thead th.own { color: var(--lp-accent-text); }
.oi-cmp tbody th { font-weight: 600; color: var(--lp-ink); width: 30%; }
.oi-cmp td { color: var(--lp-muted); }
.oi-cmp td.own { color: var(--lp-ink); }
@media (max-width: 640px) {
  .oi-cmp, .oi-cmp tbody, .oi-cmp tr, .oi-cmp th, .oi-cmp td { display: block; width: auto; }
  .oi-cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .oi-cmp tr { padding: 14px 0; border-bottom: 1px solid var(--lp-rule); }
  .oi-cmp tbody th, .oi-cmp td { border: 0; padding: 2px 0; }
  .oi-cmp caption { display: block; }
  .oi-cmp tbody th { width: auto; font-size: 16px; padding-bottom: 4px; }
  .oi-cmp td::before { display: block; font: 600 11px var(--tos-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lp-muted); margin-top: 6px; }
  .oi-cmp td:not(.own)::before { content: attr(data-l); }
  .oi-cmp td.own::before { content: attr(data-l); color: var(--lp-accent-text); }
}

/* ---- 08 questions ---- */
.pq-list { display: grid; border-top: 1px solid var(--lp-ink); }
.pq { border-bottom: 1px solid var(--lp-rule); }
.pq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 17px; color: var(--lp-ink); }
.pq summary::-webkit-details-marker { display: none; }
.pq summary::after { content: "+"; font-weight: 400; color: var(--lp-muted); }
.pq[open] summary::after { content: "\2212"; }
.pq summary:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 2px; }
.pq p { margin: 0 0 18px; color: var(--lp-ink-2); max-width: 60ch; }
