/* SPDX-License-Identifier: Apache-2.0 */
/* Present the character, optional scene motion and illustrated state journey. */
[hidden] { display: none !important; }
.overview { min-height: 700px; }
.overview .artwork { opacity: .95; background: none; }
.overview:after { background: linear-gradient(90deg, #071b1133, transparent 30%, #06180f55 68%, #07180fbb), linear-gradient(0deg, #061c13e6, transparent 27%); }
.scene-stack { position: relative; width: 100%; height: 100%; }
.scene-original, .scene-artwork { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 39% 50%; transform: scale(1.025) translate3d(var(--scene-x, 0px), var(--scene-y, 0px), 0); }
.scene-artwork { opacity: 0; }
.scene-light { position: absolute; z-index: -2; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 42% 28%, #d2ffdf40, transparent 48%); opacity: .6; }
.scene-filaments { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; fill: none; stroke: #dbffe9; stroke-width: .5; opacity: .22; pointer-events: none; transform: translate3d(var(--filament-x, 0px), var(--filament-y, 0px), 0); }
.filament-accent { stroke-width: 2; }
.overview .art-caption { position: absolute; left: 224px; bottom: 14px; padding: 22px; background: linear-gradient(90deg, #0b251caa, transparent); pointer-events: none; }
.overview .art-word { font-size: 49px; }
.overview .art-caption i { margin-block: 9px; }
.overview .content-window { grid-column: 3; }
.overview .side-rail { gap: 93px; }
.representative-note { font-size: 13px; color: #d3ffe0 !important; }
.display-controls #entrance-replay, .display-controls #artwork-replay { font-size: 12px; }
.motion-enabled .overview .scene-light { animation: scene-light 14s ease-in-out infinite alternate; }
.motion-enabled .artwork { animation-play-state: running; }
.scene-paused .artwork, .scene-paused .scene-light { animation-play-state: paused !important; }
.reading-expanded .scene-filaments, .reading-expanded .scene-light { visibility: hidden; }
.reading-expanded .overview .content-window { grid-column: 2 / 4; }
@media (min-width: 861px) {
  .reading-expanded .content-window { grid-column: 1 / -1 !important; }
  .reading-expanded .side-rail { display: none; }
}
.motion-enabled .architecture .artwork, .motion-enabled .project .artwork { animation: none; }
.entrance-playing .navigation { animation: rail-enter .65s cubic-bezier(.2,.7,.2,1) both; }
.entrance-playing .display-panel { animation: rail-enter .7s .08s cubic-bezier(.2,.7,.2,1) both; }
.entrance-playing .content-window { animation: panel-enter .65s .14s cubic-bezier(.2,.7,.2,1) both; }
.entrance-playing .scene-stack { animation: scene-enter .9s cubic-bezier(.2,.7,.2,1) both; }
.entrance-playing .module-strip { animation: panel-enter .65s .2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rail-enter { from { transform: translateX(-12px); filter: brightness(.75); } to { transform: translateX(0); filter: brightness(1); } }
@keyframes panel-enter { from { transform: translateY(10px); filter: brightness(.8); } to { transform: translateY(0); filter: brightness(1); } }
@keyframes scene-enter { from { opacity: .55; filter: brightness(.8); } to { opacity: 1; filter: brightness(1); } }
@keyframes scene-light { from { opacity: .35; } to { opacity: .85; } }
.section-index { display: flex; flex-wrap: wrap; gap: 7px; padding-block: 9px 23px; }
.section-index a { border: 1px solid #a5c9ae66; padding: 6px 10px; font-size: 14px; background: #0b241980; }
.section-index a:hover { color: #102619; background: var(--mint); }
.architecture .content-window { margin-left: 20px; }
.architecture .window-body { padding: 28px; }
.architecture-section p + p { margin-top: 12px; }
.state-journey { background: #091f17; border: 1px solid #8aaf97; box-shadow: 0 0 0 3px #274938; padding: 18px; margin-bottom: 30px; }
.instrument-title { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; font: 7px/1.6 var(--display); color: #adcfb6; letter-spacing: .6px; border-bottom: 1px solid #7b9e8755; padding-bottom: 10px; }
.state-journey h2 { margin: 19px 0 6px; font-size: 15px; }
.journey-intro { margin: 0 0 17px; color: #b5d2be; font-size: 16px; }
.architecture-map { display: block; width: 100%; height: auto; margin: 12px 0 20px; overflow: visible; }
.architecture-map text { fill: #d7eddf; font: 12px var(--body); }
.architecture-map .field-label { fill: #9cbcaa; font: 9px var(--display); letter-spacing: .6px; }
.architecture-map .node-detail { fill: #adc6b6; font-size: 13px; }
.device-field { fill: #274a372e; stroke: #7aab8744; }
.seam-line { stroke: #bad9c16b; stroke-width: 1; stroke-dasharray: 4 6; }
.architecture-map .seam-label { fill: #a4c6ae; font-size: 9px; letter-spacing: 1px; }
.map-node rect { fill: #183c2a; stroke: #719c7f; stroke-width: 1; }
.map-node.is-current rect { fill: #c9ffd7; stroke: #f1fff5; stroke-width: 2; }
.map-node.is-current text { fill: #102e1b; }
.trace-link { stroke: #759983; stroke-width: 1.5; fill: none; }
.architecture-map marker path { fill: #b5d9c0; }
.trace-link.is-active { stroke: #c9ffd7; stroke-width: 2.5; }
.motion-enabled .trace-link.is-current { stroke-dasharray: 5 5; animation: record-transfer .65s linear 2; }
@keyframes record-transfer { to { stroke-dashoffset: -20; } }
.step-selectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.step-selectors button, .journey-footer button { min-height: 44px; border: 1px solid #8baa95; color: #d9f2e1; background: #294936; padding: 7px; line-height: 1.3; font-size: 14px; }
.step-selectors b { display: block; font: 8px/1.7 var(--display); color: #9fc6ad; }
.step-selectors button[aria-pressed='true'] { color: #113021; background: var(--metal); border-color: #d1ffdf; }
.step-selectors button[aria-pressed='true'] b { color: #214c30; }
.step-selectors button:hover, .journey-footer button:hover:not(:disabled) { background: #466b53; color: white; }
.step-readout { padding: 18px 0 10px; min-height: 184px; }
.trace-step .step-kicker { color: #a8cdb4; font: 7px/1.6 var(--display); margin: 0 0 10px; letter-spacing: .6px; }
.trace-step h3 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; color: #eaffef; }
.trace-step > p:last-child { font-size: 17px; margin: 0; color: #c2d9ca; }
.trace-step + .trace-step { margin-top: 20px; }
.journey-enhanced .trace-step { margin-top: 0; }
.journey-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid #668a743b; }
.journey-footer button { font-size: 13px; }
#journey-status { text-align: center; font-size: 12px; color: #adccba; }
.diagram-note { font-size: 12px; line-height: 1.4; color: #9dbeaa; margin: 16px 0 0; }
.chapter-scene { position: relative; margin: 22px 0 16px; border: 1px solid #8eb49b70; }
.chapter-scene img { display: block; width: 100%; height: auto; aspect-ratio: 2.4; object-fit: cover; object-position: center 32%; }
.chapter-scene figcaption { padding: 6px 10px; color: #c3dccb; background: #0e281e; font: 6px/1.6 var(--display); letter-spacing: 1px; }
.representative-card { margin: 26px 0; border: 1px solid #8eb49b70; background: linear-gradient(100deg, #0e281e, #294d3733); }
.representative-portrait img { display: block; width: 100%; height: auto; }
.representative-card figcaption { padding: 18px; }
.representative-card h2 { margin-top: 9px; }
.representative-card p { font-size: 16px; color: #c3dbcb; }
@media (max-width: 1080px) {
  .overview .art-caption { left: 178px; }
  .overview .side-rail { gap: 85px; }
  .architecture .content-window { margin-left: 0; }
  .architecture .window-body { padding: 25px; }
}
@media (max-width: 860px) {
  .overview { min-height: 0; padding-top: 225px; }
  .overview .artwork { bottom: auto; height: 750px; }
  .scene-original, .scene-artwork { object-position: 25% 0; }
  .overview .art-caption { left: 34px; top: 40px; bottom: auto; padding: 0; background: none; }
  .overview .content-window, .reading-expanded .overview .content-window { grid-column: 2; }
  .overview .side-rail { gap: 30px; }
  .overview .art-caption i { display: none; }
  .architecture .window-body { padding: 23px 20px; }
  .state-journey { padding: 12px; }
  .architecture-map .node-detail { font-size: 14px; }
  .step-selectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-selectors b { display: inline; margin-right: 7px; }
  .journey-footer { flex-wrap: wrap; }
  #journey-status { flex-basis: 100%; order: 3; }
}
@media (max-width: 620px) {
  .overview { padding-top: 305px; }
  .overview .art-caption { left: 18px; top: 45px; }
  .overview .art-word { font-size: 38px; letter-spacing: -4px; }
  .overview .art-caption > span:nth-child(2) { font-size: 5px; max-width: 120px; }
  .overview .artwork { height: 650px; }
  .scene-original, .scene-artwork { object-position: 25% 0; }
  .overview .display-controls #entrance-replay, .overview .display-controls #artwork-replay { flex-basis: calc(50% - 9px); }
  .overview .content-window, .reading-expanded .overview .content-window { align-self: stretch; }
  .state-journey { margin-inline: -8px; padding: 11px; }
  .architecture-map .field-label { font-size: 11px; }
  .architecture-map .node-detail { display: none; }
  .architecture-map .map-node text:not(.node-detail) { font-size: 17px; }
  .architecture-map .seam-label { font-size: 12px; }
  .state-journey h2 { font-size: 12px; }
  .chapter-scene img { aspect-ratio: 1.6; }
  .representative-card figcaption { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-original, .scene-artwork, .scene-stack, .scene-light, .scene-filaments, .trace-link,
  .navigation, .display-panel, .content-window, .module-strip { animation: none !important; transform: none !important; }
}
@media print {
  .scene-light, .scene-filaments, .section-index, .journey-controls, .representative-card { display: none !important; }
  .overview .content-window { position: static; }
  .trace-step[hidden] { display: block !important; }
  .trace-step { margin-block: 18px !important; }
  .state-journey { background: white; box-shadow: none; break-inside: avoid; }
  .architecture-map { display: none; }
}
