*{box-sizing:border-box}
html{background:#eeeee8;color:#f7f7ef}
body.knitts-restitching-page{margin:0;padding:10px;font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
.restitch-frame{min-height:calc(100svh - 20px);position:relative;isolation:isolate;overflow:hidden;border-radius:20px;background:#111210;display:flex;flex-direction:column;padding:30px 36px 26px}
.restitch-stage{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.restitch-photos,.restitch-photo,.restitch-photo img,.restitch-scrim,.restitch-shutters,.restitch-draft{position:absolute;inset:0;width:100%;height:100%}
.restitch-photo{opacity:0;transition:opacity .3s linear}
.restitch-photo.is-current{opacity:1}
.restitch-photo img{display:block;object-fit:cover;object-position:var(--photo-position,50% 35%)}
.restitch-scrim{background:linear-gradient(180deg,rgba(0,0,0,.27) 0%,rgba(0,0,0,.08) 26%,rgba(0,0,0,.4) 48%,rgba(0,0,0,.83) 78%,rgba(0,0,0,.88) 100%)}
.restitch-header,.restitch-footer{display:flex;justify-content:space-between;align-items:flex-start;gap:25px;position:relative;z-index:1}
.restitch-brand{font-size:25px;font-weight:900;letter-spacing:-.06em;line-height:1}
.restitch-brand img{display:block;width:150px;height:auto;max-height:55px;object-fit:contain;filter:brightness(0) invert(1)}
.restitch-edition,.restitch-footer{font-size:10px;line-height:1.5;font-weight:500;letter-spacing:.065em}
.restitch-edition,.restitch-footer>span:last-child{text-align:right}
.restitch-message{position:relative;margin:auto auto 0;padding:29vh 0 36px;width:min(100%,1000px);text-align:center}
.restitch-kicker{font-size:10px;letter-spacing:.19em;line-height:1.4;margin:0 0 15px}
.restitch-message h1{font-size:clamp(48px,9.5vw,146px);font-weight:800;line-height:.91;letter-spacing:-.075em;margin:0 0 26px;padding-right:.075em;overflow-wrap:normal}
.restitch-loader{height:2px;background:rgba(255,255,255,.25);width:min(100%,420px);margin:0 auto;overflow:hidden;position:relative}
.restitch-loader span{display:block;width:37%;height:100%;background:#fff;animation:restitch-loading 2.7s cubic-bezier(.55,0,.3,1) infinite;transform:translateX(-110%)}
.restitch-loader-label{display:flex;align-items:center;justify-content:space-between;width:min(100%,420px);margin:10px auto 0;font:9px/1.3 'Courier New',monospace;letter-spacing:.12em}
.restitch-ellipsis{font-size:6px;letter-spacing:.3em;opacity:.7}
.restitch-caption{font-size:13px;line-height:1.65;max-width:510px;margin:24px auto 0;color:rgba(255,255,250,.88);text-wrap:pretty}
.restitch-footer{margin-top:12px}
.shutter{position:absolute;width:50.1%;height:50.1%;background:#141512;transition:transform 1.6s cubic-bezier(.76,0,.2,1);border:1px solid rgba(255,255,255,.17)}
.shutter-tl{top:0;left:0;background:#1b1c19;border-bottom-right-radius:90px;transform-origin:top left}
.shutter-tr{top:0;right:0}
.shutter-bl{bottom:0;left:0}
.shutter-br{bottom:0;right:0;background:#1b1c19;border-top-left-radius:90px;transform-origin:bottom right}
.is-open .shutter-tl{transform:translate(-101%,-101%)}
.is-open .shutter-tr{transform:translate(101%,-101%)}
.is-open .shutter-bl{transform:translate(-101%,101%)}
.is-open .shutter-br{transform:translate(101%,101%)}
.restitch-draft{opacity:1;transition:opacity .65s ease;pointer-events:none}
.is-open .restitch-draft{opacity:0}
.draft-axis{position:absolute;background:rgba(255,255,255,.5)}
.draft-axis-x{width:100%;height:1px;left:0;top:37%}
.draft-axis-y{height:100%;width:1px;top:0;left:50%}
.draft-guide{position:absolute;opacity:.25}
.draft-guide-x{width:100%;height:15px;top:37%;border-top:1px solid #fff;background:repeating-linear-gradient(90deg,transparent 0,transparent 39px,#fff 39px,#fff 40px)}
.draft-guide-y{height:100%;width:15px;left:50%;border-left:1px solid #fff;background:repeating-linear-gradient(180deg,transparent 0,transparent 39px,#fff 39px,#fff 40px)}
.draft-pattern{position:absolute;top:calc(37% - 125px);left:calc(50% - 125px);width:250px;height:250px;stroke:rgba(255,255,255,.8);stroke-width:1}
.draft-pattern rect{fill:#1b1c19}
.draft-note{position:absolute;font:8px/1 'Courier New',monospace;letter-spacing:.12em;color:rgba(255,255,255,.6)}
.draft-note-top{left:calc(50% + 24px);top:calc(37% - 30px)}
.draft-note-side{left:calc(50% + 24px);top:calc(37% + 25px)}
@keyframes restitch-loading{0%{transform:translateX(-110%)}100%{transform:translateX(380%)}}
@media(min-width:1600px){.restitch-message{padding-top:34vh;padding-bottom:48px}.restitch-caption{font-size:14px}}
@media(max-width:767px){
 body.knitts-restitching-page{padding:6px}
 .restitch-frame{min-height:calc(100svh - 12px);border-radius:17px;padding:calc(22px + env(safe-area-inset-top,0px)) 18px calc(20px + env(safe-area-inset-bottom,0px))}
 .restitch-brand img{width:110px;max-height:40px}
 .restitch-edition,.restitch-footer{font-size:8px;line-height:1.5}
 .restitch-message{padding:30svh 0 27px}
 .restitch-kicker{font-size:8px;margin-bottom:13px}
 .restitch-message h1{font-size:clamp(30px,9.6vw,73px);letter-spacing:-.065em;margin-bottom:23px}
 .restitch-loader,.restitch-loader-label{width:87%}
 .restitch-loader-label{font-size:8px;margin-top:9px}
 .restitch-caption{font-size:12px;line-height:1.65;max-width:340px;margin-top:23px}
 .restitch-footer{margin-top:0}
 .shutter-tl{border-bottom-right-radius:55px}.shutter-br{border-top-left-radius:55px}
 .restitch-scrim{background:linear-gradient(180deg,rgba(0,0,0,.25) 0%,rgba(0,0,0,.05) 28%,rgba(0,0,0,.47) 47%,rgba(0,0,0,.84) 73%,rgba(0,0,0,.87) 100%)}
}
@media(max-height:650px){.restitch-message{padding-top:19svh;padding-bottom:24px}.restitch-caption{margin-top:18px}.restitch-message h1{margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){.restitch-photo,.shutter,.restitch-draft{transition:none}.restitch-shutters,.restitch-draft{display:none}.restitch-loader span{animation:none;transform:translateX(85%);width:30%}}
