/* Approved concept animation, scoped to the ABOUT diagram. */
#thought-engine, #thought-engine * { box-sizing: border-box; }
#thought-engine p { line-height: 1.7; letter-spacing: normal; }
#thought-engine {
  --ink: #f0eee7;
  --muted: #b8bcb2;
  --ground: #080a08;
  --panel: #0c0f0c;
  --line: #343b32;
  --tone: #dfe4de;
  --serif: Georgia, "Times New Roman", "Yu Mincho", serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
#thought-engine * { box-sizing: border-box; }
#thought-engine { margin: 0; color: var(--ink); background: var(--ground); font: 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif; }
#thought-engine button, #thought-engine a { -webkit-tap-highlight-color: transparent; }
#thought-engine button { color: inherit; font: inherit; cursor: pointer; }
#thought-engine .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#thought-engine [hidden] { display: none !important; }
#thought-engine button:focus-visible, #thought-engine a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
#thought-engine .transformer__eyebrow { margin: 0 0 20px; color: var(--muted); font: 12px/1.6 var(--mono); letter-spacing: .12em; }
#thought-engine { border-top: 1px solid var(--line); margin-bottom: 80px; }
#thought-engine .transformer__header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; }
#thought-engine .transformer__eyebrow { margin-bottom: 8px; color: var(--tone); }
#thought-engine .transformer__header h2 { margin: 0; font: 400 clamp(24px,2.8vw,38px)/1.4 var(--serif); }
#thought-engine .autoplay { display: flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; padding: 10px 16px; min-height: 46px; border: 1px solid var(--line); background: transparent; font-size: 14px; }
#thought-engine .autoplay:hover { background: #1b2119; }
#thought-engine .autoplay[hidden] { display: none; }
#thought-engine .autoplay__pulse { width: 7px; height: 7px; background: var(--tone); border-radius: 50%; }
#thought-engine[data-autoplay="false"] .autoplay__pulse { background: transparent; border: 1px solid var(--muted); }
#thought-engine .concept-chamber { position: relative; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(90deg,#ffffff04 1px,transparent 1px),linear-gradient(#ffffff04 1px,transparent 1px),var(--panel); background-size: 64px 64px; }
#thought-engine .chamber-meta { display: flex; justify-content: space-between; gap: 12px; padding: 22px 26px 0; color: var(--tone); font: 12px/1.5 var(--mono); letter-spacing: .08em; }
#thought-engine .motion-field { position: relative; height: 480px; margin: 0 28px; isolation: isolate; }
#thought-engine .motion-links { position: absolute; width: 100%; height: 100%; overflow: visible; color: var(--tone); }
#thought-engine .motion-links > g > path, #thought-engine .motion-links > path { fill: none; stroke: currentColor; stroke-width: 1.5; marker-end: url(#flow-arrow); }
#thought-engine .actor { position: absolute; top: 0; left: 0; opacity: 0; display: flex; align-items: center; justify-content: center; translate: var(--idle-shift-x, 0) var(--idle-shift-y, 0); filter: blur(var(--idle-blur, 0)); will-change: transform, translate, opacity; }
#thought-engine .actor small { font: 12px/1.5 var(--mono); letter-spacing: .06em; color: var(--tone); }
#thought-engine .actor strong { font-family: var(--serif); font-weight: 400; }
#thought-engine .practice { z-index: 4; }
#thought-engine .practice__body { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; width: 100%; height: 100%; border: 1px solid color-mix(in srgb, #8edfc3 calc(var(--reuse-tone, 0) * 100%), var(--ink)); background: color-mix(in srgb, #17372d calc(var(--reuse-tone, 0) * 100%), #20251d); }
#thought-engine .practice__body::before { content: ""; position: absolute; inset: -14px; border: 1px solid var(--tone); opacity: 0; pointer-events: none; }
#thought-engine .practice__body > * { position: relative; z-index: 1; }
#thought-engine .practice__body strong { font-size: 76px; line-height: 1.15; }
#thought-engine .practice__body span { font-size: 17px; color: #d5d8cf; white-space: nowrap; }
#thought-engine .practice__layers, #thought-engine .practice__layers::after { position: absolute; inset: 0; border: 1px solid #62695b; transform: rotate(9deg); content: ""; }
#thought-engine .practice__layers::after { transform: rotate(-19deg); }
#thought-engine .orbit { color: #d0d4c9; font: 24px var(--serif); gap: 12px; white-space: nowrap; }
#thought-engine .orbit::before { content: ""; width: 24px; height: 1px; background: currentColor; transform-origin: left; }
#thought-engine.is-origin-arriving .practice__layers { animation: thought-engine-frames 1100ms cubic-bezier(.2,.8,.2,1) both; }
#thought-engine.is-origin-arriving .practice__layers::after { animation: thought-engine-frames-alt 1100ms cubic-bezier(.2,.8,.2,1) both; }
#thought-engine.is-origin-arriving .practice__body::before { animation: thought-engine-lock 900ms cubic-bezier(.2,.8,.2,1) both; }
#thought-engine.is-origin-arriving .practice__body small { animation: thought-engine-copy 600ms 160ms cubic-bezier(.2,.8,.2,1) both; }
#thought-engine.is-origin-arriving .practice__body strong { animation: thought-engine-copy 760ms 220ms cubic-bezier(.2,.8,.2,1) both; }
#thought-engine.is-origin-arriving .practice__body span { animation: thought-engine-copy 650ms 340ms cubic-bezier(.2,.8,.2,1) both; }
#thought-engine.is-origin-arriving .orbit::before { animation: thought-engine-orbit-line 720ms 420ms cubic-bezier(.2,.8,.2,1) both; }
#thought-engine.is-origin-arriving [data-actor="orbit0"] { animation: thought-engine-orbit-reveal 580ms 600ms cubic-bezier(.2,.8,.2,1) both; }
#thought-engine.is-origin-arriving [data-actor="orbit1"] { animation: thought-engine-orbit-reveal 580ms 1450ms cubic-bezier(.2,.8,.2,1) both; }
#thought-engine.is-origin-arriving [data-actor="orbit2"] { animation: thought-engine-orbit-reveal 580ms 2300ms cubic-bezier(.2,.8,.2,1) both; }
#thought-engine.is-origin-arriving [data-actor="orbit3"] { animation: thought-engine-orbit-reveal 580ms 3250ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes thought-engine-frames { 0% { opacity: 0; transform: scale(.76) rotate(-5deg); } 68% { opacity: .9; transform: scale(1.045) rotate(11deg); } 100% { opacity: 1; transform: rotate(9deg); } }
@keyframes thought-engine-frames-alt { 0% { opacity: 0; transform: scale(.76) rotate(5deg); } 68% { opacity: .9; transform: scale(1.04) rotate(-22deg); } 100% { opacity: 1; transform: rotate(-19deg); } }
@keyframes thought-engine-lock { 0% { opacity: 0; transform: scale(.72); } 58% { opacity: .74; transform: scale(1.04); } 100% { opacity: 0; transform: scale(1.16); } }
@keyframes thought-engine-copy { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes thought-engine-orbit-line { 0% { opacity: 0; transform: scaleX(0); } 100% { opacity: 1; transform: scaleX(1); } }
@keyframes thought-engine-orbit-reveal { 0% { opacity: 0; clip-path: inset(0 100% 0 0); filter: blur(3px); } 100% { opacity: 1; clip-path: inset(0 0 0 0); filter: blur(0); } }
#thought-engine .fragment { flex-direction: column; gap: 8px; z-index: 3; border: 1px solid color-mix(in srgb,var(--tone) 60%,#333); background: #191d17; }
#thought-engine .fragment strong { font-size: 38px; line-height: 1.2; }
#thought-engine .fragment span { color: #d0d4c9; font-size: 17px; white-space: nowrap; }
#thought-engine .fragment { translate: 0 var(--fragment-rise, 0); filter: blur(var(--fragment-blur, 0)); }
#thought-engine .factor { z-index: 5; background: var(--panel); color: var(--tone); font-size: 20px; white-space: nowrap; }
#thought-engine .structure { flex-direction: column; gap: 10px; z-index: 3; border: 1px solid var(--tone); background: #17211d; }
#thought-engine .structure::before { content: ""; position: absolute; inset: 7px; border: 1px solid #99c4bb33; }
#thought-engine .structure strong { font-size: 48px; line-height: 1.15; }
#thought-engine .structure span { color: #d5ded5; text-align: center; font-size: 16px; line-height: 1.6; }
#thought-engine .criteria-process-label { z-index: 7; display: grid; place-items: center; padding: 5px 10px; border-block: 1px solid color-mix(in srgb, var(--tone) 55%, transparent); background: #0b100d; color: var(--tone); font: 15px/1.4 var(--mono); letter-spacing: .08em; white-space: nowrap; }
#thought-engine .criterion { z-index: 3; display: grid; grid-template-columns: 100px 112px minmax(0,1fr); gap: 16px; padding: 8px 18px; align-content: center; border: 1px solid #515c43; background: #181e13; }
#thought-engine .criterion small { font-family: inherit; font-size: 14px; letter-spacing: 0; white-space: nowrap; }
#thought-engine .criterion strong { font-size: 25px; white-space: nowrap; line-height: 1.4; }
#thought-engine .criterion span { min-width: 0; color: #d5d9cc; font-size: 16px; line-height: 1.5; }
#thought-engine .criterion[data-packed="true"] { grid-template-columns: 1fr 1fr; padding: 4px 12px; gap: 4px; }
#thought-engine .criterion[data-packed="true"] small { grid-column: 1; grid-row: 1; }
#thought-engine .criterion[data-packed="true"] strong { font-size: 21px; grid-column: 2; grid-row: 1; text-align: right; }
#thought-engine .record-frame { z-index: 1; display: block; border: 1px solid color-mix(in srgb, #8edfc3 calc(var(--reuse-tone, 0) * 100%), #d6c39b); background: color-mix(in srgb, #142d25 calc(var(--reuse-tone, 0) * 100%), #211f17); }
#thought-engine .record-frame::before, #thought-engine .record-frame::after { content: ""; position: absolute; z-index: -1; inset: 0; border: 1px solid color-mix(in srgb, #8edfc3 calc(var(--reuse-tone, 0) * 100%), #b39b65); opacity: calc(.4 + var(--stack-depth, 0) * .5); transform: translate(calc(var(--stack-depth, 0) * clamp(3px, .6vw, 8px) * -1.5), calc(var(--stack-depth, 0) * 12px)); }
#thought-engine .record-frame::after { transform: translate(calc(var(--stack-depth, 0) * clamp(3px, .6vw, 8px) * 1.5), calc(var(--stack-depth, 0) * 24px)); }
#thought-engine .record-seal { position: absolute; top: 18px; right: 24px; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid #d6bb7a; background: #332c1d; color: #f1d590; opacity: var(--seal-opacity, 0); transform: translateY(var(--seal-offset, -14px)); }
#thought-engine .record-seal small { color: inherit; }
#thought-engine .record-seal strong { font: 28px/1.2 var(--serif); white-space: nowrap; }
#thought-engine .record-frame header { padding: 18px 24px; display: flex; flex-direction: column; gap: 4px; }
#thought-engine .record-frame header strong { font: 23px/1.35 var(--serif); white-space: nowrap; }
#thought-engine .record-frame footer { position: absolute; bottom: 14px; width: 100%; text-align: center; color: var(--muted); font-size: 14px; }
#thought-engine .return-label { z-index: 5; font-size: 18px; color: var(--tone); background: var(--panel); white-space: nowrap; }
#thought-engine .memory-label { font-size: 16px; color: #d9d8c4; white-space: nowrap; }
#thought-engine .motion-caption { min-height: 64px; margin: 0; padding: 10px 28px 20px; color: #d4d8ce; font-family: var(--serif) !important; font-size: 20px !important; line-height: 1.8 !important; text-align: center; }
#thought-engine .transformer__readout { display: grid; grid-template-columns: 110px 1fr 310px; gap: 28px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
#thought-engine .readout__index { white-space: nowrap; color: var(--tone); font: 52px var(--serif); }
#thought-engine .readout__index small { margin-left: 6px; color: var(--muted); font: 12px var(--mono); }
#thought-engine .readout__copy p { margin: 0 0 5px; color: var(--tone); font: 12px/1.6 var(--mono); }
#thought-engine .readout__copy h3 { margin: 0 0 8px; font: 32px/1.5 var(--serif); }
#thought-engine .readout__copy > span { font-size: 17px; color: #c9cec2; }
#thought-engine .readout__change { padding-left: 24px; border-left: 1px solid var(--line); }
#thought-engine .readout__change small { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
#thought-engine .readout__change strong { font: 18px/1.8 var(--serif); }
#thought-engine .navigation-hint { margin: 20px 0 12px; font-size: 13px; color: var(--muted); }
#thought-engine .stage-controls { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6,1fr); }
#thought-engine .stage-controls li { min-width: 0; }
#thought-engine .stage-controls button { position: relative; display: flex; flex-direction: column; gap: 6px; width: 100%; min-height: 120px; padding: 16px 18px; text-align: left; border: 1px solid var(--line); background: transparent; }
#thought-engine .stage-controls button::before, #thought-engine .stage-controls button::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: #343b32; pointer-events: none; }
#thought-engine .stage-controls button::after { background: var(--stage-tone); transform: scaleX(var(--stage-progress, 0)); transform-origin: left; }
#thought-engine .stage-controls button > .stage-countdown { position: absolute; right: 14px; top: 16px; color: var(--stage-tone); font: 12px/1 var(--mono); }
#thought-engine .stage-controls li + li button { border-left: 0; }
#thought-engine .stage-controls button > span { font: 12px var(--mono); color: var(--muted); }
#thought-engine .stage-controls button strong { font: 21px var(--serif); }
#thought-engine .stage-controls button small { font-size: 14px; color: var(--muted); }
#thought-engine .stage-controls button:hover { background: #161b14; }
#thought-engine .stage-controls button[aria-pressed="true"] { background: color-mix(in srgb, var(--stage-tone) 9%, var(--ground)); }
#thought-engine .stage-controls button[data-requested="true"] { outline: 1px dashed #b8bcb2; outline-offset: -6px; }
@media (max-width: 1100px) and (min-width: 901px) {
#thought-engine .motion-field { margin: 0 16px; }
#thought-engine .criterion { grid-template-columns: 86px 100px minmax(0,1fr); padding: 8px 12px; gap: 10px; }
#thought-engine .criterion strong { font-size: 22px; }
#thought-engine .criterion span { font-size: 15px; }
#thought-engine .transformer__readout { grid-template-columns: 80px 1fr; }
#thought-engine .readout__change { grid-column: 2; }
#thought-engine .stage-controls button { padding: 14px 10px; }
#thought-engine .stage-controls button strong { font-size: 18px; }
#thought-engine .stage-controls button small { font-size: 12px; }
}
@media (min-width: 601px) and (max-width: 900px) {
#thought-engine .motion-caption { min-height: 68px; padding: 12px 24px 24px; font-size: 18px !important; }
}
@media (max-width: 900px) {
#thought-engine .transformer__header { align-items: start; flex-direction: column; gap: 16px; }
#thought-engine .transformer__header h2 { font-size: 25px; }
#thought-engine .chamber-meta { padding: 18px 12px 0; font-size: 12px; letter-spacing: 0; }
#thought-engine .motion-field { height: 760px; margin: 0 10px; }
#thought-engine .practice__body strong { font-size: 62px; }
#thought-engine .practice__body span { font-size: 14px; }
#thought-engine .orbit { font-size: 21px; gap: 8px; }
#thought-engine .orbit::before { width: 16px; }
#thought-engine .fragment { gap: 8px; }
#thought-engine .fragment strong { font-size: 29px; }
#thought-engine .fragment span { font-size: 14px; white-space: normal; text-align: center; }
#thought-engine .fragment small { font-size: 12px; letter-spacing: 0; }
#thought-engine .structure strong { font-size: 38px; }
#thought-engine .structure span { font-size: 14px; }
#thought-engine .criteria-process-label { padding: 5px 8px; font-size: 13px; }
#thought-engine .factor { font-size: 17px; }
#thought-engine .criterion { grid-template-columns: 1fr auto; gap: 3px 9px; padding: 8px 12px; }
#thought-engine .criterion small { grid-column: 1; font-size: 13px; }
#thought-engine .criterion strong { grid-column: 2; grid-row: 1; font-size: 23px; text-align: right; }
#thought-engine .criterion span { grid-column: 1 / -1; font-size: 14px; }
#thought-engine .record-frame header { padding: 18px; }
#thought-engine .record-frame header strong { font-size: 18px; white-space: normal; }
#thought-engine .record-seal { top: auto; right: 18px; bottom: 36px; padding: 6px 10px; gap: 10px; }
#thought-engine .record-seal strong { font-size: 24px; }
#thought-engine .record-frame footer { font-size: 12px; }
#thought-engine .return-label { font-size: 17px; }
#thought-engine .memory-label { font-size: 14px; }
#thought-engine .motion-caption { padding: 10px 16px 20px; font-size: 15px !important; min-height: 76px; }
#thought-engine .transformer__readout { grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 24px 0; }
#thought-engine .readout__index { font-size: 36px; }
#thought-engine .readout__index small { display: block; margin: 0; }
#thought-engine .readout__copy h3 { font-size: 28px; }
#thought-engine .readout__copy > span { font-size: 16px; }
#thought-engine .readout__change { grid-column: 2; padding-left: 0; border: 0; }
#thought-engine .readout__change strong { font-size: 16px; }
#thought-engine .stage-controls { grid-template-columns: repeat(3,1fr); gap: 6px; }
#thought-engine .stage-controls li + li button { border-left: 1px solid var(--line); }
#thought-engine .stage-controls button { min-height: 108px; padding: 12px 9px; gap: 8px; }
#thought-engine .stage-controls button strong { font-size: 17px; }
#thought-engine .stage-controls button small { font-size: 12px; }
}
@media (min-width: 601px) and (max-width: 900px) {
#thought-engine .motion-caption { min-height: 68px; padding: 12px 24px 24px; font-size: 18px !important; }
}
@media (prefers-reduced-motion: reduce) {
#thought-engine .actor { will-change: auto; }
#thought-engine.is-origin-arriving .practice__layers, #thought-engine.is-origin-arriving .practice__layers::after, #thought-engine.is-origin-arriving .practice__body::before, #thought-engine.is-origin-arriving .practice__body small, #thought-engine.is-origin-arriving .practice__body strong, #thought-engine.is-origin-arriving .practice__body span, #thought-engine.is-origin-arriving .orbit::before, #thought-engine.is-origin-arriving .orbit { animation: none; }
}

#thought-engine { scroll-margin-top: 110px; }
#thought-engine .engine-principle { margin-top: 32px; padding: 24px 0; border-top: 1px solid var(--line); }
#thought-engine .engine-principle small { color: var(--muted); font: 12px var(--mono); }
#thought-engine .engine-principle p { color: var(--ink); margin: 12px 0 0; font: 24px/1.7 var(--serif); }
