/* Two aspects of the EasyOpto mission, with user-controlled explanations. */
/* Direct chapter jumps must not compete with native smooth focus scrolling. */
html.case-motion-ready { scroll-behavior:auto; }
.easyopto-case { --case-blue: #2864ea; }
.easyopto-case :is(h1,h2,h3,h4) { text-wrap: balance; }
.easyopto-case h2 { max-width: 30ch; font-size: var(--type-section,clamp(1.5rem,2.4vw,2rem)); font-weight: 550; line-height: 1.25; letter-spacing: -.025em; }
.easyopto-case .section-lead { max-width: 62ch; }
.easyopto-case .case-study-intro h1 { font-weight: 550; }
.case-chapters { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; }
.case-explore { display: inline-flex; align-items: center; gap: .75rem; min-height: 48px; }
.easyopto-case :is(#transmission,#securite,#interview,#fonctionnement,#resultats) { scroll-margin-top: 110px; }
.case-anchor { display: block; }
.case-film-poster { position: relative; width:100%; max-width: 720px; margin:0; overflow: hidden; border-radius: 12px; background: #0f172a; }
.case-film-poster picture,.case-film-poster img { display: block; width: 100%; }
.case-film-poster img { height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media(orientation:portrait) {
 .case-film-poster { max-width:min(240px,26svh); margin-inline:auto; }
 .case-film-poster img { aspect-ratio: 9 / 16; }
}
.case-system { margin: 32px 0 0; padding: clamp(24px,4vw,48px); background: #0f172a; color: #fff; border-radius: 12px; }
.easyopto-case :is(.case-system h3,.case-gate h3) { margin: 0; max-width: 38ch; font-size: clamp(1.375rem,2.1vw,1.75rem); font-weight: 550; line-height: 1.3; letter-spacing: -.025em; }
.case-results-heading { margin:0; font-size: 1.375rem; font-weight: 550; }
.easyopto-case #transmission { padding-bottom:24px; }
.case-results-scene { margin-top:24px; }
.case-results-stage { padding-block:16px; background:var(--bg-soft); }
.case-results-scene.results-pinned { height:calc(var(--results-height) + var(--results-hold)); }
.results-pinned .case-results-stage { position:sticky; top:var(--results-top); }
.easyopto-case .case-results { margin-top:24px; gap:20px 32px; }
.easyopto-case .case-film { padding-block:28px 36px; }
.case-film>.container { display:grid; grid-template-columns:minmax(0,.65fr) minmax(0,1.35fr); align-items:center; gap:40px; }
.easyopto-case #securite { padding-top:40px; }
.easyopto-case .case-results dt { color: var(--case-blue); font-size: clamp(1.375rem,2.1vw,1.75rem); font-weight: 550; }
.easyopto-case .case-results dd { margin-inline:0; font-size: 1.0625rem; line-height: 1.6; }
.case-source-note { font-size: .9375rem; line-height: 1.6; color: #475569; max-width: 85ch; margin-top: 24px; }
.case-security-notes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; margin-top: 32px; }
.case-security-notes h3 { margin: 0 0 12px; font-size: 1.375rem; line-height: 1.3; font-weight: 550; }
.case-security-notes p { font-size: 1.0625rem; color: #475569; line-height: 1.6; }
.easyopto-case .case-testimonial { max-width: 52ch; margin: 48px 0; }
.easyopto-case .case-testimonial>p { font-size: clamp(1.375rem,2.5vw,2rem); line-height: 1.4; letter-spacing: -.02em; font-weight: 500; }
.case-services { margin-top: 48px; padding-top: 32px; border-top: 1px solid #cbd5e1; }
.case-services h3 { font-size: 1.375rem; font-weight: 550; }
.case-services ul { list-style: none; margin: 20px 0 0; padding: 0; }
.case-services li+li { border-top: 1px solid #cbd5e1; }
.case-services a { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); gap: 24px; padding: 20px 0; min-height: 48px; text-decoration: none; }
.case-services strong { display: flex; align-items: center; gap: 12px; font-size: 1.125rem; font-weight: 550; color: #1748af; }
.case-services span { font-size: 1.0625rem; line-height: 1.5; color: #475569; }
.case-services a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.case-services svg { flex-shrink: 0; }
@media(max-width:760px) {
 .secondary-page .header-inner { height: auto; min-height: var(--header); flex-wrap: wrap; row-gap: 8px; padding-block: 12px; }
 .easyopto-case .section { padding-block: 48px; }
 .easyopto-case .case-study-hero { padding-top: 24px; }
 .case-results-scene { margin-top:20px; }
 .case-results-stage { padding-block:12px; }
 .easyopto-case .case-results { margin-top:20px; gap:18px; }
 .easyopto-case .case-results>div { padding-top:12px; }
 .case-film>.container { display:block; }
 .case-film-poster { margin-top:20px; }
 .easyopto-case .case-film { padding-block:24px 28px; }
 .easyopto-case #securite { padding-top:28px; }
 .case-security-notes { grid-template-columns: 1fr; gap: 28px; }
 .case-services a { grid-template-columns: 1fr; gap: 8px; }
}
@media print {
 .case-results-scene.results-pinned { height:auto; }
 .results-pinned .case-results-stage { position:static; }
 .case-gate-controls { display: none; }
 .case-system { background: #fff; color: #0f172a; border: 1px solid #cbd5e1; }
 .case-system :is(span,strong,p,figcaption) { color: #334155; }
 .case-handover .handover-owner { stroke: #334155; }
 .case-handover .handover-builder { stroke: #2864ea; }
 .case-gate-status { min-height: 0; }
}

/* EasyOpto: continuous handover curves, with a single final reading hold. */
.case-relay-scene { margin-block:40px 20px; background:#0b1627; color:#fff; }
.case-system.case-relay-stage { width:100%; margin:0; padding:40px clamp(24px,6vw,96px); border:0; border-radius:0; background:#0b1627; display:flex; align-items:center; }
.case-relay-content { width:100%; max-width:1280px; margin:auto; }
.easyopto-case .relay-heading h3 { font-size:clamp(1.875rem,3.8vw,3.25rem); max-width:29ch; line-height:1.13; letter-spacing:-.035em; }
.relay-heading { display:flex; justify-content:space-between; align-items:end; gap:32px; }
.relay-heading em { font-style:normal; color:#91b3ff; }
.relay-scroll-cue { display:flex; align-items:center; gap:16px; color:#b8c9e4; font-size:.9375rem; white-space:nowrap; }
.relay-scroll-cue svg { width:24px; height:28px; fill:none; stroke:currentColor; stroke-width:1.5; }
.relay-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); align-items:center; gap:clamp(32px,5vw,80px); margin-top:24px; }
.relay-visual { position:relative; height:360px; display:flex; flex-direction:column; min-width:0; }
.relay-legend { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:start; gap:20px; padding:4px 3% 16px; }
.relay-legend>div { display:flex; align-items:flex-start; gap:10px; }
.relay-legend strong { display:block; color:#fff; font-size:1.0625rem; font-weight:550; line-height:1.35; }
.relay-legend small { display:block; color:#b8c9e4; font-size:.9375rem; line-height:1.4; margin-top:2px; }
.relay-key { margin-top:.5rem; width:26px; border-top:3px solid #5489ff; flex-shrink:0; border-radius:2px; }
.relay-legend-owner .relay-key { border-color:#8be4cd; }
.relay-chart { fill:none; stroke:none; display:block; width:100%; flex:1; min-height:0; overflow:visible; }
.relay-chart path { vector-effect:non-scaling-stroke; fill:none; stroke-linecap:round; }
.relay-trace { stroke-width:1; opacity:.15; }
.relay-trace-builder,.relay-curve-builder { stroke:#5489ff; }
.relay-trace-owner,.relay-curve-owner { stroke:#8be4cd; }
.relay-curve { stroke-width:3.5; }
.case-relay-scene:not(.relay-enhanced) .relay-visual { height:auto; }
.case-relay-scene:not(.relay-enhanced) .relay-chart { flex:none; height:220px; }
.relay-time-labels { display:flex; justify-content:space-between; gap:16px; padding:8px 3% 0; color:#b8c9e4; font-size:.875rem; line-height:1.4; }
.handover-controls { margin:0 0 28px; }
.handover-controls[hidden],.relay-motion-toggle[hidden] { display:none; }
.handover-buttons { display:flex; gap:0; border-bottom:1px solid #486081; }
.handover-buttons button { flex:1; display:flex; flex-direction:column; gap:8px; min-height:48px; padding:14px 12px; border:0; border-bottom:2px solid transparent; background:none; color:#b8c9e4; font:inherit; font-size:1rem; cursor:pointer; }
.handover-buttons button[aria-pressed=true] { border-color:#91b3ff; color:#fff; }
.handover-buttons button:active { background:#ffffff0a; }
.handover-buttons button:focus-visible,.relay-motion-toggle:focus-visible { outline:2px solid #a5c5ff; outline-offset:4px; border-radius:4px; }
.case-transfer-phases { list-style:none; margin:0; padding:0; display:grid; gap:24px; }
.case-transfer-phases li { min-width:0; }
.case-phase-index { color:#91b3ff; font-variant-numeric:tabular-nums; }
.case-transfer-phases h4 { margin:4px 0 12px; font-size:1.25rem; font-weight:550; }
.case-transfer-phases strong { display:block; font-size:clamp(1.375rem,2.3vw,2rem); font-weight:550; line-height:1.2; letter-spacing:-.025em; color:#fff; max-width:22ch; }
.case-transfer-phases p { margin:16px 0 0; color:#c6d5ec; font-size:1.125rem; line-height:1.55; max-width:38ch; }
.relay-enhanced .case-transfer-phases { gap:0; }
.relay-enhanced .case-transfer-phases li { grid-area:1/1; opacity:0; visibility:hidden; transition:opacity .16s ease-out; }
.relay-enhanced .case-transfer-phases li.is-selected { opacity:1; visibility:visible; transform:none; }
.relay-enhanced .case-transfer-phases :is(h4,.case-phase-index) { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.case-system-shared { display:flex; align-items:center; gap:16px; border-top:1px solid #435976; padding-top:20px; margin:20px 0 0; font-size:1.0625rem; line-height:1.5; color:#d4e2f7; }
.case-system-shared svg { flex-shrink:0; width:24px; height:28px; fill:none; stroke:#91b3ff; stroke-width:1.5; stroke-linejoin:round; }
.relay-reading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:12px; }
.case-relay-note { margin-top:0; margin-bottom:0; color:#475569; font-size:.875rem; line-height:1.5; }
.relay-reading figcaption { font-size:.8125rem; color:#b0c0d8; line-height:1.5; }
.relay-motion-toggle { flex-shrink:0; min-height:44px; padding:8px 0; background:none; border:0; color:#c6d5ec; text-decoration:underline; text-underline-offset:4px; font:inherit; font-size:.875rem; cursor:pointer; }
.relay-pinned { height:calc(var(--relay-viewport) + var(--relay-travel)); position:relative; }
.relay-pinned .case-relay-stage { position:sticky; top:var(--relay-top); height:var(--relay-viewport); }
@media(min-width:761px) {
 .relay-compact .case-relay-stage { padding-block:24px; }
 .relay-compact .relay-visual { height:330px; }
 .relay-compact .relay-layout { margin-top:12px; }
 .relay-compact .relay-heading h3 { font-size:clamp(1.875rem,3.4vw,2.625rem); }
}
@media(max-width:1000px) and (min-width:761px) {
 .relay-layout { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px; }
 .relay-scroll-cue { display:none; }
}
@media(max-width:760px) {
 .case-relay-scene { margin-block:28px 16px; }
 .case-system.case-relay-stage { padding:24px 20px; }
 .relay-heading { display:block; }
 .easyopto-case .relay-heading h3 { font-size:clamp(1.625rem,5.9vw,2.375rem); line-height:1.17; }
 .relay-scroll-cue { display:none; }
 .relay-layout { grid-template-columns:1fr; gap:12px; margin-top:16px; }
 .relay-visual { width:100%; max-width:440px; height:218px; margin:auto; }
 .relay-legend { padding-bottom:6px; gap:16px; }
 .relay-legend>div { gap:8px; }
 .relay-legend strong { font-size:.9375rem; }
 .relay-legend small { font-size:.8125rem; }
 .relay-key { width:20px; }
 .relay-time-labels { font-size:.8125rem; padding-top:4px; }
 .handover-controls { margin-bottom:16px; }
 .handover-buttons button { flex-direction:row; justify-content:center; align-items:center; gap:7px; min-height:44px; padding:8px 3px; font-size:.875rem; }
 .case-transfer-phases strong { font-size:1.375rem; max-width:25ch; }
 .case-transfer-phases p { margin-top:8px; font-size:1rem; line-height:1.5; max-width:44ch; }
 .case-system-shared { gap:12px; padding-top:12px; margin-top:16px; font-size:.9375rem; line-height:1.4; }
 .case-system-shared svg { width:22px; height:24px; }
 .relay-reading { margin-top:4px; gap:12px; }
 .relay-reading figcaption { font-size:.75rem; max-width:27ch; }
 .relay-motion-toggle { font-size:.875rem; text-align:left; }
 .relay-compact .case-relay-stage { padding-block:12px; }
 .relay-compact .relay-heading h3 { font-size:1.5rem; }
 .relay-compact .relay-layout { margin-top:12px; gap:6px; }
 .relay-compact .relay-visual { height:192px; }
 .relay-compact .handover-controls { margin-bottom:10px; }
 .relay-compact .case-system-shared { margin-top:12px; padding-top:10px; }
}
@media(prefers-reduced-motion:reduce) {
 .case-transfer-phases li { transition:none; }
}
@media print {
 .case-relay-scene,.relay-pinned,.gate-pinned { height:auto!important; background:white; }
 .case-system.case-relay-stage,.gate-pinned .case-gate { position:static; height:auto; padding:24px; background:white; color:#0b1627; }
 .relay-visual,.handover-controls,.relay-reading,.relay-scroll-cue { display:none; }
 .relay-layout { display:block; }
 .relay-enhanced .case-transfer-phases { display:grid; gap:24px; }
 .relay-enhanced .case-transfer-phases li { grid-area:auto; visibility:visible; opacity:1; transform:none; }
 .relay-enhanced .case-transfer-phases :is(h4,.case-phase-index) { position:static; width:auto; height:auto; margin:4px 0 12px; overflow:visible; clip:auto; white-space:normal; }
 .case-transfer-phases :is(strong,p),.case-system-shared { color:#0b1627; }
 .relay-heading em { color:#2864ea; }
}

/* A change stays on the near side until the founder's approval opens the gate. */
.case-gate-scene { margin-block:40px 32px; background:#edf3fc; color:#102340; }
.case-gate { margin:0; padding:40px clamp(24px,6vw,96px); display:flex; align-items:center; }
.gate-content { width:100%; max-width:1280px; margin:auto; }
.gate-heading { display:flex; align-items:end; justify-content:space-between; gap:32px; }
.easyopto-case .gate-heading h3 { font-size:clamp(1.875rem,3.8vw,3.25rem); line-height:1.13; letter-spacing:-.035em; max-width:28ch; }
.gate-heading em { font-style:normal; color:#2864ea; }
.gate-caption { font-size:1rem; color:#475569; max-width:22ch; }
.gate-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:clamp(32px,5vw,80px); align-items:center; margin-top:24px; }
.gate-visual { position:relative; height:320px; isolation:isolate; }
.gate-visual svg { fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.gate-ground { position:absolute; left:2%; right:2%; top:59%; height:16%; border:1px solid #c1d2ed; border-radius:50%; background:#dbe7f9; transform:perspective(700px) rotateX(50deg); }
.gate-track { position:absolute; inset:0; width:100%; height:100%; }
.gate-track path { vector-effect:non-scaling-stroke; stroke-width:2; }
.gate-track-base { stroke:#9fb6d8; stroke-dasharray:3 7; }
.gate-track-progress { stroke:#2864ea; stroke-dasharray:1; stroke-dashoffset:var(--gate-line,1); }
.gate-return { stroke:#8c450e; opacity:var(--gate-failed,0); }
.gate-portal { position:absolute; width:72px; height:200px; left:53%; top:40px; transform:translateX(-50%); z-index:3; perspective:500px; }
.gate-portal-frame { position:absolute; inset:0; border:2px solid #2864ea; border-bottom:0; border-radius:36px 36px 0 0; box-shadow:6px 0 0 #adc7f3; }
.gate-door { position:absolute; top:38px; bottom:0; width:50%; background:#2864ea; opacity:calc(.94 - var(--gate-open,0) * .75); border:1px solid #8fb4fc; }
.gate-door-left { left:0; transform-origin:left; transform:rotateY(calc(var(--gate-open,0) * -100deg)); }
.gate-door-right { right:0; transform-origin:right; transform:rotateY(calc(var(--gate-open,0) * 100deg)); }
.gate-lock { position:absolute; left:50%; top:48%; width:34px; height:34px; transform:translate(-50%,-50%); color:#fff; opacity:calc(1 - var(--gate-open,0)); }
.gate-lock svg { width:100%; height:100%; }
.gate-decision { position:absolute; top:0; left:53%; transform:translateX(-50%); display:flex; align-items:center; gap:8px; white-space:nowrap; font-size:.9375rem; color:#1748af; }
.gate-decision svg { width:24px; height:24px; }
.gate-change { position:absolute; top:90px; left:12px; width:142px; height:124px; border:1px solid #2864ea; border-radius:9px; background:#fff; color:#1748af; box-shadow:0 12px 20px #173d6d18; transform:scale(var(--gate-scale,1)); z-index:2; }
.gate-change { opacity:calc(1 - var(--gate-published,0)); }
.gate-change-head { display:flex; align-items:center; gap:6px; padding:10px; background:#2864ea; color:#fff; border-radius:8px 8px 0 0; font-size:.875rem; }
.gate-change-head svg { width:18px; height:18px; flex-shrink:0; }
.gate-change-lines { display:grid; gap:6px; padding:12px; }
.gate-change-lines span { height:3px; background:#adc6ed; border-radius:2px; }
.gate-change-lines span:nth-child(2) { width:75%; }.gate-change-lines span:nth-child(3) { width:55%; }
.gate-change-checks { display:flex; gap:8px; padding-inline:12px; }
.gate-change-checks>span { width:19px; height:19px; border:1px solid #9fb6d8; border-radius:50%; background:rgba(40,100,234,var(--gate-checks,0)); color:#fff; }
.gate-change-checks svg { width:100%; height:100%; opacity:var(--gate-checks,0); }
.gate-site { position:absolute; right:1%; top:96px; width:116px; height:114px; border:1px solid #9fb6d8; background:#f8fbff; border-radius:8px; opacity:calc(.6 + var(--gate-published,0) * .4); }
.gate-window-bar { display:flex; gap:4px; padding:10px; border-bottom:1px solid #c1d2ed; }
.gate-window-bar i { width:4px; height:4px; background:#6986ae; border-radius:50%; }
.gate-window-body { padding:10px; display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.gate-window-body span { height:24px; background:rgba(40,100,234,calc(.1 + var(--gate-published,0) * .7)); border-radius:3px; }.gate-window-body span:first-child { grid-column:span 2; height:12px; }
.gate-site-check { position:absolute; bottom:-12px; right:-8px; width:34px; height:34px; padding:6px; border-radius:50%; background:#2864ea; color:#fff; opacity:var(--gate-verified,0); }
.gate-visual-label { position:absolute; bottom:8px; left:0; width:100%; text-align:center; font-size:1rem; color:#1748af; }
.gate-step-controls { display:flex; gap:8px; margin-bottom:24px; }
.gate-step-controls button { flex:1; min-height:44px; border:0; border-bottom:2px solid #a7bbd9; background:none; font:inherit; color:#475569; font-size:.875rem; cursor:pointer; }
.gate-step-controls button[aria-pressed=true] { border-color:#2864ea; color:#1748af; font-weight:600; }
.case-gate :is(button):focus-visible { outline:2px solid #1748af; outline-offset:4px; border-radius:3px; }
.case-gate button:active { background:#d5e2f7; }
.case-gate-steps { display:grid; list-style:none; padding:0; margin:0; gap:24px; }
.case-gate-steps li { display:flex; align-items:baseline; gap:16px; }
.case-gate-marker { color:#2864ea; font-size:1rem; font-variant-numeric:tabular-nums; }
.case-gate :is(.case-gate-steps,.gate-failure) strong { display:block; font-size:clamp(1.375rem,2.3vw,2rem); font-weight:550; line-height:1.2; letter-spacing:-.025em; }
.case-gate :is(.case-gate-steps,.gate-failure) p { font-size:1.125rem; line-height:1.5; color:#334a6a; margin:12px 0 0; }
.gate-enhanced .gate-panels { display:grid; }
.gate-enhanced .case-gate-steps { grid-area:1/1; gap:0; }
.gate-enhanced .case-gate-steps li { grid-area:1/1; visibility:hidden; opacity:0; transition:opacity 160ms ease-out; }
.gate-enhanced .case-gate-steps li.is-current { visibility:visible; opacity:1; }
.gate-enhanced .case-gate-marker { display:none; }
.gate-enhanced .gate-failure { grid-area:1/1; }
.gate-enhanced .case-gate[data-state=blocked] .case-gate-steps li { visibility:hidden; opacity:0; }
.gate-failure { padding-top:20px; }.gate-enhanced .gate-failure { padding:0; }
.gate-failure strong { color:#8c450e; }
.gate-enhanced .gate-failure[hidden] { display:block; visibility:hidden; }
.case-gate-status { margin:24px 0 0; padding-top:20px; border-top:1px solid #b8cbe6; font-size:1rem; line-height:1.5; color:#475569; min-height:6.5em; }
.gate-footer { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:24px; border-top:1px solid #b8cbe6; padding-top:16px; }
.case-gate-controls { display:flex; gap:8px; }
.case-gate-controls button { min-height:44px; padding:8px 18px; border:1px solid #829bbf; border-radius:24px; font:inherit; font-size:.9375rem; color:#1748af; background:transparent; cursor:pointer; }
.case-gate-controls button[aria-pressed=true] { background:#2864ea; border-color:#2864ea; color:#fff; }
.case-gate[data-state=blocked] .case-gate-controls button[aria-pressed=true] { background:#8c450e; border-color:#8c450e; }
.case-gate[data-state=blocked] .gate-visual-label { color:#8c450e; }
.gate-motion-toggle { min-height:44px; border:0; padding:8px 0; background:none; color:#475569; font:inherit; font-size:.875rem; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.gate-motion-toggle[hidden],.case-gate-controls[hidden],.gate-step-controls[hidden] { display:none; }
.case-gate-note { color:#475569; font-size:.875rem; line-height:1.5; margin-top:-8px; margin-bottom:40px; }
.gate-pinned { height:calc(var(--gate-viewport) + var(--gate-travel)); position:relative; }
.gate-pinned .case-gate { height:var(--gate-viewport); position:sticky; top:var(--gate-top); }
@media(min-width:761px) {
 .gate-compact .case-gate { padding-block:24px; }
 .gate-compact .gate-heading h3 { font-size:clamp(1.875rem,3.4vw,2.625rem); }
 .gate-compact .gate-visual { height:280px; }
 .gate-compact .gate-portal { height:170px; }
 .gate-compact .gate-layout { margin-top:16px; }
 .gate-compact .gate-footer { margin-top:16px; padding-top:12px; }
}
@media(min-width:761px) and (max-width:1000px) {
 .gate-layout { gap:24px; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); }
 .gate-change { width:112px; height:116px; }.gate-change-head { padding:8px 6px; font-size:.75rem; }
 .gate-portal { width:52px; }.gate-site { width:92px; }
 .gate-caption { display:none; }
 .gate-footer { flex-wrap:wrap; gap:4px; }
}
@media(max-width:760px) {
 .case-gate-scene { margin-block:28px 24px; }
 .case-gate { padding:24px 20px; }
 .gate-heading { display:block; }
 .easyopto-case .gate-heading h3 { font-size:clamp(1.75rem,6.5vw,2.375rem); line-height:1.12; }
 .gate-caption { display:none; }
 .gate-layout { grid-template-columns:1fr; gap:12px; margin-top:16px; }
 .gate-visual { width:100%; max-width:440px; height:204px; margin:auto; }
 .gate-portal { width:46px; height:124px; top:30px; }
 .gate-door { top:24px; }.gate-portal-frame { border-radius:24px 24px 0 0; box-shadow:4px 0 0 #adc7f3; }
 .gate-lock { width:25px; height:25px; }
 .gate-decision { gap:4px; font-size:.8125rem; }.gate-decision svg { width:20px; height:20px; }
 .gate-change { width:102px; height:90px; top:60px; }
 .gate-change-head { font-size:.75rem; padding:6px; gap:3px; }.gate-change-head svg { width:14px; height:14px; }
 .gate-change-lines { gap:4px; padding:8px; }.gate-change-lines span { height:2px; }
 .gate-change-checks { gap:5px; padding-inline:8px; }.gate-change-checks>span { width:15px; height:15px; }
 .gate-site { width:76px; height:80px; top:65px; right:1%; }
 .gate-window-bar { padding:6px; }.gate-window-body { padding:6px; gap:5px; }.gate-window-body span { height:14px; }.gate-window-body span:first-child { height:8px; }
 .gate-site-check { width:26px; height:26px; bottom:-8px; right:-3px; padding:4px; }
 .gate-visual-label { bottom:3px; font-size:.875rem; }
 .gate-step-controls { gap:6px; margin-bottom:12px; }
 .case-gate :is(.case-gate-steps,.gate-failure) strong { font-size:1.375rem; }
 .case-gate :is(.case-gate-steps,.gate-failure) p { font-size:1rem; margin-top:8px; }
 .gate-enhanced .case-gate-status { position:absolute; width:1px; height:1px; min-height:0; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
 .gate-footer { display:block; margin-top:20px; padding-top:12px; }
 .case-gate-controls { gap:6px; }
 .case-gate-controls button { flex:1; padding:6px; font-size:.875rem; line-height:1.25; border-radius:12px; }
 .gate-motion-toggle { margin-top:4px; }
 .gate-compact .case-gate { padding-block:12px; }
 .gate-compact .gate-heading h3 { font-size:1.625rem; }
 .gate-compact .gate-layout { margin-top:12px; gap:8px; }
 .gate-compact .gate-visual { height:174px; }
 .gate-compact .gate-portal { height:110px; top:26px; }.gate-compact .gate-change { top:44px; }.gate-compact .gate-site { top:52px; }
 .gate-compact .gate-step-controls { margin-bottom:8px; }
 .gate-compact .gate-footer { margin-top:12px; padding-top:8px; }
}
@media print {
 .case-gate-scene { height:auto; background:#fff; }
 .gate-pinned .case-gate { position:static; height:auto; padding:24px; }
 .gate-visual,.gate-step-controls,.gate-footer,.gate-caption,.gate-failure { display:none!important; }
 .gate-layout,.gate-enhanced .gate-panels { display:block; }
 .gate-enhanced .case-gate-steps { display:grid; gap:20px; }
 .gate-enhanced .case-gate-steps li,.gate-enhanced .case-gate[data-state=blocked] .case-gate-steps li { grid-area:auto; visibility:visible; opacity:1; }
 .gate-enhanced .case-gate-marker { display:block; }
 .gate-enhanced .case-gate-status { position:static; width:auto; height:auto; margin:24px 0; padding:0; clip:auto; overflow:visible; white-space:normal; }
}
.gate-ready .gate-change { left:50%; transform:translateX(calc(-50% + var(--gate-x,0px))) scale(var(--gate-scale,1)); }
.gate-manual .gate-change { transition:transform 360ms cubic-bezier(.2,.7,.2,1); }
@media(max-width:760px) { .gate-portal,.gate-decision { left:62%; } }
@media(prefers-reduced-motion:reduce) { .gate-manual .gate-change,.gate-enhanced .case-gate-steps li { transition:none; } }

.case-gate-scene:not(.gate-enhanced) .case-gate-controls { flex-wrap:wrap; }
