/* One fixed canvas. Three photo rectangles exchange their spans inside it. */
html body.hero-comparison-page #design.sample-showcase{
 --project-stage:min(640px,calc(100svh - 274px));
 padding-block:48px 24px;max-height:100svh;background:var(--mg-color-soft-gray,#f2f2f2);color:var(--mg-color-black);
}
html #design>.wrap{width:min(calc(100% - 2 * var(--mg-page-gutter)),var(--mg-container-max));max-width:none;gap:16px}
html #design .sample-heading h2{font:700 clamp(27px,3vw,34px)/1.06 var(--mg-font-family);letter-spacing:-.035em;margin:0;color:var(--mg-color-black)}
html #design #brand-example .sample-grid{
 --tile-gap:8px;--tile-half:calc((100% - var(--tile-gap)) / 2);--tile-next:calc((100% + var(--tile-gap)) / 2);--tile-left:calc((100% - var(--tile-gap)) * 4 / 7);--tile-right:calc((100% - var(--tile-gap)) * 3 / 7);--tile-right-x:calc((100% - var(--tile-gap)) * 4 / 7 + var(--tile-gap));
 display:block;position:relative;isolation:isolate;height:var(--project-stage);width:100%;overflow:hidden;transition:none;
}
html #design #brand-example .sample-grid figure{
 display:block;position:absolute;inset:auto;margin:0;min-width:0;min-height:0;
 left:var(--tile-x,0);top:var(--tile-y,0);width:var(--tile-w,var(--tile-right));height:var(--tile-h,var(--tile-half));
 overflow:hidden;background:#eeeae4;aspect-ratio:auto;container-type:normal;
 transition:left 620ms cubic-bezier(.22,1,.36,1),top 620ms cubic-bezier(.22,1,.36,1),width 620ms cubic-bezier(.22,1,.36,1),height 620ms cubic-bezier(.22,1,.36,1);
}
html #design #brand-example .project-sock{--tile-x:0%;--tile-y:0%;--tile-w:var(--tile-left);--tile-h:100%;z-index:1}
html #design #brand-example .project-detail{--tile-x:var(--tile-right-x);--tile-y:0%;z-index:1}
html #design #brand-example .project-package{--tile-x:var(--tile-right-x);--tile-y:var(--tile-next);z-index:1}
html #design #brand-example[data-focus-photo=detail] .project-detail{--tile-x:0%;--tile-y:0%;--tile-w:100%;--tile-h:var(--tile-half);z-index:2}
html #design #brand-example[data-focus-photo=detail] .project-sock{--tile-x:0%;--tile-y:var(--tile-next);--tile-h:var(--tile-half)}
html #design #brand-example[data-focus-photo=package] .project-package{--tile-x:calc((100% - var(--tile-gap)) * 3 / 7 + var(--tile-gap));--tile-y:0%;--tile-w:var(--tile-left);--tile-h:100%;z-index:2}
html #design #brand-example[data-focus-photo=package] .project-sock{--tile-x:0%;--tile-y:0%;--tile-w:var(--tile-right);--tile-h:var(--tile-half)}
html #design #brand-example[data-focus-photo=package] .project-detail{--tile-x:0%;--tile-y:var(--tile-next);--tile-w:var(--tile-right);--tile-h:var(--tile-half)}
html #design #brand-example .sample-photo{position:relative;width:100%;height:100%;overflow:hidden}
html #design #brand-example .sample-photo>img{z-index:1;display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;transform:none}
/* An unobtrusive edge fade meets a flat studio colour; no copied image fragments. */
html #design #brand-example img[data-photo-gutter=x]{mask-image:linear-gradient(to right,transparent,#000 3%,#000 97%,transparent)}
html #design #brand-example img[data-photo-gutter=y]{mask-image:linear-gradient(to bottom,transparent,#000 3%,#000 97%,transparent)}
html #design #brand-example img[data-photo-gutter=none]{mask-image:none}
html #design #brand-example .sample-grid figcaption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
html #design #brand-example .project-photo-toggle{position:absolute;inset:0;z-index:4;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:zoom-in;touch-action:pan-y}
html #design #brand-example .project-photo-toggle[aria-pressed=true]{cursor:default}
html #design #brand-example .project-photo-toggle:focus-visible{outline:3px solid var(--mg-color-orange);outline-offset:-5px}
html #design #brand-example .sample-photo:has(.project-photo-error:not([hidden])) .project-photo-toggle{display:none}
html #design .sample-caption{padding:6px 0 0;min-height:32px}
html #design .sample-caption h3{font:700 20px/1.15 var(--mg-font-family);color:var(--mg-color-black)}
html body #design .sample-caption .underlink{font-size:12px;min-height:30px;color:var(--mg-color-purple)}
html #design .sample-track{gap:6px;padding:4px 0}
html #design .sample-choice{gap:4px;color:#555}
html #design .sample-choice-image{width:56px;height:56px;padding:2px}
html #design .sample-choice>span:last-child{font:400 11px/1.15 var(--mg-font-family)}
html #design .sample-choice[aria-pressed=true]>span:last-child{font-weight:700;color:var(--mg-color-black)}
html body #design .sample-choice[aria-pressed=true] .sample-choice-image{border-color:var(--mg-color-orange)}
@media(max-width:760px){
 html body.hero-comparison-page #design.sample-showcase{--project-stage:min(420px,calc(100svh - 245px),calc((100vw - 24px) * 6 / 7));padding-block:24px 14px}
 html #design>.wrap{width:min(calc(100% - 24px),calc(var(--project-stage) * 7 / 6));gap:8px}
 html #design .sample-heading h2{font-size:25px}
 html #design #brand-example .sample-grid{--tile-gap:6px}
 html #design .sample-caption h3{font-size:18px}
 html body #design .sample-caption .underlink{font-size:11px}
 html #design .sample-choice-image{width:clamp(40px,11vw,52px);height:clamp(40px,11vw,52px);padding:1px}
 html #design .sample-choice>span:last-child{font-size:9px}
}
@media(max-height:540px){
 html body.hero-comparison-page #design.sample-showcase{--project-stage:min(calc(100svh - 211px),calc((100vw - 24px) * 3 / 4));padding-block:16px 10px}
 html #design>.wrap{width:min(calc(100% - 40px),480px);gap:6px}
 html #design .sample-heading h2{font-size:22px}
 html #design .sample-choice-image{width:40px;height:40px}
}
@media(prefers-reduced-motion:reduce){html #design #brand-example .sample-grid figure{transition:none!important}}
