/* Magic UI-inspired quiet layout; motion remains composited and interruptible. */
#skills .skill-cards:not(.is-gallery){
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px!important;align-items:stretch;
}
#skills .skill-cards:not(.is-gallery)>.skill-card{
 min-width:0;min-height:0;border:1px solid var(--hair,#d4cec2)!important;border-radius:13px!important;
 background:#faf7f1;overflow:hidden;isolation:isolate;
 transition:border-color .2s ease,box-shadow .2s ease,transform .2s cubic-bezier(.2,.8,.2,1);
}
#skills .skill-cards:not(.is-gallery)>.skill-card .pc-art{width:100%;flex:1;}
#skills .skill-cards:not(.is-gallery)>.skill-card:not([data-skill-preview]) .cover-board{
 min-height:265px;display:flex;flex-direction:column;justify-content:center;gap:28px;
}
#skills .skill-cards:not(.is-gallery)>[data-skill-preview] .pc-art{flex:none;}
#skills .skill-cards:not(.is-gallery)>[data-skill-preview] .codev-preview-cover{height:100%;}
#skills .skill-cards:not(.is-gallery)>[data-skill-preview] .codev-preview-info{padding:16px 18px;}
#skills .skill-cards:not(.is-gallery)>.skill-card .cover-word{font-size:clamp(28px,3.1vw,40px);}
#skills .skill-cards:not(.is-gallery)>[data-skill-preview] .cover-word{font-size:clamp(24px,2.2vw,32px);}
#skills .skill-cards:not(.is-gallery)>.skill-card .cover-bottom{flex-wrap:wrap;}
@media(hover:hover){
 #skills .skill-cards:not(.is-gallery)>.skill-card:hover,
 .inline-project-card:hover{
  transform:translate3d(0,-3px,0);
  border-color:rgba(79,68,53,.42)!important;
  box-shadow:0 0 0 1px rgba(107,91,70,.12),0 10px 24px rgba(35,28,20,.055);
 }
}
.inline-project-card{transition:border-color .2s,box-shadow .2s,transform .2s cubic-bezier(.2,.8,.2,1);}
@media(max-width:650px){
 #skills .skill-cards:not(.is-gallery){grid-template-columns:minmax(0,1fr);gap:15px!important;}
 #skills .skill-cards:not(.is-gallery)>.skill-card:not([data-skill-preview]) .cover-board{min-height:172px;}
}
#skills [data-skill-preview] .codev-preview-media .cinema-stage{
 position:absolute;inset:0;z-index:2;display:none;
 overflow:hidden;background:#f5f0e6;color:#24241e;
 font-family:var(--serif,'XSZ Han Serif',serif);
}
#skills [data-skill-preview] .codev-preview-media .cinema-stage.cinema-on{display:block;}
.cinema-scene{position:absolute;inset:0;opacity:0;pointer-events:none;overflow:hidden;transition:opacity .34s cubic-bezier(.2,.8,.2,1);}
.cinema-scene.cinema-current{opacity:1;}
.cinema-scene.cinema-exiting{opacity:0;}
.cinema-camera{
 position:absolute;inset:0;padding:3.2%;
 display:grid;grid-template-rows:minmax(0,1fr);gap:0;
 transform-origin:50% 50%;backface-visibility:hidden;
}
.cinema-scene.cinema-current .cinema-camera,
.cinema-scene.cinema-exiting .cinema-camera{
 animation:cinema-dolly 10s linear both;will-change:transform;
}
/* Single, evenly inset workspace shared by both skill previews. */
.cinema-columns{grid-row:1;min-height:0;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:2.2%;}
 .cinema-panel{min-width:0;min-height:0;display:grid;grid-template-rows:clamp(20px,6cqw,34px) minmax(0,1fr);overflow:hidden;border-radius:8px;background:#fcfaf5;border:1px solid #dcd4c7;}
.cinema-panel-head{display:flex;align-items:center;min-height:0;height:auto;padding:0 3.5%;border-bottom:1px solid #ddd5c8;color:#6a6258;font-size:clamp(8px,2.55cqw,14px);overflow:hidden;white-space:nowrap;}
 .cinema-lines{display:flex;flex-direction:column;justify-content:center;height:100%;min-height:0;padding:3.2%;gap:2.3%;overflow:hidden;}
.cinema-line{display:grid;grid-template-columns:7% minmax(0,1fr);gap:2%;min-width:0;white-space:nowrap;font-size:clamp(7px,2.25cqw,12px);font-family:ui-monospace,'SFMono-Regular',Consolas,monospace;line-height:1.35;}
.cinema-ln{color:#b5ab9c;text-align:right;}
.cinema-type{display:inline-block;max-width:100%;width:100%;overflow:hidden;white-space:pre;color:#39645b;}
.cinema-scene.cinema-current .cinema-type{
 animation:cinema-typing 1s steps(38,end) both;
 animation-delay:calc(.16s + var(--line)*.31s);
}
 .cinema-chart{height:100%;min-height:0;min-width:0;display:grid;place-items:center;padding:2.6%;overflow:hidden;}
.cinema-chart .cinema-svg{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;min-width:0!important;}
/* Camera choreography: separate shot styles for each supplied example.
   All offsets remain inside the scaled stage; no simulated cursor or added imagery.
   Reference: Screen Studio's manual focus, Recordly's pan, Tella's zoom demos.
   Code finishes before the camera lands at the result; graph reveal follows. */
.cinema-scene[data-shot="classic"]{--shot:cinema-dolly}
.cinema-scene[data-shot="glide"]{--shot:cinema-glide}
.cinema-scene[data-shot="wide"]{--shot:cinema-wide}
.cinema-scene.cinema-current .cinema-camera,
.cinema-scene.cinema-exiting .cinema-camera{
 animation-name:var(--shot,cinema-dolly);
}
@keyframes cinema-dolly{
 0%{transform:translate3d(38%,0,0) scale(1.76);animation-timing-function:cubic-bezier(.24,.65,.28,1);}
 30%{transform:translate3d(22%,0,0) scale(1.45);animation-timing-function:cubic-bezier(.32,.04,.25,1);}
 46%{transform:translate3d(0,0,0) scale(1.025);animation-timing-function:linear;}
 49%{transform:translate3d(0,0,0) scale(1.025);animation-timing-function:cubic-bezier(.3,.05,.24,1);}
 62%{transform:translate3d(-38%,-3%,0) scale(1.76);animation-timing-function:ease-out;}
 90%{transform:translate3d(-36%,-3%,0) scale(1.72);animation-timing-function:cubic-bezier(.42,0,.26,1);}
 100%{transform:translate3d(0,0,0) scale(1.04);}
}
@keyframes cinema-glide{
 0%{transform:translate3d(38%,0,0) scale(1.76);animation-timing-function:ease-out;}
 32%{transform:translate3d(31%,0,0) scale(1.64);animation-timing-function:cubic-bezier(.42,0,.22,1);}
 49%{transform:translate3d(-8%,0,0) scale(1.64);animation-timing-function:cubic-bezier(.16,.8,.24,1);}
 61%{transform:translate3d(-38%,-3%,0) scale(1.76);animation-timing-function:ease-in-out;}
 88%{transform:translate3d(-36%,-3%,0) scale(1.72);animation-timing-function:cubic-bezier(.42,0,.26,1);}
 100%{transform:translate3d(0,0,0) scale(1.04);}
}
@keyframes cinema-wide{
 0%{transform:translate3d(38%,0,0) scale(1.76);animation-timing-function:ease-out;}
 30%{transform:translate3d(29%,0,0) scale(1.58);animation-timing-function:cubic-bezier(.35,.03,.24,1);}
 43%{transform:translate3d(0,0,0) scale(1.03);animation-timing-function:ease-in-out;}
 49%{transform:translate3d(0,0,0) scale(1.03);animation-timing-function:cubic-bezier(.25,.05,.22,1);}
 63%{transform:translate3d(-31%,-2%,0) scale(1.62);animation-timing-function:ease-in-out;}
 83%{transform:translate3d(-35%,-2%,0) scale(1.70);animation-timing-function:ease-out;}
 91%{transform:translate3d(-35%,-2%,0) scale(1.70);animation-timing-function:cubic-bezier(.42,0,.26,1);}
 100%{transform:translate3d(0,0,0) scale(1.03);}
}
/* Keep the inactive panel visually quiet without a costly full-frame blur. */
.cinema-scene.cinema-current .cinema-editor{animation:cinema-code-focus 10s linear both}
.cinema-scene.cinema-current .cinema-output{animation:cinema-result-focus 10s linear both}
@keyframes cinema-code-focus{
 0%,34%{opacity:1}58%,88%{opacity:.52}100%{opacity:1}
}
@keyframes cinema-result-focus{
 0%,34%{opacity:.46}59%,100%{opacity:1}
}
@keyframes cinema-typing{from{clip-path:inset(0 100% 0 0);opacity:.9;}to{clip-path:inset(0 0 0 0);opacity:1;}}
html[data-motion=paused] .cinema-stage{display:none!important;}
@media(prefers-reduced-motion:reduce){.cinema-stage{display:none!important;}}
@media print{.cinema-stage{display:none!important;}}

/* Python: scroll down through the actual code, then focus the result with a vertical window handoff. */
.cinema-scene.cinema-python.cinema-current .cinema-camera,
.cinema-scene.cinema-python.cinema-exiting .cinema-camera{
 animation:none;transform:none;will-change:auto;
}
.cinema-python .cinema-columns{position:relative;display:block;min-height:0}
 .cinema-python .cinema-panel{position:absolute;inset:0 2.2%;border-radius:8px}
.cinema-python .cinema-editor{z-index:2;transform-origin:50% 22%}
.cinema-python .cinema-output{z-index:3;transform-origin:50% 70%}
 .cinema-python .cinema-panel-head{height:auto;padding:0 3.5%;font-size:clamp(9px,2.55cqw,14px)}
 .cinema-python .cinema-lines{height:100%;padding:0;display:block;overflow:hidden}
.cinema-python .cinema-scroll-body{padding:0 4%;transform:translate3d(0,0,0)}
.cinema-python .cinema-line{font-size:clamp(9px,2.85cqw,15px);grid-template-columns:9% minmax(0,1fr);line-height:1.3;min-height:var(--python-row-height,26px);align-items:center;padding:2px 0;box-sizing:border-box}
.cinema-python .cinema-type{white-space:pre-wrap;overflow-wrap:anywhere}
.cinema-python .cinema-ln{align-self:start;padding-top:2px}
.cinema-scene.cinema-python.cinema-current .cinema-scroll-body,
.cinema-scene.cinema-python.cinema-exiting .cinema-scroll-body{animation:python-scroll-down 10s linear both;will-change:transform}
@keyframes python-scroll-down{
 0%,8%{transform:translate3d(0,0,0);animation-timing-function:cubic-bezier(.38,.03,.23,1)}
 35%,100%{transform:translate3d(0,calc(-1 * var(--python-scroll-distance,0px)),0)}
}
.cinema-scene.cinema-python.cinema-current .cinema-type,
.cinema-scene.cinema-python.cinema-exiting .cinema-type{animation:none;clip-path:none;opacity:1}
 .cinema-python .cinema-chart{height:100%;padding:2.6%}
.cinema-python .cinema-type{color:#39645b}
.cinema-scene.cinema-python.cinema-current .cinema-editor,
.cinema-scene.cinema-python.cinema-exiting .cinema-editor{
 animation:python-code-window 10s linear both;will-change:transform,opacity;
}
.cinema-scene.cinema-python.cinema-current .cinema-output,
.cinema-scene.cinema-python.cinema-exiting .cinema-output{
 animation:python-result-window 10s linear both;will-change:transform,opacity;
}
@keyframes python-code-window{
 0%{opacity:1;transform:translate3d(0,0,0) scale(1.045);animation-timing-function:cubic-bezier(.22,.7,.22,1)}
 33%{opacity:1;transform:translate3d(0,0,0) scale(1.02);animation-timing-function:cubic-bezier(.35,0,.2,1)}
 40%{opacity:1;transform:translate3d(0,0,0) scale(1.02);animation-timing-function:cubic-bezier(.3,0,.25,1)}
 55%,100%{opacity:0;transform:translate3d(0,-37%,0) scale(.78)}
}
@keyframes python-result-window{
 0%,38%{opacity:0;transform:translate3d(0,44%,0) scale(.80)}
 46%{opacity:.85;transform:translate3d(0,22%,0) scale(.91);animation-timing-function:cubic-bezier(.2,.8,.22,1)}
 58%{opacity:1;transform:translate3d(0,0,0) scale(1.015);animation-timing-function:ease-out}
 84%,94%{opacity:1;transform:translate3d(0,0,0) scale(1.035)}
 100%{opacity:1;transform:translate3d(0,0,0) scale(1)}
}
.cinema-optimize .cinema-optical-result .cinema-chart{padding:2.6%}
.cinema-optimize .cinema-optical-result .gauss-svg{min-width:0!important;width:100%;height:100%}

/* The optimization excerpt includes its final GO instruction. */
.cinema-optimize .cinema-lines{gap:1%;padding:2% 2.8%}
.cinema-optimize .cinema-line{font-size:clamp(6px,1.95cqw,10.5px);line-height:1.25;grid-template-columns:10% minmax(0,1fr)}

/* Bounded continuous excerpt stream; preserve the camera timing. */
.cinema-lines,.cinema-python .cinema-lines{display:block;overflow:hidden;scrollbar-width:none;scroll-behavior:auto;padding:2.5% 3%;}
.cinema-lines::-webkit-scrollbar{display:none}
.cinema-stream-body{display:flex;flex-direction:column;gap:4px;min-height:0;}
.cinema-stream-body .cinema-line{flex:none;grid-template-columns:12% minmax(0,1fr);min-height:1.5em;align-items:start;}
.cinema-stream-body .cinema-type,.cinema-scene.cinema-current .cinema-stream-body .cinema-type{animation:none;clip-path:none;white-space:pre-wrap;overflow-wrap:anywhere;opacity:1;}
.cinema-python .cinema-stream-body .cinema-line{min-height:1.7em;}

/* ZPL macro cover: a restrained diagonal reframe toward the output. */
#skills [data-skill-preview] .zemax-preview-media .zemax-preview-poster{position:absolute;inset:7%;width:86%;height:86%;max-width:none;margin:0;object-fit:contain;}
.cinema-scene[data-shot="zemax-focus"]{--shot:cinema-zemax-focus}
@keyframes cinema-zemax-focus{0%{transform:translate3d(30%,2%,0) scale(1.66);animation-timing-function:cubic-bezier(.2,.7,.2,1)}32%{transform:translate3d(25%,0,0) scale(1.55);animation-timing-function:cubic-bezier(.35,.04,.23,1)}49%{transform:translate3d(0,0,0) scale(1.03);animation-timing-function:cubic-bezier(.25,.05,.23,1)}65%{transform:translate3d(-34%,-2%,0) scale(1.72);animation-timing-function:ease-out}90%{transform:translate3d(-34%,-2%,0) scale(1.72);animation-timing-function:cubic-bezier(.42,0,.26,1)}100%{transform:translate3d(0,0,0) scale(1.03)}}

/* Depth-of-focus uses a smooth pullback, then pushes into the threshold chart. */
.cinema-scene[data-shot="zemax-depth"]{--shot:cinema-zemax-depth}
@keyframes cinema-zemax-depth{0%{transform:translate3d(34%,0,0) scale(1.70);animation-timing-function:cubic-bezier(.2,.7,.2,1)}30%{transform:translate3d(31%,0,0) scale(1.64);animation-timing-function:cubic-bezier(.32,.04,.25,1)}46%,49%{transform:translate3d(0,0,0) scale(1.025);animation-timing-function:cubic-bezier(.25,.05,.23,1)}64%,94%{transform:translate3d(-34%,-1%,0) scale(1.72);animation-timing-function:ease-out}100%{transform:translate3d(0,0,0) scale(1.04)}}

/* Origin: real statistical computations on a constructed dataset; distinct worksheet/plot motion. */
.origin-chart{display:block;width:100%;height:auto;font-family:var(--mono);font-size:10px}
.origin-chart text{fill:var(--sub)}.origin-chart .origin-chart-title{font-size:13px;font-weight:600;fill:var(--ink)}.origin-chart .origin-label{font-size:11px;fill:var(--ink)}
.origin-grid{stroke:var(--hair);stroke-width:.7;fill:none}.origin-axis{stroke:var(--sub);stroke-width:1;fill:none}
.origin-bin{fill:#9ab7a6;stroke:#52836d;stroke-width:.6;transform-box:fill-box;transform-origin:center bottom}
.origin-fit{fill:none;stroke:var(--rust);stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.origin-reference,.origin-qq-line{fill:none;stroke:var(--rust);stroke-dasharray:4 3;stroke-width:1.15}
.origin-qq-dot{fill:#407c67;opacity:.85}
#skills .origin-preview-media>.origin-chart{position:absolute;inset:5%;width:90%;height:90%}
.origin-workspace{position:absolute;inset:3.2%;overflow:hidden}
.origin-window{position:absolute;inset:0;display:flex;flex-direction:column;min-height:0;background:#fcfaf5;border:1px solid #dcd4c7;border-radius:8px;overflow:hidden;transform-origin:center}
.origin-window-head{flex:none;padding:2% 3%;font:500 clamp(9px,2.55cqw,14px)/1.35 var(--mono);color:var(--sub);border-bottom:1px solid var(--hair)}
.origin-window .origin-chart{flex:1;min-height:0;width:100%;height:100%;padding:1.5% 2.4%;box-sizing:border-box}
.origin-sheet{overflow:auto;max-height:340px}.origin-window .origin-sheet{flex:1;min-height:0;overflow:hidden}
.origin-sheet table{width:100%;border-collapse:collapse;table-layout:fixed;font:12px/1.5 var(--mono);font-variant-numeric:tabular-nums}
.origin-sheet th,.origin-sheet td{border-bottom:1px solid var(--hair);padding:4px 2px;text-align:right;overflow-wrap:anywhere;color:var(--ink)}
.origin-sheet th{position:sticky;top:0;background:#f0e9dd;font-weight:500;color:var(--sub)}
.origin-window .origin-sheet table{font-size:clamp(7px,2.2cqw,12px);line-height:1.35}
.origin-window .origin-sheet td,.origin-window .origin-sheet th{padding:3px 2px}
.origin-data-window{z-index:1}.origin-hist-window{z-index:2;opacity:0}.origin-qq-window{z-index:3;opacity:0}
.origin-scene.cinema-current .origin-data-window{animation:origin-data-shot 12s both}
.origin-scene.cinema-current .origin-hist-window{animation:origin-hist-shot 12s both}
.origin-scene.cinema-current .origin-qq-window{animation:origin-qq-shot 12s both}
@keyframes origin-data-shot{0%,22%{opacity:1;transform:scale(1)}31%,100%{opacity:0;transform:translate3d(-13%,0,0) scale(.94)}}
@keyframes origin-hist-shot{0%,23%{opacity:0;transform:translate3d(18%,0,0) scale(.96)}32%,59%{opacity:1;transform:scale(1)}68%,100%{opacity:0;transform:translate3d(0,-15%,0) scale(.94)}}
@keyframes origin-qq-shot{0%,59%{opacity:0;transform:translate3d(0,16%,0) scale(.96)}69%,100%{opacity:1;transform:scale(1)}}
.origin-scene.cinema-current .origin-bin{animation:origin-bar-grow .72s cubic-bezier(.2,.8,.2,1) calc(3.6s + var(--i)*.035s) both}
@keyframes origin-bar-grow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.origin-scene.cinema-current .origin-fit{stroke-dasharray:1 2;animation:origin-fit-draw 1.45s linear 4.25s both}
@keyframes origin-fit-draw{from{stroke-dashoffset:1;opacity:0}1%{opacity:1}to{stroke-dashoffset:0;opacity:1}}
.origin-scene.cinema-current .origin-qq-dot{animation:origin-point-in .24s ease-out calc(8.35s + var(--i)*.015s) both}
@keyframes origin-point-in{from{opacity:0}to{opacity:.85}}
.origin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}
.origin-stats span{display:grid;gap:5px;color:var(--sub);font-size:13px;overflow-wrap:anywhere}
.origin-stats strong{color:var(--ink);font-size:clamp(16px,2.5vw,25px);font-weight:500}
.origin-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.origin-detail-grid figure{margin:0;min-width:0;padding:12px;border:1px solid var(--hair);border-radius:8px;background:#fcfaf5}
.origin-detail-grid figcaption{margin-bottom:8px;font-size:14px;color:var(--sub)}
.origin-data-details{margin-top:18px;border-top:1px solid var(--hair);padding:12px 0}
.origin-data-details summary{cursor:pointer;padding:8px 0}
@media(max-width:650px){.origin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.origin-detail-grid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-color-scheme:dark){.origin-window,.origin-detail-grid figure{background:var(--theme-window,#29292b);border-color:var(--hair)}.origin-sheet th,.origin-window-head{background:var(--theme-bar,#333335)}.origin-bin{fill:#7da991;stroke:#9dcbb6}.origin-qq-dot{fill:#9ed2b7}}


/* SOP case crops and technical drawing: consistent 16:10 canvas, independent of code editor scenes. */
.case-workspace{position:absolute;inset:3.2%;overflow:hidden}
.case-window{position:absolute;inset:0;display:flex;flex-direction:column;min-height:0;background:#fcfaf5;border:1px solid #dcd4c7;border-radius:8px;overflow:hidden}
.case-window-head{flex:none;padding:2% 3%;font:500 clamp(9px,2.55cqw,14px)/1.35 var(--mono);color:var(--sub);border-bottom:1px solid var(--hair)}
.case-window-content{flex:1;min-height:0;display:grid;place-items:center;overflow:hidden;padding:2% 2.8%;box-sizing:border-box}
.case-photo{display:block;width:100%;height:auto;object-fit:contain;max-width:100%;border-radius:3px}
.case-static{position:absolute;inset:4%;display:grid;place-items:center;overflow:hidden}
.case-static>.case-photo{width:100%;height:100%;object-fit:contain}
.lt-image-frame{min-width:0;min-height:0;display:grid;place-items:center;overflow:hidden}
.lt-barrel-layout{width:100%;height:100%;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:8px}
.lt-barrel-img{background:#fff;border-radius:4px}
.lt-barrel-img .case-photo{width:100%;height:100%;object-fit:contain}
.lt-property{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;padding:8px 10px;background:#eee8dc;border:1px solid var(--hair);border-radius:4px;color:var(--sub);font-size:12px}
.lt-property strong{color:var(--ink);font-weight:600}
.case-window .lt-property{font-size:clamp(7px,2.1cqw,12px);padding:4px 6px}
.lt-source-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);width:100%;gap:12px;align-items:center}
.lt-settings{min-width:0;border:1px solid var(--hair);border-radius:4px}
.lt-setting{display:grid;gap:3px;padding:7px 8px;border-bottom:1px solid var(--hair);font-size:12px;color:var(--sub);overflow-wrap:anywhere}
.lt-setting:last-child{border:0}.lt-setting strong{color:var(--ink);font-weight:500}
.case-window .lt-setting{font-size:clamp(7px,2.15cqw,12px);padding:4px 5px}
.lt-source-grid{width:100%;height:auto;font:10px var(--mono)}
.lt-source-grid text{fill:var(--lt-label-ink)}.cell-base{fill:var(--lt-cell-a);stroke:var(--lt-cell-edge);stroke-width:.6}.cell-alt{fill:var(--lt-cell-b);stroke:var(--lt-cell-edge);stroke-width:.6}.cell-cross{stroke:var(--lt-cell-edge);stroke-width:.7;fill:none}
.lt-locate{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:8px;width:100%;height:100%;min-height:0;align-items:center}
.lt-locate-side{height:100%;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:6px}
.case-window .lt-locate .case-photo{height:100%;object-fit:contain}
.lt-comparisons{width:100%;display:grid;gap:7px;align-content:center}
.lt-comparison{display:grid;gap:4px;padding:7px;border:1px solid var(--hair);border-radius:5px;background:var(--lt-comparison-paper);min-width:0}
.lt-comparison-effective{background:var(--lt-comparison-paper)}
.lt-compare-head,.lt-beforeafter{display:flex;justify-content:space-between;gap:5px;align-items:center;color:var(--sub);font-size:12px;flex-wrap:wrap}
.lt-compare-head strong{color:var(--ink);font-weight:600}
.lt-beforeafter span{width:46%;text-align:center}
.lt-comparison .case-photo{width:100%;object-fit:contain}
.lt-result{font-size:11px;color:var(--sub)}
.case-window .lt-comparisons{gap:5px;max-height:100%;grid-template-rows:repeat(2,minmax(0,1fr));height:100%}
.case-window .lt-comparison{padding:4px;gap:2px;grid-template-rows:auto auto minmax(0,1fr)}
.case-window .lt-comparison-effective{grid-template-rows:auto auto minmax(0,1fr) auto}
.case-window .lt-comparison .case-photo{height:100%}
.case-window .lt-compare-head,.case-window .lt-beforeafter,.case-window .lt-result{font-size:clamp(6.5px,2cqw,11px);line-height:1.2}
.case-first{z-index:1}.case-second{z-index:2;opacity:0}
.case-scene.cinema-current .case-first{animation:case-first-shot 14s both}
.case-scene.cinema-current .case-second{animation:case-second-shot 14s both}
@keyframes case-first-shot{0%,43%{opacity:1;transform:scale(1)}53%,100%{opacity:0;transform:translateX(-12%) scale(.95)}}
@keyframes case-second-shot{0%,43%{opacity:0;transform:translateX(12%) scale(.96)}55%,100%{opacity:1;transform:scale(1)}}
.lt-setup-scene.cinema-current .lt-barrel-img{animation:case-zoom 6s ease-out both}
@keyframes case-zoom{0%{opacity:.15;transform:scale(.94)}24%,72%{opacity:1;transform:scale(1)}100%{opacity:1;transform:scale(1.035)}}
.lt-setup-scene.cinema-current .lt-property{animation:case-fade .6s ease 2.1s both}
.lt-setup-scene.cinema-current .lt-setting{animation:case-fade .4s ease 7.3s both}
.lt-setup-scene.cinema-current .lt-cell{animation:case-fade .32s ease calc(7.7s + var(--i)*.13s) both}
.lt-analysis-scene.cinema-current .lt-map-img{animation:case-zoom 6s ease-out both}
.lt-analysis-scene.cinema-current .lt-locate-side{animation:case-fade .65s ease 2s both}
.lt-analysis-scene.cinema-current .lt-comparison{animation:case-fade .6s ease 7.4s both}
.lt-analysis-scene.cinema-current .lt-comparison-effective{animation:case-fade .6s ease 9.3s both}
@keyframes case-fade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.case-detail-frame{margin:16px 0 0;padding:14px;border:1px solid var(--hair);border-radius:8px;background:#fcfaf5}
.case-detail-frame .lt-barrel-layout{height:auto}.case-detail-frame .lt-barrel-img{padding:12px}
.case-detail-frame .lt-barrel-img .case-photo{max-width:540px}
.case-detail-frame .lt-locate{height:auto;min-height:0;align-items:stretch}
.case-detail-frame .lt-locate-side{height:auto}.case-detail-frame .lt-locate .case-photo{object-fit:contain}
.case-detail-frame .lt-comparisons{max-width:760px;margin:auto;gap:14px}
.sw-drawing{display:block;width:100%;height:auto;aspect-ratio:860/540;font:12px/1.25 var(--mono);font-variant-numeric:tabular-nums}
.sw-drawing text{fill:#262823}.sw-drawing .sw-label{font-weight:600;letter-spacing:.035em}
.sw-page{fill:#fffef9;stroke:#777972;stroke-width:1}
.sw-frame,.sw-rule,.sw-dims path{fill:none;stroke:#5e615a;stroke-width:1}
.sw-outline{fill:#dfece6;stroke:#3f5951;stroke-width:1.8;stroke-linejoin:round}
.sw-clear,.sw-centerline{fill:none;stroke:#82867e;stroke-width:.8;stroke-dasharray:5 3}
.sw-dims{font-size:12px}.sw-dims text{fill:#39423e}
.sw-preview-sheet{width:100%;height:100%;min-height:0;display:grid;place-items:center}
.sw-preview-sheet .sw-drawing,.sw-static .sw-drawing{width:100%;height:100%;object-fit:contain}
.sw-drawing-scene.cinema-current .sw-views{animation:sw-views-in .8s cubic-bezier(.25,.8,.2,1) .4s both}
@keyframes sw-views-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
.sw-drawing-scene.cinema-current .sw-material{animation:case-fade .65s ease 2.5s both}
.sw-drawing-scene.cinema-current .sw-notes{animation:case-fade .65s ease 4.4s both}
.sw-drawing-scene.cinema-current .sw-dims{animation:case-fade .65s ease 6.3s both}
.sw-drawing-scene.cinema-current .sw-titleblock{animation:case-fade .6s ease 8.4s both}
.sw-drawing-scene.cinema-current .sw-drawing-window{animation:sw-sheet-focus 14s ease both}
@keyframes sw-sheet-focus{0%,100%{transform:scale(1)}22%,34%{transform:translateX(3%) scale(1.04)}56%,66%{transform:translateX(-2%) scale(1.04)}84%,98%{transform:scale(1)}}
.sw-detail-sheet{width:100%;overflow-x:auto;min-width:0}.sw-detail-sheet .sw-drawing{min-width:620px}
.sw-detail-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.sw-detail-checks>div{display:grid;gap:5px;font-size:13px;line-height:1.6;color:var(--sub)}
.sw-detail-checks strong{color:var(--ink)}
@media(max-width:650px){.case-detail-frame .lt-source-layout,.case-detail-frame .lt-locate{grid-template-columns:minmax(0,1fr)}.case-detail-frame .lt-locate-side{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto}.sw-detail-checks{grid-template-columns:minmax(0,1fr)}}
@media(prefers-color-scheme:dark){.case-window,.case-detail-frame{background:var(--theme-window,#29292b);border-color:var(--hair)}.case-window-head,.lt-property{background:var(--theme-bar,#333335)}.sw-page{fill:#2a2b2d;stroke:#929692}.sw-drawing text,.sw-dims text{fill:#e2e4df}.sw-outline{fill:#324b42;stroke:#a3c8b7}.sw-frame,.sw-rule,.sw-dims path{stroke:#989e98}.sw-clear,.sw-centerline{stroke:#818984}}

/* Keep the source surface highlight anchored to the original ray screenshot. */
.lt-ray-inset{position:relative;display:block;width:100%;max-width:100%;line-height:0;align-self:center;justify-self:center}
.lt-ray-inset>.case-photo{width:100%;height:auto;object-fit:contain}
.lt-ray-focus{position:absolute;left:65%;top:36%;width:16%;height:60%;border:1.5px solid #da8b60;border-radius:3px;box-shadow:0 0 0 1px rgba(255,255,255,.65);pointer-events:none}
.lt-analysis-scene.cinema-current .lt-ray-focus{animation:case-ray-focus 2.4s ease-in-out 3s both}
@keyframes case-ray-focus{0%{opacity:0;transform:scale(1.16)}25%,75%{opacity:1;transform:scale(1)}100%{opacity:1;transform:scale(1)}}

/* Redrawn SOP-inspired LightTools views. All screen maps are schematic, not irradiance arrays.
   Shared variables keep every receiver map and comparison on the same scale. */
.lt-redrawn,.lt-source-grid,.lt-comparison{
 --lt-canvas:#efede7;--lt-energy-0:#efede7;--lt-energy-1:#c0cbc3;
 --lt-energy-2:#9cad9f;--lt-energy-3:#789483;--lt-energy-4:#bd896e;--lt-energy-5:#a4654e;
 --lt-map-frame:#737970;--lt-map-grid:#d7dbd3;--lt-label-paper:#fcfaf5;--lt-label-ink:var(--ink,#272822);
 --lt-spot-edge:#6d8777;--lt-screen:#d7d8d1;--lt-screen-light:#f9f6ed;
 --lt-glass:#c1d2c5;--lt-glass-edge:#718b7b;--lt-sleeve:#9daba4;--lt-sleeve-edge:#87978e;
 --lt-ray:#7d9284;--lt-ray-ghost:#ae745b;
 --lt-cell-a:#d4e0d5;--lt-cell-b:#e9e3d9;--lt-cell-edge:#849386;--lt-comparison-paper:#f4f1ea;
}
.lt-redrawn{display:block;width:100%;height:auto;max-width:100%;font:12px var(--mono)}
.lt-redrawn text{fill:var(--sub)}.lt-redrawn .lt-map-label text{fill:var(--lt-label-ink);font-size:11px}.lt-map-scale text{font-size:10px}
.case-static>.lt-redrawn{width:100%;height:100%}
.case-window .lt-image-frame>.lt-redrawn{width:100%;height:100%;object-fit:contain}
.lt-barrel-img{background:transparent}.lt-opt-axis{stroke:var(--hair);stroke-width:.9;stroke-dasharray:5 3;fill:none}
.lt-lens-face{fill:var(--lt-glass);fill-opacity:.5;stroke:var(--lt-glass-edge);stroke-width:1.15}
.lt-front-lens{fill:var(--lt-glass);fill-opacity:.58;stroke:var(--lt-glass-edge)}
.lt-lens-rim{stroke:var(--lt-glass-edge);stroke-width:1;fill:none}
.lt-sleeve-back{fill:var(--lt-sleeve);fill-opacity:.1;stroke:var(--lt-sleeve-edge);stroke-width:1}
.lt-sleeve{fill:var(--lt-sleeve);fill-opacity:.18;stroke:var(--lt-sleeve-edge);stroke-width:1.2}
.lt-absorber-wall{stroke:var(--lt-sleeve-edge);stroke-width:3;fill:none}
.lt-barrel-ring{stroke:var(--lt-sleeve-edge);stroke-width:3;fill:none}
.lt-drawing-guide{stroke:var(--sub);stroke-width:.8;fill:none}
.lt-imaging-ray{stroke:var(--lt-ray);stroke-opacity:.38;stroke-width:.85;fill:none}
.lt-ghost-ray{stroke:var(--lt-ray-ghost);stroke-width:1.2;stroke-opacity:.8;fill:none;stroke-linejoin:round}
.lt-bevel{fill:none;stroke:var(--lt-ray-ghost);stroke-width:2.3;stroke-linecap:round}
.lt-bevel-highlight{fill:none;stroke:var(--lt-ray-ghost);stroke-width:1.2;stroke-dasharray:3 2}
.lt-receiver{fill:none;stroke:var(--lt-map-frame);stroke-width:1.2}
.lt-vector-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;min-height:0;align-items:center}
.lt-vector-pair>.lt-redrawn{width:100%;height:auto}
.case-window .lt-vector-pair{height:100%;overflow:hidden}
.case-window .lt-vector-pair>.lt-redrawn{height:100%;max-height:100%}
.lt-setup-scene.cinema-current .lt-lens{animation:lt-vector-lens .7s cubic-bezier(.22,.8,.2,1) calc(.16s + var(--i)*.19s) both}
@keyframes lt-vector-lens{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:translateX(0)}}
.lt-setup-scene.cinema-current .lt-sleeve,.lt-setup-scene.cinema-current .lt-sleeve-back{animation:case-fade 1s ease 2.1s both}
.lt-analysis-scene.cinema-current .lt-map-img .lt-energy-mark{animation:lt-energy-in .4s ease calc(.25s + var(--i)*.035s) both}
@keyframes lt-energy-in{from{opacity:0}}
.lt-analysis-scene.cinema-current .lt-ghost-ray{stroke-dasharray:1 2;animation:lt-vector-ray 1.55s linear calc(2.3s + var(--i)*.035s) both}
@keyframes lt-vector-ray{0%{stroke-dashoffset:1;opacity:0}1%{opacity:1}100%{stroke-dashoffset:0;opacity:.85}}
.lt-analysis-scene.cinema-current .lt-bevel-highlight{animation:case-fade .5s ease 4s both}
@media(prefers-color-scheme:dark){
 .lt-redrawn,.lt-source-grid,.lt-comparison{
  --lt-canvas:#252527;--lt-energy-0:#252527;--lt-energy-1:#52685c;
  --lt-energy-2:#718e7d;--lt-energy-3:#a1b8aa;--lt-energy-4:#ba8b72;--lt-energy-5:#dfa489;
  --lt-map-frame:#90988f;--lt-map-grid:#383c39;--lt-label-paper:#333335;--lt-label-ink:var(--ink,#f2f0eb);
  --lt-spot-edge:#a1b8aa;--lt-screen:#424643;--lt-screen-light:#d9dbce;
  --lt-glass:#83aa96;--lt-glass-edge:#a5c3b1;--lt-sleeve:#7c9187;--lt-sleeve-edge:#94a39a;
  --lt-ray:#a1b5a7;--lt-ray-ghost:#d49d83;
  --lt-cell-a:#35463b;--lt-cell-b:#48423b;--lt-cell-edge:#8da294;--lt-comparison-paper:#29292b;
 }
}

/* Glass-only STEP-derived display. No housing, no proprietary model download. */
.sw-lens-svg,.sw-section-svg{display:block;width:100%;height:auto;overflow:visible}
.sw-static .sw-lens-svg,.sw-assembly-scene .sw-lens-svg,.sw-assembly-scene .sw-section-svg{width:100%;height:100%;max-width:100%;max-height:100%}
.sw-glass-volume{fill:#b5d8d0;fill-opacity:.30;stroke:#6d9c92;stroke-width:1.05;stroke-linejoin:round}
.sw-glass-back{fill:#dbece5;fill-opacity:.12;stroke:#7ba99e;stroke-width:1.1}
.sw-glass-face{fill:#c6e8df;fill-opacity:.23;stroke:#5f9387;stroke-width:1.1}
.sw-glass-contour{fill:none;stroke:#7faea2;stroke-opacity:.24;stroke-width:.7}
.sw-glass-meridian{fill:none;stroke:#e8fffa;stroke-opacity:.8;stroke-width:.9}
.sw-glass-edge{fill:none;stroke:#82a99e;stroke-opacity:.52;stroke-width:.8}
.sw-section-axis{fill:none;stroke:var(--sub);stroke-opacity:.6;stroke-dasharray:6 5;stroke-width:.8}
.sw-section-glass{fill:#c6e5db;fill-opacity:.64;stroke:#5f9387;stroke-width:1.2;stroke-linejoin:round}
.sw-model-detail{max-width:900px;margin-inline:auto;display:grid;place-items:center}
.sw-model-detail .sw-lens-svg[data-lens-interactive]{touch-action:none;cursor:grab;outline-offset:3px}
.sw-model-detail .sw-lens-svg[data-lens-interactive]:active{cursor:grabbing}
.sw-model-hint{margin-top:8px;color:var(--sub);font-size:12px;text-align:center}
.sw-assembly-scene .case-window-content{padding:2%}
.sw-stage-model{z-index:1}
.sw-stage-section{z-index:2;opacity:0}
.sw-stage-drawing{z-index:3;opacity:0}
.sw-assembly-scene.cinema-current .sw-stage-model{animation:sw-model-stage 14s ease-in-out both}
.sw-assembly-scene.cinema-current .sw-stage-section{animation:sw-section-stage 14s ease-in-out both}
.sw-assembly-scene.cinema-current .sw-stage-drawing{animation:sw-drawing-stage 14s ease-in-out both}
@keyframes sw-model-stage{0%,36%{opacity:1;transform:scale(1)}46%,100%{opacity:0;transform:scale(1)}}
@keyframes sw-section-stage{0%,35%{opacity:0;transform:scale(1)}46%,55%{opacity:1;transform:scale(1)}65%,100%{opacity:0;transform:scale(.98)}}
@keyframes sw-drawing-stage{0%,54%{opacity:0;transform:translateY(7%) scale(.96)}65%,100%{opacity:1;transform:translateY(0) scale(1)}}
.sw-assembly-scene.cinema-current .sw-views{animation:sw-views-in .65s ease 8.2s both}
.sw-assembly-scene.cinema-current .sw-material{animation:case-fade .6s ease 9.1s both}
.sw-assembly-scene.cinema-current .sw-dims{animation:case-fade .6s ease 9.5s both}
.sw-assembly-scene.cinema-current .sw-notes{animation:case-fade .6s ease 10s both}
.sw-assembly-scene.cinema-current .sw-titleblock{animation:case-fade .5s ease 10.7s both}
@media(prefers-color-scheme:dark){.sw-glass-volume{fill:#83b1a5;fill-opacity:.26;stroke:#a0cbbd}.sw-glass-back{fill:#88bdb1;stroke:#8fbfb3}.sw-glass-face{fill:#9dd6c7;fill-opacity:.18;stroke:#b2d7ca}.sw-glass-contour,.sw-glass-edge{stroke:#a9d3c5}.sw-glass-meridian{stroke:#d3f7ed;stroke-opacity:.6}.sw-section-glass{fill:#72a99b;fill-opacity:.32;stroke:#b0d8ca}}
