.applications-hero {
    position: relative;
    min-height: calc(100svh - 5.5rem);
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--souvelty-plum);
}

.applications-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        90deg,
        rgba(32, 12, 25, 0.86) 0%,
        rgba(32, 12, 25, 0.58) 36%,
        rgba(32, 12, 25, 0.08) 68%,
        rgba(32, 12, 25, 0) 100%
    );
    pointer-events: none;
}

.applications-hero__media,
.applications-hero__media .responsive-image,
.applications-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.applications-hero__image {
    display: block;
    object-fit: cover;
    object-position: center;
}

.applications-hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(3rem, 7vw, 8rem);
    align-items: center;
    padding-block: clamp(4rem, 8vw, 7rem);
}

.applications-hero h1 {
    max-width: 12ch;
    font-size: clamp(3.5rem, 5.4vw, 6.2rem);
    line-height: 0.98;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    text-wrap: balance;
}

.applications-hero__copy {
    max-width: 35rem;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
}

.applications-hero__copy p {
    margin: 0;
}

.applications-list {
    width: min(calc(100% - 2rem), var(--max));
    margin-inline: auto;
}

.application-entry {
    display: grid;
    grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(2.5rem, 6vw, 7rem);
    align-items: start;
    padding-block: clamp(4.5rem, 8vw, 7rem);
    border-top: 1px solid rgba(215, 175, 118, 0.3);
}

.application-entry:first-child {
    border-top: 0;
}

.application-entry__lead h2,
.application-entry__lead h3 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.application-entry__lead h2 {
    max-width: none;
    margin-bottom: 1.25rem;
    font-size: clamp(2.8rem, 4vw, 4.6rem);
}

.application-entry__lead h3 {
    max-width: 18ch;
    margin-bottom: 0;
    font-size: clamp(1.9rem, 2.6vw, 3rem);
    line-height: 1.12;
    text-wrap: balance;
}

.application-entry__body {
    max-width: 46rem;
    padding-top: 0.4rem;
}

.application-entry__body p:first-child {
    margin-top: 0;
}

.application-entry__body p:last-of-type {
    margin-bottom: 0;
}

.application-entry__visual {
    width: min(100%, 36rem);
    margin-top: clamp(2.25rem, 4vw, 3.5rem);
}

.application-entry__visual-link {
    position: relative;
    display: block;
    text-decoration: none;
}

.application-entry__visual-link .responsive-image,
.application-entry__visual-link img {
    display: block;
    width: 100%;
}

.application-entry__visual-link img {
    transition: transform var(--transition), box-shadow var(--transition);
}

.application-entry__visual-link:hover img,
.application-entry__visual-link:focus-visible img {
    transform: translateY(-2px);
    box-shadow: 0 28px 66px rgba(37, 22, 37, 0.36);
}

.application-entry__visual-hint {
    display: block;
    margin-top: 0.65rem;
    color: var(--souvelty-champagne-gold);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-align: right;
    text-transform: uppercase;
}

.application-image-dialog {
    width: min(96vw, 92rem);
    max-width: none;
    max-height: 94svh;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(215, 175, 118, 0.55);
    background: var(--souvelty-cream);
    color: var(--souvelty-anthracite);
    box-shadow: var(--shadow);
}

.application-image-dialog::backdrop {
    background: rgba(20, 11, 20, 0.88);
    backdrop-filter: blur(3px);
}

.application-image-dialog__inner {
    position: relative;
    display: grid;
    max-height: 94svh;
    overflow: auto;
    padding: clamp(2.75rem, 5vw, 4.5rem) clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 2vw, 1.5rem);
}

.application-image-dialog__close-form {
    position: absolute;
    z-index: 1;
    top: 0.6rem;
    right: 0.75rem;
    margin: 0;
}

.application-image-dialog__close {
    border: 0;
    background: transparent;
    color: var(--souvelty-aubergine);
    padding: 0.65rem 0.75rem;
    font: 0.85rem/1.2 var(--sans);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.application-image-dialog__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(94svh - 5.5rem);
    margin: auto;
    object-fit: contain;
    touch-action: pinch-zoom;
}

.image-overlay-open {
    overflow: hidden;
}

@media (max-width: 980px) {
    .applications-hero {
        min-height: auto;
    }

    .applications-hero__content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-block: clamp(4rem, 9vw, 6rem);
    }

    .applications-hero h1 {
        max-width: 13ch;
        font-size: clamp(3.2rem, 9vw, 5.4rem);
    }

    .applications-hero__copy {
        max-width: 38rem;
    }

    .application-entry {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .application-entry__lead h3 {
        max-width: 22ch;
    }

    .application-entry__body {
        max-width: 48rem;
    }
}

@media (max-width: 640px) {
    .applications-hero {
        min-height: calc(100svh - 4.5rem);
        align-items: end;
    }

    .applications-hero::after {
        background: linear-gradient(
            180deg,
            rgba(32, 12, 25, 0.08) 0%,
            rgba(32, 12, 25, 0.18) 42%,
            rgba(32, 12, 25, 0.9) 78%,
            rgba(32, 12, 25, 0.98) 100%
        );
    }

    .applications-hero__image {
        object-position: center top;
    }

    .applications-hero__content {
        gap: 1.25rem;
        padding-block: 3rem;
    }

    .applications-hero h1 {
        max-width: none;
        font-size: clamp(2.55rem, 10vw, 3.9rem);
    }

    .applications-hero__copy {
        max-width: 28rem;
    }

    .application-entry {
        gap: 1.75rem;
        padding-block: 4rem;
    }

    .application-entry__lead h2 {
        font-size: clamp(2.5rem, 12vw, 3.8rem);
    }

    .application-entry__lead h3 {
        max-width: none;
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }

    .application-entry__visual {
        width: 100%;
        margin-top: 2.25rem;
    }

    .application-image-dialog {
        width: 98vw;
        max-height: 96svh;
    }

    .application-image-dialog__inner {
        max-height: 96svh;
        padding: 3rem 0.4rem 0.4rem;
    }

    .application-image-dialog__image {
        max-height: calc(96svh - 4rem);
    }
}
