/**
 * LIVZO — "Explore popular societies" (homepage module 2).
 *
 * Sits directly under the hero and reuses the base tokens + the hero motion
 * language (soft lavender glow, floating pins, reveal, meter fills) so the two
 * sections read as one continuous page.
 *
 * Motion index
 *   reveal-on-scroll  → [data-lz-inview] + .is-in (assets/js/societies.js)
 *   stat rings        → .lz-society__ring-arc sweeps on reveal
 *   ambient           → glows drift, pins float, route dashes crawl, accent flows
 *   hover             → card lift, image zoom, sheen sweep, arrow slide, star tilt
 */

/* ==========================================================================
   1. Shell + decorative background
   ========================================================================== */

.lz-societies {
    position: relative;
    isolation: isolate;
    padding: clamp(52px, 6.4vw, 92px) 0 clamp(64px, 7.4vw, 104px);
    scroll-margin-top: calc(var(--lz-header-h) + 16px);
}

.lz-societies__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Very light lavender radial glows behind the grid — never competing with copy. */
.lz-societies__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
}

.lz-societies__glow--a {
    top: -12%;
    left: -10%;
    width: min(46vw, 540px);
    aspect-ratio: 1;
    background-image: radial-gradient(circle at 50% 50%, rgba(109, 74, 255, 0.20), rgba(109, 74, 255, 0) 70%);
    animation: lzDrift 22s ease-in-out infinite;
}

.lz-societies__glow--b {
    bottom: -18%;
    right: -12%;
    width: min(42vw, 500px);
    aspect-ratio: 1;
    background-image: radial-gradient(circle at 50% 50%, rgba(109, 74, 255, 0.14), rgba(109, 74, 255, 0) 70%);
    animation: lzDrift 28s ease-in-out infinite reverse;
}

/* Faint node grid, faded out towards the edges. */
.lz-societies__dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(11, 27, 51, 0.06) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 72% 62% at 50% 34%, #000 0%, transparent 76%);
    mask-image: radial-gradient(ellipse 72% 62% at 50% 34%, #000 0%, transparent 76%);
}

/* Map-inspired route lines that slowly crawl (marching dashes). */
.lz-societies__routes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: var(--lz-accent);
    opacity: 0.14;
}

.lz-societies__routes path {
    animation: lzRoute 26s linear infinite;
}

.lz-societies__routes path:nth-of-type(2) {
    animation-duration: 34s;
    animation-direction: reverse;
}

@keyframes lzRoute {
    to { stroke-dashoffset: -170; }
}

.lz-societies__pin {
    position: absolute;
    color: var(--lz-accent);
}

.lz-societies__pin .lz-icon { width: 100%; height: 100%; }

.lz-societies__pin--a {
    top: 16%;
    right: 6%;
    width: 26px;
    opacity: 0.11;
    animation: lzFloat 12s ease-in-out infinite;
}

.lz-societies__pin--b {
    top: 58%;
    left: 3%;
    width: 18px;
    opacity: 0.09;
    animation: lzFloat 15s ease-in-out infinite reverse;
}

.lz-societies__pin--c {
    bottom: 10%;
    right: 14%;
    width: 20px;
    opacity: 0.08;
    animation: lzFloat 10s ease-in-out infinite;
}

/* ==========================================================================
   2. Section header
   ========================================================================== */

.lz-societies__head {
    display: grid;
    gap: 22px;
}

.lz-societies__intro { max-width: 640px; }

.lz-societies__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--lz-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lz-societies__eyebrow-ico {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--lz-accent-soft);
    color: var(--lz-accent);
    animation: lzPulse 3.4s var(--lz-ease) infinite;
}

.lz-societies__eyebrow-ico .lz-icon { width: 14px; height: 14px; }

@keyframes lzPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(109, 74, 255, 0.30); }
    50% { box-shadow: 0 0 0 7px rgba(109, 74, 255, 0); }
}

.lz-societies__title {
    margin-top: 14px;
    font-size: clamp(1.95rem, 1.3rem + 2.1vw, 3rem);
    letter-spacing: -0.035em;
    text-wrap: balance;
}

/* Accent word: purple gradient text with a very slow colour flow. */
.lz-societies__title-accent {
    background-image: linear-gradient(100deg, var(--lz-accent-700) 0%, var(--lz-accent) 32%, #059669 58%, var(--lz-accent) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: var(--lz-accent);
    -webkit-text-fill-color: transparent;
    animation: lzAccentFlow 9s var(--lz-ease) infinite;
}

@keyframes lzAccentFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.lz-societies__lead {
    margin-top: 14px;
    max-width: 52ch;
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
    line-height: 1.7;
    color: var(--lz-body);
}

.lz-societies__viewall {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid var(--lz-line-2);
    border-radius: var(--lz-r-pill);
    background-color: #fff;
    box-shadow: var(--lz-sh-1);
    color: var(--lz-navy);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: color var(--lz-t) var(--lz-ease),
        border-color var(--lz-t) var(--lz-ease),
        box-shadow var(--lz-t) var(--lz-ease),
        transform var(--lz-t) var(--lz-ease);
}

.lz-societies__viewall:hover {
    color: var(--lz-accent);
    border-color: rgba(109, 74, 255, 0.32);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -18px rgba(109, 74, 255, 0.70);
}

.lz-societies__viewall-ico {
    width: 17px;
    height: 17px;
    transition: transform 0.34s var(--lz-ease-out);
}

.lz-societies__viewall:hover .lz-societies__viewall-ico { transform: translateX(4px); }

@media (min-width: 960px) {
    .lz-societies__head {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
        gap: clamp(28px, 4vw, 56px);
    }

    .lz-societies__viewall { justify-self: end; }
}

/* ==========================================================================
   3. Grid
   ========================================================================== */

.lz-societies__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(18px, 1.6vw, 26px);
    margin-top: clamp(30px, 3.4vw, 48px);
}

.lz-societies__item {
    display: flex;
    min-width: 0;
}

@media (min-width: 700px) {
    .lz-societies__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lz-societies__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ==========================================================================
   4. Society card
   ========================================================================== */

.lz-society {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--lz-line);
    border-radius: 24px;
    background-color: var(--lz-surface);
    box-shadow: 0 1px 2px rgba(11, 27, 51, 0.05), 0 22px 46px -30px rgba(11, 27, 51, 0.38);
    transition: transform 0.34s var(--lz-ease-out),
        box-shadow 0.34s var(--lz-ease-out),
        border-color 0.34s var(--lz-ease-out);
}

.lz-society:hover,
.lz-society:focus-within {
    transform: translateY(-6px);
    border-color: rgba(109, 74, 255, 0.24);
    box-shadow: 0 1px 2px rgba(11, 27, 51, 0.05), 0 34px 64px -32px rgba(11, 27, 51, 0.46),
        0 18px 34px -26px rgba(109, 74, 255, 0.45);
}

/* --- Media ------------------------------------------------------------- */

.lz-society__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-image: linear-gradient(135deg, #F3F1FA, #ECEBF5);
}

.lz-society__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 0.55s var(--lz-ease-out);
}

.lz-society:hover .lz-society__img,
.lz-society:focus-within .lz-society__img { transform: scale(1.035); }

/* Purple glow along the bottom so the photo melts into the card content. */
.lz-society__veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(180deg, rgba(109, 74, 255, 0) 46%, rgba(109, 74, 255, 0.22) 78%, rgba(74, 40, 220, 0.42) 100%),
        linear-gradient(180deg, rgba(11, 27, 51, 0) 62%, rgba(11, 27, 51, 0.20) 100%);
}

/* The purple veil over the card imagery is gone on the homepage at the user's request — the
   photo now shows as it is. The chips over the image carry their own border and shadow, so
   nothing relied on the wash for contrast. */
.lz-page--home .lz-society__veil { display: none; }

/* Light sweep on hover. */
.lz-society__sheen {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -35%;
    width: 35%;
    pointer-events: none;
    opacity: 0;
    background-image: linear-gradient(105deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
    transform: skewX(-16deg) translate3d(-40%, 0, 0);
    transition: transform 1s var(--lz-ease-out), opacity 0.35s var(--lz-ease);
}

.lz-society:hover .lz-society__sheen {
    opacity: 1;
    transform: skewX(-16deg) translate3d(420%, 0, 0);
}

.lz-society__badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--lz-r-pill);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 18px -12px rgba(11, 27, 51, 0.6);
    color: var(--lz-navy);
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.34s var(--lz-ease-out), background-color 0.34s var(--lz-ease);
}

.lz-society__badge-ico {
    display: grid;
    place-items: center;
    color: var(--lz-accent);
}

.lz-society__badge-ico .lz-icon { width: 12px; height: 12px; }

.lz-society:hover .lz-society__badge,
.lz-society:focus-within .lz-society__badge {
    transform: translateY(-3px);
    background-color: #fff;
}

.lz-society__save {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 18px -12px rgba(11, 27, 51, 0.65);
    color: var(--lz-navy-2);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background-color 0.28s var(--lz-ease),
        color 0.28s var(--lz-ease),
        border-color 0.28s var(--lz-ease),
        box-shadow 0.28s var(--lz-ease),
        transform 0.28s var(--lz-ease-out);
}

.lz-society__save:hover {
    background-color: #fff;
    color: var(--lz-accent);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 22px -12px rgba(109, 74, 255, 0.8);
}

.lz-society__save:active { transform: scale(0.94); }

.lz-society__save .lz-icon { width: 17px; height: 17px; }

.lz-society__save.is-saved {
    background-image: linear-gradient(180deg, var(--lz-accent) 0%, var(--lz-accent-600) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 24px -14px rgba(109, 74, 255, 0.95);
}

.lz-society__save.is-saved .lz-icon { animation: lzSavePop 0.45s var(--lz-ease-out); }

@keyframes lzSavePop {
    0% { transform: scale(1); }
    45% { transform: scale(1.24); }
    100% { transform: scale(1); }
}

/* --- Body -------------------------------------------------------------- */

.lz-society__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 14px;
    padding: 20px 20px 22px;
}

.lz-society__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.lz-society__name {
    color: var(--lz-navy-2);
    font-size: 1.06rem;
    font-weight: 800;
    letter-spacing: -0.028em;
    line-height: 1.3;
}

.lz-society__link {
    color: inherit;
    transition: color var(--lz-t) var(--lz-ease);
}

/* Stretched link: the whole card is one click target (resolves against the
   card because the anchor itself is not positioned). */
.lz-society__link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 24px;
}

.lz-society__link:focus-visible { outline: none; }
.lz-society:focus-within .lz-society__link { color: var(--lz-accent); }

.lz-society__score {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: none;
    padding: 5px 11px 5px 8px;
    border-radius: var(--lz-r-pill);
    background-color: var(--lz-amber-soft);
    transition: background-color 0.34s var(--lz-ease);
}

.lz-society__score-ico {
    display: grid;
    place-items: center;
    color: var(--lz-amber);
}

.lz-society__score-ico .lz-icon {
    width: 15px;
    height: 15px;
    transition: transform 0.38s var(--lz-ease-out);
}

.lz-society__score-value {
    color: var(--lz-navy);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lz-society:hover .lz-society__score { background-color: rgba(245, 165, 36, 0.22); }
.lz-society:hover .lz-society__score-ico .lz-icon { transform: rotate(-10deg) scale(1.14); }

.lz-society__meta {
    display: flex;
    align-items: center;
    /* One line, always: place on the left, review count on the right. */
    flex-wrap: nowrap;
    gap: 7px;
    min-width: 0;
    color: var(--lz-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.lz-society__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    flex: none;
}

/* The place is the part that gives up width; the count keeps its natural size. */
.lz-society__meta-item--place { flex: 1 1 auto; }

.lz-society__meta-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.lz-society__meta-ico {
    display: grid;
    place-items: center;
    color: var(--lz-accent);
}

.lz-society__meta-ico .lz-icon { width: 14px; height: 14px; }

.lz-society__meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.55;
}

/* --- Insight meters ---------------------------------------------------- */

.lz-society__insights {
    display: grid;
    gap: 11px;
    margin-top: 2px;
    padding-top: 15px;
    border-top: 1px solid var(--lz-line);
}

.lz-society__insights-label {
    color: var(--lz-muted);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lz-society__rings {
    display: grid;
    /* Exactly three, never a 2 + 1 wrap — one row is what keeps the card short. */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lz-society__ring {
    display: grid;
    justify-items: center;
    gap: 5px;
    min-width: 0;
    text-align: center;
}

.lz-society__ring-gauge {
    position: relative;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
}

.lz-society__ring-svg {
    width: 100%;
    height: 100%;
    /* Start the arc at twelve o'clock. */
    transform: rotate(-90deg);
}

.lz-society__ring-track,
.lz-society__ring-arc {
    fill: none;
    stroke-width: 4;
}

.lz-society__ring-track { stroke: rgba(11, 27, 51, 0.09); }

.lz-society__ring-arc {
    stroke-linecap: round;
    stroke-dashoffset: var(--lz-ring-offset, 0);
}

.lz-society__ring-num {
    position: absolute;
    color: var(--lz-navy);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.lz-society__ring-label {
    max-width: 100%;
    overflow: hidden;
    color: var(--lz-body);
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Rating band → colour, the same three bands the meters used: ≥ 4.0 healthy (green),
   2.0–4.0 caution (amber), < 2.0 at risk (red). The band class is set in
   includes/society-card.php. */
.lz-society__ring--success .lz-society__ring-arc { stroke: #0E9B4C; }
.lz-society__ring--success .lz-society__ring-num { color: #0B7F3E; }

.lz-society__ring--warning .lz-society__ring-arc { stroke: #D98A00; }
.lz-society__ring--warning .lz-society__ring-num { color: #A96A00; }

.lz-society__ring--danger .lz-society__ring-arc { stroke: var(--lz-red-600); }
.lz-society__ring--danger .lz-society__ring-num { color: var(--lz-red-600); }

/* The arcs sweep in once the card is on screen (JS-driven; no-JS sees them filled). */
.has-js .lz-society__ring-arc {
    stroke-dashoffset: var(--lz-ring-circ, 0);
    transition: stroke-dashoffset 0.9s var(--lz-ease-out) var(--lz-ring-delay, 120ms);
}

.has-js .lz-societies__item.is-in .lz-society__ring-arc { stroke-dashoffset: var(--lz-ring-offset, 0); }

/* Four cards in a row leaves each ring column narrow on a 1024–1199px desktop, so the card
   tightens its inner padding and the ring label one step — enough for "Maintenance" to stay
   on a single line. Scoped to this section; other pages keep their card spacing. */
@media (min-width: 1024px) and (max-width: 1199px) {
    .lz-societies__grid .lz-society__body { padding-inline: 16px; }
    .lz-society__ring-label { font-size: 0.6rem; }
}

/* --- CTA --------------------------------------------------------------- */

.lz-society__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
    color: var(--lz-accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.lz-society__cta-ico {
    width: 17px;
    height: 17px;
    transition: transform 0.34s var(--lz-ease-out);
}

.lz-society:hover .lz-society__cta-ico,
.lz-society:focus-within .lz-society__cta-ico { transform: translateX(5px); }

/* --- Split footer (opt-in): the CTA left, "View on Map" right ------------------------- */
/* Only a card that is given `map` renders this row; every other caller keeps the plain CTA. */

.lz-society__foot {
    position: relative;
    /* Above the title's stretched overlay (z-index 2), or the map link is unclickable —
       the overlay covers the whole card (gotcha 5). */
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

/* The row owns the auto margin now, so the CTA stops pushing itself. */
.lz-society__foot .lz-society__cta { margin-top: 0; }

.lz-society__map {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 6px 12px;
    border: 1px solid var(--lz-line-2);
    border-radius: var(--lz-r-pill);
    background-color: var(--lz-surface);
    color: var(--lz-body);
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
    transition: border-color 0.25s var(--lz-ease), background-color 0.25s var(--lz-ease),
        color 0.25s var(--lz-ease);
}

.lz-society__map:hover {
    border-color: var(--lz-accent);
    background-color: var(--lz-accent-soft);
    color: var(--lz-accent-700);
}

.lz-society__map-ico { width: 15px; height: 15px; }

/* --- Tags (opt-in) ------------------------------------------------------ */
/* Only a card that is given tags renders this row; Explore, Ask and Similar
   Societies pass none and are unchanged. */

.lz-society__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.lz-society__tag {
    padding: 4px 11px;
    border-radius: var(--lz-r-pill);
    background-color: var(--lz-bg-2);
    color: var(--lz-body);
    font-size: 0.72rem;
    font-weight: 700;
}

/* --- Action row (opt-in) ------------------------------------------------ */

.lz-society__actions {
    position: relative;
    /* Above the title's stretched overlay (z-index 2), or the buttons would be
       unclickable — the overlay covers the whole card (gotcha 5). */
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 14px;
}

.lz-society__action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border: 1px solid var(--lz-line-2);
    border-radius: var(--lz-r-pill);
    background-color: var(--lz-surface);
    color: var(--lz-body);
    font-size: 0.78rem;
    font-weight: 700;
    transition: border-color 0.25s var(--lz-ease), background-color 0.25s var(--lz-ease),
        color 0.25s var(--lz-ease);
}

.lz-society__action:hover {
    border-color: var(--lz-accent);
    color: var(--lz-accent-700);
}

.lz-society__action--primary {
    border-color: transparent;
    background-color: var(--lz-accent);
    color: #fff;
}

.lz-society__action--primary:hover {
    background-color: var(--lz-accent-600);
    color: #fff;
}

.lz-society__action-ico { width: 15px; height: 15px; }

/* ==========================================================================
   5. Bottom micro CTA + disclaimer
   ========================================================================== */

.lz-societies__foot {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin-top: clamp(34px, 4vw, 52px);
    text-align: center;
}

.lz-societies__foot-text {
    color: var(--lz-body);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.lz-societies__foot-btn {
    border-color: var(--lz-line-2);
    background-color: #fff;
    color: var(--lz-navy);
    box-shadow: var(--lz-sh-1);
}

.lz-societies__foot-btn:hover {
    border-color: rgba(109, 74, 255, 0.3);
    background-color: #fff;
    color: var(--lz-accent);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -18px rgba(109, 74, 255, 0.75);
}

.lz-societies__note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    color: var(--lz-muted);
    font-size: 0.76rem;
    line-height: 1.5;
    text-align: center;
}

.lz-societies__note-ico {
    display: grid;
    place-items: center;
    flex: none;
    color: var(--lz-accent);
}

.lz-societies__note-ico .lz-icon { width: 14px; height: 14px; }

/* ==========================================================================
   6. Reveal on scroll
   ========================================================================== */

.has-js [data-lz-inview] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--lz-ease-out) var(--lz-delay, 0ms),
        transform 0.85s var(--lz-ease-out) var(--lz-delay, 0ms);
    will-change: opacity, transform;
}

.has-js [data-lz-inview].is-in {
    opacity: 1;
    transform: none;
    will-change: auto;
}

/* ==========================================================================
   7. Mobile — horizontal snap carousel
   ========================================================================== */

@media (max-width: 640px) {
    .lz-societies__grid {
        display: flex;
        gap: 14px;
        margin-inline: calc(var(--lz-gutter) * -1);
        padding: 6px var(--lz-gutter) 20px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .lz-societies__grid::-webkit-scrollbar { display: none; }

    .lz-societies__item {
        flex: 0 0 min(85%, 330px);
        scroll-snap-align: center;
    }

    .lz-society { border-radius: 22px; }
    .lz-society__body { padding: 18px 18px 20px; }
    .lz-society__link::after { border-radius: 22px; }
}

@media (max-width: 420px) {
    .lz-societies__title { letter-spacing: -0.03em; }
    .lz-societies__item { flex-basis: min(88%, 300px); }
}

/* ==========================================================================
   8. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .has-js [data-lz-inview] {
        opacity: 1;
        transform: none;
    }

    .has-js .lz-society__ring-arc { stroke-dashoffset: var(--lz-ring-offset, 0); transition: none; }

    .lz-societies__title-accent,
    .lz-societies__eyebrow-ico,
    .lz-societies__glow,
    .lz-societies__pin,
    .lz-societies__routes path {
        animation: none;
    }

    .lz-society__action { transition: none; }
    .lz-society__map { transition: none; }

    .lz-society__sheen { display: none; }
}
