/* One photographic plane opens from the original icon, then settles beside the statement. */
.brand-bridge{position:relative;background:#fff;isolation:isolate}
.brand-bridge-stage{position:relative;display:grid;grid-template-columns:45% minmax(0,1fr);min-height:80svh;overflow:hidden}
.bridge-geometry{position:absolute;pointer-events:none}
.brand-bridge-visual{position:relative;min-width:0;min-height:0;margin:0;overflow:hidden}
.brand-bridge-visual img{display:block;width:100%;height:100%;object-fit:cover;object-position:25% 20%}
.brand-bridge-final{display:flex;min-width:0;background:#fff}
.brand-bridge-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(32px,5vw,88px);color:#111;min-width:0}
.brand-bridge-copy h2{font:700 clamp(32px,min(4.8vw,8svh),92px)/1.02 var(--mg-font-expanded);letter-spacing:var(--mg-font-tracking);margin:0;max-width:none;color:#111}
.brand-bridge-copy h2 span{display:block;white-space:nowrap}
.brand-bridge-signature{display:block;width:min(260px,75%);height:auto;margin-top:40px}
.bridge-thread,.bridge-thread-entry{display:none;pointer-events:none;fill:none}
.brand-bridge.is-live{height:255svh;background:#111}
.brand-bridge.is-live .brand-bridge-stage{position:sticky;top:0;height:100svh;min-height:0;display:block;background:#111}
.brand-bridge.is-live .brand-bridge-visual{position:absolute;z-index:1;inset:0 auto 0 0;width:45%;height:100%;mask:url(#brand-photo-aperture);-webkit-mask:url(#brand-photo-aperture);opacity:var(--bridge-photo-opacity,0);transform:translate3d(var(--bridge-visual-x,27.5vw),var(--bridge-visual-y,0),0) scale(var(--bridge-visual-scale,1.1));transform-origin:center}
.brand-bridge.is-live .brand-bridge-visual img{height:106%;transform:translate3d(0,var(--bridge-image-y,0),0)}
.brand-bridge.is-live .brand-bridge-final{position:absolute;inset:0 0 0 45%;z-index:0;opacity:var(--bridge-panel-opacity,0)}
.brand-bridge.is-live .brand-bridge-copy h2 span{opacity:var(--bridge-word-opacity,0);transform:translate3d(0,var(--bridge-word-y,20px),0)}
.brand-bridge.is-live .brand-bridge-signature{opacity:var(--bridge-signature-opacity,0);transform:translate3d(0,var(--bridge-signature-y,12px),0)}
.brand-bridge.is-live .bridge-thread{display:block;position:absolute;inset:0;z-index:2;width:100%;height:100%;overflow:visible;opacity:var(--bridge-thread-opacity,1)}
.bridge-thread path,.bridge-thread-entry path{stroke:var(--mg-color-orange-200,#ffd0bb);stroke-width:3.5;stroke-linecap:round;stroke-dasharray:100 100;stroke-dashoffset:var(--bridge-thread-offset,100);vector-effect:non-scaling-stroke}
.brand-bridge.is-live .bridge-thread-entry{display:block;position:absolute;top:-87px;left:50%;width:200px;height:88px;transform:translateX(-50%);z-index:1}
.bridge-thread-entry path{stroke:#ff5a1f;stroke-dashoffset:var(--bridge-entry-offset,100)}
/* A real before/after comparison of the same motif, with a keyboard-operable native range. */
body .material-section{padding-block:88px}
.technique-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:clamp(32px,5vw,80px);align-items:center}
.technique-visual{min-width:0}
.technique-compare{position:relative;isolation:isolate;aspect-ratio:3/2;overflow:hidden;background:#f2f2f2;--technique-position:60%}
.technique-compare img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}
.technique-woven{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--technique-position)) 0 0)}
.technique-labels{position:absolute;inset:16px 16px auto;display:flex;justify-content:space-between;gap:12px;pointer-events:none}
.technique-labels span{padding:8px 12px;background:#fff;color:#111;font:700 14px/20px var(--mg-font-family)}
.technique-seam{position:absolute;inset:0 auto 0 var(--technique-position);width:2px;background:#fff;transform:translateX(-50%);pointer-events:none}
.technique-seam>span{position:absolute;left:0;top:50%;display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#6d28ff;color:#fff;transform:translate(-50%,-50%)}
.technique-seam svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.technique-compare:has(.technique-range:focus-visible){outline:3px solid #6d28ff;outline-offset:5px}
.technique-compare:has(.technique-range:focus-visible) .technique-seam>span{outline:3px solid #fff;outline-offset:3px}
.technique-range{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:ew-resize;touch-action:pan-y;appearance:none;-webkit-appearance:none}
.technique-range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:44px;height:44px;background:transparent}
.technique-range::-moz-range-thumb{width:44px;height:44px;border:0;background:transparent}
.technique-help{margin:12px 0 0;font:400 14px/21px var(--mg-font-family);color:#555}
.technique-copy{min-width:0}
body .material-section .technique-copy h3{margin:0 0 16px;font:700 36px/1.1 var(--mg-font-family);letter-spacing:var(--mg-font-tracking);color:#111}
body .material-section .technique-copy p:not(.studios-sr){margin:0;max-width:34ch;min-height:4.5em;font:400 18px/1.5 var(--mg-font-family);color:#111}
.technique-presets{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}
.technique-presets button{min-height:44px;padding:10px 16px;border:0;border-radius:0;background:#f2f2f2;color:#111;font:700 14px/20px var(--mg-font-family);cursor:pointer}
.technique-presets button[aria-pressed=true]{background:#6d28ff;color:#fff}
.technique-presets button:focus-visible{outline:3px solid #6d28ff;outline-offset:3px}
body .material-section .technique-copy .material-cta{display:inline-flex;align-items:center;min-height:44px;margin:24px 0 0}
/* The viewport owns the drawer height; only the content region can grow a scrollbar. */
body .site-menu.studios-menu{height:var(--menu-height,100dvh);max-height:var(--menu-height,100dvh);overflow:hidden}
body .studios-menu-surface{height:calc(var(--menu-height,100dvh) - var(--menu-top,88px));max-height:calc(var(--menu-height,100dvh) - var(--menu-top,88px));bottom:auto;overflow:hidden;box-sizing:border-box;padding-bottom:env(safe-area-inset-bottom,0px)}
body .studios-menu-layout{height:100%;max-height:100%;min-height:0;box-sizing:border-box;grid-template-rows:minmax(0,1fr);overflow:hidden}
body .studios-menu-content{height:100%;max-height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
body .studios-menu-tabs{min-height:0;max-height:100%;overflow-y:auto;overscroll-behavior:contain}
body .studios-menu-panel{min-height:0}
@media(max-width:959px){body .studios-menu-layout{grid-template-rows:44px minmax(0,1fr)}body .studios-menu-tabs{height:44px;overflow-y:hidden;overflow-x:auto}}
@media(max-width:767px){
 .brand-bridge-stage{grid-template-columns:1fr;grid-template-rows:minmax(300px,50svh) auto}
 .brand-bridge-copy{padding:28px 20px 36px}
 .brand-bridge-copy h2{font-size:clamp(25px,7.5vw,42px);line-height:1.03}
 .brand-bridge-copy h2 span{display:inline;white-space:normal}
 .brand-bridge-signature{width:155px;margin-top:18px}
 .brand-bridge-visual img{object-position:50% 22%}
 .brand-bridge.is-live{height:225svh}
 .brand-bridge.is-live .brand-bridge-visual{width:100%;height:54%;inset:0 0 auto}
 .brand-bridge.is-live .brand-bridge-final{inset:54% 0 0}
 .brand-bridge.is-live .brand-bridge-copy{padding:20px}
 body .material-section{padding-block:56px}
 .technique-layout{grid-template-columns:1fr;gap:24px}
 .technique-labels{inset:10px 10px auto}.technique-labels span{font-size:12px;padding:5px 8px}
 body .material-section .technique-copy h3{font-size:28px;margin-bottom:12px}
 body .material-section .technique-copy p:not(.studios-sr){font-size:16px;min-height:4.5em;max-width:40ch}
 .technique-presets{margin-top:18px}
 body .material-section .technique-copy .material-cta{margin-top:16px}
}
@media(prefers-reduced-motion:reduce){.bridge-thread,.bridge-thread-entry{display:none!important}.technique-copy-content{animation:none!important;transform:none!important;opacity:1!important}}

/* Scale the two visual rows to the available panel, preserving whole product pictures. */
body .menu-sample-grid{--sample-caption-space:82px;max-width:min(100%,max(240px,calc((var(--menu-panel-space,520px) - var(--sample-caption-space)) * 1.5 + 36px)))}
body .menu-sample-grid span{line-height:20px}
body .menu-product-grid img{max-height:calc(var(--menu-panel-space,500px) - 32px);object-fit:contain}
@media(min-width:601px) and (max-width:959px){body .menu-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){
 body .menu-sample-grid{--sample-caption-space:106px;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 12px;max-width:min(100%,max(210px,calc((var(--menu-panel-space,400px) - var(--sample-caption-space)) * 1.5 + 24px)))}
 body .menu-sample-grid span{font-size:12px;line-height:16px;margin-top:6px}
 body .menu-product-grid img{max-height:max(100px,calc((var(--menu-panel-space,380px) - 76px) / 2))}
 body .menu-process-grid{gap:16px}
 body .menu-process-grid a{grid-template-columns:64px minmax(0,1fr);gap:12px}
 body .menu-process-grid img{width:64px}
 body .menu-process-grid h3{font-size:16px;line-height:22px;margin-bottom:4px}
 body .menu-process-grid p{font-size:13px;line-height:18px}
}
/* Use the very same unframed CI icon and stacked wordmark as the header. */
body .site-footer .studios-footer-lockup{display:block;width:176px;height:auto;max-width:100%;object-fit:contain}
body .brand-bridge .brand-bridge-signature{width:clamp(155px,15vw,210px);height:auto}
@media(max-width:767px){body .brand-bridge .brand-bridge-signature{width:155px}}
/* A single soft light pass when a primary action enters or receives attention. */
body :is(.button,.comparison-cta,.process-cta):not(:disabled){position:relative;overflow:hidden;isolation:isolate}
body :is(.button,.comparison-cta,.process-cta):not(:disabled)::before{content:"";position:absolute;inset:-35% auto -35% 0;width:28%;pointer-events:none;background:rgba(255,255,255,.26);opacity:0;transform:translate3d(-160%,0,0) skewX(-18deg)}
body :is(.button,.comparison-cta,.process-cta).has-button-sweep::before{animation:mamigo-button-sweep 880ms cubic-bezier(.22,1,.36,1)}
@keyframes mamigo-button-sweep{0%{transform:translate3d(-160%,0,0) skewX(-18deg);opacity:0}18%{opacity:.55}70%{opacity:.35}100%{transform:translate3d(520%,0,0) skewX(-18deg);opacity:0}}
@media(hover:hover) and (pointer:fine){body :is(.button,.comparison-cta,.process-cta):not(:disabled){transition:transform 180ms ease,background-color 180ms ease}body :is(.button,.comparison-cta,.process-cta):not(:disabled):hover{transform:translateY(-1px)}}
@media(prefers-reduced-motion:reduce){#design #brand-example .sample-grid{transition:none!important}body :is(.button,.comparison-cta,.process-cta)::before{display:none}body :is(.button,.comparison-cta,.process-cta):not(:disabled):hover{transform:none}}
@media(min-width:960px){
 html[data-project-layout=gallery] #design #brand-example .sample-grid figure{container-type:size}
 html[data-project-layout=gallery] #design #brand-example .project-sock figcaption{width:min(100cqw,calc((100cqh - 28px) * .6666667));justify-self:start}
 html[data-project-layout=gallery] #design #brand-example .project-detail figcaption{width:min(100cqw,calc(100cqh - 28px));margin-left:calc((100cqw - min(100cqw,100cqh - 28px)) * .4)}
 html[data-project-layout=gallery] #design #brand-example .project-package figcaption{width:min(100cqw,calc(100cqh - 28px));justify-self:end}
}

@media(hover:hover) and (pointer:fine){body #hero-comparison .comparison-cta:hover,body .editorial-process .process-cta:hover{transform:translateY(-1px)}}
@media(prefers-reduced-motion:reduce){body #hero-comparison .comparison-cta:hover,body .editorial-process .process-cta:hover{transform:none!important}}
