.lm-heading {
    margin-bottom: 4px;
}

.s-eyebrow {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    display: block;
    margin-bottom: 6px;
    line-height: 1;
}

.s-title {
    font-family: 'Lexend', system-ui, sans-serif;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 16px;
}

.lm-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 80px;
    gap: 12px;
}

.lm-cell {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #0f0f0f;
    cursor: pointer;
}

.lm-cell--hero { grid-column: span 7; grid-row: span 5; cursor: default; }
.lm-cell--b    { grid-column: span 5; grid-row: span 3; }
.lm-cell--c    { grid-column: span 5; grid-row: span 2; }

.lm-img-a,
.lm-img-b {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.lm-img-a img,
.lm-img-b img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.58);
    transform: scale(1.04);
    transition: transform 9s linear;
}

.lm-img-b { opacity: 0; transition: opacity 0.75s ease; }
.lm-img-b.on { opacity: 1; }

.lm-cell--b:hover .lm-img-a img,
.lm-cell--b:hover .lm-img-b img,
.lm-cell--c:hover .lm-img-a img,
.lm-cell--c:hover .lm-img-b img {
    transform: scale(1.07);
    filter: brightness(0.75);
}

.lm-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, transparent 60%);
}

.lm-cell--hero .lm-overlay {
    background: linear-gradient(148deg, transparent 28%, rgba(0, 0, 0, 0.9) 100%);
}

.lm-body {
    position: absolute;
    inset: 0;
    z-index: 2;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
}

.lm-cell--hero .lm-body {
    padding: 32px 36px;
}

.lm-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2563eb;
    display: block;
}

.lm-cell--hero .lm-tag {
    font-size: 10px;
}

.lm-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0;
}

.lm-cell--hero .lm-name {
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 800;
    margin-bottom: 2px;
}

.lm-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.65;
    max-width: 36ch;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.35s ease 0.1s, max-height 0.4s ease 0.1s;
}

.lm-cell--hero .lm-desc {
    opacity: 1;
    max-height: 120px;
    margin-bottom: 16px;
}

.lm-link {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(37, 99, 235, 0.7);
    padding: 8px 16px;
    border-radius: 8px;
    width: fit-content;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease 0.2s, max-height 0.3s ease 0.2s, background 0.2s;
    text-decoration: none;
}

.lm-cell--hero .lm-link {
    opacity: 1;
    max-height: 48px;
    pointer-events: auto;
}

.lm-link:hover { background: #2563eb; }

.lm-hero-text { transition: opacity 0.28s ease, transform 0.28s ease; }
.lm-hero-text.out { opacity: 0; transform: translateY(8px); }

.lm-small-text { transition: opacity 0.28s ease; }
.lm-small-text.out { opacity: 0; }

.lm-prog {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    z-index: 5;
    border-radius: 0 0 16px 16px;
}

.lm-bar {
    height: 100%;
    background: #2563eb;
    width: 0%;
    border-radius: 0 0 16px 16px;
}

.lm-cell--b,
.lm-cell--c {
    transition: box-shadow 0.25s ease;
}

.lm-cell--b:hover,
.lm-cell--c:hover {
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.6);
}

@media (max-width: 768px) {
    .lm-grid { grid-auto-rows: 60px; gap: 8px; }
    .lm-cell--hero { grid-column: span 12; grid-row: span 5; }
    .lm-cell--b    { grid-column: span 12; grid-row: span 3; }
    .lm-cell--c    { grid-column: span 12; grid-row: span 3; }
}
