/* Warm backgrounds connect the homepage sections. */
.home-page .welcome-section {
    border-bottom: 0;
}

/* Align the short introduction with the three-line heading on desktop. */
@media (min-width: 901px) {
    .home-page .quality-copy {
        align-self: center;
    }

    .home-page .quality-copy p {
        text-wrap: balance;
    }
}

.home-page .welcome-section::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: clamp(110px, 14vw, 200px);
    background: linear-gradient(to bottom, rgba(255, 254, 250, 0), #fffefa 90%);
    z-index: 1;
    pointer-events: none;
}

.home-page #team {
    background: linear-gradient(180deg, #fffefa 0%, #edf2e9 22%, #edf2e9 78%, #fffefa 100%);
    padding-block: clamp(3.5rem, 5vw, 5rem);
}

.home-page #team::after { content: none; }

.home-page #team .section-header h2::after { content: none; }

.home-page #team .story-kicker { justify-content: center; }

.home-page #team .team-grid {
    position: relative;
    top: auto;
    margin-top: 0;
    gap: 1.5rem;
}

.home-page #team .team-member,
.home-page #team .team-member:hover {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.home-page #team .member-img {
    overflow: hidden;
    border: 4px solid rgba(255, 254, 250, 0.9);
    border-radius: 6px;
    box-shadow: 0 14px 30px -22px rgba(32, 59, 44, 0.4);
}

.home-page #team .member-img .team-placeholder {
    object-position: center;
}

.home-page #team .team-info {
    padding: 1.25rem 0 0;
    background: transparent;
    text-align: center;
}

.home-page #team .section-header h2,
.home-page #team .team-info h3 { color: #203b2c; }

.home-page #team .team-info .role {
    color: #506347;
    text-transform: none;
    letter-spacing: 0;
    text-wrap: balance;
}

.home-page #team .member-call-link:focus-visible {
    outline-color: var(--action-green);
}

/* A small call badge leaves the portrait visible on hover and keyboard focus. */
.home-page #team .call-overlay {
    inset: auto 0.7rem 0.7rem auto;
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid rgba(255, 254, 250, 0.6);
    border-radius: 50%;
    background: #203b2c;
    box-shadow: 0 4px 12px rgba(32, 59, 44, 0.2);
    opacity: 1;
    transition: background-color 0.2s ease;
}

.home-page #team .phone-icon {
    width: 1.05rem;
    height: 1.05rem;
    transform: none;
}

.home-page #team .member-call-link:is(:hover, :focus-visible) .call-overlay {
    background: var(--action-green);
}

/* The artwork belongs to the entire story, so there are no section seams. */
.home-page .story-sections {
    --story-width: min(88%, 1280px);
    background: #fffefa;
}

.home-page .story-sections::before {
    inset: 0;
    height: 100%;
    max-height: none;
    background: url('../img/backgrounds/bladeren-licht-doorlopend.webp') center / 100% 100% no-repeat;
    mask-image: linear-gradient(to bottom, transparent, #000 5%, #000 50%, rgba(0, 0, 0, 0.14) 72%, rgba(0, 0, 0, 0.1) 93%, transparent);
    opacity: 0.16;
}

.home-page .story-sections > :is(#galerij, #route, #aanbod) {
    background: transparent;
    border: 0;
    padding-block: clamp(3.5rem, 5vw, 5rem);
}

.home-page .story-sections > #galerij {
    background: linear-gradient(to bottom, rgba(255, 254, 250, 0.65) 80%, transparent 100%);
}

.home-page #galerij .section-header,
.home-page #galerij .gallery-full-grid,
.home-page #route > .section-header,
.home-page #route > .container,
.home-page #aanbod .process-panel {
    width: var(--story-width);
    max-width: 1280px;
    margin-inline: auto;
}

.home-page #galerij .section-header,
.home-page #route > .section-header,
.home-page #aanbod .process-panel .section-header {
    text-align: left;
    margin-bottom: 2.5rem;
}

.home-page .story-sections .section-header h2::after,
.home-page .story-sections .section-header::after {
    content: none;
}

.home-page .story-sections .section-header h2 {
    font-size: clamp(2.25rem, 3.5vw, 3.5rem) !important;
    color: #203b2c;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.home-page .story-kicker {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.1rem;
    color: #416638;
    font: 600 0.8125rem / 1.5 'Montserrat', sans-serif;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.home-page .story-kicker::before {
    content: '';
    width: 2rem;
    height: 1px;
    background: currentColor;
}

.home-page #galerij .section-header p,
.home-page #route > .section-header p,
.home-page #aanbod .section-header p {
    margin-left: 0;
    max-width: 660px;
    color: #4c5b4d;
}

.home-page #galerij .gallery-item {
    border-radius: 6px;
    box-shadow: none;
}

.home-page #galerij .gallery-item::before { content: none; }

.home-page #route > .container { padding: 0; }

.home-page #route .route-map-layout {
    width: 100%;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.home-page #route .germany-map-container,
.home-page #route .germany-map-container:hover {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-page #route .route-info-panel { gap: 1.75rem; }

.home-page #route .route-description {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-page #route .route-description p {
    color: #465449;
    text-align: left;
}

.home-page #route .route-description strong { color: #203b2c; }

.home-page #route .region-cards {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    gap: 0;
    border-top: 1px solid #cbd3c6;
}

.home-page #route .region-card {
    appearance: none;
    width: 100%;
    min-height: 58px;
    padding: 0.75rem 0;
    justify-content: flex-start;
    text-align: left;
    border: 0;
    border-bottom: 1px solid #cbd3c6;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    color: #203b2c;
    font: 500 clamp(1.25rem, 1.6vw, 1.5rem) / 1.35 var(--display-serif);
    cursor: pointer;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.home-page #route .region-name {
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    transition: text-decoration-color 0.18s ease;
}

.home-page #route .region-card:hover,
.home-page #route .region-card:focus-visible,
.home-page #route .region-card.highlight {
    color: #2f6f2f;
    border-bottom-color: #6f8d61;
    background: transparent;
    box-shadow: none;
}

.home-page #route .region-card:is(:hover, :focus-visible, .highlight) .region-name {
    text-decoration-color: currentColor;
}

.home-page #route .region-card:focus-visible {
    outline: 2px solid var(--action-green);
    outline-offset: 4px;
    border-radius: 0;
}

@media (min-width: 1025px) {
    .home-page #team {
        display: grid;
        grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.6fr);
        align-items: center;
        gap: clamp(3rem, 5vw, 5rem);
        padding-inline: max(6vw, calc((100vw - 1280px) / 2));
    }

    .home-page #team .section-header {
        width: 100%;
        max-width: 410px;
        margin: 0;
        text-align: left;
    }

    .home-page #team .story-kicker { justify-content: flex-start; }

    .home-page #team .section-header h2 {
        font-size: clamp(1.75rem, 3vw, 2.75rem) !important;
    }

    .home-page #team .team-grid {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .home-page #team .team-grid {
        align-items: start;
        gap: clamp(1.75rem, 3vw, 2.75rem);
        padding-block: 8px;
    }

    .home-page #team .team-member:nth-child(2) { margin-top: 1.75rem; }

    .home-page #team .member-img {
        aspect-ratio: 4 / 3.5;
        outline: 1px solid rgba(80, 99, 71, 0.18);
        outline-offset: 7px;
    }
}

@media (min-width: 769px) {
    .home-page #galerij .gallery-full-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        /* The landscape photo sets the last row's height alongside both videos. */
        grid-template-rows: repeat(2, clamp(140px, 14vw, 200px)) auto;
        grid-auto-rows: clamp(140px, 14vw, 200px);
        gap: 16px;
    }
    .home-page #galerij .gallery-item:nth-child(n) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .home-page #galerij .gallery-item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }

    .home-page #galerij .gallery-item.gallery-item--landscape {
        grid-column: span 2;
        aspect-ratio: 3 / 2;
    }

    .home-page #galerij .gallery-item.gallery-item--video {
        grid-column: span 1;
    }

    .home-page #galerij .gallery-item--video > a {
        position: absolute;
        inset: 0;
    }

    .home-page .story-sections > #route {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-content: center;
        column-gap: clamp(2rem, 5vw, 5rem);
        padding-inline: max(6%, calc((100% - 1280px) / 2));
    }

    .home-page #route > .container,
    .home-page #route .route-map-layout {
        display: contents;
    }

    .home-page #route > .section-header {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        margin: 0 0 1.5rem;
        align-self: end;
    }

    .home-page #route .section-header h2 { max-width: 13ch; }

    .home-page #route .route-info-panel {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
    }

    .home-page #route .germany-map-container {
        grid-column: 2;
        grid-row: 1 / 3;
        min-height: 470px;
        left: -24px;
    }

    .home-page #route .map-depth-scene { max-width: 530px; }

    .home-page #aanbod .process-panel .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {
    .home-page .about-grid {
        max-width: 430px;
        margin-inline: auto;
    }

    .home-page .about-section .text-column {
        max-width: none;
    }

    .home-page #team { padding-block: 3.5rem !important; }

    .home-page #team .team-member {
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .home-page #team .team-info { padding: 1rem 0 0 !important; }

    .home-page #galerij .section-header,
    .home-page #galerij .gallery-full-grid,
    .home-page #route > .section-header,
    .home-page #route > .container,
    .home-page #aanbod .process-panel {
        width: calc(100% - (var(--mobile-edge, 1.2rem) * 2));
        max-width: 430px;
    }

    .home-page #route .route-map-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.75rem;
    }

    .home-page #route .germany-map-container { min-height: 280px; }

    .home-page .story-sections::before {
        /* Keep the artwork continuous; this photograph has no matching tile edges. */
        background-size: auto 100%;
        background-repeat: no-repeat;
        background-position: right top;
        opacity: 0.1;
    }

    .home-page .story-sections .section-header h2 {
        font-size: clamp(2rem, 8vw, 2.65rem) !important;
    }

    .home-page #aanbod .process-panel .section-header,
    .home-page #aanbod .process-panel .gallery-grid {
        width: 100% !important;
    }

}

@media (max-width: 360px) {
    /* Keep the roles level when a name wraps on the narrowest phones. */
    .home-page #team .team-info h3 {
        min-height: 2.5em;
    }
}

