/* Signature home — night editorial, compact mobile hero */

.sg-stage {
    position: relative;
    min-height: clamp(280px, 52vh, 420px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #101618;
    color: var(--sg-ivory);
}

.sg-stage__media {
    position: absolute;
    inset: 0;
}

.sg-stage__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.55;
    transform: scale(1.04);
}

.sg-stage__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(16, 22, 24, 0.35) 0%, rgba(16, 22, 24, 0.55) 40%, rgba(16, 22, 24, 0.94) 100%),
        radial-gradient(ellipse at 80% 10%, rgba(11, 218, 81, 0.14), transparent 45%);
}

.sg-stage__grain {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: var(--sg-grain);
    background-size: 180px;
    pointer-events: none;
}

.sg-stage__body {
    position: relative;
    z-index: 1;
    padding: 1.5rem 0 1.75rem;
    max-width: 36rem;
}

.sg-stage__latin {
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    color: var(--sg-malachite);
}

.sg-stage__title {
    margin: 0 0 0.55rem;
    font-family: var(--sg-font-display);
    font-size: clamp(1.85rem, 7vw, 3rem);
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.sg-stage__lead {
    margin: 0 0 1.1rem;
    color: rgba(245, 243, 238, 0.78);
    font-size: 0.98rem;
    line-height: 1.55;
}

.sg-stage__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.95rem;
}

.sg-stage__meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: rgba(245, 243, 238, 0.5);
}

/* Category index — list, not bento collage */
.sg-index {
    padding: 1.75rem 0 2.25rem;
    background: var(--sg-ivory);
}

.sg-index__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.sg-index__head h2 {
    margin: 0;
    font-family: var(--sg-font-display);
    font-size: 1.2rem;
    font-weight: 650;
    color: var(--sg-charcoal);
}

.sg-index__all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sg-green);
}

.sg-index__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--sg-border);
}

.sg-index__row {
    display: grid;
    grid-template-columns: auto 52px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--sg-border);
    color: var(--sg-charcoal);
    transition: background var(--sg-fast);
}

.sg-index__row:active {
    background: rgba(42, 52, 57, 0.04);
}

.sg-index__num {
    font-size: 0.68rem;
    color: var(--sg-walnut);
    min-width: 1.4rem;
}

.sg-index__thumb {
    width: 52px;
    height: 52px;
    overflow: hidden;
    background: var(--sg-charcoal);
}

.sg-index__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sg-index__copy strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 650;
}

.sg-index__copy small {
    color: var(--sg-text-muted);
    font-size: 0.78rem;
}

.sg-index__arrow {
    color: var(--sg-malachite);
    font-size: 0.85rem;
}

.sg-index__empty {
    padding: 1.5rem 0;
    color: var(--sg-text-muted);
}

.sg-note {
    padding: 0 0 2.5rem;
}

.sg-note__inner {
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--sg-border);
}

.sg-note__inner .sg-latin {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.68rem;
    color: var(--sg-walnut);
}

.sg-note__inner p {
    margin: 0;
    max-width: 38rem;
    color: var(--sg-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Memory wall — tighter */
.sg-wall {
    padding: 0 0 2.5rem;
}

.sg-wall__board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
}

.sg-wall__shot { margin: 0; }

.sg-wall__frame {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--sg-charcoal);
    cursor: pointer;
}

.sg-wall__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sg-wall__caption {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--sg-text-muted);
}

.sg-wall__lightbox.sg-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
}

.sg-wall__lightbox .sg-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 16, 0.88);
    border: 0;
}

.sg-wall__lightbox .sg-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 680px);
    padding: 0.75rem;
    background: #12181b;
}

.sg-wall__lightbox-img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.sg-wall__lightbox-caption {
    margin: 0.65rem 0 0;
    text-align: center;
    color: var(--sg-ivory);
}

.sg-modal__close {
    position: absolute;
    top: 0.4rem;
    inset-inline-end: 0.4rem;
    width: 36px;
    height: 36px;
    border: 0;
    background: rgba(245, 243, 238, 0.12);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .sg-stage {
        min-height: clamp(360px, 58vh, 520px);
    }

    .sg-stage__body {
        padding: 2.5rem 0 2.75rem;
    }

    .sg-index__row {
        grid-template-columns: auto 64px 1fr auto;
        gap: 1rem;
        padding: 0.9rem 0;
    }

    .sg-index__thumb {
        width: 64px;
        height: 64px;
    }

    .sg-wall__board {
        grid-template-columns: repeat(4, 1fr);
    }
}
