/* Phase F: animated Work visuals (AI images made with Abacus, rights in the owner's manifest) + the Commission Sheet. Additive. */
.shot { position: relative; margin: 0 0 16px; overflow: hidden; border: 1px solid var(--rule-soft); aspect-ratio: 4 / 3; background: var(--paper-deep); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.4s cubic-bezier(.22, 1, .36, 1); }
.detail:hover .shot img { transform: scale(1.05); }
.shot::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 2px; background: var(--mark); box-shadow: 0 0 18px 2px rgba(255, 211, 107, .55); opacity: 0; pointer-events: none; }
/* plot-in: the picture is revealed by a sweeping scan line, then a quiet scan repeats now and then */
html.motion .detail.reveal:not(.in) .shot img { clip-path: inset(0 100% 0 0); }
html.motion .detail.reveal.in .shot img { animation: fx6-reveal 1.3s cubic-bezier(.65, 0, .35, 1) .15s both; }
html.motion .detail.reveal.in .shot::after { animation: fx6-scan 1.3s cubic-bezier(.65, 0, .35, 1) .15s both, fx6-scan-loop 9s ease-in-out 3s infinite; }
html.motion .detail:nth-child(2).reveal.in .shot::after { animation-delay: .3s, 6s; } html.motion .detail:nth-child(3).reveal.in .shot::after { animation-delay: .45s, 9s; }
[dir="rtl"] .shot img { } 
@keyframes fx6-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fx6-scan { 0% { inset-inline-start: 0; opacity: 1; } 99% { opacity: 1; } 100% { inset-inline-start: calc(100% - 2px); opacity: 0; } }
@keyframes fx6-scan-loop { 0%, 86% { inset-inline-start: 0; opacity: 0; } 88% { opacity: .55; } 98% { opacity: .55; } 100% { inset-inline-start: calc(100% - 2px); opacity: 0; } }
[dir="rtl"] .detail.reveal:not(.in) .shot img { clip-path: inset(0 0 0 100%); }
@media (min-width: 1000px) { #work .shot { margin-top: 0; } }
/* commission band */
.commission { display: grid; grid-template-columns: auto 1fr auto; gap: 0 14px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 14px 20px; border-bottom: 1.5px solid var(--rule); }
.commission .cs-k { font: 700 11px var(--mono); letter-spacing: .2em; color: var(--mark); padding-inline-end: 4px; border-inline-end: 1px solid var(--rule-soft); padding-inline-end: 14px; }
.commission input { font: 500 16px var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px dashed var(--rule); padding: 10px 2px; min-width: 0; caret-color: var(--mark); }
.commission input:focus { outline: none; border-bottom-style: solid; border-color: var(--mark); }
.commission input::placeholder { color: var(--ink-3); }
.cs-hint { grid-column: 1 / -1; margin: 6px 0 0; font-size: 11.5px; color: var(--ink-3); }
@media (max-width: 640px) { .commission { grid-template-columns: 1fr; gap: 8px; } .commission .cs-k { border: 0; } }
[lang="ar"] .commission .cs-k { letter-spacing: 0; font-size: 13px; }
/* modal sheet */
.cs-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(2, 14, 32, .78); backdrop-filter: blur(4px); animation: fx6-fade .25s ease both; overflow: auto; }
.cs-box { width: min(1040px, 100%); background: var(--paper); border: 1.5px solid var(--rule); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.cs-box svg { display: block; width: 100%; height: auto; }
.cs-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--rule-soft); }
.cs-bar .sp { flex: 1; }
.cs-bar .btn { min-height: 44px; }
.cs-note { font-size: 12px; color: var(--ink-3); }
@keyframes fx6-fade { from { opacity: 0; } to { opacity: 1; } }
/* the sheet draws itself */
html.motion .cs-box .dr { stroke-dasharray: 1; stroke-dashoffset: 1; animation: fx6-dr 1s cubic-bezier(.65, 0, .35, 1) both; }
html.motion .cs-box .fd { opacity: 0; animation: fx6-fd .5s ease both; }
@keyframes fx6-dr { to { stroke-dashoffset: 0; } }
@keyframes fx6-fd { to { opacity: 1; } }
html.motion .cs-box .stp { opacity: 0; transform-box: fill-box; transform-origin: center; animation: fx6-stp .5s cubic-bezier(.3, 1.6, .5, 1) 3.2s both; }
@keyframes fx6-stp { 0% { opacity: 0; transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }
