@font-face { font-family: "Doctor Glitch"; src: url("Doctor_Glitch.otf") format("opentype"); font-display: swap; }
/* WINGRIDDEN — Draft 2. Palette and fonts live in :root for easy tweaking. */
:root {
  --bg: #12020403;
  --black: #0c0102;
  --crimson-deep: #3a0309;
  --red: #a30f1a;
  --red-bright: #ff2a36;
  --blood: #7d0912;
  --pink-red: #e8a9a6;
  --muted: #b0545a;
  --white: #f3d9d5;
  --line: rgba(255, 70, 80, .22);
  --mono: "Courier New", monospace;
  --gothic: "Doctor Glitch", Impact, "Arial Black", sans-serif;
  --serif: "Cormorant Garamond", "Playfair Display", "Bodoni MT", Didot, "Palatino Linotype", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; color: var(--white); background: transparent; font-family: var(--mono); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- Environment layers ---------- */
.ambient {
  position: fixed; inset: -20%; z-index: -5; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(200, 20, 28, .6), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(120, 6, 14, .6), transparent 40%),
    radial-gradient(ellipse at 92% 70%, rgba(150, 8, 18, .5), transparent 40%),
    #2a0307;
  animation: breathe 11s ease-in-out infinite alternate;
}
/* The room: stage = viewport width. Positions are % of the stage, sizes are cqw (x --k on phones). */
.room { position: fixed; z-index: -4; inset: 0; pointer-events: none; container-type: inline-size; overflow: hidden; --k: 1; }
.layer { position: absolute; inset: 0; transition: transform 1.6s ease-out; }
/* infinite hallway: frames rush toward the viewer, converging lines, dark vanishing point */
.hall { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 50% 50%, #000 0, rgba(0,0,0,.92) 9%, rgba(25,0,3,.5) 22%, transparent 55%),
  repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 40, 50, .16) 0 .35deg, transparent .35deg 11.25deg);
  mask-image: radial-gradient(ellipse at 50% 50%, transparent 4%, #000 30%); -webkit-mask-image: radial-gradient(ellipse at 50% 50%, transparent 4%, #000 30%); }
.frame { position: absolute; left: 50%; top: 50%; width: 60cqw; height: 32cqw; margin: -16cqw 0 0 -30cqw;
  border: 1.2cqw solid rgba(255, 35, 45, .5); border-radius: 1.5cqw;
  box-shadow: 0 0 4cqw rgba(255, 20, 35, .55), inset 0 0 5cqw rgba(255, 20, 35, .4);
  filter: blur(2px); opacity: 0; animation: rush 14s cubic-bezier(.55, 0, .9, .6) infinite; animation-delay: calc(var(--i) * -1.4s); }
.ghost-txt, .sign { position: absolute; font-family: Arial, Helvetica, sans-serif; font-weight: 700; line-height: 1; white-space: nowrap;
  transform: translate(-50%, -50%) perspective(var(--p, 700px)) rotateY(var(--ry, 0deg)) rotateZ(var(--rz, 0deg)) scale(var(--fx, 1), 1.3); }
/* ghost: bare glowing letters with a double-exposure smear, like the stacked reflections in the photo */
.ghost-txt { color: rgba(255, 50, 45, .85); letter-spacing: .03em;
  text-shadow: -.28em 0 .12em rgba(255, 30, 40, .55), .3em .02em .18em rgba(255, 20, 30, .4), 0 0 .35em rgba(255, 20, 30, .9), 0 0 1.2em rgba(220, 10, 25, .7); }
/* sign: a lit panel. letters glow, panel has a faint inner edge */
.sign { padding: .14em .26em; color: #ff6a52; letter-spacing: .03em;
  background: linear-gradient(180deg, rgba(150, 8, 16, .65), rgba(95, 3, 10, .7)); border: .04em solid rgba(255, 110, 90, .4); border-radius: .06em;
  text-shadow: 0 0 .2em rgba(255, 50, 40, .95), 0 0 .6em rgba(255, 20, 30, .7);
  box-shadow: 0 0 .5em rgba(255, 30, 40, .6), 0 0 2.4em rgba(230, 10, 25, .4), inset 0 0 .5em rgba(255, 40, 40, .35);
  animation: flick var(--d, 8s) steps(1) infinite; }
.sign.lit { color: #ffe0a8; background: linear-gradient(180deg, rgba(200, 22, 28, .78), rgba(150, 10, 18, .8)); border-color: rgba(255, 150, 120, .55);
  text-shadow: 0 0 .12em #ffd89a, 0 0 .45em #ff7a5a, 0 0 1em #ff2a2a; }
@keyframes rush { 0% { transform: scale(.04); opacity: 0; } 12% { opacity: .75; } 70% { opacity: .5; } 100% { transform: scale(3.2); opacity: 0; } }
@media (max-width: 650px) { .room { --k: 2; } }
.dark { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(5, 0, 1, .55) 0, transparent 38%),
    radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(8, 0, 2, .6) 100%),
    linear-gradient(90deg, rgba(5, 0, 1, .55), transparent 22%, transparent 78%, rgba(5, 0, 1, .55)); }
.grain { position: fixed; inset: -50%; z-index: 6; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(1) infinite; }
.scan { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: .16;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.6) 0 1px, transparent 1px 3px); }
@keyframes breathe { from { transform: scale(1); opacity: .8; } to { transform: scale(1.12); opacity: 1; } }
@keyframes flick { 0%,100% { opacity: 1; } 46% { opacity: 1; } 47% { opacity: .45; } 49% { opacity: 1; } 83% { opacity: .7; } 85% { opacity: 1; } }
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* Scroll is locked on arrival; ENTER removes the lock */
html.locked, body.locked { overflow: hidden; height: 100%; }
body.locked { touch-action: none; overscroll-behavior: none; }

/* ---------- Top bar ---------- */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center;
  padding: 27px clamp(20px, 5vw, 72px); color: #d77077; font-size: 10px; letter-spacing: .19em; }
.brand-small { color: #ffb4b0; letter-spacing: .25em; text-shadow: 0 0 12px rgba(255, 40, 50, .7); }
.top-meta { display: flex; gap: 25px; }
.top-meta span { opacity: .75; }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; place-items: center; position: relative; padding: 100px 24px 70px; isolation: isolate; }
.hero-content { text-align: center; width: min(100%, 1240px); position: relative; }
.eyebrow { color: #e0827f; font-size: 9px; letter-spacing: .42em; text-transform: uppercase; margin-bottom: 27px; opacity: .9; }
h1 {
  position: relative; margin: 0; font-family: var(--gothic); font-weight: 400; font-style: normal;
  font-size: clamp(32px, 9vw, 128px); letter-spacing: .03em; padding-left: .03em; line-height: 1;
  color: #ffe3de;
  text-shadow: 0 0 8px rgba(255, 60, 60, .8), 0 0 38px rgba(230, 20, 35, .75), 0 0 110px rgba(190, 5, 20, .9);
  animation: reveal 2.8s ease both, shiver 6s steps(1) 3s infinite;
}
h1::before, h1::after { content: attr(data-text); position: absolute; inset: 0; padding-left: .03em; pointer-events: none; }
h1::before { color: rgba(255, 30, 45, .55); transform: translate(-.035em, .01em); filter: blur(2.5px); mix-blend-mode: screen; z-index: -1; text-shadow: none; }
h1::after  { color: rgba(255, 90, 90, .25); transform: translate(.05em, -.015em); filter: blur(7px); z-index: -1; text-shadow: none; animation: ghostmove 8s ease-in-out infinite alternate; }
.tagline { margin: 26px 0 0; font-family: var(--gothic); color: #e58e8c; font-size: clamp(14px, 1.8vw, 22px); letter-spacing: .34em; text-shadow: 0 0 14px rgba(255, 30, 40, .6); filter: url(#thin); }
.enter { margin-top: 68px; border: 1px solid rgba(255, 90, 95, .6); color: #ffd7d3; background: rgba(60, 3, 8, .45); padding: 14px 29px; font-size: 9px; letter-spacing: .3em; cursor: pointer; transition: .35s ease; backdrop-filter: blur(3px); }
.enter:hover, .enter:focus-visible { background: rgba(190, 15, 28, .4); border-color: #ff4a54; letter-spacing: .42em; box-shadow: 0 0 40px rgba(255, 30, 45, .4); outline: none; }
.enter span { color: #ff4a54; padding-left: 9px; }
.side-note { position: absolute; bottom: 32px; color: #c0585e; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.side-note.left { left: clamp(20px, 5vw, 72px); }
.side-note.right { right: clamp(20px, 5vw, 72px); }
@keyframes reveal { from { opacity: 0; filter: blur(14px); transform: translateY(9px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes shiver { 0%,100% { transform: none; } 92% { transform: none; } 93% { transform: translateX(3px) skewX(-2deg); } 94% { transform: translateX(-2px); } 95% { transform: none; } }
@keyframes ghostmove { from { transform: translate(.05em, -.015em); } to { transform: translate(-.04em, .03em); } }

/* ---------- Content ---------- */
.content { max-width: 1100px; margin: 0 auto; padding: 100px 26px 120px; opacity: 0; transform: translateY(22px); transition: opacity 1.2s, transform 1.2s; }
body.entered .content { opacity: 1; transform: none; }
.section-label { color: #ff5a63; font-size: 9px; letter-spacing: .35em; margin-bottom: 22px; text-shadow: 0 0 10px rgba(255, 30, 40, .6); }
.intro { font-family: var(--serif); font-style: italic; font-size: clamp(27px, 4vw, 50px); line-height: 1.25; font-weight: 500; max-width: 860px; color: #ffd9d4;
  margin: 0; text-shadow: 0 0 24px rgba(230, 20, 35, .55); }
.intro-sub { max-width: 560px; color: #cf8283; font: 12px/2 var(--mono); margin-top: 25px; }
.nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 85px; border: 1px solid var(--line); background: var(--line); }
.nav-card { min-height: 190px; background: rgba(26, 2, 6, .86); padding: 27px; display: flex; flex-direction: column; justify-content: space-between; transition: background .4s, box-shadow .4s; cursor: pointer; backdrop-filter: blur(4px); }
.nav-card:hover, .nav-card:focus-visible { background: rgba(120, 8, 20, .6); box-shadow: inset 0 0 50px rgba(255, 30, 45, .2); outline: none; }
.nav-card small { color: #e0777b; font-size: 9px; letter-spacing: .2em; }
.nav-card strong { font-family: var(--gothic); font-weight: 400; font-size: 34px; letter-spacing: .06em; filter: url(#thin); text-shadow: 0 0 16px rgba(255, 40, 50, .4); }
.nav-card span { color: #b0545a; font-size: 9px; letter-spacing: .16em; }
.footer { border-top: 1px solid var(--line); padding: 25px clamp(20px, 5vw, 72px); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: #b0545a; font-size: 9px; letter-spacing: .16em; background: rgba(15, 1, 3, .6); }
.reveal-panel { display: none; margin-top: 28px; padding: 28px; border: 1px solid var(--line); background: rgba(40, 3, 8, .7); color: #e2a9a6; line-height: 1.8; font-size: 12px; backdrop-filter: blur(4px); }
.reveal-panel.active { display: block; animation: reveal .7s both; }
.reveal-panel h2 { font: 400 42px var(--gothic); letter-spacing: .06em; filter: url(#thin); color: #ffd9d4; margin: 0 0 12px; text-shadow: 0 0 18px rgba(255, 40, 50, .5); }
.close { float: right; border: 0; background: none; color: #ff6a72; cursor: pointer; }

@media (max-width: 650px) {
  .topbar { padding-top: 20px; } .top-meta { gap: 12px; font-size: 8px; }
  .nav-grid { grid-template-columns: 1fr; margin-top: 55px; }
  .nav-card { min-height: 135px; }
  .side-note { bottom: 19px; font-size: 8px; } .side-note.right { display: none; }
  .tagline { margin: 26px 0 0; font-family: var(--gothic); color: #e58e8c; font-size: clamp(14px, 1.8vw, 22px); letter-spacing: .34em; text-shadow: 0 0 14px rgba(255, 30, 40, .6); filter: url(#thin); }
}

.link-list { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.link-list a { border: 1px solid rgba(255, 90, 95, .5); padding: 12px 20px; color: #ffd7d3; font-size: 10px; letter-spacing: .26em; transition: .3s; }
.link-list a:hover, .link-list a:focus-visible { background: rgba(190, 15, 28, .4); border-color: #ff4a54; box-shadow: 0 0 28px rgba(255, 30, 45, .35); outline: none; }

/* player */
.tracks { display: grid; gap: 8px; margin: 18px 0 0; }
.track { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; border: 1px solid var(--line); background: rgba(60, 3, 8, .45); color: #ffd7d3; padding: 14px 18px; cursor: pointer; letter-spacing: .16em; font-size: 11px; transition: .3s; }
.track:hover, .track:focus-visible, .track.playing { background: rgba(160, 12, 25, .4); border-color: rgba(255, 90, 95, .6); box-shadow: 0 0 28px rgba(255, 30, 45, .25); outline: none; }
.track .tp { width: 1.2em; color: #ff4a54; } .track .tt { flex: 1; } .track .tm { color: #c0585e; }
.bar { height: 4px; margin: 14px 0 6px; background: rgba(255, 70, 80, .2); cursor: pointer; }
.bar .fill { height: 100%; width: 0; background: #ff3a46; box-shadow: 0 0 12px #ff2a36; }
.sub-label { margin-top: 26px; color: #c0585e; font-size: 9px; letter-spacing: .3em; }

/* ---------- Theme: clicking a visual rotates the whole palette to that artwork's main colour ---------- */
.sub-label{}
:root { --rot: 0deg; --gray: 0; --con: 1; }
.ambient, .room, .topbar, .hero, .content, .footer { filter: hue-rotate(var(--rot)) grayscale(var(--gray)) contrast(var(--con)); transition: filter 1.4s ease; }
.vis img, .viewer img { filter: hue-rotate(calc(var(--rot) * -1)); transition: filter 1.4s ease; }

/* ---------- Visuals gallery ---------- */
.viewer { margin: 18px 0 0; display: none; }
.viewer.on { display: block; animation: reveal .8s both; }
.viewer img { display: block; width: auto; max-width: 100%; max-height: 70vh; margin: 0 auto; border: 1px solid var(--line); box-shadow: 0 0 60px rgba(255, 30, 45, .25); }
.viewer figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; color: #e0777b; font-size: 10px; letter-spacing: .2em; }
.viewer button { border: 1px solid rgba(255, 90, 95, .5); background: none; color: #ffd7d3; padding: 8px 14px; font-size: 9px; letter-spacing: .22em; cursor: pointer; }
.viewer button:hover { background: rgba(190, 15, 28, .4); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.vis { position: relative; padding: 0; border: 1px solid var(--line); background: #100; cursor: pointer; aspect-ratio: 1; overflow: hidden; }
.vis img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease, filter 1.4s ease; }
.vis:hover img, .vis:focus-visible img { transform: scale(1.07); }
.vis span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; text-align: left; color: #ffe3de; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; background: linear-gradient(transparent, rgba(10, 0, 2, .9)); }
.vis.active { border-color: #ff4a54; box-shadow: 0 0 26px rgba(255, 30, 45, .55); }
.vis:focus-visible { outline: 1px solid #ff4a54; }
@media (max-width: 650px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tab opening: CRT switch-on + static ---------- */
.reveal-panel { position: relative; overflow: hidden; }
.static { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; image-rendering: pixelated; mix-blend-mode: screen; }
.reveal-btn { cursor: pointer; font: inherit; background: none; }
.link-list a, .link-list button { border: 1px solid rgba(255, 90, 95, .5); padding: 12px 20px; color: #ffd7d3; font-size: 10px; letter-spacing: .26em; transition: .3s; background: none; font-family: inherit; cursor: pointer; }
.link-list button:hover, .link-list button:focus-visible { background: rgba(190, 15, 28, .4); border-color: #ff4a54; box-shadow: 0 0 28px rgba(255, 30, 45, .35); outline: none; }
.link-list button.revealed { letter-spacing: .08em; text-transform: none; background: rgba(120, 8, 20, .5); user-select: all; }

/* ================= GATE: glitch intro + static + big ENTER ================= */
#gate { position: fixed; inset: 0; z-index: 20; background: #050001; overflow: hidden; }
#gate canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
#gate .vg { pointer-events: none; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.8) 0, rgba(0,0,0,.4) 36%, transparent 72%); }
#gate.glitch { animation: gshake .14s steps(2) infinite; }
#gate-enter { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--gothic); font-size: clamp(60px, 18vw, 240px);
  color: #ffe3de; background: none; border: 0; cursor: pointer; letter-spacing: .05em; padding: .1em .2em; opacity: 0; pointer-events: none;
  text-shadow: 0 0 10px rgba(255, 60, 60, .8), 0 0 50px rgba(230, 20, 35, .8), 0 0 140px rgba(190, 5, 20, .9); }
#gate-enter::before, #gate-enter::after { content: attr(data-text); position: absolute; inset: 0; padding: .1em .2em; pointer-events: none; letter-spacing: .05em; }
#gate-enter::before { color: rgba(255, 30, 45, .7); transform: translate(-.03em, 0); mix-blend-mode: screen; z-index: -1; text-shadow: none; }
#gate-enter::after { color: rgba(30, 230, 255, .5); transform: translate(.035em, 0); mix-blend-mode: screen; z-index: -1; text-shadow: none; }
#gate.ready #gate-enter { opacity: 1; pointer-events: auto; animation: flickIn .8s steps(1) both, gjit 3.5s steps(1) 1s infinite; }
#gate-enter:hover, #gate-enter:focus-visible { outline: none; animation: gjit .25s steps(2) infinite; }
#gate-enter:hover::before { transform: translate(-.07em, .01em); } #gate-enter:hover::after { transform: translate(.08em, -.01em); }
@keyframes gshake { 0% { transform: translate(0); } 25% { transform: translate(-16px, 3px) skewX(2deg); filter: hue-rotate(40deg); } 50% { transform: translate(11px, -5px); } 75% { transform: translate(-7px, 7px) skewX(-3deg); filter: invert(.15); } 100% { transform: none; } }
@keyframes flickIn { 0% { opacity: 0; } 10% { opacity: 1; } 18% { opacity: 0; } 30% { opacity: .8; } 36% { opacity: .1; } 55% { opacity: 1; } 62% { opacity: .5; } 100% { opacity: 1; } }
@keyframes gjit { 0%, 100% { transform: translate(-50%, -50%); } 92% { transform: translate(-50%, -50%); } 93% { transform: translate(calc(-50% + 10px), -50%) skewX(-6deg); } 95% { transform: translate(calc(-50% - 8px), -50%); } }

/* ================= TV power shutter ================= */
#tv { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
#tv .half { position: absolute; left: 0; right: 0; height: 50.2%; background: #000; }
#tv .top { top: 0; transform: translateY(-140%); border-bottom: 2px solid rgba(255, 235, 235, .95); box-shadow: 0 6px 30px rgba(255, 40, 50, .8); }
#tv .bot { bottom: 0; transform: translateY(140%); border-top: 2px solid rgba(255, 235, 235, .95); box-shadow: 0 -6px 30px rgba(255, 40, 50, .8); }
#tv .tvline { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: #fff; opacity: 0; transform: scaleX(0);
  box-shadow: 0 0 14px 4px #fff, 0 0 60px 14px rgba(255, 40, 55, .95); }

/* ================= Wormhole ================= */
#wormhole { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 18; display: none; pointer-events: none; }

/* ================= Per-tab TV / psychedelic effects (on .panel-in) ================= */
.fx-layer { position: absolute; z-index: 5; pointer-events: none; }
/* MUSIC: vertical-hold roll */
.fx-roll .panel-in { animation: vroll .95s cubic-bezier(.3, .7, .3, 1) both; }
@keyframes vroll { 0% { transform: translateY(-105%); filter: brightness(2.5) contrast(1.6); } 18% { transform: translateY(60%); } 36% { transform: translateY(-40%); filter: brightness(1.6); }
  54% { transform: translateY(22%); } 72% { transform: translateY(-8%); filter: none; } 88% { transform: translateY(3%); } 100% { transform: none; filter: none; } }
.vbar { left: 0; right: 0; height: 16%; top: -20%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.95) 30%, rgba(0,0,0,.95) 70%, transparent); animation: barDown .95s linear both; }
@keyframes barDown { from { top: -20%; } to { top: 120%; } }
/* VISUALS: colour-bar test card + chromatic aberration */
.fx-bars .panel-in { animation: aberr .95s ease-out both; }
@keyframes aberr { 0% { filter: drop-shadow(-12px 0 0 rgba(255,0,60,.9)) drop-shadow(12px 0 0 rgba(0,220,255,.9)) saturate(3); transform: skewX(8deg) scale(1.03); }
  40% { filter: drop-shadow(-6px 0 0 rgba(255,0,60,.8)) drop-shadow(6px 0 0 rgba(0,220,255,.8)); } 100% { filter: none; transform: none; } }
.bars { inset: 0; background: linear-gradient(90deg, #fff 0 14.28%, #ffe600 14.28% 28.56%, #00e5ff 28.56% 42.84%, #1aff3c 42.84% 57.12%, #ff2bd6 57.12% 71.4%, #ff1f2f 71.4% 85.68%, #2a2cff 85.68% 100%);
  animation: barsWipe .95s linear both; }
.bars::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(90deg, #2a2cff 0 14%, #000 14% 28%, #ff2bd6 28% 42%, #000 42% 57%, #00e5ff 57% 71%, #000 71% 85%, #fff 85%); }
@keyframes barsWipe { 0% { opacity: 1; clip-path: inset(0); } 8% { opacity: .35; } 12% { opacity: 1; } 22% { opacity: .55; } 28% { opacity: 1; } 45% { clip-path: inset(0); opacity: 1; } 100% { clip-path: inset(0 0 0 100%); opacity: 1; } }
/* ARCHIVE: VHS tracking glitch / slice displacement */
.fx-slice .panel-in { animation: slice .9s steps(1) both; }
@keyframes slice { 0% { clip-path: inset(45% 0 40% 0); transform: translateX(-30px); filter: hue-rotate(90deg) saturate(3); } 8% { clip-path: inset(10% 0 78% 0); transform: translateX(40px); }
  16% { clip-path: inset(70% 0 8% 0); transform: translateX(-14px); filter: invert(1); } 24% { clip-path: inset(0 0 55% 0); transform: translateX(22px) skewX(-8deg); filter: none; }
  32% { clip-path: inset(33% 0 20% 0); transform: translateX(-36px); } 42% { clip-path: inset(0); transform: translateX(12px); filter: hue-rotate(-60deg); }
  52% { clip-path: inset(60% 0 0 0); transform: translateX(-8px); } 62% { clip-path: inset(0 0 30% 0); transform: translateX(5px); filter: none; }
  75% { clip-path: inset(0); transform: translateX(-3px); } 100% { clip-path: inset(0); transform: none; filter: none; } }
/* CONTACT: hypnotic spiral vortex */
.fx-spiral .panel-in { animation: spiralIn 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes spiralIn { 0% { transform: scale(.15) rotate(-200deg); filter: blur(14px) hue-rotate(180deg); opacity: 0; } 100% { transform: none; filter: none; opacity: 1; } }
.spiral { left: 50%; top: 50%; width: 220vmax; height: 220vmax; border-radius: 50%; transform: translate(-50%, -50%);
  background: repeating-conic-gradient(from 0deg, #ff2bd6 0 12deg, #000 12deg 24deg, #19e6ff 24deg 36deg, #000 36deg 48deg, #ffe600 48deg 60deg, #000 60deg 72deg); animation: spiralFx 1s ease-in both; }
@keyframes spiralFx { 0% { transform: translate(-50%, -50%) rotate(0) scale(1); opacity: 1; } 75% { opacity: 1; } 100% { transform: translate(-50%, -50%) rotate(560deg) scale(.002); opacity: 0; } }

/* whole-page glitch (used by the black & white cover) */
body.pg main, body.pg .room, body.pg .topbar { animation: pgJit .9s steps(1) both; }
@keyframes pgJit { 0% { transform: translate(-18px, 4px) skewX(3deg); } 10% { transform: translate(22px, -6px); } 20% { transform: translate(-10px, 8px) skewX(-4deg); } 30% { transform: translate(14px, 0); }
  40% { transform: translate(-26px, -3px); } 55% { transform: translate(8px, 5px) skewX(2deg); } 70% { transform: translate(-5px, 0); } 85% { transform: translate(3px, 1px); } 100% { transform: none; } }
.static.fixed { position: fixed; z-index: 45; }
