/* Enko Media Group: homepage only. Shared system lives in site.css. */

/* ---------- Opening: the salutation ---------- */

.opening {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 3.4fr);
    gap: clamp(32px, 5vw, 88px);
    padding-block: clamp(40px, 5vw, 72px) var(--section);
    align-items: start;
}

.opening__title {
    font-size: clamp(2.35rem, 1.2rem + 3.6vw, 4.75rem);
    line-height: 1.02;
    font-weight: 650;
    letter-spacing: -0.035em;
    text-wrap: balance;
    max-width: 18ch;
}
.opening__title .tbc { white-space: nowrap; }
.opening__lede {
    margin-top: clamp(24px, 3vw, 40px);
    font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);
    line-height: 1.45;
    color: var(--ink-soft);
    max-width: 44ch;
    text-wrap: pretty;
}

.signoff {
    position: sticky;
    top: 24px;
    padding-top: 6px;
}
.portrait {
    width: min(100%, 220px);
    padding: 6px;
    border-radius: 8px;
    background: var(--sheet);
    box-shadow: var(--lift);
}
.portrait__frame {
    aspect-ratio: 4 / 5;
    border-radius: 4px;
    background: var(--paper-deep);
    outline: 1.5px dashed var(--ink-soft);
    outline-offset: -1.5px;
    color: var(--ink-soft);
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    padding: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}
.portrait__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 4px;
}
.signoff__name {
    margin-top: 20px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.signoff .tbc { white-space: nowrap; }
.signoff__role { color: var(--ink-soft); font-size: 0.9375rem; margin-top: 4px; }
.signoff .btn { margin-top: 22px; width: 100%; }
.signoff__note { margin-top: 12px; font-size: 0.875rem; color: var(--ink-soft); line-height: 1.5; }
.signoff__alt { margin-top: 10px; font-size: 0.9375rem; font-weight: 600; }

.opening + .block { padding-top: 0; }
.opening + .block::before { display: none; }

@media (max-width: 860px) {
    .opening { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .opening__title { max-width: none; }
    .signoff {
        position: static;
        display: grid;
        grid-template-columns: 128px minmax(0, 1fr);
        column-gap: 18px;
        align-items: center;
        padding-top: 28px;
        border-top: 1px solid var(--rule);
    }
    .portrait { grid-row: span 2; width: 128px; }
    .portrait__frame { font-size: 0.75rem; gap: 4px; text-align: center; }
    .signoff__name { margin-top: 0; align-self: end; font-size: 1.25rem; }
    .signoff__role { align-self: start; }
    .signoff .btn, .signoff__note, .signoff__alt { grid-column: 1 / -1; }
}
