@import url('/assets/site-interaction-visual-base.css');

/* Phase 3B.2: real photographic states with a fixed visual frame. */
.phase3b-visual-frame img[data-phase3b-photo]{height:clamp(270px,34vw,520px);aspect-ratio:auto;object-fit:cover;object-position:center;transition:opacity 220ms cubic-bezier(.2,0,0,1)}
.phase3b-showcase--horn .phase3b-visual-frame{background:#111a17}
.phase3b-photo-status{color:#f4774d;font-weight:600;letter-spacing:.1em}
/* Scheme-primary states keep the strongest engineering explanation first while retaining a real supporting photo. */
.phase3b-visual-frame[data-phase3b-primary="scheme"]{grid-template-columns:minmax(0,1.35fr) minmax(150px,.65fr);align-items:stretch}
.phase3b-visual-frame[data-phase3b-primary="scheme"]>img[data-phase3b-photo]{grid-column:2;grid-row:1;height:100%;min-height:240px;aspect-ratio:auto;object-fit:cover}
.phase3b-visual-frame[data-phase3b-primary="scheme"]>.phase3b-scheme-stack{grid-column:1;grid-row:1;height:100%}
.phase3b-visual-frame[data-phase3b-primary="scheme"] .phase3b-scheme-inset{height:100%;display:flex;flex-direction:column}
.phase3b-visual-frame[data-phase3b-primary="scheme"] .phase3b-scheme-body{flex:1;min-height:230px}
.phase3b-visual-frame[data-phase3b-primary="scheme"] .phase3b-scheme-body img{height:100%!important;min-height:210px}
@media(max-width:650px){
 .phase3b-visual-frame[data-phase3b-primary="scheme"]{display:flex;flex-direction:column}
 .phase3b-visual-frame[data-phase3b-primary="scheme"]>.phase3b-scheme-stack{order:-1}
 .phase3b-visual-frame[data-phase3b-primary="scheme"]>img[data-phase3b-photo]{height:150px;min-height:150px;aspect-ratio:16/7}
 .phase3b-visual-frame[data-phase3b-primary="scheme"] .phase3b-scheme-body{min-height:125px}
 .phase3b-visual-frame[data-phase3b-primary="scheme"] .phase3b-scheme-body img{height:145px!important;min-height:0}
}@media(max-width:650px){.phase3b-visual-frame img[data-phase3b-photo]{height:220px}}

/* Phase 3B.4: photo plus compact engineering inset. The photo remains primary where it is strong; the inset carries the technical callout. */
.phase3b-visual-frame{display:grid;gap:12px;align-content:start}
.phase3b-visual-frame>img[data-phase3b-photo]{grid-row:1;height:clamp(260px,32vw,470px);aspect-ratio:16/10;object-fit:cover;object-position:center}
.phase3b-scheme-stack{display:grid;gap:8px;min-width:0}
.phase3b-scheme-inset{display:block;background:#17231f;border:1px solid #53635a;color:#e8efe8;padding:10px;min-width:0}
.phase3b-scheme-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:7px;font-size:12px;line-height:1.35}
.phase3b-scheme-head span{font-weight:600;color:#f7f6f2;overflow-wrap:anywhere}
.phase3b-scheme-head small{color:#a9b8a9;font-size:8px;letter-spacing:.12em;white-space:nowrap}
.phase3b-scheme-body{position:relative;background:#e8ece8;min-height:130px;overflow:hidden}
.phase3b-scheme-body img{display:block;width:100%;height:170px!important;aspect-ratio:760/520;object-fit:contain;opacity:.84;filter:saturate(.7)}
.phase3b-scheme-body svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.phase3b-scheme-body svg path:first-child{fill:none;stroke:#b44b22;stroke-width:1.5;vector-effect:non-scaling-stroke}
.phase3b-scheme-body svg circle{fill:#f4774d;stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke}
.phase3b-scheme-body svg .phase3b-scheme-leader{fill:none;stroke:#b44b22;stroke-width:1.2;vector-effect:non-scaling-stroke}
.phase3b-scheme-inset>p{margin:8px 2px 0;color:#c4cec1;font-size:11px;line-height:1.45;max-width:58ch}
.phase3b-scheme-stack>.phase3b-photo-status{display:block;font-size:8px;line-height:1.3;letter-spacing:.1em}
.phase3b-showcase--horn .phase3b-scheme-inset{background:#111a17}
/* Scheme-primary states keep the strongest engineering explanation first while retaining a real supporting photo. */
.phase3b-visual-frame[data-phase3b-primary="scheme"]{grid-template-columns:minmax(0,1.35fr) minmax(150px,.65fr);align-items:stretch}
.phase3b-visual-frame[data-phase3b-primary="scheme"]>img[data-phase3b-photo]{grid-column:2;grid-row:1;height:100%;min-height:240px;aspect-ratio:auto;object-fit:cover}
.phase3b-visual-frame[data-phase3b-primary="scheme"]>.phase3b-scheme-stack{grid-column:1;grid-row:1;height:100%}
.phase3b-visual-frame[data-phase3b-primary="scheme"] .phase3b-scheme-inset{height:100%;display:flex;flex-direction:column}
.phase3b-visual-frame[data-phase3b-primary="scheme"] .phase3b-scheme-body{flex:1;min-height:230px}
.phase3b-visual-frame[data-phase3b-primary="scheme"] .phase3b-scheme-body img{height:100%!important;min-height:210px}
@media(max-width:650px){
 .phase3b-visual-frame[data-phase3b-primary="scheme"]{display:flex;flex-direction:column}
 .phase3b-visual-frame[data-phase3b-primary="scheme"]>.phase3b-scheme-stack{order:-1}
 .phase3b-visual-frame[data-phase3b-primary="scheme"]>img[data-phase3b-photo]{height:150px;min-height:150px;aspect-ratio:16/7}
 .phase3b-visual-frame[data-phase3b-primary="scheme"] .phase3b-scheme-body{min-height:125px}
 .phase3b-visual-frame[data-phase3b-primary="scheme"] .phase3b-scheme-body img{height:145px!important;min-height:0}
}@media(max-width:650px){.phase3b-visual-frame>img[data-phase3b-photo]{height:220px}.phase3b-scheme-body{min-height:125px}.phase3b-scheme-body img{height:145px!important}.phase3b-scheme-head{align-items:flex-start;flex-direction:column;gap:3px}.phase3b-scheme-inset>p{font-size:11px}}

/* Phase 3B.5: engineering callouts live directly on the real photo. */
.phase3b-visual-frame{position:relative;display:block;overflow:hidden;min-height:0}
.phase3b-visual-frame>img[data-phase3b-photo]{display:block;width:100%;height:clamp(300px,38vw,520px);aspect-ratio:16/10;object-fit:cover;object-position:center}
.phase3b-scheme-stack{position:absolute!important;inset:0;z-index:3;display:block!important;pointer-events:none}
.phase3b-photo-overlay{position:absolute;inset:0;color:#fff;pointer-events:none}
.phase3b-photo-overlay svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.phase3b-overlay-zone{fill:#f4774d24;stroke:#ff9b67;stroke-width:1.5;vector-effect:non-scaling-stroke;stroke-dasharray:5 3}
.phase3b-overlay-leader{fill:none;stroke:#ff9b67;stroke-width:1.3;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 2px #111)}
.phase3b-overlay-anchor{fill:#ff7b3e;stroke:#fff;stroke-width:1.5;vector-effect:non-scaling-stroke}
.phase3b-overlay-hotspot{fill:none;stroke:#ff7b3e;stroke-width:1.5;vector-effect:non-scaling-stroke;opacity:.9}
.phase3b-overlay-card{position:absolute;left:14px;top:14px;width:min(300px,42%);padding:11px 13px;background:#17231edb;border:1px solid #ff9b67;border-left:3px solid #ff7b3e;box-shadow:0 8px 24px #10171466;backdrop-filter:blur(5px);text-shadow:0 1px 2px #101714}
.phase3b-overlay-card strong{display:block;color:#fff;font-size:13px;line-height:1.25}
.phase3b-overlay-card span{display:block;margin-top:5px;color:#e8efe8;font-size:11px;line-height:1.45}
.phase3b-photo-overlay[data-phase3b-overlay-focus="identity"],
.phase3b-photo-overlay[data-phase3b-overlay-focus="system"],
.phase3b-photo-overlay[data-phase3b-overlay-focus="control"],
.phase3b-photo-overlay[data-phase3b-overlay-focus="conditions"] .phase3b-overlay-card{left:auto;right:14px}
.phase3b-photo-overlay[data-phase3b-overlay-focus="component"] .phase3b-overlay-card,
.phase3b-photo-overlay[data-phase3b-overlay-focus="target"] .phase3b-overlay-card,
.phase3b-photo-overlay[data-phase3b-overlay-focus="area"] .phase3b-overlay-card,
.phase3b-photo-overlay[data-phase3b-overlay-focus="cutting"] .phase3b-overlay-card{left:auto;right:14px;top:auto;bottom:14px}
.phase3b-photo-overlay[data-phase3b-overlay-focus="document"] .phase3b-overlay-card,
.phase3b-photo-overlay[data-phase3b-overlay-focus="inspection"] .phase3b-overlay-card,
.phase3b-photo-overlay[data-phase3b-overlay-focus="evidence"] .phase3b-overlay-card{top:auto;bottom:14px}
.phase3b-scheme-stack>.phase3b-photo-status{position:absolute;left:12px;bottom:12px;z-index:4;display:block;padding:6px 8px;background:#17231edb;border:1px solid #ff9b67;color:#ffb080;font-size:8px;line-height:1.3;letter-spacing:.1em}
.phase3b-showcase--horn .phase3b-overlay-card{background:#111a17e8}
@media(max-width:650px){
 .phase3b-visual-frame>img[data-phase3b-photo]{height:260px;aspect-ratio:16/10}
 .phase3b-overlay-card{left:10px!important;right:10px!important;top:auto!important;bottom:10px!important;width:auto;padding:8px 10px}
 .phase3b-overlay-card strong{font-size:11px}
 .phase3b-overlay-card span{font-size:10px;line-height:1.35;margin-top:3px;max-width:56ch}
 .phase3b-scheme-stack>.phase3b-photo-status{left:10px;bottom:auto;top:10px;font-size:7px}
}.phase3b-photo-overlay[data-phase3b-overlay-focus="identity"] .phase3b-overlay-card,
.phase3b-photo-overlay[data-phase3b-overlay-focus="system"] .phase3b-overlay-card,
.phase3b-photo-overlay[data-phase3b-overlay-focus="control"] .phase3b-overlay-card,
.phase3b-photo-overlay[data-phase3b-overlay-focus="conditions"] .phase3b-overlay-card{left:auto;right:14px}
.phase3b-visual-frame{padding:0}

/* CSP-safe state transition and photo positioning. */
.phase3b-visual-frame img[data-phase3b-photo].is-state-loading{opacity:.25}
.phase3b-visual-frame img[data-phase3b-photo][data-phase3b-photo-position="64% 38%"]{object-position:64% 38%}
