@font-face {
    font-family: "FOTL Bricolage Grotesque";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "FOTL Bricolage Grotesque";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.fotl {
    --fotl-gold: #c9a227;
    --fotl-line: #2e2a0e;
    --fotl-deep: #080C0E;
    --fotl-card: #0f1416;
    --fotl-text: #ffffff;
    --fotl-text2: #d4d4d4;
    --fotl-gap: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--fotl-gap);
    width: 100%;
    margin: 0;
    font-family: "FOTL Bricolage Grotesque", "Bricolage Grotesque", system-ui, sans-serif;
}

.fotl *,
.fotl *::before,
.fotl *::after {
    box-sizing: border-box;
}

.fotl-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    isolation: isolate;
    background: var(--fotl-card);
    border: 1.5px solid var(--fotl-line);
    border-radius: 6px;
    color: var(--fotl-text);
    text-decoration: none !important;
    box-shadow: none !important;
    transition: border-color 0.25s ease;
}

.fotl-card:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 12 / 5;
}

.fotl--n2 .fotl-card {
    aspect-ratio: 3 / 2;
}

.fotl--n2 .fotl-card:first-child {
    grid-column: auto;
}

.fotl--n1 .fotl-card:first-child {
    aspect-ratio: 12 / 5;
}

.fotl-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: 70% 50%;
    transform: scale(1.001);
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.fotl-card--ffs .fotl-img {
    object-position: 85% 50%;
}

.fotl-card--tools .fotl-img {
    object-position: 75% 40%;
}

.fotl-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, rgba(8, 12, 14, 0.9) 0%, rgba(8, 12, 14, 0.55) 34%, rgba(8, 12, 14, 0) 64%),
        linear-gradient(to right, rgba(8, 12, 14, 0.35), rgba(8, 12, 14, 0) 55%);
}

.fotl-card:first-child .fotl-shade {
    background:
        linear-gradient(to right, rgba(8, 12, 14, 0.88) 0%, rgba(8, 12, 14, 0.55) 34%, rgba(8, 12, 14, 0) 62%),
        linear-gradient(to top, rgba(8, 12, 14, 0.5), rgba(8, 12, 14, 0) 45%);
}

.fotl-body {
    position: absolute;
    left: 18px;
    right: 56px;
    bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fotl-title {
    font-weight: 700;
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--fotl-text);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.fotl-card:first-child .fotl-title {
    font-size: 26px;
}

.fotl-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.35;
    color: var(--fotl-text2);
}

.fotl-arrow {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: var(--fotl-text);
    background: rgba(8, 12, 14, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.fotl-arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fotl-card:hover,
.fotl-card:focus-visible {
    border-color: var(--fotl-gold);
}

.fotl-card:hover .fotl-img,
.fotl-card:focus-visible .fotl-img {
    transform: scale(1.045);
}

.fotl-card:hover .fotl-arrow,
.fotl-card:focus-visible .fotl-arrow {
    border-color: var(--fotl-gold);
    background: var(--fotl-gold);
    color: var(--fotl-deep);
    transform: translate(2px, -2px);
}

.fotl-card:focus-visible {
    outline: 2px solid var(--fotl-gold);
    outline-offset: 3px;
}

@media (max-width: 520px) {
    .fotl {
        grid-template-columns: 1fr;
    }

    .fotl-card,
    .fotl-card:first-child,
    .fotl--n2 .fotl-card {
        grid-column: auto;
        aspect-ratio: 16 / 9;
    }

    .fotl-card:first-child .fotl-title {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fotl-img,
    .fotl-arrow,
    .fotl-card {
        transition: none;
    }

    .fotl-card:hover .fotl-img,
    .fotl-card:focus-visible .fotl-img {
        transform: none;
    }
}
