
/* Stable media proportions throughout the ACE presentation. */
.media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:26px 0}
.media-grid:has(>figure:only-child){grid-template-columns:minmax(0,1fr)}
.media-grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}
.media-slot{position:relative;min-width:0;margin:0;aspect-ratio:16/9;overflow:hidden;background:linear-gradient(135deg,rgba(30,24,42,.65),rgba(8,8,11,.94));border:1px solid var(--hair-3)}
.media-slot video,.media-slot img{width:100%;height:100%;object-fit:contain;background:#050506}
.media-slot [hidden]{display:none!important}
.media-slot__placeholder{position:absolute;inset:0 0 44px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;color:#b8b0c9;font:400 10px/1.5 var(--mono);letter-spacing:.14em;text-transform:uppercase}
.media-slot__mark{font:400 30px/1 var(--sans);color:var(--silver)}
.media-slot figcaption{position:absolute;inset:auto 0 0;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:10px 13px;background:rgba(5,5,6,.9);border-top:1px solid var(--hair-2);font:400 10px/1.4 var(--mono);color:var(--text)}
.media-slot__state{color:#a5a0ac;font-size:9px;text-align:right}
.media-slot.has-media figcaption{position:static;background:var(--ink)}
.media-slot.has-media{aspect-ratio:auto;background:var(--ink)}
.media-slot.has-media video,.media-slot.has-media img{aspect-ratio:16/9;height:auto}
.media-slot.has-media .media-slot__placeholder,.media-slot.has-media .media-slot__state{display:none}
.ace-presentation__head--about{align-items:start;gap:48px}
.ace-summary{max-width:56ch;margin:0;font-size:18px;line-height:1.7;color:var(--soft)}
.ace-summary strong{font-weight:500;color:var(--text)}
.ace-presentation__head--about h2{font-size:56px;white-space:nowrap}
.ace-chapters{background:rgba(5,5,6,.42)}
.ace-chapter__body .media-grid--three{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.ace-chapter__body .media-grid--three figcaption{font-size:9px;padding:8px;min-height:42px}
.ace-chapter__body .media-grid--three .media-slot__state{display:none}
.diagnostic-demo{margin:26px 0;background:rgba(5,6,9,.94);border:1px solid var(--hair-3);padding:18px}
.diagnostic-demo__head{display:flex;justify-content:space-between;font:400 10px/1.5 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--steel);border-bottom:1px solid var(--hair-2);padding-bottom:12px;margin-bottom:15px}
.diagnostic-demo .v-term{position:relative;width:100%;min-height:210px;font-size:12px;overflow:hidden}
.ace-included-list{list-style:none;padding:0;margin:24px 0}
.ace-included-list li{display:grid;gap:4px;padding:14px 0;border-top:1px solid var(--hair-2)}
.ace-included-list span{font-size:14px}
.ace-install-guide{border-left:1px solid var(--steel);padding-left:20px;margin:25px 0}
.ace-install-guide h4{font:400 11px/1.6 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ice)}
.ace-install-guide ol{padding-left:20px;margin:0}
.ace-install-guide li{padding-left:5px;margin:0 0 12px;font-size:14px}
.no-webgl #plasma{background:radial-gradient(ellipse at 15% 28%,rgba(96,33,162,.24),transparent 55%),radial-gradient(ellipse at 80% 75%,rgba(81,39,143,.18),transparent 60%);background-size:140% 140%;animation:ace-purple-drift 20s ease-in-out infinite alternate}
@keyframes ace-purple-drift{to{background-position:80% 70%}}
@media(max-width:900px){.ace-presentation__head--about{flex-direction:column;gap:20px}.ace-summary{max-width:60ch}}
@media(max-width:640px){.media-grid,.ace-chapter__body .media-grid--three{grid-template-columns:1fr;gap:16px}.ace-presentation__head--about h2{font-size:44px}.ace-summary{font-size:17px}.diagnostic-demo{padding:13px}.diagnostic-demo .v-term{font-size:10px;min-height:185px}.ace-chapter__body .media-grid--three .media-slot__state{display:block}}
@media(prefers-reduced-motion:reduce){.no-webgl #plasma{animation:none}}

/* Custom services: colour on the work, restrained typography around it. */
.shop{grid-template-columns:minmax(0,1fr) 300px;gap:28px}
.shop__products{min-width:0}
.shop .product{display:block;overflow:hidden;padding:28px}
.product__body{gap:20px}
.product__head{align-items:start}
.product__head>div{min-width:0}
.product__head .mono{margin:0 0 12px;color:var(--soft)}
.product__price{flex:none;white-space:nowrap}
.product__standfirst{margin:0;font-size:22px;font-weight:550;line-height:1.35;color:var(--text)}
.product__availability{max-width:17ch;font:400 10px/1.6 var(--mono);text-transform:uppercase;text-align:right;color:var(--soft)}
.product__unit-image{margin:24px 0;max-width:720px}
.product__unit-image .media-slot__placeholder>img{width:180px;height:auto;object-fit:contain;background:none}
.product--ace .body-s{margin-top:18px}
.product__included{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 24px;padding:18px 0;margin:18px 0;list-style:none;border-block:1px solid var(--hair-2);font-size:14px;color:var(--text)}
.product__included li::before{content:"+";margin-right:10px;color:var(--steel)}
.standard-finish{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px 8px;margin:0;font-size:14px;line-height:1.7;color:var(--soft)}
.product--ace .standard-finish{margin-top:22px}
.finish-dot{display:inline-block;flex:none;width:13px;height:13px;border:1px solid #757575;border-radius:50%;background:linear-gradient(135deg,#595959 0%,#070707 45%,#030303 70%,#333)}
.custom-spectrum{height:100px;margin:-28px -28px 28px;background:linear-gradient(112deg,#d07827 0%,#b33e53 22%,#793cb1 43%,#355aa6 63%,#3e9e9b 82%,#b2a060 100%);border-bottom:1px solid rgba(255,255,255,.24);position:relative}
.custom-spectrum::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(5,5,6,.42),transparent 65%)}
.custom-spectrum--themes{background:linear-gradient(112deg,#5143a2,#a34f83 32%,#466dab 65%,#55a497)}
.design-form{display:grid;gap:17px;margin-top:6px;padding-top:24px;border-top:1px solid var(--hair-3)}
.design-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.design-fields .field{min-width:0}
.design-form .field{margin:0}
.design-form textarea{font:inherit;color:var(--text);width:100%;min-height:132px;resize:vertical;padding:14px;background:rgba(5,5,8,.75);border:1px solid var(--hair-3);border-radius:0;line-height:1.6}
.design-form input{min-width:0;max-width:100%}
.design-form .field label{font-size:10px;letter-spacing:.08em;line-height:1.6}
.design-form .check{padding:12px 0;border:0}
.design-form .check .txt{font-size:13px;line-height:1.6}
.design-form .check .box:has(+.txt){flex-shrink:0}
.design-form input:checked+.box::after{content:"✓";display:block;color:var(--void);font-size:14px;line-height:16px;text-align:center}
.field-help,.design-form__note{margin:0;font-size:12px;line-height:1.7;color:#b1aeb8}
.field-help a{text-decoration:underline;text-underline-offset:3px}
.design-form__note{border-left:1px solid var(--steel);padding-left:14px}
.reference-upload input[type=file]{font:400 12px/1.5 var(--mono);padding:10px;border:1px dashed var(--hair-3);width:100%;background:rgba(5,5,7,.7)}
.reference-upload input::file-selector-button{padding:9px 10px;margin-right:12px;background:var(--silver);color:var(--void);border:0;cursor:pointer}
.reference-upload .field-help{margin-top:7px}
.reference-preview{margin-top:12px;display:flex;align-items:flex-start;gap:12px}
.reference-preview[hidden]{display:none}
.reference-preview img{width:120px;height:90px;object-fit:contain;border:1px solid var(--hair-3);background:var(--ink)}
.reference-preview button{background:transparent;border:0;border-bottom:1px solid var(--hair-3);font-size:12px;color:var(--soft);padding:8px;cursor:pointer}
.form-trap{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.design-form .form-status.good{display:block;color:#d0daca;border:1px solid #64785c;background:rgba(50,70,40,.15)}
.design-form button[disabled]{opacity:.55;cursor:wait}
.product__buy{padding-top:22px;border-top:1px solid var(--hair-2)}
.bag{top:var(--anchor-offset,180px)}
.bag-item .op{overflow-wrap:anywhere}
.custom-tiers{gap:28px}
.custom-tiers .tier{overflow:hidden;padding:28px;background:rgba(7,7,10,.82)}
.custom-tiers .tier h2{margin:18px 0 12px;font:400 clamp(38px,4vw,54px)/1 var(--display)}
.custom-tiers .tier__price{font-size:52px}
.custom-tier__lead{font-size:19px;line-height:1.45;color:var(--text)}
.custom-policy{display:grid;grid-template-columns:1fr 1fr;gap:20px 32px;margin-top:30px;padding-top:22px;border-top:1px solid var(--hair-3);color:var(--soft);font-size:14px;line-height:1.75}
.custom-policy p{margin:0}
.custom-policy p:last-child{grid-column:1/-1;font-size:12px}
.custom-gallery{margin-top:64px}
.custom-gallery__head .mono{color:var(--steel);margin:0 0 12px}
.custom-gallery__head h2{font:400 clamp(32px,4vw,48px)/1.1 var(--display);margin:0 0 24px}
.custom-gallery__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.shop .custom-gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.custom-gallery .media-slot{aspect-ratio:4/3}
.custom-gallery .media-slot.has-media img{aspect-ratio:4/3;object-fit:cover}
.custom-gallery .media-slot__state{display:none}
.ace-text-link{color:var(--text);text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}
@media(max-width:1150px){.shop{grid-template-columns:1fr}.bag{position:relative;top:0}.shop .product{max-width:none}}
@media(max-width:700px){.shop .product,.custom-tiers .tier{padding:22px}.custom-spectrum{margin:-22px -22px 24px;height:86px}.custom-tiers{grid-template-columns:1fr}.custom-policy{grid-template-columns:1fr}.custom-gallery__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.design-fields{grid-template-columns:1fr}.product__head h2{font-size:36px}.product__price{font-size:36px}.product__standfirst{font-size:20px}.design-form .btn{font-size:10px;letter-spacing:.08em;padding-inline:16px}}
@media(max-width:420px){.product__included{grid-template-columns:1fr}.custom-gallery__grid,.shop .custom-gallery__grid{grid-template-columns:1fr}.product__head{gap:12px}.product__availability{font-size:9px}.media-slot figcaption{font-size:9px}}

/* Keep narrow shop forms inside their grid track. */
.product__body,.design-form{grid-template-columns:minmax(0,1fr);min-width:0}
.product__body>*{min-width:0}
@media(max-width:420px){.product__head{flex-wrap:wrap}.product__buy{flex-wrap:wrap}.design-form .btn{white-space:normal;line-height:1.5}}
/* Stable proportions with and without a loaded video. */
.media-slot,.media-slot.has-media{aspect-ratio:auto}
.media-slot__placeholder{position:relative;inset:auto;aspect-ratio:16/9}
.media-slot figcaption,.media-slot.has-media figcaption{position:relative;inset:auto;min-height:44px}
.media-slot video,.media-slot>img{display:block;aspect-ratio:16/9;height:auto}
.custom-gallery .media-slot{aspect-ratio:auto}
.custom-gallery .media-slot__placeholder{aspect-ratio:4/3}
.product__unit-image .media-slot__placeholder>img{aspect-ratio:auto}

/* Every two-item media group keeps a compact, equal-width pair on phones. */
@media(max-width:650px){
 .media-grid:has(>.media-slot:first-child:nth-last-child(2)){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0 24px;align-items:stretch}
 .media-grid:has(>.media-slot:first-child:nth-last-child(2))>.media-slot{min-width:0}
 .media-grid:has(>.media-slot:first-child:nth-last-child(2)) .media-slot__placeholder{aspect-ratio:16/9;min-height:0;gap:5px;font-size:8px;letter-spacing:.08em}
 .media-grid:has(>.media-slot:first-child:nth-last-child(2)) .media-slot__mark{font-size:22px}
 .media-grid:has(>.media-slot:first-child:nth-last-child(2)) figcaption{display:block;min-height:52px;padding:8px;font-size:10px;line-height:1.4}
 .media-grid:has(>.media-slot:first-child:nth-last-child(2)) .media-slot__state{display:block;margin-top:3px;font-size:9px;text-align:left}
}