/* Animus prize display on the Shadowblade home (PREVIEW). The museum inside
   is untouched; this block only links into it (#ac-museum, data-ac-intro). */
.animus-show { padding: 1.4rem 0 1.2rem; }
.anx {
  --cy: #7fe9ff; --ice: #e8fbff;
  position: relative; display: block; overflow: hidden; isolation: isolate;
  width: min(1240px, calc(100% - 1.6rem)); margin-inline: auto;
  height: min(86svh, 760px); min-height: 560px;
  color: var(--ice); text-decoration: none;
  border: 1px solid rgba(127, 233, 255, .5);
  background: #02080c;
  box-shadow: 0 0 0 1px #000, 0 40px 120px -30px rgba(0, 0, 0, .95), 0 0 60px rgba(127, 233, 255, .22), 0 0 140px rgba(255, 90, 20, .18);
  clip-path: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px);
  transform: translateZ(0);
}
.anx:hover, .anx:focus-visible { color: #fff; outline: none; }
.anx:focus-visible { box-shadow: 0 0 0 3px var(--cy), 0 0 80px rgba(127, 233, 255, .5); }
@media (min-width: 900px) { .anx { height: min(78vh, 720px); } }
@media (max-width: 700px) { .anx { width: calc(100% - 0.7rem - 58px); margin-left: .55rem; margin-right: 58px; min-height: 600px; height: 82svh; } }

/* painted era slides with a slow camera push and crossfade */
.anx-slides, .anx-slide { position: absolute; inset: 0; }
.anx-slide {
  background: var(--img) center / cover no-repeat; opacity: 0;
  transform: scale(1.18); transition: opacity 1.6s ease, transform 7.5s linear;
  filter: saturate(1.1) contrast(1.05);
}
.anx-slide.is-on { opacity: 1; transform: scale(1.04); }
.anx-slides::after { /* grade: cyan Animus cast at top, ember at the floor, heavy vignette */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 18, 26, .55) 0%, rgba(2, 10, 16, .05) 35%, rgba(2, 6, 10, .55) 70%, rgba(2, 4, 6, .95) 100%),
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(0, 0, 0, .7) 100%),
    linear-gradient(90deg, rgba(127, 233, 255, .14), transparent 30%, transparent 70%, rgba(255, 106, 28, .14));
}
.anx-hex {
  position: absolute; inset: 0; opacity: .16; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 1 55 16.5v31L28 63 1 47.5v-31z M28 63v34' fill='none' stroke='%237fe9ff' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 55%, transparent 25%, #000 85%); mask-image: radial-gradient(ellipse at 50% 55%, transparent 25%, #000 85%);
}
.anx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.anx-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 30%; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(127, 233, 255, .1) 80%, rgba(200, 250, 255, .55) 99%, transparent);
  transform: translate3d(0, -100%, 0); animation: anxScan 5.5s cubic-bezier(.6, 0, .3, 1) infinite; animation-play-state: var(--fx-play);
}
@keyframes anxScan { 0% { transform: translate3d(0, -100%, 0); } 70%, 100% { transform: translate3d(0, 400%, 0); } }

/* rotating sync rings + crest */
.anx-rings { position: absolute; left: 50%; top: 38%; width: min(64vw, 420px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.anx-rings svg { width: 100%; height: 100%; overflow: visible; }
.anx-rings circle, .anx-rings .crest { will-change: transform; }
.anx-rings circle { fill: none; stroke: var(--cy); transform-origin: 100px 100px; animation-play-state: var(--fx-play); }
.anx-rings .r1 { stroke-width: .6; stroke-dasharray: 2 6; opacity: .7; animation: anxRot 40s linear infinite; }
.anx-rings .r2 { stroke-width: 1.4; stroke-dasharray: 120 40 20 40; opacity: .55; animation: anxRot 18s linear infinite reverse; }
.anx-rings .r3 { stroke-width: .8; stroke-dasharray: 3 3; opacity: .4; animation: anxRot 26s linear infinite; }
.anx-rings .crest { fill: rgba(232, 251, 255, .14); stroke: var(--cy); stroke-width: .8; transform-origin: 100px 100px; animation: anxCrest 4s ease-in-out infinite; animation-play-state: var(--fx-play); }
@keyframes anxRot { to { transform: rotate(360deg); } }
@keyframes anxCrest { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); fill: rgba(232, 251, 255, .26); } }

.anx-hud { position: absolute; top: 16px; z-index: 3; font: 600 .66rem/1 "Chakra Petch", "Rajdhani", sans-serif; letter-spacing: .26em; text-transform: uppercase; color: rgba(232, 251, 255, .8); display: flex; align-items: center; gap: .55em; }
.anx-hud-tl { left: 36px; } .anx-hud-tr { right: 20px; }
.anx-hud b { color: var(--cy); font-weight: 700; }
.anx-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cy); box-shadow: 0 0 10px var(--cy); animation: aeBlink 1.4s steps(2) infinite; }
.anx-sync { color: var(--cy); }
@media (max-width: 520px) { .anx-hud-tr { display: none; } .anx-hud-tl { left: 30px; font-size: .58rem; } }

/* copy block */
.anx-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 0 1.4rem 2.1rem; text-align: center; }
.anx-kicker { display: inline-block; margin: 0 0 1rem; padding: .45em .9em .4em 1.4em; background: rgba(2, 8, 12, .72); border: 1px solid rgba(255, 176, 101, .45); font: 600 .74rem/1 "Chakra Petch", sans-serif; letter-spacing: .5em; text-transform: uppercase; color: #ffb065; text-shadow: 0 0 10px rgba(255, 106, 28, .8); }
.anx-title { margin: 0; line-height: .92; text-align: center; animation: none !important; text-shadow: none !important; }
.anx-t1 {
  display: block; font-family: "Cinzel", serif; font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 15vw, 8.4rem); letter-spacing: .06em;
  background: linear-gradient(100deg, #9fdcea 0%, #ffffff 40%, #e8fbff 48%, #7fe9ff 60%, #c9f6ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(127, 233, 255, .5)) drop-shadow(0 5px 0 rgba(0, 0, 0, .6));
  position: relative;
}
.anx-t1::before, .anx-t1::after { /* chromatic glitch slices */
  content: "The Animus"; position: absolute; inset: 0; -webkit-background-clip: text; background-clip: text; color: transparent; pointer-events: none;
}
.anx-t1::before { background-image: linear-gradient(#ff5a2a, #ff5a2a); clip-path: inset(0 0 100% 0); animation: anxGlitchA 6s steps(1) infinite; animation-play-state: var(--fx-play); }
.anx-t1::after { background-image: linear-gradient(#7fe9ff, #7fe9ff); clip-path: inset(0 0 100% 0); animation: anxGlitchB 6s steps(1) infinite; animation-play-state: var(--fx-play); }
@keyframes anxSheen { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes anxGlitchA { 0%, 91%, 100% { clip-path: inset(0 0 100% 0); transform: none; } 92% { clip-path: inset(20% 0 55% 0); transform: translateX(-6px); } 94% { clip-path: inset(62% 0 12% 0); transform: translateX(5px); } 96% { clip-path: inset(40% 0 40% 0); transform: translateX(-3px); } }
@keyframes anxGlitchB { 0%, 91%, 100% { clip-path: inset(0 0 100% 0); transform: none; } 92.5% { clip-path: inset(55% 0 20% 0); transform: translateX(6px); } 94.5% { clip-path: inset(10% 0 70% 0); transform: translateX(-5px); } }
.anx-t2 { display: block; margin-top: .55rem; font: 700 clamp(.9rem, 3.6vw, 1.35rem)/1.1 "Chakra Petch", sans-serif; letter-spacing: .42em; text-transform: uppercase; color: var(--ice); text-shadow: 0 0 12px rgba(127, 233, 255, .7); }
.anx-era { margin: .9rem 0 .5rem; font: 600 .82rem/1 "Chakra Petch", sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--cy); display: flex; justify-content: center; gap: .8em; min-height: 1em; }
.anx-era > span { display: inline-block; transition: opacity .35s, transform .5s cubic-bezier(.16, 1, .3, 1), filter .35s; }
.anx-era.is-swap > span { opacity: 0; transform: translateY(-.6em); filter: blur(4px); }
.anx-era-sep { color: #ffb065; }
.anx-lede { max-width: 34rem; margin: 0 auto 1.2rem; font-family: "Spectral", Georgia, serif; font-size: 1.04rem; line-height: 1.55; color: rgba(232, 251, 255, .9); text-shadow: 0 2px 10px #000; }
.anx-cta {
  position: relative; display: inline-flex; align-items: center; gap: .9rem; overflow: hidden;
  padding: 1.05rem 2rem 1.05rem 2.2rem; font: 700 1rem/1 "Chakra Petch", sans-serif; letter-spacing: .34em; text-transform: uppercase;
  color: #031016; background: linear-gradient(180deg, #c9f7ff, #7fe9ff 55%, #3fbcd6);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  box-shadow: 0 0 30px rgba(127, 233, 255, .7);
}
.anx-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .85) 50%, transparent 70%); transform: translate3d(-120%, 0, 0); animation: aeBtnSweep 3s ease-in-out infinite 1s; animation-play-state: var(--fx-play); }
.anx-cta-glyph { font-size: .8rem; transition: transform .3s; }
.anx:hover .anx-cta-glyph { transform: translateX(5px); }
.anx:hover .anx-slide.is-on { filter: saturate(1.25) contrast(1.1) brightness(1.08); }
@keyframes anxPulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
@media (max-width: 520px) { .anx-cta { padding: .95rem 1.4rem; letter-spacing: .24em; font-size: .9rem; } .anx-lede { font-size: .98rem; } .anx-copy { padding-bottom: 1.6rem; } }

/* cinematic letterbox that opens when the display scrolls in */
.anx-bars i { position: absolute; left: 0; right: 0; height: 50%; background: #000; z-index: 6; transition: transform 1.2s cubic-bezier(.7, 0, .2, 1); }
.anx-bars i:first-child { top: 0; } .anx-bars i:last-child { bottom: 0; }
.anx.is-in .anx-bars i:first-child { transform: translateY(-100%); }
.anx.is-in .anx-bars i:last-child { transform: translateY(100%); }
.anx .anx-copy > * { opacity: 0; transform: translate3d(0, 26px, 0); transition: opacity .8s ease, transform 1s cubic-bezier(.16, 1, .3, 1); }
.anx.is-in .anx-copy > * { opacity: 1; transform: none; }
.anx.is-in .anx-kicker { transition-delay: .7s; } .anx.is-in .anx-title { transition-delay: .85s; }
.anx.is-in .anx-era { transition-delay: 1s; } .anx.is-in .anx-lede { transition-delay: 1.1s; } .anx.is-in .anx-cta { transition-delay: 1.25s; }
.anx .anx-title .anx-t1 { letter-spacing: .5em; transition: letter-spacing 1.6s cubic-bezier(.16, 1, .3, 1) .8s; }
.anx.is-in .anx-title .anx-t1 { letter-spacing: .06em; }
@media (max-width: 520px) { .anx.is-in .anx-title .anx-t1 { letter-spacing: .02em; } }
/* tap: everything flares cyan before the museum intro takes over */
.anx.is-tap .anx-slides { animation: anxTap .5s ease-out both; }
@keyframes anxTap { 0% { filter: brightness(1); } 30% { filter: brightness(2.6) saturate(0) hue-rotate(160deg); } 100% { filter: brightness(1); } }

/* social gather strip */
.gather-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .4rem; }
@media (min-width: 800px) { .gather-grid { grid-template-columns: repeat(4, 1fr); } }
.gather-tile {
  position: relative; overflow: hidden; display: grid; gap: .3rem; align-content: start; min-height: 128px;
  padding: .9rem .9rem 1rem; text-decoration: none; color: var(--bone);
  background: linear-gradient(160deg, rgba(255, 106, 28, .14), rgba(10, 2, 0, .7) 55%);
  border: 1px solid rgba(255, 120, 40, .32);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .3s, box-shadow .3s;
}
.gather-tile:hover, .gather-tile:focus-visible { transform: translateY(-3px); border-color: #ffb065; box-shadow: 0 0 24px rgba(255, 106, 28, .35); color: #fff; }
.gather-tile::after { content: ""; position: absolute; inset: -40% -60%; background: linear-gradient(105deg, transparent 44%, rgba(255, 230, 190, .35) 50%, transparent 56%); transform: translate3d(-60%, 0, 0); transition: transform .9s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.gather-tile:hover::after { transform: translate3d(60%, 0, 0); }
.gt-kick { font: 600 .62rem/1 "Chakra Petch", sans-serif; letter-spacing: .28em; text-transform: uppercase; color: #ffb065; }
.gather-tile strong { font: 800 1.02rem/1.2 "Cinzel", serif; letter-spacing: .04em; color: #ffe3b8; }
.gt-sub { font: 400 .9rem/1.4 "Spectral", Georgia, serif; color: #cdb9a0; }
.gt-news strong { font-family: "Spectral", Georgia, serif; font-weight: 600; font-size: .98rem; letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .anx-bars { display: none; }
  .anx .anx-copy > * { opacity: 1; transform: none; }
  .anx-slide { transition: opacity .01ms; }
}

/* pause every loop while the display is off screen */
.anx:not(.is-vis) *, .anx:not(.is-vis) *::before, .anx:not(.is-vis) *::after { animation-play-state: paused !important; }
