.archive-hero {
    --archive-gold: #e0c297;
    --archive-bg: #0a1215;
    --archive-muted: #9caab0;
    --archive-line: #1b282d;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--archive-line);
    background:
        linear-gradient(to bottom, rgba(10, 18, 21, 0.85), rgba(10, 18, 21, 0.97)),
        radial-gradient(circle at 32% 42%, rgba(224, 194, 151, 0.11), transparent 44%),
        radial-gradient(circle at 68% 68%, rgba(224, 194, 151, 0.08), transparent 46%),
        var(--archive-bg);
    text-align: center;
}

.archive-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(224, 194, 151, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(224, 194, 151, 0.025) 1px, transparent 1px);
    background-size: 78px 78px;
    opacity: 0.3;
    animation: archive-grid-move 38s linear infinite;
}

.archive-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 35% 45%, rgba(224, 194, 151, 0.09), transparent 45%),
        radial-gradient(circle at 65% 70%, rgba(224, 194, 151, 0.06), transparent 48%);
    pointer-events: none;
    animation: archive-glow 16s ease-in-out infinite;
}

.archive-hero__pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.archive-hero__content {
    width: min(760px, calc(100% - 40px));
    position: relative;
    z-index: 2;
}

.archive-hero h1,
.archive-hero p {
    background: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    will-change: auto;
}

.archive-hero h1:hover,
.archive-hero p:hover {
    transform: none;
    letter-spacing: inherit;
    text-shadow: none;
    filter: none;
}

.archive-hero__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--archive-gold);
    font-size: 0.7rem;
    font-weight: 850;
}

[dir="ltr"] .archive-hero__eyebrow {
    letter-spacing: 0.17em;
}

.archive-hero__title {
    display: block;
    margin: 0;
    color: #fff;
    font-family: "Barlow", sans-serif;
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 850;
    line-height: 1.08;
}

[dir="rtl"] .archive-hero__title {
    font-family: "Peyda", sans-serif;
    line-height: 1.4;
}

.archive-hero__desc {
    display: block;
    max-width: 620px;
    margin: 9px auto 0;
    color: var(--archive-muted);
    font-size: 14px;
    line-height: 1.8;
}

.archive-hero__card {
    min-width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    position: absolute;
    padding: 0 10px;
    border: 1px solid rgba(224, 194, 151, 0.18);
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(224, 194, 151, 0.09), rgba(255, 255, 255, 0.02)), rgba(12, 20, 24, 0.25);
    color: rgba(224, 194, 151, 0.72);
    font-family: "Barlow", sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    opacity: 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
    animation: archive-card-float 18s ease-in-out infinite;
}

.archive-hero__card::before {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(224, 194, 151, 0.08);
    border-radius: 10px;
}

.archive-hero--video .archive-hero__card,
.archive-hero--video .archive-hero__card::before {
    border-radius: 50%;
}

.archive-hero__card--1 {
    top: 15%;
    inset-inline-start: 8%;
}

.archive-hero__card--2 {
    bottom: 13%;
    inset-inline-start: 17%;
    animation-delay: 3.5s;
}

.archive-hero__card--3 {
    top: 14%;
    inset-inline-end: 9%;
    animation-delay: 7s;
}

.archive-hero__card--4 {
    bottom: 12%;
    inset-inline-end: 16%;
    animation-delay: 10.5s;
}

.archive-hero__play {
    width: 0;
    height: 0;
    margin-inline-start: 2px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-inline-start: 9px solid currentColor;
}

.archive-hero__line {
    width: 220px;
    height: 1px;
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(224, 194, 151, 0.34), transparent);
    opacity: 0;
    animation: archive-line-flow 15s ease-in-out infinite;
}

.archive-hero__line--1 {
    top: 32%;
    inset-inline-start: 8%;
    transform: rotate(-12deg);
}

.archive-hero__line--2 {
    bottom: 29%;
    inset-inline-end: 8%;
    transform: rotate(12deg);
    animation-delay: 5s;
}

.archive-hero__line--3 {
    width: 170px;
    top: 52%;
    inset-inline-start: 44%;
    animation-delay: 10s;
}

@keyframes archive-grid-move {
    to {
        background-position: 78px 78px;
    }
}

@keyframes archive-glow {
    0%,
    100% {
        opacity: 0.72;
    }

    50% {
        opacity: 1;
    }
}

@keyframes archive-card-float {
    0% {
        opacity: 0;
        transform: translate3d(0, 22px, 0) scale(0.92);
    }

    24% {
        opacity: 0.36;
    }

    54% {
        opacity: 0.48;
        transform: translate3d(-10px, -13px, 0) scale(1);
    }

    82% {
        opacity: 0.2;
    }

    100% {
        opacity: 0;
        transform: translate3d(8px, -34px, 0) scale(0.92);
    }
}

@keyframes archive-line-flow {
    0%,
    100% {
        opacity: 0;
        translate: 24px 0;
    }

    42% {
        opacity: 0.34;
    }

    72% {
        opacity: 0.12;
        translate: -24px 0;
    }
}

@media (max-width: 680px) {
    .archive-hero {
        min-height: 220px;
    }

    .archive-hero__title {
        font-size: clamp(30px, 10vw, 40px);
    }

    .archive-hero__desc {
        font-size: 12.5px;
        line-height: 1.85;
    }

    .archive-hero__card {
        min-width: 40px;
        height: 40px;
        padding: 0 7px;
        border-radius: 12px;
        font-size: 0.54rem;
    }

    .archive-hero__card--2,
    .archive-hero__card--4,
    .archive-hero__line--3 {
        display: none;
    }

    .archive-hero__line {
        width: 130px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .archive-hero::before,
    .archive-hero::after,
    .archive-hero__card,
    .archive-hero__line {
        animation: none;
    }

    .archive-hero__card {
        opacity: 0.22;
    }
}
