.home-showcase {
    margin: clamp(40px, 6vw, 80px) 0;
    scroll-margin-top: 140px;
    color: #28231e;
    text-align: left;
}

.home-showcase-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    margin-bottom: clamp(18px, 2.5vw, 28px);
}

.home-showcase-heading h2,
.home-customer-heading h3 {
    margin: 0;
    color: inherit;
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 700;
    line-height: 1.12;
}

.home-showcase-heading p {
    margin: 8px 0 0;
    color: #5d554c;
    font-size: 17px;
    line-height: 1.45;
}

.home-showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: #894500;
    font-size: 16px;
    font-weight: 700;
}

.home-showcase-link:hover,
.home-showcase-link:focus { color: #743800; text-decoration: underline; }

.home-showcase a:focus-visible,
.home-color-zoom:focus-visible,
.home-color-choice input:focus-visible + span {
    outline: 3px solid #985000;
    outline-offset: 3px;
}

.home-color-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid #e3dcd2;
    border-radius: 18px;
    background: #fff;
}

.home-color-preview {
    display: flex;
    min-width: 0;
    flex-direction: column;
    margin: 0;
    background: radial-gradient(ellipse at 50% 40%, #fffcf7, #eee8dd);
}

.home-color-zoom {
    position: relative;
    display: grid;
    flex: 1;
    width: 100%;
    align-content: center;
    padding: clamp(18px, 3vw, 44px);
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.home-color-zoom:focus-visible { outline-offset: -5px; }
.home-color-zoom:disabled { cursor: default; }
.home-color-zoom:disabled .home-color-enlarge { display: none; }
.home-color-enlarge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #ded4c4;
    border-radius: 50%;
    background: #fffdf9;
    color: #4d443a;
}

.home-mat-sample {
    --relief: url('../images/promo/sample-sota-relief.webp');
    --trim: url('../images/promo/sample-sota-trim.webp');
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    aspect-ratio: 800 / 450;
    background: var(--relief) center / contain no-repeat;
}

.home-mat-sample[data-material="romb"] {
    --relief: url('../images/promo/sample-romb-relief.webp');
    --trim: url('../images/promo/sample-romb-trim.webp');
}

/* The photo supplies the silhouette and lighting. Only the binding follows the trim mask. */
@supports ((mask-image: linear-gradient(black, black)) or (-webkit-mask-image: linear-gradient(black, black))) {
    .home-mat-sample {
        background: var(--mat-color);
        -webkit-mask: var(--relief) center / contain no-repeat;
        mask: var(--relief) center / contain no-repeat;
    }
    .home-mat-sample::before, .home-mat-sample::after {
        position: absolute;
        inset: 0;
        content: "";
    }
    .home-mat-sample::before {
        background: var(--trim-color);
        -webkit-mask: var(--trim) center / contain no-repeat;
        mask: var(--trim) center / contain no-repeat;
    }
    .home-mat-sample::after {
        background: var(--relief) center / contain no-repeat;
        mix-blend-mode: hard-light;
    }
}

.home-color-preview figcaption {
    display: grid;
    gap: 3px;
    padding: 14px clamp(18px, 3vw, 32px);
    border-top: 1px solid #ded6cb;
    color: #5a5148;
    font-size: 15px;
}
.home-color-preview figcaption strong { color: #302a24; font-size: 21px; }

.home-color-controls { display: grid; gap: 18px; align-content: center; min-width: 0; padding: clamp(18px, 3vw, 34px); }
.home-color-controls[hidden] { display: none; }
.home-color-panel:has(.home-color-controls[hidden]) { grid-template-columns: minmax(0, 1fr); }
.home-color-controls fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.home-color-controls [hidden] { display: none; }
.home-color-controls legend {
    width: auto;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    color: #2d2721;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}
.home-selected-name { margin-inline-start: 7px; color: #665c51; font-size: 15px; font-weight: 400; }
.home-material-options, .home-swatch-options { display: flex; flex-wrap: wrap; gap: 4px; }
.home-material-options { gap: 8px; }
.home-color-choice { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.home-color-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.home-material-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 4px 13px 4px 5px;
    border: 1px solid #d8cec1;
    border-radius: 10px;
    color: #383128;
    font-size: 16px;
}
.home-material-chip img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; }
.home-color-choice input:checked + .home-material-chip { border-color: #9e5508; box-shadow: inset 0 0 0 1px #9e5508; background: #fff5e6; }

.home-swatch {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 2px solid transparent;
    border-radius: 50%;
}
.home-swatch::before {
    width: 32px;
    height: 32px;
    border: 1px solid rgb(0 0 0 / 18%);
    border-radius: inherit;
    background: var(--swatch);
    content: "";
}
.home-color-choice:hover .home-swatch { border-color: #d9c9b6; }
.home-color-choice input:checked + .home-swatch { border-color: #78430c; }

.home-accessory-grid,
.home-film-grid { display: grid; gap: clamp(14px, 1.8vw, 24px); }
.home-accessory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-accessory {
    display: block;
    overflow: hidden;
    padding-bottom: 18px;
    border: 1px solid #e3dbcf;
    border-radius: 15px;
    background: #fcfaf7;
    color: inherit;
}
.home-accessory img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.home-accessory .home-accessory-badge { object-fit: contain; background: #fff; }
.home-accessory h3 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
    margin: 15px 16px 6px;
    color: #302921;
    font-size: clamp(18px, 1.65vw, 22px);
    font-weight: 700;
    line-height: 1.22;
}
.home-accessory h3 span { color: #a14f00; }
.home-accessory p { margin: 0 16px; color: #5b5248; font-size: 15px; line-height: 1.45; }
.home-accessory:hover, .home-accessory:focus-visible { border-color: #b7834b; }
.home-accessory:is(:hover, :focus-visible) h3 { color: #864400; }

.home-film-grid-brand { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-film-grid-customers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-film { display: block; min-width: 0; border-radius: 12px; color: #2b2620; }
.home-film-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #292622;
}
.home-film-frame img, .home-film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-film-play, .home-film-duration {
    position: absolute;
    bottom: 12px;
    background: rgb(25 23 20 / 85%);
    color: #fff;
}
.home-film-play { left: 12px; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #fff9; border-radius: 50%; }
.home-film-play::before { margin-left: 3px; border: 7px solid transparent; border-right: 0; border-left: 11px solid currentColor; content: ""; }
.home-film-duration { right: 12px; padding: 3px 7px; border-radius: 5px; font: 600 14px/1.4 system-ui, sans-serif; }
.home-film-title { display: block; margin-top: 10px; font-size: clamp(16px, 1.8vw, 21px); font-weight: 700; line-height: 1.32; overflow-wrap: anywhere; }
.home-film:is(:hover, :focus-visible) { color: #884500; }
.home-film:is(:hover, :focus-visible) .home-film-play { background: #894500; }
.home-customer-heading { margin-top: clamp(26px, 4vw, 44px); }
.home-customer-heading h3 { font-size: clamp(23px, 2.6vw, 32px); }

.home-review-viewer [data-home-viewer-stage] > video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 65vh;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 10px;
    background: #191815;
    object-fit: contain;
}
.home-review-viewer [data-home-viewer-stage]:has(.home-mat-sample) { padding: 4%; border-radius: 12px; background: #f2ede4; }
.home-review-viewer figcaption[hidden] { display: none; }

@media (max-width: 991px) {
    .home-showcase { scroll-margin-top: 90px; }
    .home-accessory-grid, .home-film-grid-customers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .home-color-panel { grid-template-columns: minmax(0, 1fr); }
    .home-color-zoom { padding: 20px; }
    .home-review-viewer { width: calc(100vw - 24px); }
}
@media (max-width: 540px) {
    .home-accessory-grid, .home-film-grid { grid-template-columns: minmax(0, 1fr); }
    .home-accessory { display: grid; grid-template-columns: min(32%, 120px) 1fr; grid-template-rows: auto 1fr; align-items: start; padding: 0; }
    .home-accessory img { grid-row: span 2; align-self: stretch; height: 100%; min-height: 108px; aspect-ratio: auto; }
    .home-accessory h3 { margin: 14px 12px 4px; }
    .home-accessory p { margin: 0 12px 14px; }
}
