/* Life at RMV — atelier v10 (site font system) */
body.page-life.ly-v10 {
    --ly-ink: #0f1115;
    --ly-muted: #5d6570;
    --ly-line: #e4e7ec;
    --ly-wash: #f0f2f5;
    --ly-paper: #f7f8fa;
    --ly-white: #ffffff;
    --ly-red: #e34133;
    --ly-red-deep: #c4332a;
    --ly-soft: #fbe7e4;
    --ly-display: var(--font-title, "Source Serif 4", Georgia, serif);
    --ly-ui: var(--font-label, "Plus Jakarta Sans", system-ui, sans-serif);
    --ly-body: var(--font, "Inter", system-ui, sans-serif);
    --ly-serif: var(--font-lede, "Literata", Georgia, serif);
}

.ly-page {
    background: var(--ly-paper);
    color: var(--ly-ink);
    overflow-x: clip;
    font-family: var(--ly-body);
}

.ly-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.ly-kicker {
    display: inline-flex;
    margin: 0 0 0.75rem;
    color: var(--ly-red);
    font-family: var(--ly-ui);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ly-lead {
    margin: 0;
    color: var(--ly-muted);
    font-family: var(--ly-serif);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 40ch;
}

.ly-block {
    margin: 0 0 2rem;
    max-width: 34rem;
}

.ly-block h2 {
    margin: 0 0 0.7rem;
    font-family: var(--ly-display);
    font-size: clamp(1.9rem, 3.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.ly-block--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 38rem;
}

.ly-block--center .ly-lead {
    margin-left: auto;
    margin-right: auto;
}

.ly-block--split {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.25rem;
    flex-wrap: wrap;
    max-width: none;
}

.ly-block--split .ly-lead {
    margin: 0;
    max-width: 32ch;
}

.ly-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 1.35rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: var(--ly-red);
    color: #fff;
    font-family: var(--ly-ui);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ly-btn:hover {
    background: var(--ly-red-deep);
    color: #fff;
    transform: translateY(-1px);
}

.ly-btn--line {
    margin-top: 0;
    background: transparent;
    color: var(--ly-ink);
    border: 1px solid var(--ly-line);
}

.ly-btn--line:hover {
    border-color: rgba(227, 65, 51, 0.45);
    color: var(--ly-red-deep);
    background: transparent;
}

.ly-empty {
    margin: 0;
    padding: 1.3rem 1.1rem;
    border-radius: 14px;
    background: var(--ly-white);
    border: 1px dashed var(--ly-line);
    color: var(--ly-muted);
}

@keyframes ly-rise {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Top → bottom scroll reveal (global styles live in theme.css) */

/* Moments — trending collage stage */
.ly-moments {
    position: relative;
    padding: 4.75rem 0 4.25rem;
    background:
        radial-gradient(620px 280px at 92% 8%, rgba(227, 65, 51, 0.08), transparent 58%),
        var(--ly-white);
    overflow: clip;
}

.ly-moments__stage {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.2fr);
    gap: 2.25rem 2.5rem;
    align-items: center;
}

.ly-moments__intro .ly-kicker {
    display: inline-flex;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    background: var(--ly-soft);
}

.ly-moments__intro h2 {
    margin: 0 0 0.9rem;
    font-family: var(--ly-display);
    font-size: clamp(2.15rem, 4.4vw, 3.35rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.ly-moments__intro .ly-lead {
    max-width: 32ch;
}

.ly-moments__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.ly-moments__actions .ly-btn {
    margin-top: 0;
}

.ly-moments__collage {
    position: relative;
    height: clamp(360px, 48vw, 520px);
}

.ly-moments__collage figure {
    position: absolute;
    margin: 0;
    overflow: hidden;
    background: #d8dce4;
    box-shadow: 0 20px 48px rgba(15, 17, 21, 0.12);
}

.ly-moments__collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.1s ease;
}

.ly-moments__collage figure:hover img {
    transform: scale(1.05);
}

.ly-moments__collage .is-a {
    width: 58%;
    height: 86%;
    left: 0;
    top: 7%;
    border-radius: 24px;
    z-index: 1;
}

.ly-moments__collage .is-a img {
    object-position: center 20%;
}

.ly-moments__collage .is-b {
    width: 42%;
    height: 48%;
    right: 0;
    top: 0;
    border-radius: 20px;
    z-index: 3;
    outline: 6px solid var(--ly-white);
}

.ly-moments__collage .is-b img {
    object-position: center 28%;
}

.ly-moments__collage .is-c {
    width: 46%;
    height: 44%;
    right: 4%;
    bottom: 0;
    border-radius: 20px;
    z-index: 2;
    outline: 6px solid var(--ly-white);
}

.ly-moments__collage .is-c img {
    object-position: center 40%;
}

/* Values — museum rail */
.ly-values {
    padding: 4.75rem 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(227, 65, 51, 0.06), transparent 55%),
        var(--ly-white);
    border-top: 1px solid var(--ly-line);
}

.ly-values__rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    border: 1px solid var(--ly-line);
    border-radius: 20px;
    overflow: hidden;
    background: var(--ly-paper);
}

.ly-values__rail article {
    display: grid;
    gap: 0.85rem;
    align-content: start;
    min-height: 240px;
    padding: 1.6rem 1.35rem 1.75rem;
    border-right: 1px solid var(--ly-line);
    background: var(--ly-white);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.2s ease;
    transition-delay: calc(var(--ly-i, 0) * 70ms), calc(var(--ly-i, 0) * 70ms), 0ms;
}

.ly-values__rail article:last-child {
    border-right: 0;
}

.ly-values__rail article:hover {
    background: var(--ly-soft);
}

.ly-values__num {
    color: var(--ly-red);
    font-family: var(--ly-display);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.ly-values__rail h3 {
    margin: 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--ly-line);
    font-family: var(--ly-ui);
    font-size: 1.12rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.ly-values__rail p {
    margin: 0;
    color: var(--ly-muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

/* Grow — portrait + ladder */
.ly-grow {
    padding: 4.75rem 0;
    background: var(--ly-wash);
}

.ly-grow__split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 2.25rem 3rem;
    align-items: center;
}

.ly-grow__shot {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #151820;
    aspect-ratio: 4 / 5;
    max-height: 560px;
}

.ly-grow__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
    display: block;
}

.ly-grow__copy .ly-block {
    margin-bottom: 1.5rem;
}

.ly-grow__ladder {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--ly-line);
}

.ly-grow__ladder li {
    display: grid;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--ly-line);
}

.ly-grow__ladder strong {
    color: var(--ly-red);
    font-family: var(--ly-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.ly-grow__ladder h3 {
    margin: 0 0 0.3rem;
    font-family: var(--ly-ui);
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.ly-grow__ladder p {
    margin: 0;
    color: var(--ly-muted);
    font-size: 0.93rem;
    line-height: 1.5;
}

.ly-grow__copy .ly-btn {
    margin-top: 1.5rem;
}

/* Benefits — contents index */
.ly-benefits {
    padding: 4.75rem 0;
    background: var(--ly-white);
    border-block: 1px solid var(--ly-line);
}

.ly-benefits__index {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2.5rem;
    border-top: 1px solid var(--ly-ink);
}

.ly-benefits__index li {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 1rem;
    align-items: baseline;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--ly-line);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.2s ease;
    transition-delay: calc(var(--ly-i, 0) * 70ms), calc(var(--ly-i, 0) * 70ms), 0ms;
}

.ly-benefits__index li:hover {
    color: var(--ly-red);
}

.ly-benefits__index b {
    color: var(--ly-red);
    font-family: var(--ly-display);
    font-size: 1rem;
    font-weight: 700;
}

.ly-benefits__index span {
    font-family: var(--ly-display);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* Celebrations — captioned film strip */
.ly-fest {
    padding: 4.75rem 0;
    background:
        linear-gradient(180deg, var(--ly-wash) 0%, var(--ly-paper) 100%);
}

.ly-fest__row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
}

.ly-fest__scroller {
    overflow: hidden;
    min-width: 0;
    container-type: inline-size;
    container-name: fest-row;
}

.ly-fest__cards {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.ly-fest__card {
    flex: 0 0 calc((100cqi - 2rem) / 3);
    width: calc((100cqi - 2rem) / 3);
    max-width: calc((100cqi - 2rem) / 3);
    min-width: 0;
    text-decoration: none;
    color: var(--ly-ink);
}

.ly-fest__row.is-few .ly-fest__card {
    flex-basis: min(280px, 80cqi);
    width: min(280px, 80cqi);
    max-width: min(280px, 80cqi);
}

@container fest-row (max-width: 720px) {
    .ly-fest__card {
        flex-basis: 78cqi;
        width: 78cqi;
        max-width: 78cqi;
    }
}

.ly-fest__frame {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 16px;
    background: #1a1d24;
    box-shadow: 0 10px 28px rgba(15, 17, 21, 0.08);
}

.ly-fest__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.ly-fest__card:hover .ly-fest__frame img {
    transform: scale(1.04);
}

.ly-fest__meta {
    display: grid;
    gap: 0.15rem;
    margin-top: 0.85rem;
    padding: 0 0.15rem;
}

.ly-fest__meta strong {
    font-family: var(--ly-ui);
    font-size: 1.02rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ly-fest__meta em {
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ly-red);
}

.ly-fest__nav {
    width: 42px;
    height: 42px;
    border: 1px solid var(--ly-line);
    border-radius: 999px;
    background: var(--ly-white);
    color: var(--ly-ink);
    font-size: 1.3rem;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.ly-fest__nav:hover {
    background: var(--ly-red);
    border-color: var(--ly-red);
    color: #fff;
}

.ly-fest__nav[hidden] {
    visibility: hidden;
    pointer-events: none;
}

/* CTA strip */
.ly-cta {
    padding: 0 0 4.25rem;
    background: var(--ly-white);
}

.ly-cta__strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.6rem 1.5rem;
    border-radius: 18px;
    background: var(--ly-white);
    border: 1px solid var(--ly-line);
}

.ly-cta__strip h2 {
    margin: 0;
    font-family: var(--ly-display);
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.ly-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.ly-cta__actions .ly-btn {
    margin-top: 0;
}

body.page-life .site-footer--sn {
    margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
    .ly-moments__collage figure:hover img,
    .ly-fest__card:hover .ly-fest__frame img,
    .ly-btn:hover {
        transform: none;
    }
}

@media (max-width: 980px) {
    .ly-moments__stage,
    .ly-grow__split,
    .ly-benefits__index {
        grid-template-columns: 1fr;
    }

    .ly-moments__collage {
        order: -1;
        height: 380px;
    }

    .ly-grow__shot {
        max-height: 420px;
        aspect-ratio: 16 / 10;
    }

    .ly-values__rail {
        grid-template-columns: 1fr 1fr;
    }

    .ly-values__rail article:nth-child(2n) {
        border-right: 0;
    }

    .ly-values__rail article:nth-child(n + 3) {
        border-top: 1px solid var(--ly-line);
    }

    .ly-fest__row {
        grid-template-columns: 1fr;
    }

    .ly-fest__nav {
        display: none;
    }

    .ly-fest__scroller {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .ly-fest__cards {
        transition: none;
    }

    .ly-fest__card {
        scroll-snap-align: start;
    }
}

@media (max-width: 720px) {
    .ly-shell {
        padding: 0 1rem;
    }

    .ly-moments,
    .ly-values,
    .ly-grow,
    .ly-benefits,
    .ly-fest {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .ly-moments__collage {
        height: 300px;
    }

    .ly-moments__collage .is-a {
        width: 62%;
        border-radius: 18px;
    }

    .ly-moments__collage .is-b,
    .ly-moments__collage .is-c {
        border-radius: 14px;
        outline-width: 4px;
    }

    .ly-values__rail {
        grid-template-columns: 1fr;
    }

    .ly-values__rail article {
        border-right: 0;
        border-bottom: 1px solid var(--ly-line);
        min-height: 0;
    }

    .ly-values__rail article:last-child {
        border-bottom: 0;
    }

    .ly-values__rail article:nth-child(n + 3) {
        border-top: 0;
    }

    .ly-cta__strip {
        align-items: stretch;
    }

    .ly-cta__actions {
        width: 100%;
    }

    .ly-cta__actions .ly-btn {
        flex: 1 1 auto;
    }
}
