.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(880px 460px at 82% 18%, rgba(224, 161, 90, 0.24), transparent 58%),
        radial-gradient(520px 360px at 0% 100%, rgba(181, 109, 50, 0.16), transparent 62%),
        linear-gradient(165deg, #171c24 0%, #0c0e12 58%, #10141a 100%);
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--copper), #fff4e4, var(--copper), transparent);
    background-size: 220% 100%;
    animation: hero-edge 5.5s ease-in-out infinite;
}
.hero-blade {
    position: absolute;
    z-index: 0;
    right: -6%;
    top: 16%;
    width: min(760px, 78vw);
    height: 92px;
    pointer-events: none;
    opacity: 0.55;
    background: linear-gradient(180deg, rgba(236, 231, 223, 0.2), rgba(224, 161, 90, 0.08) 55%, transparent);
    clip-path: polygon(0 68%, 16% 68%, 21% 22%, 27% 22%, 25% 74%, 100% 38%, 100% 54%, 23% 90%, 16% 90%, 12% 76%, 0 76%);
    transform: rotate(-11deg);
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35));
}
.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 28px));
    margin: 0 auto;
    padding: 36px 0 42px;
}
.hero h1 {
    font-size: clamp(3.2rem, 8.4vw, 6.4rem);
    text-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.hero .lede { max-width: 36rem; font-size: 1.08rem; }
.hero .hero-search {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    max-width: 560px;
    margin: 22px 0 4px;
    padding: 6px 6px 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(8, 10, 14, 0.72);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.hero .hero-search input {
    width: auto;
    min-width: 0;
    flex: 1;
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.hero .hero-search input:focus-visible { outline-offset: 4px; }
.hero-facts {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}
.hero-facts li {
    flex: 0 0 auto;
    min-width: 0;
    padding: 8px 12px 10px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
}
.hero-facts strong {
    display: block;
    font-family: var(--display);
    font-size: 1.45rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--copper);
    line-height: 1;
}
.hero-facts span {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.hero-tray {
    position: relative;
    margin-top: 28px;
    padding: 16px 12px 2px;
}
.hero-tray::before,
.hero-tray::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 26px;
    border: 1px solid rgba(224, 161, 90, 0.32);
    background:
        radial-gradient(circle at 16px 16px, #d9cbb8 0 2.5px, #8d8274 3px 4px, transparent 4.5px),
        radial-gradient(circle at calc(100% - 16px) 16px, #d9cbb8 0 2.5px, #8d8274 3px 4px, transparent 4.5px),
        radial-gradient(circle at 16px calc(100% - 16px), #d9cbb8 0 2.5px, #8d8274 3px 4px, transparent 4.5px),
        radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), #d9cbb8 0 2.5px, #8d8274 3px 4px, transparent 4.5px),
        linear-gradient(165deg, #6a5f54, #2a241f 48%, #3c342c);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
    pointer-events: none;
}
.hero-tray::before {
    inset: 0 14% 22% 6%;
    transform: rotate(-7deg);
}
.hero-tray::after {
    inset: 18px 5% 10% 16%;
    transform: rotate(6.5deg);
}
.hero-case {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    padding: 14px;
    color: inherit;
    text-decoration: none;
    border-radius: 26px;
    border: 1px solid rgba(224, 161, 90, 0.55);
    background:
        radial-gradient(circle at 16px 16px, #f0e2cc 0 3px, #8d8274 3.5px 4.5px, transparent 5px),
        radial-gradient(circle at calc(100% - 16px) 16px, #f0e2cc 0 3px, #8d8274 3.5px 4.5px, transparent 5px),
        radial-gradient(circle at 16px calc(100% - 16px), #f0e2cc 0 3px, #8d8274 3.5px 4.5px, transparent 5px),
        radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), #f0e2cc 0 3px, #8d8274 3.5px 4.5px, transparent 5px),
        linear-gradient(165deg, #5c5146, #2c261f 46%, #3d342c);
    box-shadow:
        0 0 0 1px rgba(224, 161, 90, 0.28),
        0 28px 70px rgba(0, 0, 0, 0.5),
        0 0 70px rgba(224, 161, 90, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
a.hero-case:hover { color: inherit; }
a.hero-case:hover .hero-case-photo img { transform: scale(1.04); }
.hero-case-photo {
    position: relative;
    justify-self: center;
    display: grid;
    place-items: center;
    overflow: hidden;
    width: min(100%, calc(70vh * var(--photo-w, 4) / var(--photo-h, 3)));
    aspect-ratio: var(--photo-w, 4) / var(--photo-h, 3);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 40%, rgba(224, 161, 90, 0.2), transparent 55%),
        #10141a;
}
.hero-case-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.hero-case-empty .hero-case-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    background:
        radial-gradient(circle at 50% 58%, rgba(224, 161, 90, 0.34), transparent 48%),
        linear-gradient(180deg, #242017, #12100e);
}
.hero-empty-blade {
    width: 88%;
    height: auto;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
}
.hero-case-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 36%, rgba(255, 255, 255, 0.28) 48%, transparent 60%);
    transform: translateX(-130%);
    animation: hero-sheen 6.8s ease-in-out infinite;
    pointer-events: none;
}
.hero-plate {
    display: grid;
    gap: 4px;
    padding: 2px 6px 4px;
}
.hero-plate .eyebrow { margin: 0; font-size: 0.85rem; }
.hero-plate strong {
    font-family: var(--display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 0.95;
    text-transform: uppercase;
}
.hero-specs, .hero-owner { color: var(--muted); }
.hero-owner { color: var(--copper); }
@media (max-width: 540px) {
    .hero .hero-search {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 8px;
    }
    .hero .hero-search input { width: 100%; padding: 8px 8px 4px; }
    .hero .hero-search .btn { width: 100%; }
}
@media (min-width: 900px) {
    .hero-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
        gap: 56px;
        align-items: center;
        padding: 64px 0 72px;
    }
    .hero-tray { margin-top: 0; padding: 26px 16px 8px; }
    .hero-tray::before { inset: 0 18% 16% 4%; transform: rotate(-8deg); }
    .hero-tray::after { inset: 22px 2% 8% 20%; transform: rotate(7deg); }
    .hero-case {
        z-index: 2;
        transform: rotate(-1.5deg);
        transition: transform 0.35s ease;
    }
    a.hero-case:hover { transform: rotate(0deg) translateY(-6px); }
}
@keyframes hero-edge {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}
@keyframes hero-sheen {
    0%, 42% { transform: translateX(-130%); }
    68%, 100% { transform: translateX(130%); }
}
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero-case-photo::after { animation: none; }
    .hero-tray::before,
    .hero-tray::after,
    .hero-case,
    a.hero-case:hover,
    .hero-case-photo img { transition: none; transform: none; }
}
