/* daopause1 (Mortimer, 20-10-2026): the home's "XElementia TRIBES" section, in place of the Sub-DAOs while they are paused.
   One card per tribe (site_data.XE_TRIBES), in the tribe's own colour (--tc), to its XElementia home in a new tab.
   Every motion stops under prefers-reduced-motion. */
.xt-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.xt-card { --tc: #00ddeb; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
    flex: 0 0 calc((100% - 64px) / 5); min-width: 0; border-radius: 20px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 14%, #0d0620) 0%, #0b0518 62%);
    border: 1px solid color-mix(in srgb, var(--tc) 34%, transparent);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s, border-color 0.35s; }
.xt-card:hover, .xt-card:focus-visible { transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--tc) 75%, transparent);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.5), 0 0 34px color-mix(in srgb, var(--tc) 32%, transparent); }
.xt-card:focus-visible { outline: 2px solid var(--tc); outline-offset: 3px; }

.xt-banner { position: relative; display: block; height: 92px; overflow: hidden; }
.xt-banner img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.5s;
    filter: saturate(1.15); }
.xt-banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, #0f0722 100%); }
.xt-card:hover .xt-banner img { transform: scale(1.14); filter: saturate(1.35) brightness(1.1); }

/* a soft light in the tribe's colour behind the emblem, and a sheen that sweeps the card on hover */
.xt-glow { position: absolute; left: 50%; top: 58px; width: 180px; height: 180px; z-index: -1; transform: translateX(-50%);
    background: radial-gradient(circle, color-mix(in srgb, var(--tc) 38%, transparent) 0%, transparent 65%); filter: blur(6px);
    opacity: 0.75; transition: opacity 0.4s; pointer-events: none; }
.xt-card:hover .xt-glow { opacity: 1; }
.xt-card::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; transform: translateX(-120%);
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.10) 50%, transparent 65%); }
.xt-card:hover::after { transform: translateX(120%); transition: transform 0.9s ease; }

.xt-emblem { display: block; width: 104px; height: 104px; margin: -60px auto 0; position: relative; z-index: 1;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 14px color-mix(in srgb, var(--tc) 45%, transparent));
    animation: xt-float 5s ease-in-out infinite; }
.xt-card:nth-child(2) .xt-emblem { animation-delay: -1s; } .xt-card:nth-child(3) .xt-emblem { animation-delay: -2s; }
.xt-card:nth-child(4) .xt-emblem { animation-delay: -3s; } .xt-card:nth-child(5) .xt-emblem { animation-delay: -4s; }
.xt-emblem img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.xt-card:hover .xt-emblem img { transform: scale(1.08) rotate(-3deg); }
@keyframes xt-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.xt-body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 8px 18px 18px; text-align: center; }
.xt-name { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 1.28rem; letter-spacing: 0.06em; text-transform: uppercase; }
.xt-name b { color: var(--tc); font-weight: 800; text-shadow: 0 0 18px color-mix(in srgb, var(--tc) 45%, transparent); }
.xt-name small { font-size: 0.75rem; font-weight: 700; color: var(--muted); letter-spacing: 0.14em; }
.xt-icon { width: 28px; height: 28px; object-fit: contain; }
.xt-motto { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); opacity: 0.9; }
.xt-text { flex: 1; font-size: 0.88rem; line-height: 1.5; color: var(--muted); }
.xt-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 9px 14px; border-radius: 999px;
    font-size: 0.82rem; font-weight: 700; color: #fff; background: color-mix(in srgb, var(--tc) 20%, rgba(255, 255, 255, 0.03));
    border: 1px solid color-mix(in srgb, var(--tc) 55%, transparent); transition: background 0.3s, box-shadow 0.3s; }
.xt-go span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xt-go i { font-style: normal; transition: transform 0.3s; }
.xt-card:hover .xt-go { background: color-mix(in srgb, var(--tc) 42%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--tc) 40%, transparent); }
.xt-card:hover .xt-go i { transform: translate(3px, -3px); }

/* homejump1 for the tribes: the hero stat "5 XElementia TRIBES" glides here and lights the cards up (hero-card.js) */
#tribes { scroll-margin-top: 0; }
#tribes.is-arrived .section-head h2 { animation: xt-glow-in 2.2s ease-out; }
#tribes.is-arrived .xt-card { animation: xt-pop 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
#tribes.is-arrived .xt-card:nth-child(2) { animation-delay: 0.07s; } #tribes.is-arrived .xt-card:nth-child(3) { animation-delay: 0.14s; }
#tribes.is-arrived .xt-card:nth-child(4) { animation-delay: 0.21s; } #tribes.is-arrived .xt-card:nth-child(5) { animation-delay: 0.28s; }
@keyframes xt-pop { 0% { transform: scale(0.94); box-shadow: 0 0 0 rgba(0, 0, 0, 0); }
    55% { transform: scale(1.03); box-shadow: 0 0 0 2px var(--tc), 0 0 40px color-mix(in srgb, var(--tc) 50%, transparent); }
    100% { transform: none; } }
@keyframes xt-glow-in { 0%, 100% { text-shadow: none; } 35% { text-shadow: 0 0 24px rgba(0, 221, 235, 0.65); } }

/* daopause1b (Mortimer, 20-10-2026: «que ese circulo tuviera dentro como el logo de xelementia y los colores de alrededor
   fueran los colores que tenemos en las 5 tribus … hazlo muy especial»): the hero stat's bubble for the tribes. A dark orb with
   the XElementia logo, a spinning ring in the five tribe colours with its blurred aura, five element sparks in orbit and a
   small arrow that keeps saying "down here". On hover: the ring speeds up, the sparks fly out, the logo pops, the arrow drops. */
.stat--xe { padding-right: 112px; }
.stat--xe::before { background: radial-gradient(120% 140% at 100% 50%, rgba(147,112,219,0.18), rgba(79,125,255,0.10) 40%, rgba(255,99,71,0.06) 60%, transparent 75%); }
.stat--xe:hover > span:not(.stat-jump), .stat--xe:focus-visible > span:not(.stat-jump) { color: #c4b5fd; }
.stat--xe:focus-visible { outline-color: #9370db; }
.stat-jump.xj { --xj: 64px; right: 26px; width: var(--xj); height: var(--xj); margin-top: calc(var(--xj) / -2); overflow: visible;
    background: radial-gradient(circle at 50% 38%, #2a1458 0%, #12062b 55%, #05010d 100%);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55), 0 0 22px rgba(147, 112, 219, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.18), inset 0 -6px 12px rgba(0, 0, 0, 0.6); }
.stat-jump.xj::before { inset: -4px; padding: 3px; opacity: 1; animation-duration: 5s;
    background: conic-gradient(from 0deg, #9370db, #87ceeb, #3cb043, #ff6347, #4f7dff, #9370db); }
.stat-jump.xj::after { border-color: rgba(196, 181, 253, 0.8); }
.xj-aura { position: absolute; inset: -10px; border-radius: 50%; z-index: -1; pointer-events: none; filter: blur(10px); opacity: 0.65;
    background: conic-gradient(from 180deg, #9370db, #87ceeb, #3cb043, #ff6347, #4f7dff, #9370db); animation: hj-spin 7s linear infinite reverse; }
.xj-core { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.xj-core::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 62%); transform: translateX(-120%); animation: xj-shine 4.5s ease-in-out infinite; }
.xj-core img { width: 92%; height: auto; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 6px rgba(147, 112, 219, 0.5));
    animation: xj-breathe 3.2s ease-in-out infinite; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.xj-orbit { position: absolute; inset: -11px; z-index: 2; pointer-events: none; animation: hj-spin 9s linear infinite; }
.xj-orbit i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--tc);
    box-shadow: 0 0 6px var(--tc), 0 0 12px var(--tc); transform: rotate(calc(var(--n) * 72deg)) translateY(calc(var(--xj) / -2 - 11px));
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.xj-arrow { position: absolute; z-index: 3; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
    color: #12062b; background: radial-gradient(circle at 35% 30%, #ffffff, #c4b5fd 60%, #8b5cf6); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5), 0 0 10px rgba(196, 181, 253, 0.6); }
.stat--xe:hover .stat-jump.xj, .stat--xe:focus-visible .stat-jump.xj { transform: scale(1.1);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), 0 0 34px rgba(147, 112, 219, 0.65), 0 0 60px rgba(79, 125, 255, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.22), inset 0 -6px 12px rgba(0, 0, 0, 0.6); }
.stat--xe:hover .stat-jump.xj::before, .stat--xe:focus-visible .stat-jump.xj::before { animation-duration: 1.4s; }
.stat--xe:hover .xj-aura, .stat--xe:focus-visible .xj-aura { opacity: 1; animation-duration: 2.2s; }
.stat--xe:hover .xj-orbit, .stat--xe:focus-visible .xj-orbit { animation-duration: 2.4s; }
.stat--xe:hover .xj-orbit i, .stat--xe:focus-visible .xj-orbit i { transform: rotate(calc(var(--n) * 72deg)) translateY(calc(var(--xj) / -2 - 15px)) scale(1.3); }
.stat--xe:hover .xj-core img, .stat--xe:focus-visible .xj-core img { transform: scale(1.12) rotate(-4deg); }
@keyframes xj-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes xj-shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@media (max-width: 600px) {
    .stat--xe { padding-right: 70px; }
    .stat-jump.xj { --xj: 44px; right: 16px; }
    .xj-arrow { width: 18px; height: 18px; right: -5px; bottom: -5px; }
    .xj-arrow svg { width: 10px; height: 10px; }
    .xj-orbit i { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; }
}

@media (max-width: 1100px) {
    .xt-card { flex-basis: calc((100% - 32px) / 3); }   /* 3 + 2, the second row centred */
}
@media (max-width: 760px) {
    #tribes { scroll-margin-top: 16px; }
    .xt-card { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 520px) {
    .xt-grid { gap: 14px; }
    .xt-card { flex-basis: 100%; }   /* on a phone: one card per row, the same look */
    .xt-banner { height: 84px; }
    .xt-text { font-size: 0.9rem; }
    .xt-go { align-self: center; padding: 9px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .xj-aura, .xj-orbit, .xj-core::after, .xj-core img { animation: none; }
    .xj-core::after { display: none; }
    .xt-card, .xt-banner img, .xt-emblem img, .xt-go, .xt-go i { transition: none; }
    .xt-emblem, #tribes.is-arrived .xt-card, #tribes.is-arrived .section-head h2 { animation: none; }
    .xt-card:hover, .xt-card:focus-visible { transform: none; }
    .xt-card:hover::after { transform: translateX(-120%); transition: none; }
}
