:root {
    --bg: #070303;
    --panel: rgba(255, 255, 255, .04);
    --panel-2: rgba(255, 255, 255, .06);
    --text: rgba(255, 255, 255, .92);
    --muted: rgba(255, 255, 255, .70);
    --stroke: rgba(255, 255, 255, .10);
    --shadow: 0 16px 40px rgba(0, 0, 0, .45);
    --brand: #ff2a2a;
    --radius: 16px;
    --max: 1200px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: radial-gradient(1200px 600px at 20% -10%, rgba(255, 42, 42, .12), transparent 60%),
        radial-gradient(900px 600px at 90% 10%, rgba(68, 16, 16, 0.06), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    color: var(--text);
    padding: 20px 30px;
    box-sizing: border-box;
}

.wrap {
    width: 100%;
    padding-bottom: 40px;
    margin: 0 auto;
    box-sizing: border-box;
}

header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
}

.logo {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    flex: 0 0 auto;
    margin: 3px;
    overflow: hidden;
    box-sizing: border-box;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(255, 42, 42, .35));
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand .title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand .subtitle {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
}

main {
    margin-top: 18px;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 18px 4px 14px;
}

.section-head h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(8, 1fr);
}

.card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    isolation: isolate;
    cursor: pointer;
    outline: none;
    user-select: none;
}

.card::before {
    content: "";
    display: block;
    aspect-ratio: 15 / 9;
}

.cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .25s ease, filter .25s ease;
    filter: saturate(1.05) contrast(1.02);
}

.card:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 42, 42, .35), 0 18px 45px rgba(0, 0, 0, .5);
    border-color: rgba(255, 42, 42, .35);
}

.caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 10px 9px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .70) 45%, rgba(0, 0, 0, .85));
    transform: translateY(42%);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
}

.caption .name {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    color: white;
    padding: 3%;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card:hover .cover {
    transform: scale(1.07);
    filter: saturate(1.1) contrast(1.05);
}

.card:hover .caption,
.card:focus-visible .caption {
    transform: translateY(0);
    opacity: 1;
}

.about {
    margin-top: 22px;
    padding: 18px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.about h2 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.about p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

@media (max-width: 1200px) {
    body {
        padding: 15px 25px;
    }

    .grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .section-head h1 {
        font-size: 19px;
    }

    .section-head p {
        font-size: 13px;
    }

    .about h2 {
        font-size: 16px;
    }

    .about p {
        font-size: 13px;
    }

    .brand .title {
        font-size: 17px;
    }

    .brand .subtitle {
        font-size: 12px;
    }

    .caption .name {
        font-size: 13px;
    }
}

@media (max-width: 980px) {
    body {
        padding: 16px 18px;
    }

    .wrap {
        width: 100%;
    }

    .grid {
        grid-template-columns: repeat(4, 1fr);
    }

    header {
        padding: 12px 0;
    }

    .logo {
        width: 42px;
        height: 42px;
    }

    .brand .title {
        font-size: 16px;
    }

    .section-head h1 {
        font-size: 18px;
    }

    .about h2 {
        font-size: 15px;
    }

    .about p {
        font-size: 13px;
    }

    .caption .name {
        font-size: 12px;
    }
}

@media (max-width: 640px) {
    .wrap {
        width: 100%;
    }

    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .section-head {
        margin: 14px 2px 12px;
    }

    .section-head h1 {
        font-size: 16px;
    }

    .section-head p {
        font-size: 12px;
    }

    .about {
        padding: 16px 14px;
    }

    .about h2 {
        font-size: 14px;
    }

    .about p {
        font-size: 12px;
    }

    .brand .title {
        font-size: 17px;
    }

    .brand .subtitle {
        font-size: 11px;
    }

    .caption {
        padding: 9px 9px 8px;
    }

    .caption .name {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand .title {
        font-size: 15px;
    }

    .section-head h1 {
        font-size: 16px;
    }

    .about h2 {
        font-size: 13px;
    }

    .about p {
        font-size: 12px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .cover,
    .caption {
        transition: none;
    }
}