/* Supplied optimized WebPs, unchanged. Only the active media query supplies URLs. */
:root{
 --texture-light:url('/assets/shopfoundry-light-texture-mobile.webp');
 --texture-dark:url('/assets/shopfoundry-dark-texture-mobile.webp');
 --texture-light-size:1152px 768.375px;
 --texture-dark-size:1152px 767.25px;
}
@media(min-width:801px){:root{
 --texture-light:url('/assets/shopfoundry-light-texture.webp');
 --texture-dark:url('/assets/shopfoundry-dark-texture.webp');
 --texture-light-size:2304px 1535.625px;
 --texture-dark-size:2304px 1534.5px;
}}
/* Each section clips only its decorative layer, leaving content untouched.
   A viewport-fixed child works on touch screens without background-attachment.
   Large viewport height stays stable when mobile browser chrome opens/closes. */
body main>section:has(>.section-texture){position:relative;isolation:isolate}
.section-texture{position:absolute;inset:0;z-index:-1;pointer-events:none;clip-path:inset(0)}
.texture-viewport{display:block;position:fixed;top:0;right:0;width:100%;height:100vh;height:100lvh;pointer-events:none;background-repeat:no-repeat;background-position:right center}
/* Proportional, nonrepeating texture fields retain the approved edge fades. */
body main>section:not(.sf-intro):not(.sf-capabilities):not(.sf-founder):not(.sf-invitation):not(.closing){
 --text:#383e43;--muted:#41474c;
 background-color:#f5f6f5;background-image:none;
}
body main>section:not(.sf-intro):not(.sf-capabilities):not(.sf-founder):not(.sf-invitation):not(.closing)>.section-texture>.texture-viewport{
 background-color:#f5f6f5;
 background-image:linear-gradient(#ffffffa3,#ffffffa3),linear-gradient(0deg,#f5f6f5 0%,transparent 28%,transparent 92%,#f5f6f5 100%),linear-gradient(90deg,#f5f6f5 0%,transparent 12%,transparent 88%,#f5f6f5 100%),var(--texture-light);
 background-size:auto,var(--texture-light-size),var(--texture-light-size),var(--texture-light-size);
 background-position:right center;background-repeat:no-repeat;
}
body main>section:not(.sf-intro):not(.sf-capabilities):not(.sf-founder):not(.sf-invitation):not(.closing) :is(h1,h2){text-shadow:0 1px 0 #ffffff80}
body main>section:not(.sf-intro):not(.sf-capabilities):not(.sf-founder):not(.sf-invitation):not(.closing) :is(.eyebrow,.project-label,.project-focus strong,.index,.step-number,.feature-note,.sequence-marker,.feature-question span){color:#8f2330!important}
body .sf-selected:before{background-image:none}
body .sf-selected .sf-section-intro>.sf-kicker,
body :is(.sf-project-kc,.sf-offering,.sf-process) .sf-kicker,
body .sf-selected .sf-section-intro .sf-kicker{color:#8f2330}
body :is(.sf-selected>.wrap>.sf-section-intro,.sf-project-kc,.sf-offering,.sf-process) p:not(.sf-kicker),
body .sf-project-kc :is(.sf-project-details,.sf-live-link),
body .sf-process-steps span{color:#383e43}
/* Restrained dark texture is reserved for the main hero and closing invitations. */
body :is(.sf-intro,.sf-invitation,.closing){
 --ink:#f5f6f7;--text:#d3d8de;--muted:#c4cbd2;--line:#5b626a;
 color:#f5f6f7;background-color:#15191e;background-image:none;
}
body :is(.sf-intro,.sf-invitation,.closing)>.section-texture>.texture-viewport{
 background-color:#15191e;
 background-image:linear-gradient(#101419a8,#101419a8),linear-gradient(0deg,#15191e 0%,transparent 28%,transparent 92%,#15191e 100%),linear-gradient(90deg,#15191e 0%,transparent 12%,transparent 88%,#15191e 100%),var(--texture-dark);
 background-size:auto,var(--texture-dark-size),var(--texture-dark-size),var(--texture-dark-size);
 background-position:right center;background-repeat:no-repeat;
}
body :is(.sf-intro,.sf-invitation):before,body :is(.sf-intro,.sf-invitation):after{background:none;border-color:transparent}
body :is(.sf-intro,.sf-invitation,.closing) :is(h1,h2){color:#f5f6f7;text-shadow:0 2px 8px #00000038}
body :is(.sf-invitation,.closing) p:not(.eyebrow):not(.sf-kicker){color:#d3d8de}
body :is(.sf-invitation,.closing) :is(.eyebrow,.sf-kicker){color:#ffadb6!important}
body :is(.sf-invitation,.closing) .text-link{color:#f0f3f5;border-color:#6c7680}
body .sf-next-links{border-color:#5b626a}
body :is(.sf-invitation,.closing) :focus-visible{outline-color:#fff}
/* Keep complex content on solid surfaces without changing its box geometry. */
body :is(.foundry-header,.studio-navigation,.mega-panel,.screenshot-dialog){background-color:#fff;background-image:none}
body .mega-panel{box-shadow:0 12px 28px #17202a22}
body :is(.project-card,.sf-project-kc,.faq-list,.form-layout>div:first-child,.next-step){background:#fff;box-shadow:0 0 0 18px #fff,0 10px 26px 10px #17202a0c}
body :is(.preview-notice,.form-error-summary,.relationship,.chapter-nav){background:#f4f5f6}
body :is(.form-field input,.form-field select,.form-field textarea){background:#fff;color:#25292d}
body .sf-project-fi{background:#292e34}
body .sf-project-fi :is(h2,h3){text-shadow:none}
body .sf-project-fi .sf-kicker{color:#ff9da5}
body .sf-project-fi .sf-project-copy>p:not(.sf-kicker){color:#c8cdd2}
body .sf-project-fi :is(.sf-project-details,.sf-live-link){color:#c1c9d0}
/* Solid graphite footer and existing graphite features keep clear section contrast. */
body .site-footer,body.home-direction .site-footer{--ink:#f0f3f5;--text:#c8ced3;--muted:#b8c1c9;--line:#4b555e;background:#22272d;color:var(--ink)}
body .site-footer :is(.brand-line,.footer-groups h2){color:#f0f3f5}
body .site-footer :is(.footer-description>p,.footer-groups a){color:#c8ced3}
body .site-footer .footer-bottom{color:#b8c1c9;border-color:#4b555e}
body .site-footer :focus-visible{outline-color:#fff}
@media(max-width:800px){body :is(.project-card,.sf-project-kc,.faq-list,.form-layout>div:first-child,.next-step){box-shadow:0 0 0 12px #fff,0 8px 20px 6px #17202a0c}}
@media print{.section-texture{display:none}body main>section{background:#fff!important;color:#252722}body :is(.sf-intro,.sf-invitation,.closing) :is(h1,h2,p){color:#252722!important;text-shadow:none}}
