.idef-home {
    padding-bottom: clamp(56px, 8vw, 108px);
    color: var(--idef-text);
    background: var(--idef-bg);
    font-family: "Inter", "Segoe UI", sans-serif;
}

.idef-home-container {
    width: min(1200px, calc(100% - 64px));
    margin-inline: auto;
}

.idef-home-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(490px, 47vw, 685px);
    display: grid;
    align-items: center;
    background: radial-gradient(ellipse at 75% 40%, #410f1a 0, #141015 48%, #0b0b0e 84%);
}

.idef-home-hero-frame,
.idef-home-hero::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.idef-home-hero-frame {
    inset-inline-start: auto;
    width: min(100%, 1770px);
    z-index: -2;
    container-type: size;
}

.idef-home-hero-scene {
    position: absolute;
    left: 50%;
    top: 36%;
    width: max(100cqw, 150cqh);
    aspect-ratio: 3 / 2;
    transform: translate(-50%, -36%);
}

.idef-home-hero-photo {
    display: block;
    width: 100%;
    height: 100%;
}

.idef-home-hero-scene picture { display: block; width: 100%; height: 100%; }

.idef-home-hero::after {
    content: "";
    z-index: -1;
    background:
        linear-gradient(0deg, #0b0b0e, transparent 30%),
        linear-gradient(90deg, #0b0b0ef5 0, #0b0b0ee8 21%, #0b0b0eb5 35%, #0b0b0e52 53%, transparent 72%);
}

.idef-home-hero-inner {
    padding-block: 50px 98px;
}

.idef-home-hero-copy { max-width: 620px; }

.idef-home-hero h1 span { color: var(--idef-red); }

.idef-home .idef-home-hero h1 {
    margin: 0;
    color: var(--idef-text);
    font-family: inherit;
    font-size: clamp(46px, 5.1vw, 83px);
    font-weight: 850;
    line-height: .99;
    letter-spacing: -.06em;
}

.idef-home .idef-home-hero-description {
    max-width: 355px;
    margin: 22px 0 29px;
    color: #e1dce3;
    font-size: clamp(15px, 1.45vw, 18px);
    line-height: 1.55;
}

.idef-home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.idef-home a.idef-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 51px;
    padding: 12px 17px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #c71938;
    color: #fff;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
}

.idef-home a.idef-home-button:hover { background: #aa1430; color: #fff; }

.idef-home a.idef-home-button-outline {
    background: #16151ac7;
    border-color: #716771;
    color: var(--idef-text);
}

.idef-home a.idef-home-button-outline:hover { background: #333039; }

.idef-home-picker {
    position: relative;
    z-index: 2;
    margin-top: -56px;
    padding: clamp(19px, 3.2vw, 36px);
    border: 1px solid var(--idef-line);
    border-top: 2px solid #ad3a53;
    border-radius: 16px;
    background: var(--idef-accent-panel);
    box-shadow: 0 14px 45px #0005;
    scroll-margin-top: 104px;
}

.idef-home .idef-home-picker h2,
.idef-home .idef-home-brands h2 {
    margin: 0 0 21px;
    color: var(--idef-text);
    font-family: inherit;
    font-weight: 800;
    font-size: clamp(24px, 2.8vw, 37px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.idef-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 13px;
    align-items: end;
}

.idef-home .idef-picker-field {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.idef-home .idef-picker-field legend {
    margin: 0 0 7px;
    padding: 0;
    color: var(--idef-text);
    font-size: 13px;
    font-weight: 700;
}

.idef-home .idef-picker-field.is-disabled legend { color: #b2a7b5; }

.idef-home [data-picker-toggle] {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 11px;
    padding: 10px 14px;
    min-height: 51px;
    border: 1px solid #746773;
    border-radius: 8px;
    background: #29242d;
    color: #f6f3f8;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.idef-home [data-picker-toggle] [data-picker-value] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.idef-home [data-picker-value] > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.idef-home [data-picker-value] .idef-picker-option-image {
    width: 32px;
    height: 25px;
    flex-basis: 32px;
}

.idef-home [data-picker-toggle]:disabled {
    background: #17151b !important;
    border-color: #3f3642;
    color: #b3aab6;
    font-weight: 500;
    cursor: not-allowed;
}

.idef-home a.idef-picker-submit[aria-disabled="true"] {
    background: #232128 !important;
    border-color: #413d47;
    color: #a39da8;
    cursor: default;
}

.idef-home [data-picker-toggle][aria-expanded="true"] {
    border-color: var(--idef-red);
}

.idef-home [hidden] { display: none !important; }

.idef-picker-panel {
    position: absolute;
    z-index: 3;
    inset: calc(100% + 7px) auto auto 0;
    width: max(100%, 286px);
    max-width: min(410px, calc(100vw - 48px));
    padding: 10px;
    border: 1px solid #57515d;
    border-radius: 10px;
    background: #1d1c22;
    box-shadow: 0 12px 30px #000a;
}

.idef-home .idef-picker-panel input[type="search"] {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #57515d !important;
    border-radius: 6px;
    background: #141318 !important;
    color: #fff !important;
    font-size: 16px;
}

.idef-home .idef-picker-panel input::placeholder { color: #bab3bf; }

.idef-home [data-picker-options] {
    display: grid;
    max-height: min(315px, 42vh);
    margin: 7px 0 0;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    list-style: none;
}

.idef-home .idef-picker-option-row { list-style: none; margin: 0; }

.idef-home .idef-picker-option,
.idef-home .idef-picker-retry {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 7px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #f8f6fa;
    text-align: left;
    font: inherit;
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
}

.idef-home .idef-picker-option:hover,
.idef-home .idef-picker-option.is-selected,
.idef-home .idef-picker-option:focus-visible { background: #652433; }

.idef-home .idef-picker-option-image {
    width: 54px;
    height: 39px;
    flex: 0 0 54px;
    object-fit: contain;
    border-radius: 4px;
    background: #f2f0f3;
}

.idef-home .idef-picker-option-image.is-emblem {
    padding: 6px 9px;
    background: transparent;
    filter: brightness(0) invert(.9);
}

.idef-home .idef-picker-option-image:is(.is-matte-light, .is-matte-dark) {
    background: transparent;
}

.idef-home .idef-picker-option-image.is-placeholder {
    padding: 8px;
    background: #29262e;
}

.idef-home [data-picker-value] .idef-picker-option-image.is-placeholder { padding: 4px; }

.idef-home .idef-picker-option-label { overflow-wrap: anywhere; }

.idef-home [data-picker-empty],
.idef-home .idef-picker-status {
    margin: 9px 0 0;
    color: var(--idef-muted);
    font-size: 13px;
    line-height: 1.4;
}

.idef-home .idef-picker-status:empty { margin: 0; }

.idef-home :is(a, button, summary, input):focus-visible {
    outline: 2px solid #ff7382;
    outline-offset: 3px;
}

.idef-home-brands { margin-top: clamp(45px, 6vw, 75px); }

.idef-home .idef-home-brand-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.idef-home .idef-home-brand-grid li { margin: 0; }

.idef-home .idef-home-brand-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 148px;
    padding: 16px 13px;
    border: 1px solid #333038;
    border-radius: 13px;
    background: linear-gradient(150deg, #201c23, #141318 73%);
    color: var(--idef-text);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    isolation: isolate;
}

.idef-home .idef-home-brand-grid a:hover {
    border-color: #a44459;
    background: linear-gradient(150deg, #38212b, #19151d 73%);
}

.idef-home-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    column-gap: 16px;
}

.idef-home a.idef-home-all-brands-link {
    margin-bottom: 16px;
    min-height: 42px;
    padding: 8px 16px;
    border-color: #935369;
    background: #451f2c;
}

.idef-home a.idef-home-all-brands-link:hover {
    border-color: #d45f78;
    background: #632c3b;
}

.idef-home-brand-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 65px;
    color: #e5dce7;
    font-size: 21px;
}

.idef-home-brand-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}
.idef-home-brand-image .is-emblem { filter: brightness(0) invert(.9); }
.idef-home img:is(.is-matte-dark, .is-matte-light) { mix-blend-mode: screen; }
.idef-home img.is-matte-light { filter: grayscale(1) invert(1); }
.idef-home-brand-name { letter-spacing: .055em; }

.idef-home-guides {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
    margin-top: clamp(29px, 4.6vw, 58px);
}

.idef-home-guide {
    overflow: hidden;
    border: 1px solid var(--idef-line);
    border-radius: 14px;
    background: var(--idef-panel);
}

.idef-home-guide-photo {
    display: block;
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #141216;
}

.idef-home-guide-art {
    position: absolute;
    inset: 0;
    transition: transform .34s cubic-bezier(.2, .68, .24, 1);
}

.idef-home-guide-art picture,
.idef-home-guide-art picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idef-home-guide-copy {
    display: block;
    padding: clamp(16px, 2.4vw, 26px);
    border-top: 1px solid var(--idef-accent-border);
    background: #351b27;
}

.idef-home-guide-window .idef-home-guide-copy { background: #2b202e; }

.idef-home .idef-home-guide-title {
    display: block;
    color: var(--idef-text);
    font: inherit;
    font-size: clamp(21px, 2.4vw, 32px);
    font-weight: 800;
    letter-spacing: -.033em;
    line-height: 1.15;
}

.idef-home .idef-home-guide-surface {
    display: block;
    position: relative;
    text-decoration: none;
}

.idef-home .idef-home-guide-surface:focus-visible {
    outline-offset: -4px;
}

.idef-home-guide-surface:is(:hover, :focus-visible) .idef-home-guide-copy {
    background: #512238;
}

@media (hover: hover) and (pointer: fine) {
    .idef-home-guide-surface:hover .idef-home-guide-art { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
    .idef-home-guide .idef-home-guide-art { transition: none; transform: none !important; }
}

@media (min-width: 1040px) {
    .idef-home-hero.has-wide-photo { background: var(--idef-bg); }
    .has-wide-photo .idef-home-hero-frame { inset: 0; width: 100%; }
    .has-wide-photo .idef-home-hero-scene {
        left: 63%;
        top: 57%;
        width: max(100cqw, 300cqh);
        aspect-ratio: 3 / 1;
        transform: translate(-63%, -57%);
    }
    .idef-home-hero.has-wide-photo::after {
        background: linear-gradient(0deg, #0b0b0e, #0b0b0eaa 4%, transparent 19%);
    }
    .idef-home-hero-copy { max-width: min(65%, 720px); }
    .idef-home .idef-home-hero h1 { font-size: clamp(46px, 5vw, 72px); }
    .idef-home-picker { margin-top: -12px; }
}

@media (max-width: 880px) {
    .idef-picker-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .idef-picker-submit { grid-column: 1 / -1; justify-self: start; }
    .idef-picker-field:nth-child(3) .idef-picker-panel { inset-inline: auto 0; }
}

@media (max-width: 640px) {
    .idef-home-container { width: calc(100% - 32px); }
    .idef-home-hero {
        --idef-mobile-photo-height: clamp(270px, 69vw, 440px);
        min-height: auto;
        background: var(--idef-bg);
    }
    .idef-home-hero-inner { padding-block: 0 36px; margin-top: clamp(212px, 55vw, 345px); }
    .idef-home-hero-frame { height: var(--idef-mobile-photo-height); }
    .idef-home-hero::after {
        height: var(--idef-mobile-photo-height);
        background: linear-gradient(180deg, transparent 43%, #0b0b0e22 60%, #0b0b0ed6 86%, var(--idef-bg));
    }
    .idef-home .idef-home-hero h1 { font-size: clamp(37px, 9.1vw, 54px); }
    .idef-home .idef-home-hero-description { margin: 15px 0 19px; }
    .idef-home-hero-actions { gap: 8px; }
    .idef-home a.idef-home-button { padding-inline: 12px; gap: 8px; }
    .idef-home-picker { margin-top: 0; }
    .idef-picker-grid { grid-template-columns: minmax(0, 1fr); }
    .idef-picker-submit { justify-self: stretch; }
    .idef-picker-panel { inset-inline: 0 !important; width: 100%; max-width: none; }
    .idef-home .idef-home-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .idef-home .idef-home-brand-grid a { min-height: 112px; gap: 9px; }
    .idef-home-brand-image { width: 63px; height: 47px; }
    .idef-home-guides { grid-template-columns: minmax(0, 1fr); }
}
