/* Imperfection selector under the hero: 1 pick a colour, 2 choose a pattern. The hero and every lower homepage section are untouched. (The draft with Option A "stage" is archived in docs/archive/selector-draft-2026-10-12.) */
/* hero legibility: the photo itself is NOT darkened (owner, 13 Oct). Only the box behind the IMPERFECTION title is darkened, because the title sits over a light plate. */
/* desktop: the darkened box behind the title, feathered so its edges melt into the photo (a soft oval wider than the title block) */
@media(min-width:900px){
[data-monaco-hero="A"] .hero__overlay__content{background:none!important;position:relative}
[data-monaco-hero="A"] .hero__overlay__content::before{content:"";position:absolute;left:-24%;right:-24%;top:-44%;bottom:-36%;pointer-events:none;background:radial-gradient(ellipse 50% 50% at 50% 50%,rgba(30,27,24,.64) 0%,rgba(30,27,24,.52) 38%,rgba(30,27,24,.26) 70%,rgba(30,27,24,0) 100%)}
[data-monaco-hero="A"] .hero__overlay__content>*{position:relative}
}
[data-monaco-hero="A"] .hero__text p{font-weight:500;letter-spacing:.18em;text-shadow:0 1px 2px rgba(0,0,0,.7),0 0 14px rgba(0,0,0,.5)}
[data-monaco-hero="A"] .hero__title{text-shadow:0 1px 3px rgba(0,0,0,.6),0 4px 22px rgba(0,0,0,.45)}

/* on a phone the hero picture is cropped to the screen (the phone-only 9:16 picture needs little): --imp-pos keeps the pieces in view, set per image in monaco-homepage-v1.ts */
@media(max-width:899px){[data-monaco-hero="A"] [data-imp-hero]{object-position:var(--imp-pos,30%) 50%!important}}

.imp-selector{font-family:"Outfit",sans-serif;color:#2b2622}
/* the theme styles every button on hover / focus / press; keep ours flat */
.imp-selector button,.imp-selector button:hover,.imp-selector button:focus,.imp-selector button:active{background-color:transparent!important;color:inherit!important;box-shadow:none;text-transform:none}
.imp-sel{text-align:center}
.imp-sel__title{margin:0 0 6px;font:300 clamp(24px,2.7vw,38px)/1.2 "Outfit",sans-serif;letter-spacing:.01em}
.imp-config__label{display:flex;justify-content:center;align-items:center;gap:9px;margin:0 0 12px;font:500 12px/1.4 "Outfit",sans-serif;letter-spacing:.14em;text-transform:uppercase}
.imp-config__label b{display:inline-grid;place-items:center;width:21px;height:21px;border:1px solid currentColor;border-radius:50%;font:400 11px/1 "Outfit",sans-serif;letter-spacing:0}
.imp-config__label em{font-style:normal;text-transform:none;letter-spacing:.01em;font-weight:300;font-size:15px;opacity:.85}

/* colour dots: two-tone (plate glaze / printed colour) */
.imp-dots{display:flex;justify-content:center;flex-wrap:wrap;gap:6px clamp(8px,1.8vw,22px)}
.imp-dot{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:58px;padding:5px 4px;border:0;background:none;color:inherit;font:300 12px/1.1 "Outfit",sans-serif;letter-spacing:.06em;cursor:pointer}
.imp-dot i{display:block;width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,var(--glaze) 0 50%,var(--ink) 50% 100%);border:1px solid rgba(0,0,0,.22);box-shadow:0 0 0 3px var(--imp-ring,#fff),0 0 0 3px transparent;transition:box-shadow .2s ease,transform .2s ease}
.imp-dot:hover i{transform:translateY(-2px)}
.imp-dot[aria-pressed="true"] i{box-shadow:0 0 0 3px var(--imp-ring,#fff),0 0 0 4.5px currentColor}
.imp-dot[aria-pressed="true"] span{font-weight:500}
.imp-dot:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.imp-dots.is-hinting .imp-dot i{animation:impHint 1.1s ease-in-out 2}
.imp-dots.is-hinting .imp-dot:nth-child(2) i{animation-delay:.08s}.imp-dots.is-hinting .imp-dot:nth-child(3) i{animation-delay:.16s}.imp-dots.is-hinting .imp-dot:nth-child(4) i{animation-delay:.24s}.imp-dots.is-hinting .imp-dot:nth-child(5) i{animation-delay:.32s}.imp-dots.is-hinting .imp-dot:nth-child(6) i{animation-delay:.4s}
@keyframes impHint{0%,100%{transform:none}45%{transform:translateY(-6px) scale(1.1)}}

/* ----- Option B: the row (default) ----- */
.imp-sel--row{padding:clamp(56px,6.5vw,104px) max(24px,6vw) clamp(52px,6vw,96px);background:#fff}
.imp-sel--row .imp-sel__title{margin-bottom:clamp(30px,3.4vw,46px)}
.imp-sel--row .imp-config__label{margin-bottom:18px}
.imp-sel--row .imp-dots{gap:8px clamp(14px,2.4vw,30px);margin-bottom:clamp(44px,5vw,72px)}
.imp-sel--row .imp-dot{min-width:0;padding:6px}
.imp-sel--row .imp-dot span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.imp-sel--row .imp-dot i{width:42px;height:42px}
.imp-sel--row .imp-config__label--pattern{margin-bottom:clamp(26px,3vw,40px)}
.imp-row{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(18px,3vw,52px)}
.imp-row a{display:flex;flex-direction:column;align-items:center;min-width:0;color:#373737;text-decoration:none}
.imp-row img{display:block;width:100%;max-width:200px;height:auto;aspect-ratio:1;filter:drop-shadow(0 10px 12px rgba(30,24,18,.2));transition:opacity .3s ease,transform .25s ease}
.imp-row img.is-fading{opacity:0}
.imp-row a:hover img{transform:translateY(-5px)}
.imp-row h3{margin:clamp(20px,2vw,28px) 0 0;padding-bottom:6px;border-bottom:1px solid transparent;font:400 clamp(13px,1.15vw,18px)/1.4 "Outfit",sans-serif;letter-spacing:.14em;transition:border-color .2s ease}
.imp-row a:hover h3{border-bottom-color:currentColor}
.imp-row a:focus-visible{outline:2px solid #174477;outline-offset:8px}
.imp-row__note{margin:clamp(40px,4.4vw,64px) 0 0;font:300 14px/1.6 "Outfit",sans-serif;color:#6b6560}
.imp-row__note b{font-weight:500;color:#2b2622;margin-left:4px}
.imp-row__note s{margin:0 4px 0 6px;color:#8a8580}
.imp-row__note em{font-style:normal;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#a3262a}

@media(max-width:899px){
  .imp-config__label{flex-wrap:wrap}
  .imp-dot{min-width:46px;font-size:10.5px;letter-spacing:.03em}
  .imp-dot i{width:34px;height:34px}
  .imp-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 14px}
  .imp-sel--row{padding:44px 16px 48px}
  .imp-sel--row .imp-dots{margin-bottom:38px}
  .imp-sel--row .imp-dot i{width:38px;height:38px}
  .imp-row h3{font-size:12px;letter-spacing:.09em;margin-top:16px}
  .imp-row__note{font-size:13px;margin-top:34px}
}
@media(max-width:359px){.imp-dot{min-width:40px}.imp-dot i{width:30px;height:30px}.imp-row{gap:18px 8px}}
@media(prefers-reduced-motion:reduce){.imp-row img,.imp-dot i{transition:none}.imp-dots.is-hinting .imp-dot i{animation:none}}
