.gates-story {
    background: #fff;
}

.gates-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: clamp(38px, 6vw, 82px);
    align-items: stretch;
}

.gates-story-visual {
    position: relative;
    min-height: 0;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(0deg, rgba(16, 19, 18, .62), rgba(16, 19, 18, .04) 64%),
        url('../img/garage-story-4x5.png') center / cover no-repeat;
    overflow: hidden;
}

.gates-story-visual::before {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: inherit;
    content: '';
    pointer-events: none;
}

.gates-story-code {
    position: absolute;
    top: 26px;
    left: 26px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    background: rgba(32, 33, 36, .48);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

.gates-story-code::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    content: '';
}

.gates-story-caption {
    position: absolute;
    right: 26px;
    bottom: 26px;
    left: 26px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
}

.gates-story-caption strong,
.gates-story-caption span {
    display: block;
}

.gates-story-caption strong {
    max-width: 420px;
    font-size: clamp(21px, 2.6vw, 34px);
    font-weight: 600;
    letter-spacing: -.045em;
    line-height: 1.05;
}

.gates-story-caption span {
    color: rgba(255, 255, 255, .64);
    font-size: 10px;
    text-align: right;
}

.gates-story-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 0;
}

.gates-story-content h2 {
    margin: 0;
    font-size: clamp(42px, 5.3vw, 74px);
    font-weight: 600;
    letter-spacing: -.065em;
    line-height: .94;
}

.gates-story-lead {
    max-width: 590px;
    margin: 28px 0 34px;
    color: var(--muted);
    font-size: 16px;
}

.gate-types {
    border-top: 1px solid var(--line);
}

.gate-type {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    border-bottom: 1px solid var(--line);
    transition: padding .2s ease, color .2s ease;
}

.gate-type:hover {
    padding-left: 8px;
    color: var(--accent);
}

.gate-type-index {
    color: #b5b5b5;
    font-size: 10px;
    font-weight: 800;
}

.gate-type strong,
.gate-type small {
    display: block;
}

.gate-type strong {
    color: var(--ink);
    font-size: 15px;
    letter-spacing: -.02em;
}

.gate-type small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.gate-type-arrow {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--canvas);
    color: var(--ink);
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.gate-type:hover .gate-type-arrow {
    background: var(--accent);
    color: #fff;
    transform: translateX(3px);
}

.gates-story-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 34px;
}

.gates-story-note {
    max-width: 245px;
    color: var(--muted);
    font-size: 10px;
}

@media (max-width: 980px) {
    .gates-story-grid {
        grid-template-columns: 1fr;
    }

    .gates-story-visual {
        min-height: 520px;
    }

    .gates-story-content {
        padding-bottom: 0;
    }
}

@media (max-width: 620px) {
    .gates-story-visual {
        min-height: 380px;
        background-position: 67% center;
    }

    .gates-story-code {
        top: 18px;
        left: 18px;
    }

    .gates-story-caption {
        right: 18px;
        bottom: 18px;
        left: 18px;
    }

    .gates-story-caption span {
        display: none;
    }

    .gates-story-content h2 {
        font-size: clamp(40px, 12vw, 57px);
    }

    .gates-story-lead {
        margin: 22px 0 28px;
        font-size: 14px;
    }

    .gate-type {
        grid-template-columns: 32px 1fr auto;
    }

    .gates-story-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .gates-story-actions .btn {
        width: 100%;
    }

    .gates-story-note {
        max-width: none;
        text-align: center;
    }
}
