/* Scoped to the Spandan graphics layer; does not override site layout, fonts or existing controls. */
.sg-interactive{
  --sg-ground:#faf9f6;--sg-panel:#faf9f6;--sg-raised:#faf9f6;--sg-rule:#dce2e6;--sg-secondary:#10243d;--sg-ink:#10243d;--sg-accent:#0759a9;
  margin:0;min-width:0;max-width:100%;padding:clamp(12px,2vw,22px);border:1px solid var(--sg-rule);
  background:var(--sg-panel);color:var(--sg-ink);font:inherit;box-sizing:border-box;isolation:isolate
}
.sg-interactive *{box-sizing:border-box}
.sg-interactive [hidden]{display:none!important}
.sg-caption{display:grid;gap:3px;margin:0 0 10px}
.sg-caption-title{font-weight:600;font-size:clamp(1.05rem,2.2vw,1.35rem);line-height:1.3;color:var(--sg-ink)}
.sg-caption-sub,.sg-note{font-size:.8rem;line-height:1.55;color:var(--sg-secondary)}
.sg-artwork{border-block:1px solid var(--sg-rule);background:var(--sg-ground);overflow:hidden}
.sg-canvas{max-width:100%;width:100%;height:auto;display:block;overflow:visible}
.sg-canvas .sg-grid{stroke:#dce2e6;opacity:.72;stroke-width:1;fill:none}
.sg-canvas .sg-axis{stroke:#10243d;stroke-width:1;opacity:.7;fill:none}
.sg-canvas .sg-track{stroke:#10243d;stroke-width:1.5;fill:none;opacity:.65}
.sg-canvas .sg-line,.sg-canvas .sg-active-path{stroke:#10243d;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}
.sg-canvas .sg-dashed{stroke:#10243d;stroke-width:1.15;stroke-dasharray:4 6;fill:none}
.sg-canvas .sg-trace{stroke:#0759a9;stroke-width:2;stroke-dasharray:12 270;stroke-linecap:round;opacity:0;fill:none}
.sg-canvas .sg-plate{stroke:#10243d;stroke-width:1.4;fill:#faf9f6}
.sg-canvas .sg-node{stroke:#10243d;stroke-width:1.4;fill:#faf9f6}
.sg-canvas .sg-outline{fill:none;stroke:#10243d;stroke-width:1.15}
.sg-canvas .sg-pin,.sg-canvas .sg-bar{fill:#10243d}
.sg-canvas .sg-halo{fill:none;stroke:#dce2e6;stroke-width:1.2;opacity:.9}
.sg-canvas .sg-svg-label{fill:#10243d;font-family:inherit;font-size:13px;font-weight:600;letter-spacing:.01em}
.sg-interactive.sg-enhanced [data-sg-part]{opacity:.76;transition:opacity 180ms ease}
.sg-interactive.sg-enhanced [data-sg-part].sg-current{opacity:1}
.sg-current .sg-svg-label{fill:#0759a9}
.sg-current .sg-node{stroke:#0759a9;stroke-width:2;fill:#dce2e6}
.sg-current .sg-pin,.sg-current .sg-bar{fill:#0759a9}
.sg-current .sg-halo,.sg-current .sg-active-path{stroke:#0759a9;stroke-width:1.6}
.sg-interactive.sg-pulse .sg-current .sg-halo{animation:sg-highlight 650ms ease-out both;transform-box:fill-box;transform-origin:center}
.sg-interactive.sg-pulse .sg-trace{animation:sg-travel 1s ease-out both}
@keyframes sg-highlight{0%{opacity:.9;transform:scale(.82)}100%{opacity:.45;transform:scale(1.18)}}
@keyframes sg-travel{0%{opacity:0;stroke-dashoffset:300}20%{opacity:.9}85%{opacity:.9}100%{opacity:0;stroke-dashoffset:-300}}
.sg-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(6ch,1fr));gap:1px;background:var(--sg-rule);border:1px solid var(--sg-rule);margin-top:15px}
.sg-interactive .sg-control{
  background:var(--sg-raised);color:var(--sg-secondary);border:0;border-radius:0;font-family:inherit;font-size:.76rem;font-weight:600;
  min-height:44px;line-height:1.25;padding:10px 7px;text-align:center;cursor:pointer;overflow-wrap:anywhere;outline-offset:-3px;margin:0;box-shadow:none
}
.sg-interactive .sg-control:hover{background:var(--sg-rule);color:var(--sg-ink)}
.sg-interactive .sg-control:focus-visible{outline:2px solid var(--sg-accent)}
.sg-interactive .sg-control[aria-pressed="true"]{background:var(--sg-rule);color:var(--sg-accent);box-shadow:inset 0 2px 0 var(--sg-accent)}
.sg-detail-live{min-height:106px;padding:12px 0 6px}
.sg-detail-live strong,.sg-fallback strong{display:block;color:var(--sg-ink);font-weight:600;font-size:.95rem;line-height:1.4;margin:0 0 5px}
.sg-detail-live p,.sg-fallback p{margin:0 0 7px;max-width:none;font-size:.88rem;line-height:1.6;color:var(--sg-ink)}
.sg-detail-live small,.sg-fallback small{display:block;color:var(--sg-secondary);line-height:1.5;font-size:.77rem}
.sg-fallback{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:14px}
.sg-fallback li:not(:last-child){border-bottom:1px solid var(--sg-rule);padding-bottom:14px}
.sg-note{margin:5px 0 0;padding-top:10px;border-top:1px solid var(--sg-rule)}
@media(max-width:580px){
  .sg-artwork{margin-inline:-4px}
  .sg-interactive .sg-control{font-size:.7rem;padding:9px 5px}
  .sg-controls{grid-template-columns:repeat(auto-fit,minmax(70px,1fr))}
  .sg-detail-live{min-height:0}
  .sg-canvas .sg-svg-label{font-size:15px}
}
@media(prefers-reduced-motion:reduce){
  .sg-interactive.sg-enhanced [data-sg-part]{transition:none}
  .sg-interactive.sg-pulse .sg-current .sg-halo,.sg-interactive.sg-pulse .sg-trace{animation:none}
}

.sg-interactive--hero .sg-caption-title{font-size:1.05rem}
.sg-interactive--hero .sg-detail-live{min-height:84px}
/* A short engineering-signal emphasis on intentional selection, never a looping decoration. */
.sg-interactive.sg-pulse .sg-current .sg-node{animation:sg-node-focus 480ms ease-out}
@keyframes sg-node-focus{0%{stroke-width:4}100%{stroke-width:2}}
@media(prefers-reduced-motion:reduce){.sg-interactive.sg-pulse .sg-current .sg-node{animation:none}}
/* Hexagonal assembly nodes are specific to the home engineering signal. */
.sg-canvas .sg-hero-plate{fill:#faf9f6;stroke:#10243d;stroke-width:1.2}
.sg-canvas .sg-hero-outline{fill:none;stroke:#dce2e6;stroke-width:1}
.sg-canvas .sg-hero-shadow{fill:#dce2e6;stroke:none}
.sg-canvas .sg-hero-glyph{fill:none;stroke:#10243d;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sg-current .sg-hero-plate{stroke:#0759a9;stroke-width:1.8}
.sg-current .sg-hero-glyph{stroke:#0759a9}
.sg-current .sg-hero-outline{stroke:#0759a9;opacity:.4}
.sg-interactive.sg-first-view .sg-trace{animation:sg-travel 1.25s ease-out both}
.sg-interactive.sg-first-view .sg-current .sg-hero-outline{animation:sg-assembly 850ms ease-out both;transform-box:fill-box;transform-origin:center}
@keyframes sg-assembly{0%{opacity:.9;transform:scale(.94)}100%{opacity:.4;transform:scale(1)}}
@media(prefers-reduced-motion:reduce){.sg-interactive.sg-first-view .sg-trace,.sg-interactive.sg-first-view .sg-current .sg-hero-outline{animation:none}}
/* Photographic visual layer; all stage controls and live descriptions remain real HTML. */
.sg-realistic .sg-photo{position:relative;overflow:hidden;border:0;isolation:isolate}
.sg-photo img{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:cover;object-position:50% 50%}
.sg-interactive--hero.sg-realistic .sg-photo img{aspect-ratio:16/11;object-position:50% 53%}
.sg-photo-progress{display:flex;gap:3px;position:absolute;bottom:0;left:0;right:0;padding:11px 14px;background:#10243D}
.sg-photo-progress span{flex:1;height:4px;background:#DCE2E6;transition:background 250ms ease}
.sg-photo-progress span.sg-current{background:var(--sg-accent);box-shadow:0 0 0 1px #FAF9F6}
.sg-photo::after{content:'';position:absolute;inset:0;pointer-events:none;opacity:0;border-top:3px solid #0759A9;transform:translateY(-100%)}
.sg-realistic.sg-pulse .sg-photo::after,.sg-realistic.sg-first-view .sg-photo::after{animation:sg-photo-signal 850ms ease-out both}
@keyframes sg-photo-signal{0%{opacity:0;transform:translateY(-100%)}20%{opacity:.8}80%{opacity:.6}100%{opacity:0;transform:translateY(100%)}}
.sg-realistic.sg-interactive--approach{max-width:850px;margin-inline:auto}
.sg-realistic.sg-interactive--approach .sg-photo img{aspect-ratio:16/8;object-position:50% 53%}
@media(prefers-reduced-motion:reduce){.sg-photo-progress span{transition:none}.sg-realistic.sg-pulse .sg-photo::after,.sg-realistic.sg-first-view .sg-photo::after{animation:none}}
