/* =====================================================================
   Flexible Engagement Models showcase (section.emx)
   Used on index.html (#engagement-section) and engagement.html (#engagement-models).
   A "What do you need?" picker spotlights the matching model; cards tilt towards
   the pointer with a soft gold spotlight; the middle card has a gold light
   circling its border. Behaviour: assets/js/engagement-models.js
   ===================================================================== */

@property --emx-a {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.emx {
    --emx-gold: #C9A438;
    --emx-gold-hi: #E7CF86;
    --emx-gold-deep: #8A6A1C;
    --emx-navy: #111A2E;
    --emx-ink: #111A2E;
    --emx-text: #475569;
    --emx-muted: #64748B;
    --emx-card: #FFFFFF;
    --emx-line: rgba(197, 160, 57, 0.22);
    --emx-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --emx-gold-grad: linear-gradient(135deg, #E7CF86 0%, #C9A438 55%, #A7832A 100%);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
html.dark-mode .emx {
    --emx-ink: #F1F5F9;
    --emx-text: #C2CDDB;
    --emx-muted: #AAB8CA;
    --emx-card: #121D33;
    --emx-line: rgba(197, 160, 57, 0.2);
    --emx-gold-deep: #E7CF86;
}

/* ---------- Soft moving background glow ---------- */
.emx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.emx-orb {
    position: absolute;
    width: 46vmax;
    height: 46vmax;
    max-width: 640px;
    max-height: 640px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
}
.emx-orb--1 { top: -18%; left: -12%; background: radial-gradient(circle, rgba(201, 164, 56, 0.28), transparent 65%); animation: emx-drift 18s ease-in-out infinite alternate; }
.emx-orb--2 { bottom: -22%; right: -14%; background: radial-gradient(circle, rgba(27, 42, 74, 0.18), transparent 65%); animation: emx-drift 22s ease-in-out infinite alternate-reverse; }
html.dark-mode .emx-orb--2 { background: radial-gradient(circle, rgba(59, 130, 246, 0.16), transparent 65%); }
@keyframes emx-drift { to { transform: translate(8%, 10%) scale(1.08); } }

/* ---------- Header ---------- */
.emx .section-header { margin-bottom: 1.6rem !important; }
.emx-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 0.9rem;
    padding: 0.38rem 0.95rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #8A6A1C;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(197, 160, 57, 0.35);
    box-shadow: 0 6px 16px -10px rgba(197, 160, 57, 0.8);
}
html.dark-mode .emx-eyebrow { color: #E7CF86; background: rgba(255, 255, 255, 0.05); }
.emx-spark {
    width: 10px;
    height: 10px;
    background: var(--emx-gold);
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
    animation: emx-twinkle 2.4s ease-in-out infinite;
}
@keyframes emx-twinkle { 0%, 100% { transform: scale(0.8) rotate(0); opacity: 0.7; } 50% { transform: scale(1.25) rotate(90deg); opacity: 1; } }

/* ---------- "What do you need?" picker ---------- */
.emx-finder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin: 0 auto 2.6rem;
}
.emx-finder-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--emx-muted);
}
.emx-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--emx-line);
    box-shadow: 0 14px 30px -22px rgba(17, 26, 46, 0.45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
html.dark-mode .emx-chips { background: rgba(18, 29, 51, 0.7); }
.emx-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0.55rem 1.05rem;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--emx-ink);
    background: transparent;
    cursor: pointer;
    transition: background 0.35s var(--emx-ease), color 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
}
.emx-chip svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--emx-gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.3s ease; }
.emx-chip:hover { background: rgba(201, 164, 56, 0.12); transform: translateY(-1px); }
.emx-chip:focus-visible { outline: 2px solid var(--emx-gold); outline-offset: 2px; }
.emx-chip[aria-pressed="true"] {
    color: #111A2E;
    background: var(--emx-gold-grad);
    box-shadow: 0 10px 22px -12px rgba(167, 131, 42, 0.95);
}
.emx-chip[aria-pressed="true"] svg { stroke: #111A2E; }
.emx-live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cards grid ---------- */
.emx-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.2vw, 2rem);
    align-items: stretch;
    perspective: 1400px;
}

.emx-card {
    --rx: 0deg;
    --ry: 0deg;
    --mx: 50%;
    --my: 0%;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    padding: 2.1rem 1.9rem 1.9rem;
    border-radius: 26px;
    border: 1px solid var(--emx-line);
    background:
        radial-gradient(120% 60% at 100% 0%, rgba(201, 164, 56, 0.09), transparent 60%),
        var(--emx-card);
    color: var(--emx-text);
    box-shadow: 0 1px 2px rgba(17, 26, 46, 0.04), 0 26px 50px -34px rgba(17, 26, 46, 0.45);
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform 0.5s var(--emx-ease), box-shadow 0.5s var(--emx-ease), border-color 0.35s ease, opacity 0.45s ease, filter 0.45s ease;
    will-change: transform;
}
.emx-card.is-tilting { transition: box-shadow 0.5s var(--emx-ease), border-color 0.35s ease, opacity 0.45s ease, filter 0.45s ease; }

/* gold top bar that widens on hover */
.emx-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 64px;
    height: 4px;
    border-radius: 0 0 6px 6px;
    background: var(--emx-gold-grad);
    transform: translateX(-50%);
    transition: width 0.6s var(--emx-ease);
}
/* pointer spotlight */
.emx-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(360px circle at var(--mx) var(--my), rgba(201, 164, 56, 0.16), transparent 60%);
    transition: opacity 0.4s ease;
}
/* gold shine that sweeps across each card in turn */
.emx-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 243, 196, 0.38) 50%, transparent 62%) no-repeat;
    background-size: 260% 100%;
    background-position: 160% 0;
    animation: emx-shine 9s ease-in-out infinite;
}
.emx-card[data-emx="1"]::after { animation-delay: 3s; }
.emx-card[data-emx="2"]::after { animation-delay: 6s; }
@keyframes emx-shine { 0%, 12% { background-position: 160% 0; } 26%, 100% { background-position: -60% 0; } }

.emx-card:hover,
.emx-card:focus-within,
.emx-card.is-match {
    border-color: rgba(201, 164, 56, 0.6);
    box-shadow: 0 2px 4px rgba(17, 26, 46, 0.05), 0 40px 70px -36px rgba(17, 26, 46, 0.55), 0 0 0 4px rgba(201, 164, 56, 0.1);
}
.emx-card:hover::before,
.emx-card:focus-within::before,
.emx-card.is-match::before { width: 62%; }
.emx-card:hover .emx-glow,
.emx-card.is-match .emx-glow { opacity: 1; }

/* the picker dims the other two */
.emx-grid.has-match .emx-card:not(.is-match) { opacity: 0.55; filter: saturate(0.6); }
.emx-grid.has-match .emx-card:not(.is-match):hover { opacity: 0.85; filter: none; }

/* "Your match" tag */
.emx-match {
    position: absolute;
    top: -13px;
    right: 1.4rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111A2E;
    background: var(--emx-gold-grad);
    box-shadow: 0 10px 20px -10px rgba(167, 131, 42, 0.9);
    opacity: 0;
    transform: translateY(8px) scale(0.85);
    transition: opacity 0.35s ease, transform 0.45s var(--emx-ease);
    pointer-events: none;
}
.emx-card.is-match .emx-match { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- Card content ---------- */
.emx-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.3rem;
    transform: translateZ(30px);
}
.emx-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    color: var(--emx-gold-hi);
    background: linear-gradient(150deg, #1B2A4A, #0B1424);
    border: 1px solid rgba(201, 164, 56, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 26px -14px rgba(11, 20, 36, 0.7);
    transition: transform 0.6s var(--emx-ease), box-shadow 0.5s ease;
}
.emx-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 24px;
    border: 1.5px solid rgba(201, 164, 56, 0.55);
    opacity: 0;
    pointer-events: none;
}
.emx-card:hover .emx-icon::after,
.emx-card.is-match .emx-icon::after { animation: emx-ring 1.6s ease-out infinite; }
@keyframes emx-ring { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3); } }
.emx-card:hover .emx-icon,
.emx-card.is-match .emx-icon { transform: translateY(-3px) rotate(-6deg) scale(1.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 22px 30px -14px rgba(167, 131, 42, 0.7); }
.emx-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.emx-card:hover .emx-icon .emx-i-pop { animation: emx-pop 0.8s var(--emx-ease); }
.emx-i-pop { transform-box: fill-box; transform-origin: center; }
@keyframes emx-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

.emx-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1;
    background: var(--emx-gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.35;
    transition: opacity 0.4s ease;
}
.emx-card:hover .emx-num,
.emx-card.is-match .emx-num { opacity: 0.85; }

.emx-title {
    margin: 0 0 0.6rem;
    font-size: 1.45rem;
    line-height: 1.25;
    color: var(--emx-ink) !important;
    transform: translateZ(24px);
}
.emx-best {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: max-content;
    max-width: 100%;
    margin-bottom: 0.9rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--emx-gold-deep);
    background: rgba(201, 164, 56, 0.12);
    border: 1px solid rgba(201, 164, 56, 0.3);
}
.emx-best::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--emx-gold); }
.emx-desc { margin: 0 0 1.3rem; font-size: 0.97rem; line-height: 1.6; color: var(--emx-text); }

/* key stat */
.emx-stat {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.3rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(201, 164, 56, 0.1), rgba(201, 164, 56, 0.02));
    border: 1px dashed rgba(201, 164, 56, 0.45);
    transform: translateZ(18px);
}
.emx-stat b {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
    color: var(--emx-ink);
    min-width: 2.4ch;
}
.emx-stat b:not([data-count]) { font-size: 1.55rem; min-width: 0; }
.emx-stat span { flex: 1; min-width: 0; font-size: 0.8rem; line-height: 1.35; font-weight: 600; color: var(--emx-muted); }

/* checklist */
.emx-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.7rem; }
.emx-list li {
    position: relative;
    padding-left: 1.85rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--emx-text);
}
.emx-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.08em;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: rgba(201, 164, 56, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A7832A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
    transition: transform 0.4s var(--emx-ease), background-color 0.3s ease;
}
.emx-card:hover .emx-list li::before,
.emx-card.is-match .emx-list li::before { transform: scale(1.12); background-color: rgba(201, 164, 56, 0.3); }

/* actions */
.emx-actions { margin-top: auto; transform: translateZ(26px); }
.emx-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    min-height: 48px;
    padding: 0.8rem 1.4rem;
    border-radius: 14px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    color: var(--emx-ink) !important;
    background: transparent;
    border: 1.5px solid rgba(201, 164, 56, 0.6);
    transition: color 0.35s ease, border-color 0.35s ease, box-shadow 0.4s ease, transform 0.3s var(--emx-ease);
}
.emx-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--emx-gold-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--emx-ease);
}
.emx-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.35s var(--emx-ease); }
.emx-btn { isolation: isolate; }
.emx-btn:hover,
.emx-btn:focus-visible,
.emx-card.is-match .emx-btn { color: #111A2E !important; border-color: transparent; box-shadow: 0 14px 26px -14px rgba(167, 131, 42, 0.95); }
.emx-btn:hover::before,
.emx-btn:focus-visible::before,
.emx-card.is-match .emx-btn::before { transform: scaleX(1); }
.emx-btn:hover svg,
.emx-btn:focus-visible svg { transform: translateX(4px); }
.emx-btn:focus-visible { outline: 2px solid var(--emx-gold); outline-offset: 3px; }
.emx-btn:active { transform: scale(0.98); }

/* ---------- Featured (middle) card: navy with gold light on the border ---------- */
.emx-card--featured {
    --emx-ink: #FFFFFF;
    --emx-text: #CBD5E1;
    --emx-muted: #AAB8CA;
    --emx-gold-deep: #E7CF86;
    border-color: rgba(201, 164, 56, 0.4);
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(201, 164, 56, 0.2), transparent 60%),
        linear-gradient(160deg, #1B2A4A 0%, #111A2E 55%, #0B1222 100%);
    box-shadow: 0 2px 4px rgba(17, 26, 46, 0.1), 0 40px 70px -34px rgba(17, 26, 46, 0.75);
}
html.dark-mode .emx-card--featured {
    background:
        radial-gradient(120% 70% at 50% 0%, rgba(201, 164, 56, 0.22), transparent 60%),
        linear-gradient(160deg, #1A2848 0%, #0E1830 55%, #070D1A 100%);
}
.emx-card--featured .emx-icon { color: #111A2E; background: var(--emx-gold-grad); border-color: rgba(255, 243, 196, 0.6); }
.emx-card--featured .emx-num { opacity: 0.6; }
.emx-card--featured .emx-stat { background: rgba(255, 255, 255, 0.04); border-color: rgba(201, 164, 56, 0.5); }
.emx-card--featured .emx-list li::before { background-color: rgba(201, 164, 56, 0.22); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E7CF86' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.emx-card--featured .emx-glow { background: radial-gradient(360px circle at var(--mx) var(--my), rgba(231, 207, 134, 0.18), transparent 60%); }
.emx-card--featured .emx-btn { color: #111A2E !important; border-color: transparent; box-shadow: 0 14px 26px -14px rgba(167, 131, 42, 0.95); }
.emx-card--featured .emx-btn::before { transform: scaleX(1); }
.emx-card--featured .emx-btn:hover::before { filter: brightness(1.08); }
.emx-ring {
    position: absolute;
    inset: -1px;
    z-index: 5;
    pointer-events: none;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--emx-a), transparent 0deg 230deg, rgba(201, 164, 56, 0.9) 290deg, #FFF3C4 320deg, rgba(201, 164, 56, 0.9) 345deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: emx-spin 6s linear infinite;
}
@keyframes emx-spin { to { --emx-a: 360deg; } }
.emx-flag {
    position: absolute;
    top: -13px;
    left: 50%;
    z-index: 4;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.34rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #111A2E;
    background: var(--emx-gold-grad);
    box-shadow: 0 10px 22px -10px rgba(167, 131, 42, 0.95);
}
.emx-flag .emx-spark { width: 9px; height: 9px; background: #111A2E; }
/* the featured card's own flag takes the top centre, so its "Your match" tag sits lower */
.emx-card--featured .emx-match { top: 1.15rem; right: auto; left: 50%; transform: translate(-50%, 8px) scale(0.85); }
.emx-card--featured.is-match .emx-match { transform: translate(-50%, 0) scale(1); }
.emx-card--featured.is-match .emx-flag { opacity: 0; }

@media (min-width: 992px) {
    .emx-grid { padding-top: 0.6rem; }
    .emx-card--featured { margin: -0.9rem 0; padding-top: 3rem; padding-bottom: 2.8rem; }
}

/* ---------- Scroll reveal (only once JS has armed it) ---------- */
.emx.emx-js .emx-card { opacity: 0; translate: 0 34px; transition: transform 0.5s var(--emx-ease), box-shadow 0.5s var(--emx-ease), border-color 0.35s ease, opacity 0.7s ease, filter 0.45s ease, translate 0.9s var(--emx-ease); }
.emx.emx-js .emx-card.is-tilting { transition: box-shadow 0.5s var(--emx-ease), border-color 0.35s ease, opacity 0.7s ease, filter 0.45s ease, translate 0.9s var(--emx-ease); }
.emx.emx-js.emx-in .emx-card { opacity: 1; translate: 0 0; }
.emx.emx-js.emx-in .emx-card[data-emx="1"] { transition-delay: 0s, 0s, 0s, 0.12s, 0s, 0.12s; }
.emx.emx-js.emx-in .emx-card[data-emx="2"] { transition-delay: 0s, 0s, 0s, 0.24s, 0s, 0.24s; }
.emx.emx-js.emx-in .emx-grid.has-match .emx-card:not(.is-match) { opacity: 0.55; }
.emx.emx-js.emx-in .emx-grid.has-match .emx-card:not(.is-match):hover { opacity: 0.85; }
.emx.emx-js .emx-list li { opacity: 0; translate: -10px 0; transition: opacity 0.5s ease, translate 0.6s var(--emx-ease); }
.emx.emx-js.emx-in .emx-list li { opacity: 1; translate: 0 0; }
.emx.emx-js.emx-in .emx-list li:nth-child(1) { transition-delay: 0.45s; }
.emx.emx-js.emx-in .emx-list li:nth-child(2) { transition-delay: 0.58s; }
.emx.emx-js.emx-in .emx-list li:nth-child(3) { transition-delay: 0.71s; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 991px) {
    .emx-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; gap: 1.9rem; }
    .emx-card { transform: none !important; }
}
@media (max-width: 600px) {
    .emx-finder { margin-bottom: 2.1rem; }
    .emx-chips { flex-direction: column; align-items: stretch; width: 100%; border-radius: 22px; }
    .emx-chip { justify-content: flex-start; text-align: left; }
    .emx-card { padding: 1.8rem 1.3rem 1.5rem; border-radius: 22px; }
    .emx-icon { width: 56px; height: 56px; border-radius: 18px; }
    .emx-icon svg { width: 26px; height: 26px; }
    .emx-num { font-size: 2.2rem; }
    .emx-title { font-size: 1.3rem; }
    .emx-eyebrow { font-size: 0.62rem; letter-spacing: 0.09em; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .emx-orb, .emx-spark, .emx-ring, .emx-card::after,
    .emx-card:hover .emx-icon::after, .emx-card.is-match .emx-icon::after { animation: none !important; }
    .emx-ring { opacity: 0.6; }
    .emx-card { transform: none !important; }
    .emx.emx-js .emx-card, .emx.emx-js .emx-list li { opacity: 1; translate: none; }
}

/* ---------- Dark mode colour restore ----------
   style.css forces every span/strong in dark mode to grey with !important
   (selector weight 0,5,2). These give the showcase's own badges, icons and labels
   their colours back. ":not(#emx-x)" only adds selector weight; it matches everything. */
html.dark-mode .emx .emx-eyebrow:not(#emx-x) { color: #E7CF86 !important; }
html.dark-mode .emx .emx-finder-label:not(#emx-x) { color: var(--emx-muted) !important; }
html.dark-mode .emx .emx-icon:not(#emx-x) { color: var(--emx-gold-hi) !important; }
html.dark-mode .emx .emx-card--featured .emx-icon:not(#emx-x),
html.dark-mode .emx .emx-flag:not(#emx-x),
html.dark-mode .emx .emx-match:not(#emx-x) { color: #111A2E !important; }
html.dark-mode .emx .emx-num:not(#emx-x) { color: transparent !important; }
html.dark-mode .emx .emx-best:not(#emx-x) { color: var(--emx-gold-deep) !important; }
html.dark-mode .emx .emx-stat span:not(#emx-x) { color: var(--emx-muted) !important; }

/* Scroll performance: the orbs are soft radial gradients already; drop the costly live blur. */
.emx-orb { filter: none !important; }