:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255,255,255,.48);
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: var(--bg);
}

html { overflow: hidden; }

body {
  overflow: hidden;
  overscroll-behavior: none;
  color: var(--fg);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.frame {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding:
    max(22px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
  background:
    radial-gradient(circle at 50% 46%, rgba(255,255,255,.029), transparent 25%),
    radial-gradient(circle at 50% 50%, transparent 0 53%, rgba(255,255,255,.011) 53.2% 53.45%, transparent 53.7%),
    #000;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.frame::before {
  inset: 12px;
  z-index: 8;
  border: 1px solid rgba(255,255,255,.05);
}

.frame::after {
  inset: 0;
  z-index: 9;
  opacity: .2;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255,255,255,.018) 4px
  );
  mix-blend-mode: screen;
}

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

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: -12vh;
  height: 12vh;
  opacity: .34;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255,255,255,.012) 35%,
    rgba(255,255,255,.085) 50%,
    rgba(255,255,255,.015) 58%,
    transparent 100%
  );
  filter: blur(.2px);
  animation: scan 8.5s linear infinite;
}

.trace {
  position: absolute;
  width: 1px;
  height: 22vh;
  min-height: 120px;
  max-height: 260px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.19), transparent);
  opacity: .5;
}

.trace--one {
  left: 18%;
  top: 13%;
  animation: traceDrift 10s ease-in-out infinite;
}

.trace--two {
  right: 17%;
  bottom: 12%;
  animation: traceDrift 12s 1.7s ease-in-out infinite reverse;
}

.noise-band {
  position: absolute;
  left: -5%;
  width: 110%;
  height: 1px;
  opacity: 0;
  background: rgba(255,255,255,.26);
  box-shadow: 0 0 10px rgba(255,255,255,.14);
  animation: noiseBand 9.4s steps(1, end) infinite;
}

.noise-band--one { top: 31%; }
.noise-band--two { top: 68%; animation-delay: 4.1s; }

.glyph {
  position: absolute;
  color: rgba(255,255,255,.16);
  font-size: clamp(6px, .48vw, 8px);
  line-height: 1;
  letter-spacing: .24em;
  white-space: nowrap;
  text-transform: uppercase;
}

.glyph--one {
  left: 5.3%;
  top: 27%;
  writing-mode: vertical-rl;
  animation: glyphFloat 11s ease-in-out infinite;
}

.glyph--two {
  right: 5.6%;
  top: 35%;
  writing-mode: vertical-rl;
  animation: glyphFloat 13s 2s ease-in-out infinite reverse;
}

.glyph--three {
  left: 7.5%;
  bottom: 18%;
  animation: flicker 7s steps(1, end) infinite;
}

.glyph--four {
  right: 7.5%;
  top: 18%;
  animation: flicker 9s 1.2s steps(1, end) infinite reverse;
}

.data-stream {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.07);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(6px, .45vw, 8px);
  line-height: 1.85;
  letter-spacing: .12em;
  animation: streamPulse 8s steps(1, end) infinite;
}

.data-stream--left { left: 2.2%; }
.data-stream--right { right: 2.2%; text-align: right; animation-delay: 2.7s; }

.reticle {
  position: absolute;
  width: 34px;
  height: 34px;
  opacity: .18;
  animation: reticlePulse 4.8s ease-in-out infinite;
}

.reticle::before,
.reticle::after {
  content: "";
  position: absolute;
  background: currentColor;
  color: #fff;
}

.reticle::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
}

.reticle::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
}

.reticle--left { left: 10%; top: 54%; }
.reticle--right { right: 11%; top: 39%; animation-delay: 1.4s; }

.signal {
  position: absolute;
  z-index: 5;
  left: max(25px, env(safe-area-inset-left));
  right: max(25px, env(safe-area-inset-right));
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  color: rgba(255,255,255,.26);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(7px, .52vw, 9px);
  letter-spacing: .18em;
  line-height: 1;
  text-transform: uppercase;
}

.signal--top { top: max(24px, calc(env(safe-area-inset-top) + 8px)); }
.signal--bottom { bottom: max(24px, calc(env(safe-area-inset-bottom) + 8px)); }

.signal-code { animation: signalBlink 6.2s steps(1, end) infinite; }

.identity {
  position: relative;
  z-index: 3;
  width: min(42vw, 430px);
  display: grid;
  justify-items: center;
  gap: clamp(11px, 1.55vh, 18px);
  transform: translateY(-4.5vh);
  animation: reveal 1s cubic-bezier(.22,.61,.36,1) both;
}

.logo-stage {
  position: relative;
  width: 100%;
  isolation: isolate;
  contain: layout paint;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 47vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.logo--base {
  position: relative;
  z-index: 2;
  animation: logoBreath 8s ease-in-out infinite;
}

.logo--ghost {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.logo--ghost-a {
  clip-path: inset(18% 0 64% 0);
  animation: glitchA 8.8s steps(1, end) infinite;
}

.logo--ghost-b {
  clip-path: inset(61% 0 20% 0);
  animation: glitchB 11.4s 1.3s steps(1, end) infinite;
}

.orbit {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255,255,255,.045);
  border-radius: 50%;
  pointer-events: none;
}

.orbit--outer {
  width: 112%;
  aspect-ratio: 1 / .72;
  transform: translate(-50%, -51%);
  border-left-color: rgba(255,255,255,.14);
  border-right-color: rgba(255,255,255,.015);
  animation: orbitOuter 18s linear infinite;
}

.orbit--inner {
  width: 92%;
  aspect-ratio: 1 / .72;
  transform: translate(-50%, -51%);
  border-top-color: rgba(255,255,255,.11);
  border-bottom-color: rgba(255,255,255,.015);
  animation: orbitInner 13s linear infinite reverse;
}

.corner {
  position: absolute;
  z-index: 5;
  width: 17px;
  height: 17px;
  opacity: .18;
  pointer-events: none;
}

.corner::before,
.corner::after {
  content: "";
  position: absolute;
  background: #fff;
}

.corner::before { width: 100%; height: 1px; }
.corner::after { width: 1px; height: 100%; }
.corner--tl { top: 12%; left: -6%; }
.corner--tr { top: 12%; right: -6%; transform: rotate(90deg); }
.corner--bl { bottom: 12%; left: -6%; transform: rotate(-90deg); }
.corner--br { bottom: 12%; right: -6%; transform: rotate(180deg); }

.target {
  position: absolute;
  z-index: 4;
  width: 7px;
  height: 7px;
  opacity: .3;
}

.target::before,
.target::after {
  content: "";
  position: absolute;
  background: #fff;
}

.target::before { width: 7px; height: 1px; top: 3px; left: 0; }
.target::after { width: 1px; height: 7px; left: 3px; top: 0; }

.target--a { top: 10%; left: -7%; animation: targetWanderA 9s ease-in-out infinite; }
.target--b { right: -6%; bottom: 15%; animation: targetWanderB 12s ease-in-out infinite; }

.cipher-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  gap: .9em;
  color: rgba(255,255,255,.28);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(6px, .51vw, 8.5px);
  white-space: nowrap;
}

.cipher {
  margin: 0;
  color: var(--muted);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: clamp(.14em, .44vw, .39em);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.cipher-prefix,
.cipher-suffix { opacity: .42; }

.cursor {
  display: inline-block;
  margin-left: .45em;
  opacity: .75;
  animation: cursor 1.08s steps(1, end) infinite;
}

.contact-panel {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: max(58px, calc(env(safe-area-inset-bottom) + 42px));
  transform: translateX(-50%);
  width: min(700px, calc(100vw - 64px));
  padding: 12px 18px 13px;
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.035) 18%, rgba(255,255,255,.035) 82%, transparent);
  animation: reveal 1.2s .12s cubic-bezier(.22,.61,.36,1) both;
}

.contact-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 9px;
  color: rgba(255,255,255,.42);
  font-family: "Courier New", Courier, monospace;
  font-size: 7.5px;
  line-height: 1;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.status-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 7px rgba(255,255,255,.5);
  animation: statusBlink 2.3s steps(1,end) infinite;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: rgba(255,255,255,.94);
  line-height: 1;
  white-space: nowrap;
}

.contact-link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  min-height: 34px;
  padding: 6px 3px;
  transition: color .2s ease, text-shadow .2s ease;
}

.contact-label {
  color: rgba(255,255,255,.48);
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(8px, .56vw, 9.5px);
  font-weight: 400;
  letter-spacing: .16em;
}

.contact-link strong {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(13px, .96vw, 15px);
  font-weight: 500;
  letter-spacing: .065em;
}

.contact-link::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 100%;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transition: right .24s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: #fff;
  text-shadow: 0 0 12px rgba(255,255,255,.22);
}

.contact-link:hover::after,
.contact-link:focus-visible::after { right: 3px; }

.contact-link:focus-visible {
  outline: 1px solid rgba(255,255,255,.45);
  outline-offset: 5px;
}

.divider {
  color: rgba(255,255,255,.16);
  font-family: "Courier New", Courier, monospace;
  font-size: 8px;
}

@keyframes reveal {
  from { opacity: 0; filter: blur(7px); }
  to { opacity: 1; filter: blur(0); }
}

@keyframes scan {
  0% { transform: translateY(-16vh); opacity: 0; }
  7% { opacity: .28; }
  86% { opacity: .28; }
  100% { transform: translateY(126vh); opacity: 0; }
}

@keyframes traceDrift {
  0%, 100% { transform: translateY(-10px); opacity: .18; }
  50% { transform: translateY(26px); opacity: .5; }
}

@keyframes glyphFloat {
  0%, 100% { transform: translateY(-5px); opacity: .09; }
  50% { transform: translateY(11px); opacity: .22; }
}

@keyframes flicker {
  0%, 7%, 9%, 25%, 27%, 64%, 66%, 100% { opacity: .14; }
  8%, 26%, 65% { opacity: .38; }
  43% { opacity: .055; }
}

@keyframes streamPulse {
  0%, 61%, 64%, 100% { opacity: .72; }
  62% { opacity: .2; }
  63% { opacity: 1; }
}

@keyframes reticlePulse {
  0%, 100% { transform: scale(.8) rotate(0deg); opacity: .08; }
  50% { transform: scale(1.05) rotate(90deg); opacity: .22; }
}

@keyframes signalBlink {
  0%, 68%, 74%, 100% { opacity: 1; }
  69%, 72% { opacity: .1; }
}

@keyframes statusBlink {
  0%, 72%, 100% { opacity: .95; }
  73%, 79% { opacity: .14; }
}

@keyframes logoBreath {
  0%, 100% { opacity: .96; filter: brightness(.98); }
  50% { opacity: 1; filter: brightness(1.04); }
}

@keyframes orbitOuter {
  from { transform: translate(-50%, -51%) rotate(0deg); }
  to { transform: translate(-50%, -51%) rotate(360deg); }
}

@keyframes orbitInner {
  from { transform: translate(-50%, -51%) rotate(0deg); }
  to { transform: translate(-50%, -51%) rotate(360deg); }
}

@keyframes noiseBand {
  0%, 27%, 29%, 63%, 65%, 100% { opacity: 0; transform: translateY(0); }
  28% { opacity: .35; transform: translateY(4px); }
  64% { opacity: .18; transform: translateY(-3px); }
}

@keyframes glitchA {
  0%, 76%, 79%, 100% { opacity: 0; transform: translate(0); }
  77% { opacity: .44; transform: translate(-5px, 0); }
  77.4% { opacity: .18; transform: translate(4px, 0); }
  78% { opacity: 0; transform: translate(0); }
}

@keyframes glitchB {
  0%, 83%, 86%, 100% { opacity: 0; transform: translate(0); }
  84% { opacity: .35; transform: translate(6px, -1px); }
  84.6% { opacity: .14; transform: translate(-3px, 1px); }
  85.2% { opacity: 0; transform: translate(0); }
}

@keyframes targetWanderA {
  0%, 100% { transform: translate(0, 0); opacity: .15; }
  45% { transform: translate(8px, 10px); opacity: .36; }
  70% { transform: translate(-2px, 18px); opacity: .2; }
}

@keyframes targetWanderB {
  0%, 100% { transform: translate(0, 0); opacity: .12; }
  40% { transform: translate(-12px, -8px); opacity: .32; }
  72% { transform: translate(-5px, 6px); opacity: .18; }
}

@keyframes cursor {
  0%, 46% { opacity: .8; }
  47%, 100% { opacity: 0; }
}

@media (max-width: 720px) {
  .frame::before { inset: 8px; }

  .identity {
    width: min(62vw, 360px);
    gap: 10px;
    transform: translateY(-8.2vh);
  }

  .logo { max-height: 40vh; }
  .orbit--outer { width: 118%; }
  .orbit--inner { width: 96%; }

  .cipher-wrap { font-size: 5.7px; gap: .55em; }
  .cipher { letter-spacing: .19em; }

  .contact-panel {
    bottom: max(48px, calc(env(safe-area-inset-bottom) + 34px));
    width: min(430px, calc(100vw - 38px));
    padding: 10px 10px 11px;
  }

  .contact {
    gap: 11px;
  }

  .contact-link { gap: 6px; }
  .contact-link strong { font-size: 12px; letter-spacing: .03em; }
  .contact-label { font-size: 7.5px; letter-spacing: .12em; }

  .signal {
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    font-size: 5.9px;
    letter-spacing: .11em;
  }

  .signal--top { top: max(16px, calc(env(safe-area-inset-top) + 7px)); }
  .signal--bottom { bottom: max(16px, calc(env(safe-area-inset-bottom) + 7px)); }

  .data-stream { font-size: 5.4px; }
  .data-stream--left { left: 3%; }
  .data-stream--right { right: 3%; }
  .glyph--three { left: 6%; bottom: 22%; }
  .glyph--four { right: 6%; top: 20%; }
  .reticle { transform: scale(.8); }
  .reticle--left { left: 7%; }
  .reticle--right { right: 7%; }
}

@media (max-width: 520px) {
  .identity { width: 67vw; }

  .contact {
    flex-direction: column;
    gap: 2px;
  }

  .divider { display: none; }
  .contact-status { margin-bottom: 5px; }
  .contact-link { min-height: 36px; padding: 7px 3px; }
  .contact-link strong { font-size: 12.5px; }

  .data-stream,
  .reticle--right { display: none; }
}

@media (max-width: 410px) {
  .identity { width: 69vw; }
  .cipher-wrap { font-size: 5.1px; }
  .cipher { letter-spacing: .13em; }
  .glyph--three,
  .glyph--four { display: none; }
}

@media (max-height: 640px) and (min-width: 721px) {
  .identity {
    width: min(38vw, 360px);
    transform: translateY(-4vh);
  }

  .logo { max-height: 34vh; }
  .cipher-wrap { display: none; }
  .contact-panel {
    bottom: max(30px, calc(env(safe-area-inset-bottom) + 18px));
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .contact-status { display: none; }
  .glyph--three,
  .glyph--four,
  .reticle { display: none; }
}

@media (max-height: 680px) and (max-width: 720px) {
  .identity {
    width: min(58vw, 300px);
    transform: translateY(-7vh);
  }

  .logo { max-height: 34vh; }
  .cipher-wrap { display: none; }
  .contact-panel {
    bottom: max(30px, calc(env(safe-area-inset-bottom) + 18px));
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .contact-status { display: none; }
  .glyph--three,
  .glyph--four,
  .reticle { display: none; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .identity {
    width: min(37vw, 320px);
    transform: translateY(-3vh);
  }

  .logo { max-height: 38vh; }
  .contact-panel {
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px));
    width: min(640px, calc(100vw - 110px));
  }

  .contact { flex-direction: row; gap: 14px; }
  .divider { display: inline; }
  .signal--bottom { bottom: max(11px, calc(env(safe-area-inset-bottom) + 4px)); }
  .data-stream,
  .reticle,
  .glyph--three,
  .glyph--four { display: none; }
}

/* --- MAGICA / unstable CRT interference --------------------------------- */
.logo-interference {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
  opacity: .18;
  -webkit-mask: url("assets/magica-logo.png") center / contain no-repeat;
  mask: url("assets/magica-logo.png") center / contain no-repeat;
}

.static-field {
  position: absolute;
  inset: -35%;
  opacity: .26;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,0) 0 2px,
      rgba(255,255,255,.78) 2px 3px,
      rgba(0,0,0,.94) 3px 5px,
      rgba(255,255,255,.18) 5px 6px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255,255,255,.3) 0 1px,
      transparent 1px 5px,
      rgba(0,0,0,.8) 5px 8px
    );
  mix-blend-mode: difference;
  transform: translate3d(0,0,0);
  will-change: transform;
  animation: magicaStaticIdle .22s steps(2, end) infinite;
}

.zap-line {
  position: absolute;
  left: -8%;
  top: var(--zap-y, 42%);
  width: 116%;
  height: 2px;
  opacity: 0;
  background: #000;
  box-shadow:
    0 -1px 0 rgba(255,255,255,.95),
    0 1px 0 rgba(255,255,255,.6),
    0 4px 0 rgba(0,0,0,.9),
    0 -5px 0 rgba(0,0,0,.75);
  transform: translateX(var(--zap-x, 0)) skewX(-17deg);
}

.zap-slice {
  position: absolute;
  left: -6%;
  width: 112%;
  opacity: 0;
  background: #000;
  filter: contrast(2);
}

.zap-slice--a {
  top: calc(var(--zap-y, 42%) - 5%);
  height: 4.5%;
}

.zap-slice--b {
  top: var(--zap-y-2, 67%);
  height: 2.3%;
}

.logo-stage.is-zapping { animation: magicaStageShock .72s steps(1, end) both; }
.logo-stage.is-zapping .logo--base { animation: magicaLogoShock .72s steps(1, end) both; }
.logo-stage.is-zapping .logo-interference { animation: magicaInterferenceBurst .72s steps(1, end) both; }
.logo-stage.is-zapping .static-field { animation: magicaStaticBurst .055s steps(1, end) infinite; }
.logo-stage.is-zapping .zap-line { animation: magicaZapLine .72s steps(1, end) both; }
.logo-stage.is-zapping .zap-slice--a { animation: magicaSliceA .72s steps(1, end) both; }
.logo-stage.is-zapping .zap-slice--b { animation: magicaSliceB .72s steps(1, end) both; }

.logo-stage.is-zapping .logo--ghost-a {
  clip-path: inset(7% 0 71% 0);
  animation: magicaGhostShockA .72s steps(1, end) both;
}

.logo-stage.is-zapping .logo--ghost-b {
  clip-path: inset(55% 0 24% 0);
  animation: magicaGhostShockB .72s steps(1, end) both;
}

.frame.is-zapping .signal,
.frame.is-zapping .contact-status {
  animation: interfaceShock .72s steps(1, end) both;
}

.frame.is-zapping .data-stream {
  animation: interfaceShockStream .72s steps(1, end) both;
}

@keyframes magicaStaticIdle {
  0%   { transform: translate3d(-3%, -2%, 0); }
  25%  { transform: translate3d(2%, 1%, 0); }
  50%  { transform: translate3d(-1%, 3%, 0); }
  75%  { transform: translate3d(3%, -1%, 0); }
  100% { transform: translate3d(-2%, 2%, 0); }
}

@keyframes magicaStaticBurst {
  0%   { transform: translate3d(-10%, -5%, 0) scaleY(.92); opacity: .78; }
  25%  { transform: translate3d(8%, 3%, 0) scaleY(1.05); opacity: .98; }
  50%  { transform: translate3d(-6%, 8%, 0) scaleY(.88); opacity: .7; }
  75%  { transform: translate3d(12%, -7%, 0) scaleY(1.08); opacity: 1; }
  100% { transform: translate3d(-4%, 2%, 0); opacity: .8; }
}

@keyframes magicaStageShock {
  0%, 8%, 100% { transform: translate(0,0) skewX(0); }
  9%  { transform: translate(-2px,0) skewX(var(--zap-skew, -.8deg)); }
  12% { transform: translate(4px,-1px) skewX(0); }
  15% { transform: translate(-1px,1px) skewX(.45deg); }
  24% { transform: translate(0,0) skewX(0); }
  45% { transform: translate(3px,0) skewX(-.35deg); }
  48% { transform: translate(-2px,0) skewX(.55deg); }
  52% { transform: translate(0,0) skewX(0); }
}

@keyframes magicaLogoShock {
  0%, 7%, 17%, 42%, 51%, 100% { opacity: 1; filter: brightness(1) contrast(1); }
  8%  { opacity: .08; filter: brightness(.25) contrast(2.2); }
  10% { opacity: 1; filter: brightness(3.1) contrast(1.8); }
  13% { opacity: .32; filter: brightness(.55) contrast(3); }
  44% { opacity: .1; filter: brightness(.25) contrast(2.6); }
  47% { opacity: 1; filter: brightness(2.8) contrast(1.65); }
  49% { opacity: .55; filter: brightness(.75) contrast(2.5); }
}

@keyframes magicaInterferenceBurst {
  0%, 6%, 20%, 40%, 55%, 100% { opacity: .18; }
  7%, 16%, 43%, 51% { opacity: .95; }
  11%, 47% { opacity: .58; }
}

@keyframes magicaZapLine {
  0%, 6%, 18%, 41%, 54%, 100% { opacity: 0; transform: translateX(0) scaleY(1); }
  7%  { opacity: 1; transform: translateX(var(--zap-x, 0)) scaleY(9); }
  10% { opacity: .25; transform: translateX(calc(var(--zap-x, 0) * -1)) scaleY(2); }
  14% { opacity: .9; transform: translateX(3px) scaleY(5); }
  42% { opacity: 1; transform: translateX(-4px) scaleY(13); }
  47% { opacity: .35; transform: translateX(5px) scaleY(2); }
  50% { opacity: .9; transform: translateX(-2px) scaleY(6); }
}

@keyframes magicaSliceA {
  0%, 7%, 16%, 42%, 52%, 100% { opacity: 0; transform: translateX(0); }
  8%  { opacity: .95; transform: translateX(-10px); }
  11% { opacity: .38; transform: translateX(7px); }
  14% { opacity: .75; transform: translateX(-4px); }
  43% { opacity: .8; transform: translateX(11px); }
  47% { opacity: .45; transform: translateX(-8px); }
}

@keyframes magicaSliceB {
  0%, 9%, 20%, 45%, 57%, 100% { opacity: 0; transform: translateX(0); }
  10% { opacity: .65; transform: translateX(12px); }
  15% { opacity: .3; transform: translateX(-7px); }
  46% { opacity: .92; transform: translateX(-13px); }
  50% { opacity: .35; transform: translateX(8px); }
}

@keyframes magicaGhostShockA {
  0%, 6%, 18%, 40%, 56%, 100% { opacity: 0; transform: translate(0); }
  7%  { opacity: .9; transform: translate(-9px, 0); }
  11% { opacity: .35; transform: translate(11px, 1px); }
  15% { opacity: .7; transform: translate(-5px, -1px); }
  43% { opacity: .75; transform: translate(13px, 0); }
  49% { opacity: .28; transform: translate(-7px, 1px); }
}

@keyframes magicaGhostShockB {
  0%, 8%, 22%, 43%, 59%, 100% { opacity: 0; transform: translate(0); }
  9%  { opacity: .75; transform: translate(10px, 1px); }
  13% { opacity: .22; transform: translate(-12px, 0); }
  18% { opacity: .62; transform: translate(5px, -1px); }
  44% { opacity: .82; transform: translate(-14px, 0); }
  52% { opacity: .25; transform: translate(9px, -1px); }
}

@keyframes interfaceShock {
  0%, 7%, 18%, 45%, 55%, 100% { opacity: 1; transform: translateX(0); }
  8% { opacity: .16; transform: translateX(2px); }
  11% { opacity: .75; transform: translateX(-1px); }
  46% { opacity: .08; transform: translateX(-2px); }
  49% { opacity: .8; transform: translateX(1px); }
}

@keyframes interfaceShockStream {
  0%, 7%, 18%, 45%, 55%, 100% { opacity: 1; transform: translate(-0, -50%); }
  8% { opacity: .16; transform: translate(2px, -50%); }
  11% { opacity: .75; transform: translate(-1px, -50%); }
  46% { opacity: .08; transform: translate(-2px, -50%); }
  49% { opacity: .8; transform: translate(1px, -50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .logo-interference { opacity: .08; }
  .static-field { animation: none !important; }
}
