/* One headline scale and one content edge throughout the story. */
:root{--section-heading:clamp(32px,min(4.8vw,6.7svh),64px);--section-edge:4.2vw}
:is(#problem .problem-heading,#how .how-content,#living .scene-copy,#local .local-copy,#mechanism .mechanism-copy,#community .community-content,#colours .colour-copy)>h2{font-family:var(--sans);font-size:var(--section-heading);font-weight:400;line-height:1.08;letter-spacing:-.045em;margin:16px 0 24px}
:is(#how .how-content,#living .scene-copy,#local .local-copy,#mechanism .mechanism-copy,#community .community-content,#colours .colour-copy)>.eyebrow{font-size:10px;line-height:1.5;letter-spacing:.14em;margin:0}
#local.local-collection[data-region] .local-copy{max-width:none;margin:0;width:100%}
#local.local-collection .local-copy>h2{font-size:var(--section-heading);margin:16px 0 24px}
/* The copy is protected by a feathered local wash, without a visible card edge. */
#problem .problem-heading>div{border:0;border-radius:0;box-shadow:none;background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;isolation:isolate;padding:18px 0}
#problem .problem-heading>div:before{content:'';position:absolute;inset:-22px -26px;z-index:-1;background:#27331cc9;filter:blur(24px);border-radius:40%;pointer-events:none}
/* A restrained shelf of controls below the product, with the model kept on its centre line. */
#local.local-collection.has-pattern-story:not([data-region=all]) .pattern-card:not(.flipped){pointer-events:auto}
#local.local-collection .pattern-reference-button{min-height:44px;padding:10px 12px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-size:12px;border:0;border-radius:12px;background:transparent;color:inherit;box-shadow:none}
#local.local-collection .pattern-reference-button:hover{background:#eeeddf12}
#local.local-collection .pattern-reference-button .ui-icon{width:14px;height:14px}
#local.local-collection .local-footnote{min-height:44px;padding-top:4px}
.references-dialog{box-sizing:border-box;width:min(740px,calc(100% - 28px));max-height:calc(100dvh - 40px);padding:48px;border-radius:24px;border:1px solid var(--line);background:var(--paper);color:var(--ink);overflow:auto;overscroll-behavior:contain}
.references-dialog::backdrop,.action-video-dialog::backdrop,.exhibition-dialog::backdrop{background:#0b211caa;backdrop-filter:blur(10px)}
.references-dialog .references-close{position:absolute;right:14px;top:14px;min-width:44px;min-height:44px;border:0;background:transparent}
.references-dialog h2{font-size:36px;line-height:1.1;margin:16px 0 24px}
.references-content>p{font-size:16px;line-height:1.65;margin-bottom:24px}
.references-content>a{display:flex;align-items:center;min-height:48px;padding:12px 0;border-top:1px solid var(--line);font-size:14px;line-height:1.5;text-decoration:underline;text-underline-offset:4px}
@media(min-width:1000px){
 #local.local-collection[data-region]{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-rows:minmax(0,1fr) auto;column-gap:6%;padding-inline:var(--section-edge)}
 #local.local-collection[data-region] .local-copy{grid-column:1;grid-row:1;align-self:center}
 #local.local-collection[data-region] .local-stage{grid-column:2;grid-row:1;max-width:none;width:100%;height:auto}
 #local.local-collection .local-footnote{grid-column:1/-1;grid-row:2;justify-content:space-between}
 #local.local-collection .local-footnote>p{display:block}
}
@media(max-width:999px){#local.local-collection[data-region] .local-copy{max-width:none;margin:0}#local.local-collection .local-copy>h2{font-size:var(--section-heading);margin:12px 0 16px}}
@media(max-width:1100px){
 .mechanism-sticky .mechanism-visual{position:relative;min-height:0;overflow:hidden}
 .mechanism-sticky :is(#cad-canvas,#cad-poster){inset:0 0 160px;width:100%;height:calc(100% - 160px);object-fit:contain}
 .mechanism-control-rail{inset:auto 12px 34px;transform:none;flex-direction:column;justify-content:center;align-items:center;width:auto;max-width:540px;margin:0 auto;max-height:none;overflow:visible;gap:8px;padding:12px;border:1px solid var(--line);border-radius:22px;background:color-mix(in srgb,var(--paper) 90%,transparent);backdrop-filter:blur(18px)}
 .mechanism-control-rail .mechanism-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin:0}
 .mechanism-control-rail .mechanism-actions :is(.pill,.text-button){display:flex;flex-direction:row;justify-content:center;align-items:center;gap:7px;width:100%;min-height:46px;padding:10px 12px;font-size:12px;line-height:1.3;border:1px solid var(--line);border-radius:999px;text-align:center}
 .mechanism-control-rail #reveal-mechanism{background:var(--ink);color:var(--paper)}
 .mechanism-control-rail .mechanism-actions .ui-icon{width:15px;height:15px;flex:none}
 .mechanism-control-rail>.viewer-controls{display:flex;justify-content:center;gap:8px;position:static;inset:auto;width:100%}
 .mechanism-control-rail .viewer-controls button{width:44px;min-width:44px;min-height:38px;padding:8px;font-size:11px;border-radius:999px}
 .mechanism-control-rail #reset-view{width:auto;min-width:84px}
 .mechanism-sticky .model-caption{inset:auto 12px 8px;text-align:center;font-size:8px;line-height:1.5}
 .mechanism-sticky .model-status{inset:auto 20px 172px;text-align:center}
}
/* The mixed collection is rendered in the same native garden as regional views. */
.scene-contribution-response{position:absolute;inset:0;z-index:5;pointer-events:none;opacity:0;background:radial-gradient(ellipse at 68% 48%,#ffd99150,transparent 44%);mix-blend-mode:screen}
#living .scene-place-controls{grid-template-columns:1.25fr 1fr 1fr .7fr;width:355px}
#living .scene-controls:has(.scene-place-controls){width:485px;max-width:100%}
#living .scene-control-row .scene-place-controls button{padding-inline:8px;font-size:12px}
@media(max-width:1000px){#living .scene-controls:has(.scene-place-controls){width:445px}#living .scene-place-controls{width:310px}#living .scene-response{width:230px}}
@media(max-width:760px){#living .scene-controls:has(.scene-place-controls){width:100%}#living .scene-place-controls{width:100%;max-width:360px}#living .scene-response{width:100%}.combined-canvas{inset:34% 2% 31%;width:96%;height:35%}.combined-shadow{left:30%;bottom:31%;width:40%}}
@media(max-width:420px){#living .scene-control-row .scene-place-controls button{font-size:10px;padding-inline:5px}}
/* 343 independent finish choices, on original CAD assemblies. */
.colour-section{position:relative;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:6%;align-items:center;min-height:100svh;background:var(--paper);color:var(--ink);padding-block:110px 64px;scroll-margin-block-start:-94px}
.colour-copy>p:not(.eyebrow){max-width:42ch;font-size:16px;line-height:1.6}
.colour-field{border:0;padding:0;margin:24px 0;min-width:0}
.colour-field legend{display:flex;justify-content:space-between;align-items:baseline;gap:16px;width:100%;font-size:13px;margin-bottom:9px}
.colour-field output{font-size:12px;color:var(--muted)}
.colour-swatches{display:flex;gap:9px;flex-wrap:wrap}
.colour-swatch{position:relative;display:grid;place-items:center;width:44px;height:44px;cursor:pointer;border-radius:50%}
.colour-swatch input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:2}
.colour-swatch>span{display:block;width:32px;height:32px;background:var(--swatch);border-radius:50%;border:1px solid #0002;box-shadow:0 0 0 3px var(--paper),0 0 0 4px transparent;transition:box-shadow .2s,transform .2s}
.colour-swatch input:checked+span{box-shadow:0 0 0 3px var(--paper),0 0 0 4px var(--ink)}
.colour-swatch input:focus-visible+span{outline:2px solid var(--amber);outline-offset:6px}
.colour-swatch:hover>span{transform:scale(1.07)}
.colour-actions{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin-top:24px}
.colour-actions .pill{font-size:12px;min-height:44px;padding:10px 15px;gap:10px}
#colour-selection{font-size:11px;line-height:1.5;color:var(--muted);max-width:30ch}
.colour-copy>.colour-note{font-size:11px!important;line-height:1.6!important;color:var(--muted);margin-top:20px;max-width:48ch}
.colour-visual{position:sticky;top:100px;height:min(690px,78svh);min-height:400px;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 50% 50%,#b3bf9e33,transparent 68%);border-radius:32px}
#colour-canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:pan-y;cursor:grab}
#colour-canvas.dragging{cursor:grabbing}.colour-ground{position:absolute;left:30%;right:30%;bottom:12%;height:4%;border-radius:50%;filter:blur(18px);background:#233c263d;z-index:-1}
#colour-loading{position:absolute;left:12%;right:12%;top:45%;text-align:center;color:var(--muted);font-size:13px;line-height:1.6}
#colour-view-reset{position:absolute;right:20px;top:12px;font-size:11px;min-height:44px;z-index:2}
.colour-caption{position:absolute;left:20px;right:20px;bottom:14px;display:flex;justify-content:space-between;gap:12px;font-size:9px;letter-spacing:.1em;color:var(--muted);pointer-events:none}
@media(max-width:999px){.colour-section{grid-template-columns:1fr;padding-block:96px 40px;gap:28px}.colour-copy{display:contents}.colour-copy>.eyebrow,.colour-copy>h2,.colour-copy>p{grid-column:1;margin-block:0}.colour-copy>h2{margin-top:-12px!important}.colour-visual{grid-column:1;grid-row:4;position:relative;top:auto;height:440px;min-height:0}.colour-copy>#colour-controls{grid-column:1;grid-row:5;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.colour-field{margin:0}.colour-swatches{gap:3px}.colour-field legend{display:block;font-size:12px}.colour-field output{display:block;margin-top:4px}.colour-swatch{width:36px;height:40px}.colour-swatch>span{width:26px;height:26px}.colour-copy>.colour-actions{grid-row:6;margin:0}.colour-copy>.colour-note{grid-row:7;margin:0}}
@media(max-width:500px){.colour-copy>#colour-controls{grid-template-columns:1fr;gap:18px}.colour-field legend{display:flex}.colour-swatches{flex-wrap:nowrap;justify-content:space-between}.colour-swatch{width:38px}.colour-visual{height:360px}.colour-copy>p:not(.eyebrow){font-size:14px}}
/* Action cards are honest video placeholders until the user's clips are attached. */
#how .action-card-button{display:grid;grid-template-rows:minmax(0,1fr) auto;width:100%;height:100%;min-width:0;padding:0;border:0;background:transparent;color:inherit;text-align:left;gap:18px;border-radius:18px}
#how .action-card-button:focus-visible{outline-offset:8px}
#how .action-card-button img{transition:transform .3s}
#how .action-card-button:hover img{transform:scale(1.025)}
#how .action-card-prompt{display:inline-flex;align-items:center;min-height:36px;font-size:11px;text-decoration:underline;text-underline-offset:5px;opacity:.8}
.action-video-dialog{box-sizing:border-box;width:min(960px,calc(100% - 28px));max-height:calc(100dvh - 40px);padding:42px;border:1px solid var(--line);border-radius:26px;background:var(--paper);color:var(--ink);overflow:auto;overscroll-behavior:contain}
.action-video-close{position:absolute;right:12px;top:12px;width:44px;height:44px;border:0;font-size:28px}
.action-video-dialog h2{font-size:clamp(28px,4vw,42px);line-height:1.1;margin:16px 0}
.action-video-dialog>p:not(.eyebrow){font-size:15px;line-height:1.6;color:var(--muted)}
.action-video-stage{position:relative;display:grid;place-items:center;margin-top:24px;min-height:220px;border-radius:16px;overflow:hidden;background:var(--soft)}
.action-video-stage :is(video,img){width:100%;max-height:62dvh;object-fit:contain}
.action-video-stage img{max-height:50dvh;opacity:.65}
.action-video-pending{position:absolute;inset:auto 16px 16px;margin:0;padding:10px 15px;border-radius:999px;background:var(--paper);color:var(--ink);font-size:12px;line-height:1.5;text-align:center}
@media(max-width:600px){.references-dialog,.action-video-dialog{padding:48px 24px 24px}.references-dialog h2{font-size:30px}.action-video-stage{min-height:180px}}
@media(prefers-reduced-motion:reduce){.combined-scene,.combined-background,.combined-light,.colour-swatch>span,#how .action-card-button img{transition:none!important}}

/* Recolourable projection of the same CAD on devices without WebGL. */
.cad-vector{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.cad-vector>svg{display:block;width:100%;height:100%}.combined-canvas.cad-vector{inset:13% 7% 18% 40%;width:53%;height:69%}.colour-visual[data-renderer=vector] #colour-view-reset,.colour-visual[data-renderer=vector] .colour-caption>span{display:none}
@media(max-width:760px){.combined-canvas.cad-vector{inset:34% 2% 31%;width:96%;height:35%}}
#living .scene-control-row .time-controls.scene-place-controls{grid-template-columns:1.22fr 1fr .92fr .65fr;width:355px}
@media(max-width:900px){#living .scene-control-row .time-controls.scene-place-controls{width:310px}}
@media(max-width:760px){#living .scene-control-row .time-controls.scene-place-controls{width:100%;max-width:360px}}
#mechanism{scroll-margin-block-start:-94px}
.mechanism-visual[data-renderer=poster] .mechanism-actions{grid-template-columns:1fr}
@media(min-width:501px) and (max-width:999px){
 .colour-copy>#colour-controls{grid-template-columns:1fr;gap:20px}
 .colour-field{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:20px}
 .colour-field legend{float:left;width:110px;margin:0}
 .colour-swatches{flex-wrap:nowrap;gap:12px}
 .colour-swatch{width:44px;height:44px}.colour-swatch>span{width:30px;height:30px}
}
@media(min-width:501px) and (max-width:699px){.colour-field{display:block}.colour-field legend{float:none;display:flex;width:100%;margin-bottom:10px}.colour-swatches{justify-content:space-between;gap:8px}}
@media(max-width:760px) and (max-height:600px){.combined-canvas,.combined-canvas.cad-vector{inset:30% 2% 46%;width:96%;height:24%}}
@media(min-width:761px) and (max-height:600px){.combined-canvas,.combined-canvas.cad-vector{inset:20% 5% 30% 45%;width:50%;height:50%}}
@media(min-width:700px) and (max-width:1100px) and (max-height:600px){
 .mechanism-sticky{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);grid-template-rows:minmax(0,1fr);gap:24px;padding-block:90px 20px}
 .mechanism-sticky .mechanism-copy>h2{font-size:26px;margin-block:10px 16px}
 .mechanism-sticky .mechanism-copy>p:not(.eyebrow){font-size:12px}
 .mechanism-sticky .mechanism-scroll-cue{font-size:10px}
}
.mechanism-sticky .mechanism-visual[data-renderer=poster] #cad-poster{inset:8px 8px 120px;width:calc(100% - 16px);height:calc(100% - 128px)}
/* Short portrait screens need room for a usable card, with filters below it. */
@media(max-width:600px) and (max-height:700px){#local.local-collection[data-region]{height:max(100svh,760px);max-height:none}}

/* Keep the landing wordmark's silhouette out of the moving product view. */
#home[data-wordmark-mask=off] .hero-wordmark{-webkit-mask-image:none;mask-image:none;-webkit-mask-composite:source-over;mask-composite:add}
/* A soft olive lift sampled from the waste scene, with no dark green patch. */
#problem .problem-heading>div:before{inset:-16px -24px;background:radial-gradient(ellipse at 50% 50%,#72784d52 0%,#72784d24 48%,transparent 78%);filter:blur(20px);border-radius:0}
/* Wrapping each action in a button must not leave it in a half-width grid cell. */
@media(max-width:700px){
 #how .action-photos article{display:block;width:100%;min-width:0}
 #how .action-card-button{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;width:100%;height:auto;gap:18px}
 #how .action-card-button>img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain}
 #how .action-copy{padding:0 2px 6px}
 #how .action-copy h3{font-size:clamp(23px,5vw,30px);margin:10px 0}
 #how .action-copy>p{max-width:42ch;font-size:14px;line-height:1.65}
}

.colour-panel-field{padding:0;margin:22px 0 0;border:0;min-width:0}.colour-panel-field legend{font-size:13px;margin-bottom:10px}.colour-panel-options{display:flex;flex-wrap:wrap;gap:8px}.colour-panel-choice{position:relative;cursor:pointer}.colour-panel-choice input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.colour-panel-choice span{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:999px;font-size:12px}.colour-panel-choice input:checked+span{background:var(--ink);color:var(--paper);border-color:var(--ink)}.colour-panel-choice input:focus-visible+span{outline:2px solid var(--amber);outline-offset:3px}
@media(max-width:999px){.colour-copy>.colour-panel-field{grid-column:1;grid-row:6;margin:0}.colour-copy>.colour-actions{grid-row:7}.colour-copy>.colour-note{grid-row:8}}

/* Fill the currently visible viewport as Safari chrome changes or the iPad rotates. */
@supports(height:100dvh){
 .hero-stage,.living-stage{height:100dvh}
}
@media(orientation:landscape) and (pointer:coarse){
 .hero-stage,.living-stage{width:100%;max-width:none;max-height:none}
 .hero-bottom{bottom:max(24px,env(safe-area-inset-bottom))}
}

/* Signature CMF combinations use the same part-specific paints as the native render. */
.colour-copy{min-width:0}
.colour-presets{min-width:0;margin:24px 0 26px}
.colour-presets-label{font-size:12px;color:var(--muted);margin-bottom:10px}
.colour-preset-options{display:flex;gap:6px;overflow-x:auto;padding:4px 2px 10px;scrollbar-width:thin;overscroll-behavior-inline:contain}
.colour-preset{flex:1 0 62px;min-height:65px;padding:8px 5px;border:1px solid var(--line);border-radius:12px;background:transparent;color:var(--muted);font-size:10px;text-align:center;transition:border-color .2s,background .2s}
.colour-preset[aria-pressed=true]{border-color:var(--ink);background:color-mix(in srgb,var(--ink) 7%,transparent);color:var(--ink)}
.colour-preset:hover{border-color:var(--ink)}
.colour-preset-chips{display:flex;justify-content:center;gap:2px;margin-bottom:7px}
.colour-preset-chips i{display:block;width:13px;height:20px;border:1px solid #0002}
.colour-preset-chips i:first-child{border-radius:6px 0 0 6px}
.colour-preset-chips i:last-child{border-radius:0 6px 6px 0}
.colour-preset:focus-visible{outline-offset:0}
@media(max-width:999px){
 .colour-copy>.colour-presets{grid-column:1;grid-row:5;margin:0}
 .colour-copy>#colour-controls{grid-row:6}
 .colour-copy>.colour-panel-field{grid-row:7}
 .colour-copy>.colour-actions{grid-row:8}
 .colour-copy>.colour-note{grid-row:9}
 .colour-preset{flex:1 0 70px}
}
@media(min-width:1000px){
 .colour-preset-options{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;overflow:visible}
 .colour-preset{min-width:0;padding-inline:2px;font-size:clamp(8px,.75vw,10px)}
}
