/* Shared editorial layouts, with the artwork taking priority. */
.editorial-analysis { margin-top:18px; border-top:1px solid #ddd; font-size:12px; }
.editorial-analysis summary { padding:14px 0; cursor:pointer; color:#b85b55; }
.editorial-analysis[open] { background:white; position:relative; z-index:3; }
.editorial-analysis .work-insight,.editorial-analysis .work-metrics { min-height:0; padding:20px 0; }
.editorial-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(240px,.65fr); gap:7vw; height:100%; min-height:0; align-items:center; }
.editorial-layout .work-long { width:min(100%,620px); height:100%; min-height:0; margin:auto; }
.editorial-layout .work-long__crop { height:calc(100% - 35px); max-height:65vh; overflow:auto; }
.editorial-notes h2 { font-size:clamp(24px,3vw,44px); line-height:1.3; margin:24px 0; }
.editorial-notes p { color:#889099; font-size:13px; line-height:2; }
.editorial-colours { display:flex; margin:30px 0; }.editorial-colours span { background:var(--swatch); color:#fff; text-shadow:0 1px 3px #000; flex:1; padding:45px 8px 12px; font-size:10px; }
.ad-grid { height:100%; min-height:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); gap:20px; }
.ad-grid .work-image { min-height:0; margin:0; }.ad-grid button,.ad-grid img { width:100%; height:100%; object-fit:contain; }
.fashion-banner { height:100%; display:grid; place-items:center; }.fashion-banner img { max-height:60vh; width:100%; object-fit:contain; }
.retouch-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; height:calc(100% - 35px); min-height:0; align-items:stretch; }
.retouch-grid:has(.retouch-pair:nth-child(2):last-child) { grid-template-columns:repeat(2,minmax(0,1fr)); max-width:1150px; margin:auto; }
.retouch-pair { min-height:0; display:flex; flex-direction:column; }.retouch-pair h4 { font-size:13px; font-weight:500; margin:0 0 16px; }
.work-reader.is-paged .retouch-pair .work-compare { flex:1; height:auto; min-height:0; }
.editorial-footnote { text-align:center; font-size:11px; color:#89939c; }
.pipeline { height:100%; display:flex; flex-direction:column; min-height:0; }
.pipeline-toolbar { display:flex; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid #ddd; font-size:10px; color:#889099; letter-spacing:.1em; }
.pipeline-viewport { position:relative; flex:1; min-height:0; overflow:hidden; background:linear-gradient(#e9e9e9 1px,transparent 1px),linear-gradient(90deg,#e9e9e9 1px,transparent 1px); background-size:36px 36px; }
.pipeline-image { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:white; opacity:0; transform:scale(1.025); transition:opacity .65s ease,transform 1s cubic-bezier(.2,.7,.2,1); }
.pipeline-image.is-active { opacity:1; transform:scale(1); }
.pipeline-lines { pointer-events:none; position:absolute; inset:0; width:100%; height:100%; opacity:0; }
.pipeline-lines path { fill:none; stroke:#b85b55; stroke-width:1; stroke-dasharray:1; stroke-dashoffset:1; }
.pipeline[data-step="0"] .pipeline-lines { opacity:.45; }.pipeline[data-step="0"] .pipeline-lines path { animation:construction-line 1.6s ease forwards; }
.pipeline-nodes { position:absolute; left:50%; bottom:15px; transform:translate(-50%,12px); display:flex; align-items:center; gap:12px; white-space:nowrap; opacity:0; transition:.6s ease; font-size:10px; pointer-events:none; }
.pipeline.is-render .pipeline-nodes { opacity:1; transform:translate(-50%,0); }.pipeline-nodes span { padding:10px 14px; border:1px solid #c8ccd0; background:#fffffff0; }.pipeline-nodes i { color:#b85b55; }
.pipeline nav { display:flex; border-bottom:1px solid #ddd; }.pipeline nav button { flex:1; padding:17px 8px; border:0; background:none; color:#8d9399; font-size:12px; }.pipeline nav button[aria-current="true"] { color:#b85b55; box-shadow:inset 0 -2px #b85b55; }
.pipeline-hint { text-align:center; font-size:11px; color:#89939c; margin:12px 0 0; }
.contact-lines { display:flex; flex-direction:column; gap:14px; margin-top:28px; font-size:16px; }.contact-lines a { color:inherit; text-decoration:none; }.contact-lines p { margin:0; }
@keyframes construction-line { to { stroke-dashoffset:0; } }
@media(max-width:959px) { .editorial-layout { display:block; height:auto; }.editorial-notes { margin-top:24px; }.editorial-layout .work-long__crop { height:60vh; }.ad-grid { grid-template-columns:repeat(2,1fr); grid-template-rows:auto; height:auto; }.retouch-grid,.retouch-grid:has(.retouch-pair:nth-child(2):last-child) { display:block; height:auto; }.retouch-pair { margin-bottom:32px; }.pipeline { height:65vh; }.pipeline-nodes { gap:3px; font-size:8px; }.pipeline-nodes span { padding:6px; }.pipeline nav button { font-size:10px; } }
@media(prefers-reduced-motion:reduce) { .pipeline-image,.pipeline-nodes { transition:none; }.pipeline-lines path { animation:none!important; stroke-dashoffset:0; } }

@media(min-width:960px) {
 .work-scene__body:has(> .retouch-grid) { grid-template-rows:minmax(0,1fr) 32px; }
 .retouch-grid { height:100%; align-items:center; }
 .retouch-pair { height:min(100%,530px); }
 .work-reader.is-paged .retouch-pair .work-compare__stage { flex:1; }
 .work-scene__body:has(> .editorial-analysis[open]) { display:block; }
 .editorial-analysis[open] .work-insight { min-height:420px; }
}
.pipeline-objects { position:absolute; left:14px; top:14px; width:145px; border:1px solid #d7dadd; background:#fffffff2; padding:16px; display:flex; flex-direction:column; gap:14px; font-size:10px; opacity:0; pointer-events:none; }
.pipeline-objects small { color:#8c949b; }.pipeline.is-model .pipeline-objects { opacity:1; }
.portfolio-app .pipeline-image { transition:opacity .65s ease,transform 1s cubic-bezier(.2,.7,.2,1)!important; }
.portfolio-app .pipeline-nodes,.portfolio-app .pipeline-objects { transition:opacity .6s ease,transform .6s ease!important; }
.portfolio-app .pipeline[data-has-sketch="true"][data-step="0"] .pipeline-image.is-active { animation:sketch-reveal 1.6s ease both!important; }
.pipeline[data-has-sketch="true"][data-step="0"] .pipeline-lines { display:none; }
.portfolio-app .pipeline.is-model .pipeline-lines { opacity:.3; }.portfolio-app .pipeline.is-model .pipeline-lines path { animation:construction-line 1.4s ease both!important; }
.portfolio-app .profile-directory-cue__mouse::after { animation:directory-scroll 1.8s ease-in-out infinite!important; }
@keyframes sketch-reveal { from { clip-path:inset(0 100% 0 0); } to { clip-path:inset(0); } }
@media(prefers-reduced-motion:reduce) { .portfolio-app .pipeline-image,.portfolio-app .pipeline-nodes,.portfolio-app .pipeline-objects { transition:none!important; }.portfolio-app .pipeline .pipeline-image.is-active,.portfolio-app .pipeline.is-model .pipeline-lines path,.portfolio-app .profile-directory-cue__mouse::after { animation:none!important; } }

/* Consistent image canvases prevent different source ratios leaking through. */
html, body, body * { -webkit-user-select:none; user-select:none; }
.work-compare__stage img { background:#fff; }
@media(min-width:960px) {
 .work-scene__body:has(> .retouch-grid) { grid-template-rows:minmax(0,1fr) auto; gap:18px; overflow:hidden; }
 .retouch-grid { width:100%; height:100%; align-items:stretch; }
 .retouch-grid:has(.retouch-pair:nth-child(2):last-child) { width:100%; max-width:1400px; height:100%; gap:clamp(32px,5vw,90px); margin:0 auto; }
 .retouch-pair { height:100%; min-width:0; }
 .retouch-pair .work-compare__control { margin-top:14px; }
 .work-scene__body:has(> .retouch-grid) .editorial-footnote { margin:0; line-height:20px; }
 .work-showcase--desktop { grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:4vw; }
 .work-device--desktop { width:100%; gap:55px; }
 .work-device--desktop .work-device__flight { position:relative; width:100%; height:auto; aspect-ratio:16/10; }
 .work-device--desktop .work-device__frame { border-radius:14px; padding:14px 10px 25px; background:linear-gradient(135deg,#fafafa,#dce0e4); }
 .work-device--desktop .work-long__crop { border-radius:4px; }
 .work-device--desktop .work-device__speaker { width:4px; height:4px; left:calc(50% - 2px); top:5px; border-radius:50%; }
 .work-device--desktop .work-device__home { display:none; }
 .work-device--desktop .work-device__flight::after { content:""; position:absolute; top:100%; left:32%; width:36%; height:40px; background:linear-gradient(#c7cbd0,#f1f2f3); clip-path:polygon(32% 0,68% 0,73% 82%,100% 90%,100% 100%,0 100%,0 90%,27% 82%); }
 .work-reader.is-paged .work-ending.portfolio-finale { align-items:center; text-align:center; padding:6vh 8%; gap:0; }
 .portfolio-finale > p { letter-spacing:.2em; font-size:12px; color:#949ba0; margin:0 0 30px; }
 .work-reader.is-paged .portfolio-finale h2 { font-size:clamp(56px,6.5vw,112px); color:#b85b55; line-height:1.3; margin:32px 0; }
 .portfolio-finale h2 span { display:block; margin-top:20px; font-size:clamp(28px,3vw,48px); font-weight:400; color:#292929; letter-spacing:.06em; }
 .portfolio-finale .contact-lines { width:min(100%,1100px); display:grid; grid-template-columns:1fr 1fr 1.4fr; gap:24px; margin:5vh 0 4vh; padding-top:28px; border-top:1px solid #dedede; font-size:clamp(13px,1.2vw,18px); }
 .work-reader.is-paged .portfolio-finale button { width:auto; align-self:center; margin-top:16px; border:0; border-bottom:1px solid #b85b55; padding:12px 24px; color:#b85b55; }
}
