/* Scenes, overlays, entrances, text effects, link cards and video effects.
   Loaded after bio.css and bio_style.css. js/bio_scene.js draws the living
   backgrounds and particles and reads its colors from the --scene-* tokens
   below, so palettes stay in CSS. */

/* ---------- Scene palette ---------- */
.bio-public,
.bio-page {
  --scene-sky-top: #06040f;
  --scene-sky-mid: #170733;
  --scene-sky-low: #5a1260;
  --scene-sun-a: #ffe9a3;
  --scene-sun-b: #ff8f6b;
  --scene-sun-c: #ff2e88;
  --scene-ridge-far: #2a0a44;
  --scene-ridge-near: #12041f;
  --scene-floor: #07020e;
  --scene-floor-far: #2c0639;
  --scene-haze: #ff4fb0;
  --scene-petal: #ffc4d8;
  --scene-petal-deep: #ff7fae;
  --scene-ember-a: #ffd27f;
  --scene-ember-b: #ff7a32;
  --scene-ember-c: #d8322c;
  --scene-gold: #ffd166;
  --scene-violet: #b699ff;
  --scene-heart: #ff6fa8;
  --fx-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
:is(.bio-public, .bio-page)[data-theme=light] {
  --scene-sky-top: #efe6ff; --scene-sky-mid: #ffd6ea; --scene-sky-low: #ffadc8;
  --scene-ridge-far: #dcb3ea; --scene-ridge-near: #b98ad3;
  --scene-floor: #f6ecff; --scene-floor-far: #ffcfe4; --scene-haze: #ff8fc6;
}
@media (prefers-color-scheme: light) {
  :is(.bio-public, .bio-page)[data-theme=auto] {
    --scene-sky-top: #efe6ff; --scene-sky-mid: #ffd6ea; --scene-sky-low: #ffadc8;
    --scene-ridge-far: #dcb3ea; --scene-ridge-near: #b98ad3;
    --scene-floor: #f6ecff; --scene-floor-far: #ffcfe4; --scene-haze: #ff8fc6;
  }
}

/* ---------- Scene layers ---------- */
.bio-scene { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
canvas.bio-scene { display: block; width: 100%; height: 100%; }
html[data-bio-scene] body.bio-public::before { opacity: 0; }
.bio-particles { width: 100%; height: 100%; display: block; }
.bio-particles[data-effect=rain] { opacity: .9; }
/* Distant effects sit behind the page; weather falls in front of it. */
.bio-particles:is([data-effect=stars], [data-effect=motes], [data-effect=bits]) { z-index: -1; }
.bio-particles[data-effect=motes] { mix-blend-mode: screen; }

/* Terminal: a live shell session with a tmux status line. */
.bio-term {
  display: flex;
  flex-direction: column;
  color: rgba(var(--bio-fg-rgb), .6);
  font: 400 13px/1.62 var(--fx-mono);
  letter-spacing: .01em;
}
.bio-term::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 30% 35%, rgba(var(--bio-rgb), .07), transparent 70%),
    repeating-linear-gradient(0deg, rgba(var(--bio-shade-rgb), .12) 0 1px, transparent 1px 3px);
}
.bio-term__screen {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 22px 28px 10px;
  white-space: pre;
  text-shadow: 0 0 7px rgba(var(--bio-rgb), .28);
  -webkit-mask-image: linear-gradient(90deg, #000 calc(50% - 360px), rgba(0, 0, 0, .14) calc(50% - 300px), rgba(0, 0, 0, .14) calc(50% + 300px), #000 calc(50% + 360px));
  mask-image: linear-gradient(90deg, #000 calc(50% - 360px), rgba(0, 0, 0, .14) calc(50% - 300px), rgba(0, 0, 0, .14) calc(50% + 300px), #000 calc(50% + 360px));
}
.bio-term__line { min-height: 1.62em; }
.bio-term__cursor {
  display: inline-block;
  width: .6em;
  height: 1.12em;
  margin-left: 1px;
  vertical-align: -.2em;
  background: var(--bio-accent);
  box-shadow: 0 0 10px rgba(var(--bio-rgb), .7);
  animation: fx-blink 1.05s steps(1, end) infinite;
}
.bio-term .t-user { color: var(--bio-accent); font-weight: 700; }
.bio-term .t-path { color: #8ea9ff; }
.bio-term .t-dim { color: rgba(var(--bio-fg-rgb), .38); }
.bio-term .t-cmd { color: rgba(var(--bio-fg-rgb), .96); }
.bio-term .t-accent { color: var(--bio-accent); }
.bio-term .t-key { color: var(--bio-accent-hi); }
.bio-term .t-ok { color: #5df59a; }
.bio-term .t-warn { color: #ffc857; }
.bio-term .t-err { color: #ff5a6a; }
.bio-term .t-str { color: #c3f36b; }
.bio-term .t-hash { color: #ffb86b; }
.bio-term .t-dir { color: #7aa2ff; font-weight: 700; }
.bio-term .t-exec { color: #5df59a; }
.bio-term .t-c1 { color: #ff5a6a; } .bio-term .t-c2 { color: #ffc857; } .bio-term .t-c3 { color: #c3f36b; }
.bio-term .t-c4 { color: var(--bio-accent); } .bio-term .t-c5 { color: #b699ff; }
.bio-term__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 22px;
  padding: 0 12px 0 0;
  overflow: hidden;
  font-size: 11px;
  white-space: nowrap;
  color: rgba(var(--bio-fg-rgb), .72);
  background: rgba(var(--bio-rgb), .14);
  box-shadow: 0 -1px rgba(var(--bio-rgb), .22);
}
.bio-term__session { display: flex; align-items: center; height: 100%; padding: 0 10px; background: var(--bio-accent); color: var(--bio-ink); font-weight: 700; }
.bio-term__tabs { display: flex; flex: 1; gap: 12px; }
.bio-term__tabs .is-active { color: var(--bio-accent-hi); }
.bio-term__tabs .is-active::after { content: "*"; }
.bio-term__clock { opacity: .78; }
@media (max-width: 700px) {
  .bio-term { font-size: 11px; opacity: .62; }
  .bio-term__screen { padding: 14px 14px 8px; -webkit-mask-image: none; mask-image: none; }
  .bio-term__clock { display: none; }
}

/* Horizon thumbnail: a striped sun on the grid. */
.bio-bg-thumb[data-background=horizon] {
  background: linear-gradient(#0b0518, #2a0a44 46%, #6a1460 60%, #07020e 60%);
}
.bio-bg-thumb[data-background=horizon]::after {
  background:
    linear-gradient(transparent 50%, #3b0d4d 50% 52%, transparent 52% 54.5%, #3b0d4d 54.5% 57%, transparent 57%) 50% 0 / 40% 100% no-repeat,
    radial-gradient(circle at 50% 54%, #ffe08a 0, #ff8f6b 8%, #ff2e88 15%, transparent 15.6%),
    radial-gradient(ellipse 60% 26% at 50% 58%, rgba(255, 46, 136, .5), transparent 70%);
  -webkit-mask-image: linear-gradient(#000 60%, transparent 60%);
  mask-image: linear-gradient(#000 60%, transparent 60%);
}
/* Terminal thumbnail: prompt lines with a cursor. */
.bio-bg-thumb[data-background=terminal]::after {
  inset: 8px 10px auto;
  height: 40px;
  background:
    linear-gradient(var(--bio-accent), var(--bio-accent)) 0 0 / 34% 2px no-repeat,
    linear-gradient(rgba(var(--bio-fg-rgb), .45), rgba(var(--bio-fg-rgb), .45)) 0 8px / 58% 2px no-repeat,
    linear-gradient(rgba(var(--bio-fg-rgb), .45), rgba(var(--bio-fg-rgb), .45)) 0 16px / 44% 2px no-repeat,
    linear-gradient(var(--bio-accent), var(--bio-accent)) 0 24px / 22% 2px no-repeat,
    linear-gradient(var(--bio-accent), var(--bio-accent)) 24% 22px / 4px 6px no-repeat;
  animation: fx-blink 1.1s steps(1, end) infinite;
}

/* ---------- Glitch: only the name picks up the signal's chromatic split ---------- */
.bio-page[data-background=glitch] .bio-profile h1 {
  text-shadow: calc(var(--gx-t, 1.5px) * -1) 0 rgba(var(--bio-red-rgb), .6), var(--gx-t, 1.5px) 0 rgba(var(--bio-rgb), .6);
}

/* ---------- Screen overlays ---------- */
.bio-public[data-s-overlay=interlace]::after {
  background:
    linear-gradient(transparent, rgba(255, 255, 255, .045) 50%, transparent) 0 -40vh / 100% 34vh no-repeat,
    repeating-linear-gradient(0deg, rgba(var(--bio-shade-rgb), .16) 0 1px, transparent 1px 2px);
  animation: fx-interlace 8s linear infinite, s-crt-flicker 6s steps(1, end) infinite;
}
.bio-public[data-s-overlay=lcd]::after {
  background:
    repeating-linear-gradient(90deg, rgba(255, 40, 80, .07) 0 1px, rgba(40, 255, 120, .055) 1px 2px, rgba(40, 120, 255, .07) 2px 3px),
    repeating-linear-gradient(0deg, rgba(var(--bio-shade-rgb), .2) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 60%, rgba(var(--bio-shade-rgb), .35) 100%);
}
.bio-public[data-s-overlay=hud]::after { background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(var(--bio-shade-rgb), .06) 2px 3px), radial-gradient(ellipse at center, transparent 62%, rgba(var(--bio-rgb), .07) 100%); }
.bio-public[data-s-overlay=vhs]::after {
  background:
    var(--bio-noise) 0 0 / 160px 160px,
    repeating-linear-gradient(0deg, rgba(var(--bio-shade-rgb), .18) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, rgba(255, 0, 80, .1), transparent 6%, transparent 94%, rgba(0, 200, 255, .1));
  opacity: .34;
  animation: bio-static .45s steps(1, end) infinite;
}
.bio-public[data-s-overlay=holo]::after { background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 5px); }
.bio-public[data-s-overlay=neon]::after,
.bio-public[data-s-overlay=visor]::after { background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(var(--bio-shade-rgb), .05) 2px 3px); }
.bio-public[data-s-overlay=film]::after {
  background:
    var(--bio-noise) 0 0 / 180px 180px,
    radial-gradient(ellipse at center, transparent 50%, rgba(40, 20, 0, .55) 100%);
  opacity: .38;
  animation: bio-static .32s steps(1, end) infinite;
}
.bio-ov {
  position: fixed;
  inset: 0;
  z-index: 101;
  pointer-events: none;
  overflow: hidden;
  color: rgba(var(--bio-rgb), .8);
  font: 500 10px/1 var(--fx-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.bio-ov > * { position: absolute; }
.bio-ov__ro { display: flex; align-items: center; gap: 7px; white-space: nowrap; text-shadow: 0 0 8px rgba(var(--bio-rgb), .6); }
.bio-ov__ro--tl { top: 24px; left: 28px; }
.bio-ov__ro--tr { top: 24px; right: 28px; font-variant-numeric: tabular-nums; }
.bio-ov__ro--bl { bottom: 24px; left: 28px; }
.bio-ov__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bio-red); box-shadow: 0 0 8px var(--bio-red); animation: fx-blink 1.2s steps(1, end) infinite; }
.bio-ov__sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.bio-ov__sig i { width: 3px; background: currentColor; }
.bio-ov__sig i:nth-child(1) { height: 3px; } .bio-ov__sig i:nth-child(2) { height: 5px; } .bio-ov__sig i:nth-child(3) { height: 7px; }
.bio-ov__sig i:nth-child(4) { height: 9px; } .bio-ov__sig i:nth-child(5) { height: 10px; opacity: .3; }
.bio-ov__corners {
  inset: 12px;
  --c: rgba(var(--bio-rgb), .7);
  background:
    linear-gradient(var(--c), var(--c)) 0 0 / 26px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) 0 0 / 1.5px 26px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 26px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) 100% 0 / 1.5px 26px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 26px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) 0 100% / 1.5px 26px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 26px 1.5px no-repeat, linear-gradient(var(--c), var(--c)) 100% 100% / 1.5px 26px no-repeat;
  filter: drop-shadow(0 0 4px rgba(var(--bio-rgb), .6));
}
.bio-ov__ticks { left: 50%; top: 13px; width: 180px; height: 6px; transform: translateX(-50%); background: repeating-linear-gradient(90deg, rgba(var(--bio-rgb), .55) 0 1px, transparent 1px 9px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.bio-ov__ticks::after { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 12px; background: var(--bio-accent); }
.bio-ov__track {
  left: 0;
  right: 0;
  top: -20vh;
  height: 14vh;
  background:
    linear-gradient(transparent, rgba(255, 255, 255, .08) 40%, rgba(255, 255, 255, .025) 60%, transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 4px);
  filter: blur(.5px);
  animation: fx-track 9s linear infinite;
}
.bio-ov__vhs { color: #f4f4f4; font: 400 22px/1 'VT323', var(--fx-mono); letter-spacing: .06em; text-shadow: 2px 0 rgba(255, 0, 80, .75), -2px 0 rgba(0, 200, 255, .75); }
.bio-ov__sheen {
  inset: -60%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 0, 200, .1) 46%, rgba(0, 255, 255, .13) 50%, rgba(255, 255, 0, .09) 54%, transparent 58%);
  mix-blend-mode: screen;
  animation: fx-holo-sweep 8s ease-in-out infinite;
}
.bio-ov__frame {
  inset: 6px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1.5px rgba(var(--bio-rgb), .7), inset 0 0 26px rgba(var(--bio-rgb), .4), inset 0 0 90px rgba(var(--bio-rgb), .14), 0 0 0 6px rgba(var(--bio-shade-rgb), .25);
  animation: fx-neon-breathe 4.5s ease-in-out infinite, fx-neon-stutter 9s steps(1, end) infinite;
}
.bio-ov__visor {
  inset: 0;
  background:
    radial-gradient(ellipse 125% 90% at 50% 50%, transparent 60%, rgba(0, 0, 0, .5) 82%, rgba(0, 0, 0, .82) 100%),
    linear-gradient(180deg, rgba(var(--bio-rgb), .1), transparent 16%, transparent 84%, rgba(var(--bio-rgb), .1));
}
.bio-ov__reticle {
  top: 50%;
  left: 16px;
  right: 16px;
  height: 160px;
  transform: translateY(-50%);
  background:
    repeating-linear-gradient(0deg, rgba(var(--bio-rgb), .55) 0 1px, transparent 1px 12px) left / 10px 100% no-repeat,
    repeating-linear-gradient(0deg, rgba(var(--bio-rgb), .55) 0 1px, transparent 1px 12px) right / 10px 100% no-repeat,
    linear-gradient(rgba(var(--bio-rgb), .9), rgba(var(--bio-rgb), .9)) left center / 18px 1.5px no-repeat,
    linear-gradient(rgba(var(--bio-rgb), .9), rgba(var(--bio-rgb), .9)) right center / 18px 1.5px no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
}
.bio-ov__scratch { top: 0; bottom: 0; left: 31%; width: 1px; background: linear-gradient(transparent, rgba(255, 255, 255, .4) 20%, rgba(255, 255, 255, .1) 70%, transparent); opacity: 0; animation: fx-scratch 3.4s steps(1, end) infinite; }
.bio-ov__scratch--b { left: 74%; animation-duration: 5.2s; animation-delay: -2s; }
.bio-ov__flicker { inset: 0; background: rgba(255, 236, 200, .035); animation: fx-film-flicker .24s steps(2, end) infinite; }
@media (max-width: 640px) {
  .bio-ov__ro--tl, .bio-ov__ro--bl { left: 18px; }
  .bio-ov__ro--tr { right: 18px; }
  .bio-ov__ro--tl, .bio-ov__ro--tr { top: 18px; }
  .bio-ov__ro--bl { bottom: 18px; }
  .bio-ov__vhs { font-size: 18px; }
}

/* ---------- Page entrance ----------
   Every section (and the cover) enters in turn; js/bio_effects.js numbers
   them in --enter-i. It waits behind an enter screen and plays when the
   visitor clicks through. */
.bio-page:not([data-entrance=none]) > :is([data-bio-block], .bio-cover) {
  animation-duration: .95s;
  animation-timing-function: cubic-bezier(.2, .8, .2, 1);
  animation-fill-mode: both;
  animation-delay: calc(var(--enter-i, 0) * 130ms + 80ms);
}
.bio-page[data-entrance=fade] > :is([data-bio-block], .bio-cover) { animation-name: fx-in-fade; }
.bio-page[data-entrance=rise] > :is([data-bio-block], .bio-cover) { animation-name: fx-in-rise; }
.bio-page[data-entrance=zoom] > :is([data-bio-block], .bio-cover) { animation-name: fx-in-zoom; }
.bio-page[data-entrance=blur] > :is([data-bio-block], .bio-cover) { animation-name: fx-in-blur; }
.bio-page[data-entrance=slide] > :is([data-bio-block], .bio-cover) { animation-name: fx-in-slide; }
.bio-page[data-entrance=flip] > :is([data-bio-block], .bio-cover) { animation-name: fx-in-flip; transform-origin: 50% 0; }
.bio-page[data-entrance=boot] > :is([data-bio-block], .bio-cover) { animation-name: fx-in-boot; animation-timing-function: ease-out; }
.bio-page[data-entrance=glitch] > :is([data-bio-block], .bio-cover) { animation-name: fx-in-glitch; animation-timing-function: steps(1, end); animation-duration: .8s; }
.bio-page[data-entrance=scan] > :is([data-bio-block], .bio-cover) { animation-name: fx-in-scan; animation-duration: 1.1s; animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
.bio-page[data-entrance=warp] > :is([data-bio-block], .bio-cover) { animation-name: fx-in-warp; animation-duration: 1s; }
.bio-page[data-entrance=drop] > :is([data-bio-block], .bio-cover) { animation-name: fx-in-drop; animation-duration: 1s; animation-timing-function: ease-out; }
.bio-public.is-gated .bio-page > :is([data-bio-block], .bio-cover) { animation-play-state: paused !important; }
html.is-preview-settled:not(.is-entrance-replay) .bio-page > :is([data-bio-block], .bio-cover) { animation: none; }

/* ---------- Text effects ----------
   Letter effects (wave, jelly, pop, broken neon) are split into .bio-ch
   spans by js/bio_effects.js, with --i as each letter's index. */
.bio-text-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bio-page .bio-word { display: inline-block; white-space: nowrap; }
.bio-page .bio-ch { display: inline-block; white-space: pre; }
.bio-page [data-text-effect=wave] .bio-ch { animation: fx-wave 1.8s ease-in-out var(--text-repeat, infinite); animation-delay: calc(var(--i) * 65ms); }
.bio-page [data-text-effect=jelly] .bio-ch { animation: fx-jelly 2.6s ease-in-out var(--text-repeat, infinite); animation-delay: calc(var(--i) * 55ms); transform-origin: 50% 90%; }
.bio-page [data-text-effect=pop] .bio-ch { animation: fx-pop var(--text-duration, 5s) cubic-bezier(.3, 1.6, .5, 1) var(--text-repeat, infinite) both; animation-delay: calc(var(--i) * 45ms); }
.bio-page [data-text-effect=flicker] { color: var(--bio-accent-hi); text-shadow: 0 0 4px var(--bio-accent), 0 0 14px var(--bio-accent), 0 0 34px rgba(var(--bio-rgb), .55); }
.bio-page [data-text-effect=flicker] .bio-ch.is-flaky { animation: fx-flaky 3.6s steps(1, end) infinite; animation-delay: var(--d, 0s); }
.bio-page [data-text-effect=matrix] .bio-text-noise { color: var(--bio-accent); text-shadow: 0 0 8px rgba(var(--bio-rgb), .8); opacity: .85; }

.bio-page [data-text-effect=chromatic] > span { display: inline-block; text-shadow: -2px 0 rgba(var(--bio-red-rgb), .75), 2px 0 rgba(var(--bio-rgb), .75); animation: fx-chroma 3s ease-in-out var(--text-repeat, infinite); }
.bio-page [data-text-effect=hologram] { animation: fx-holo-jitter 5s steps(1, end) infinite; }
.bio-page [data-text-effect=hologram] > span {
  color: transparent;
  text-shadow: none;
  background: repeating-linear-gradient(0deg, rgba(var(--bio-rgb), .95) 0 2px, rgba(var(--bio-rgb), .4) 2px 3px) 0 0 / 100% 6px;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(var(--bio-rgb), .75));
  animation: fx-holo-lines 1.4s linear infinite, fx-holo-flicker 4.2s steps(1, end) infinite;
}
.bio-page [data-text-effect=slice] { --fx-ink: var(--bio-text); }
.bio-page p[data-text-effect=slice] { --fx-ink: var(--bio-body); }
.bio-page [data-text-effect=slice] > span { position: relative; display: inline-block; color: transparent; }
.bio-page [data-text-effect=slice] > span::before,
.bio-page [data-text-effect=slice] > span::after { content: attr(data-text); position: absolute; inset: 0; color: var(--fx-ink); white-space: pre-wrap; }
.bio-page [data-text-effect=slice] > span::before { clip-path: inset(0 0 52% 0); animation: fx-slice-top var(--text-duration, 4s) cubic-bezier(.7, 0, .2, 1) var(--text-repeat, infinite); }
.bio-page [data-text-effect=slice] > span::after { clip-path: inset(48% 0 0 0); color: var(--bio-accent-hi); text-shadow: 0 0 10px rgba(var(--bio-rgb), .6); animation: fx-slice-bottom var(--text-duration, 4s) cubic-bezier(.7, 0, .2, 1) var(--text-repeat, infinite); }
.bio-page [data-text-effect=redact] > span {
  background: linear-gradient(var(--bio-accent), var(--bio-accent)) right / 100% 100% no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: fx-redact var(--text-duration, 5s) cubic-bezier(.75, 0, .25, 1) var(--text-repeat, infinite) both;
}
.bio-page [data-text-effect=chrome] > span {
  display: inline-block;
  /* Room for the italic overhang, so the last letter is filled too. */
  padding: 0 .14em;
  margin: 0 -.14em;
  color: transparent;
  font-style: italic;
  background:
    linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%) 0 0 / 250% 100%,
    linear-gradient(180deg, #f8fdff 0%, #a9dcff 32%, #39407c 47%, #120f2e 50%, #ff8fd0 53%, #ffd2ee 74%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: .5px rgba(255, 255, 255, .4);
  text-shadow: none;
  filter: drop-shadow(0 .06em 0 rgba(var(--bio-rgb), .9)) drop-shadow(0 0 .35em rgba(255, 46, 136, .45));
  animation: fx-chrome-shine var(--text-duration, 5s) ease-in-out var(--text-repeat, infinite);
}
.bio-page [data-text-effect=retro3d] > span {
  display: inline-block;
  color: var(--bio-accent-hi);
  text-shadow:
    .03em .03em 0 rgba(var(--bio-rgb), .95), .06em .06em 0 rgba(var(--bio-rgb), .85), .09em .09em 0 rgba(var(--bio-rgb), .7),
    .12em .12em 0 rgba(var(--bio-red-rgb), .75), .15em .15em 0 rgba(var(--bio-red-rgb), .6), .18em .18em 0 rgba(var(--bio-red-rgb), .45),
    .2em .24em .4em rgba(0, 0, 0, .5);
  animation: fx-retro-bob var(--text-duration, 5s) ease-in-out var(--text-repeat, infinite);
}
.bio-page [data-text-effect=manga] > span {
  position: relative;
  isolation: isolate;
  display: inline-block;
  font-style: italic;
  font-weight: 800;
  color: var(--bio-text);
  /* A heavy ink outline drawn from shadows, so the fill stays on top. */
  text-shadow:
    .05em 0 #000, -.05em 0 #000, 0 .05em #000, 0 -.05em #000,
    .036em .036em #000, -.036em .036em #000, .036em -.036em #000, -.036em -.036em #000,
    .11em .11em 0 #000;
  transform: skewX(-6deg);
  animation: fx-manga-punch var(--text-duration, 5s) cubic-bezier(.3, 1.6, .5, 1) var(--text-repeat, infinite);
}
.bio-page [data-text-effect=manga] > span::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: translate(.17em, .17em);
  color: transparent;
  text-shadow: none;
  background: radial-gradient(circle, var(--bio-accent) 30%, transparent 33%) 0 0 / .15em .15em;
  -webkit-background-clip: text;
  background-clip: text;
  white-space: pre-wrap;
}
.bio-page [data-text-effect=aura]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30% -8% -6%;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(var(--bio-rgb), .45), transparent 70%);
  filter: blur(12px);
  animation: fx-aura-flare .9s ease-in-out infinite alternate;
  pointer-events: none;
}
.bio-page [data-text-effect=aura] > span {
  display: inline-block;
  color: #fff;
  text-shadow: 0 0 .08em #fff, 0 0 .3em var(--bio-accent-hi), 0 0 .6em var(--bio-accent), 0 -.2em 1em rgba(var(--bio-rgb), .7);
  animation: fx-aura .42s ease-in-out infinite alternate, fx-aura-quake var(--text-duration, 5s) steps(1, end) var(--text-repeat, infinite);
}
.bio-page [data-text-effect=shake]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -60% -12%;
  background: repeating-conic-gradient(from 0deg, rgba(var(--bio-rgb), .45) 0 1.5deg, transparent 1.5deg 9deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 38%, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, transparent 38%, #000 55%, transparent 100%);
  opacity: 0;
  animation: fx-impact-lines var(--text-duration, 5s) ease-out var(--text-repeat, infinite);
  pointer-events: none;
}
.bio-page [data-text-effect=shake] > span { display: inline-block; animation: fx-impact var(--text-duration, 5s) var(--text-repeat, infinite) both; }
.bio-page [data-text-effect=fire] > span {
  display: inline-block;
  color: #fff4dc;
  text-shadow: 0 0 .04em #fff, 0 -.05em .18em #ffd27f, 0 -.12em .32em #ff9a3c, 0 -.22em .5em #ff5a1f, 0 -.34em .8em #d8322c;
  animation: fx-fire 1.3s ease-in-out infinite alternate;
}
.bio-page [data-text-effect=sparkle] > span {
  color: transparent;
  text-shadow: none;
  background: linear-gradient(110deg, var(--bio-accent-hi) 38%, #fff 48%, var(--bio-accent-hi) 58%) 0 0 / 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(var(--bio-rgb), .45));
  animation: s-shimmer var(--text-duration, 4s) ease-in-out var(--text-repeat, infinite);
}
.bio-glint {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  background: radial-gradient(circle, #fff 0 14%, var(--bio-accent-hi) 26%, rgba(var(--bio-rgb), .4) 46%, transparent 62%);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  opacity: 0;
  pointer-events: none;
  animation: fx-glint 2.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.bio-page :is([data-text-effect=rainbow], [data-text-effect=shimmer], [data-text-effect=gradient], [data-text-effect=hologram], [data-text-effect=chrome]) > span { text-shadow: none; }

/* ---------- Link cards ---------- */
.bio-link-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; }
/* Glass: frosted, lit from the top edge. */
.bio-page[data-button-style=glass] .bio-link-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .015) 55%, rgba(var(--bio-rgb), .07));
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 0 0 1px rgba(var(--bio-rgb), .22);
}
.bio-page[data-button-style=glass] .bio-link-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03) 55%, rgba(var(--bio-rgb), .13));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(var(--bio-rgb), .55);
}
/* Outline: a crisp accent wireframe, empty inside. */
.bio-page[data-button-style=outline] .bio-link-card { background: transparent; box-shadow: inset 0 0 0 1px rgba(var(--bio-rgb), .75); }
.bio-page[data-button-style=outline] .bio-link-card::before { background: linear-gradient(to bottom left, transparent calc(50% - 1px), var(--bio-accent) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.bio-page[data-button-style=outline] .bio-link-card::after { background: linear-gradient(to top right, transparent calc(50% - 1px), var(--bio-accent) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.bio-page[data-button-style=outline] .bio-link-copy strong { color: var(--bio-accent-hi); }
.bio-page[data-button-style=outline] .bio-link-card:hover { background: rgba(var(--bio-rgb), .06); box-shadow: inset 0 0 0 1px var(--bio-accent-hi), inset 0 0 20px rgba(var(--bio-rgb), .16); }
/* Terminal: the list is a shell window; each link is a command line. */
.bio-page[data-button-style=terminal] .bio-link-list {
  --term-fg: var(--s-link-text-color, #d8e3ee);
  position: relative;
  gap: 2px;
  padding: 36px 8px 10px;
  border-radius: 8px;
  background: #06090d;
  box-shadow: inset 0 0 0 1px rgba(var(--bio-rgb), .3), 0 22px 44px -24px rgba(0, 0, 0, .9), inset 0 0 50px rgba(var(--bio-rgb), .05);
  counter-reset: term;
  font-family: var(--fx-mono);
}
.bio-page[data-button-style=terminal] .bio-link-list::before {
  content: "~/links — zsh";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px 8px 0 0;
  color: rgba(255, 255, 255, .42);
  font: 500 10px/1 var(--fx-mono);
  letter-spacing: .14em;
  background:
    radial-gradient(circle at 15px 50%, #ff5f6d 0 3.5px, transparent 4px),
    radial-gradient(circle at 29px 50%, #ffc857 0 3.5px, transparent 4px),
    radial-gradient(circle at 43px 50%, var(--bio-accent) 0 3.5px, transparent 4px),
    rgba(255, 255, 255, .035);
  box-shadow: inset 0 -1px rgba(var(--bio-rgb), .2);
}
.bio-page[data-button-style=terminal] .bio-link-list > .bio-section-title { margin: 2px 10px 8px; color: rgba(255, 255, 255, .38); font: 500 11px/1.4 var(--fx-mono); letter-spacing: .04em; text-align: left; text-transform: none; }
.bio-page[data-button-style=terminal] .bio-link-list > .bio-section-title::before { content: "# "; }
.bio-page[data-button-style=terminal] .bio-link-card {
  min-height: 46px;
  gap: 12px;
  padding: 8px 12px;
  color: var(--term-fg);
  background: transparent;
  box-shadow: none;
  clip-path: none;
  border-radius: 4px;
  counter-increment: term;
}
.bio-page[data-button-style=terminal] .bio-link-card::before {
  content: counter(term, decimal-leading-zero);
  position: static;
  order: -2;
  width: auto;
  height: auto;
  background: none;
  color: rgba(255, 255, 255, .26);
  font: 11px/1 var(--fx-mono);
}
.bio-page[data-button-style=terminal] .bio-link-card::after { content: "↵"; position: static; order: 5; width: auto; height: auto; background: none; color: var(--bio-accent); font: 15px/1 var(--fx-mono); opacity: 0; transition: opacity .15s; }
.bio-page[data-button-style=terminal] .bio-link-image { width: 22px; height: 22px; filter: grayscale(1) brightness(1.5); opacity: .75; transition: filter .15s, opacity .15s; }
.bio-page[data-button-style=terminal] .bio-link-image--negative { filter: invert(1) grayscale(1) brightness(1.5); }
.bio-page[data-button-style=terminal] .bio-link-copy { gap: 2px; }
.bio-page[data-button-style=terminal] .bio-link-copy strong { color: var(--term-fg); font: 500 13px/1.4 var(--fx-mono); letter-spacing: .02em; text-transform: lowercase; }
.bio-page[data-button-style=terminal] .bio-link-copy strong::before { content: "$ open "; color: var(--bio-accent); }
.bio-page[data-button-style=terminal] .bio-link-card--copy .bio-link-copy strong::before { content: "$ copy "; }
.bio-page[data-button-style=terminal] .bio-link-copy small { color: rgba(255, 255, 255, .4); font: 11px/1.5 var(--fx-mono); }
.bio-page[data-button-style=terminal] .bio-link-copy small::before { content: "# "; }
.bio-page[data-button-style=terminal] .bio-link-arrow { display: none; }
.bio-page[data-button-style=terminal] .bio-link-card:hover { background: rgba(var(--bio-rgb), .12); box-shadow: inset 2px 0 var(--bio-accent); }
.bio-page[data-button-style=terminal] .bio-link-card:hover::after { opacity: 1; }
.bio-page[data-button-style=terminal] .bio-link-card:hover .bio-link-image { filter: none; opacity: 1; }
.bio-page[data-button-style=terminal] .bio-link-card:hover .bio-link-copy strong::after { content: "▋"; margin-left: 2px; color: var(--bio-accent); animation: fx-blink 1s steps(1, end) infinite; }
[data-button-style=terminal] .bio-link-list[data-link-layout=icons] .bio-link-card::before { display: none; }

/* ---------- Link hover ----------
   Motion runs on the card's contents, never the card itself: the card's
   own animation is its arrival, which would replay on every mouse-out. */
.bio-link-card { transition: transform .22s cubic-bezier(.2, .8, .2, 1), background-color .18s ease, box-shadow .18s ease, color .18s ease; }
.bio-page[data-s-link-hover=slide] .bio-link-card:hover { transform: translateX(6px); }
.bio-page[data-s-link-hover=slide] .bio-link-fx { opacity: 1; background: linear-gradient(90deg, rgba(var(--bio-rgb), .24), rgba(var(--bio-rgb), 0) 75%); transform: scaleX(0); transform-origin: left; transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
.bio-page[data-s-link-hover=slide] .bio-link-card:hover .bio-link-fx { transform: none; }
.bio-page[data-s-link-hover=lift] .bio-link-card:hover { transform: translateY(-4px); }
.bio-page[data-s-link-hover=lift] .bio-link-fx { background: linear-gradient(transparent 55%, rgba(var(--bio-rgb), .22)); box-shadow: inset 0 -2px var(--bio-accent); transition: opacity .2s; }
.bio-page[data-s-link-hover=lift] .bio-link-card:hover .bio-link-fx { opacity: 1; }
.bio-page[data-s-link-hover=lift] .bio-link-card:hover .bio-link-image { transform: translateY(-2px) scale(1.06); }
.bio-page[data-s-link-hover=grow] .bio-link-card { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background-color .18s, box-shadow .18s, color .18s; }
.bio-page[data-s-link-hover=grow] .bio-link-card:hover { transform: scale(1.035); }
.bio-page[data-s-link-hover=grow] .bio-link-fx { background: radial-gradient(ellipse at 50% 120%, rgba(var(--bio-rgb), .3), transparent 70%); transition: opacity .25s; }
.bio-page[data-s-link-hover=grow] .bio-link-card:hover .bio-link-fx { opacity: 1; }
.bio-page[data-s-link-hover=glow] .bio-link-card:hover { box-shadow: inset 0 0 0 1px var(--bio-accent-hi), inset 0 0 24px rgba(var(--bio-rgb), .45); }
.bio-page[data-s-link-hover=glow] .bio-link-fx { background: radial-gradient(ellipse at 50% 50%, rgba(var(--bio-rgb), .22), transparent 75%); transition: opacity .25s; }
.bio-page[data-s-link-hover=glow] .bio-link-card:hover .bio-link-fx { opacity: 1; animation: fx-breathe 1.8s ease-in-out infinite; }
.bio-page[data-s-link-hover=glow] .bio-link-card:hover .bio-link-copy strong { text-shadow: 0 0 10px rgba(var(--bio-rgb), .95), 0 0 22px rgba(var(--bio-rgb), .5); }
.bio-page[data-s-link-hover=glow] .bio-link-card:hover .bio-link-image { filter: drop-shadow(0 0 8px rgba(var(--bio-rgb), .85)); }
.bio-page[data-s-link-hover=glitch] .bio-link-card:hover > :not(.bio-link-fx) { animation: fx-card-jitter .55s steps(1, end) 1; }
.bio-page[data-s-link-hover=glitch] .bio-link-card:hover .bio-link-copy strong { text-shadow: -2px 0 rgba(var(--bio-red-rgb), .85), 2px 0 rgba(var(--bio-rgb), .85); }
.bio-page[data-s-link-hover=glitch] .bio-link-fx { background: linear-gradient(transparent 24%, rgba(var(--bio-rgb), .38) 24% 31%, transparent 31% 63%, rgba(var(--bio-red-rgb), .32) 63% 67%, transparent 67%); }
.bio-page[data-s-link-hover=glitch] .bio-link-card:hover .bio-link-fx { animation: fx-card-slices .55s steps(1, end) 1 forwards; }
.bio-page[data-s-link-hover=scan] .bio-link-fx {
  background:
    linear-gradient(180deg, transparent 44%, rgba(var(--bio-rgb), .65) 50%, transparent 56%) 0 120% / 100% 260% no-repeat,
    repeating-linear-gradient(0deg, rgba(var(--bio-rgb), .07) 0 1px, transparent 1px 3px);
}
.bio-page[data-s-link-hover=scan] .bio-link-card:hover .bio-link-fx { opacity: 1; animation: fx-card-scan 1.2s cubic-bezier(.4, 0, .2, 1) infinite; }
.bio-page[data-s-link-hover=fill] .bio-link-fx { opacity: 1; background: var(--bio-accent); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.7, 0, .2, 1); }
.bio-page[data-s-link-hover=fill] .bio-link-card:hover .bio-link-fx { transform: none; }
.bio-page[data-s-link-hover=fill] .bio-link-card:hover { color: var(--bio-ink); transition-delay: 0s, 0s, 0s, .17s; }
.bio-page[data-s-link-hover=fill] .bio-link-card:hover :is(.bio-link-copy strong, .bio-link-copy small) { color: var(--bio-ink); text-shadow: none; }
.bio-page[data-s-link-hover=fill] .bio-link-card:hover .bio-link-copy strong::before { color: var(--bio-ink); }
.bio-page[data-s-link-hover=fill] .bio-link-card:hover .bio-link-arrow { stroke: var(--bio-ink); }
.bio-page[data-s-link-hover=fill][data-button-style=solid] .bio-link-fx { background: var(--bio-bg); }
.bio-page[data-s-link-hover=fill][data-button-style=solid] .bio-link-card:hover :is(.bio-link-copy strong, .bio-link-copy small) { color: var(--bio-accent-hi); }
.bio-page[data-s-link-hover=fill][data-button-style=solid] .bio-link-card:hover .bio-link-arrow { stroke: var(--bio-accent-hi); }
.bio-page[data-s-link-hover=tilt] .bio-link-list { perspective: 760px; }
.bio-page[data-s-link-hover=tilt] .bio-link-card { transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)); transition: transform .18s ease-out, background-color .18s, box-shadow .18s, color .18s; }
.bio-page[data-s-link-hover=tilt] .bio-link-card:hover { transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) scale(1.02); }
.bio-page[data-s-link-hover=tilt] .bio-link-fx { background: radial-gradient(circle at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, .2), rgba(var(--bio-rgb), .08) 35%, transparent 60%); transition: opacity .2s; }
.bio-page[data-s-link-hover=tilt] .bio-link-card:hover .bio-link-fx { opacity: 1; }
.bio-page[data-s-link-hover=shake] .bio-link-card:hover > :not(.bio-link-fx) { animation: fx-jolt .36s cubic-bezier(.36, .07, .19, .97) 1; }
.bio-page[data-s-link-hover=none] .bio-link-card:hover { transform: none; }
.bio-page .bio-link-image { transition: transform .25s cubic-bezier(.2, .8, .2, 1), filter .2s; }

/* ---------- Background video effects ---------- */
.bio-bgvideo::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.bio-bgvideo[data-effect=cyber] video { filter: saturate(1.55) contrast(1.15) brightness(.95); }
.bio-bgvideo[data-effect=cyber] .bio-fx__a { background: linear-gradient(135deg, rgba(255, 0, 170, .9), rgba(0, 229, 255, .9)); mix-blend-mode: color; opacity: .5; }
.bio-bgvideo[data-effect=cyber] .bio-fx__b { background: radial-gradient(ellipse 80% 50% at 50% 110%, rgba(255, 0, 170, .3), transparent 70%), radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 229, 255, .25), transparent 70%), repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px); }
.bio-bgvideo[data-effect=synthwave] video { filter: grayscale(.2) contrast(1.25) brightness(.92); }
.bio-bgvideo[data-effect=synthwave] .bio-fx__a { background: linear-gradient(180deg, #1b0638 0%, #6a1b9a 34%, #ff2e88 66%, #ffb86b 100%); mix-blend-mode: color; opacity: .78; }
.bio-bgvideo[data-effect=synthwave] .bio-fx__b { background: linear-gradient(transparent 60%, rgba(255, 46, 136, .22)), repeating-linear-gradient(0deg, rgba(0, 0, 0, .2) 0 2px, transparent 2px 4px); }
.bio-bgvideo[data-effect=nightvision] video { filter: grayscale(1) brightness(1.35) contrast(1.45); animation: fx-nv-flicker 5s steps(1, end) infinite; }
.bio-bgvideo[data-effect=nightvision] .bio-fx__a { background: #34ff72; mix-blend-mode: multiply; }
.bio-bgvideo[data-effect=nightvision] .bio-fx__b { background: radial-gradient(ellipse 75% 75% at 50% 50%, transparent 55%, rgba(0, 0, 0, .9) 86%), repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px); }
.bio-bgvideo[data-effect=nightvision]::before { background: var(--bio-noise) 0 0 / 150px 150px; opacity: .35; mix-blend-mode: screen; animation: bio-static .35s steps(1, end) infinite; }
.bio-bgvideo[data-effect=cinematic] video { filter: contrast(1.12) saturate(1.12); }
.bio-bgvideo[data-effect=cinematic] .bio-fx__a { background: linear-gradient(180deg, rgba(0, 110, 130, .5), rgba(255, 140, 60, .4)); mix-blend-mode: soft-light; }
.bio-bgvideo[data-effect=cinematic] .bio-fx__b { background: linear-gradient(#000, #000) top / 100% 9vh no-repeat, linear-gradient(#000, #000) bottom / 100% 9vh no-repeat, radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, .45)); }
.bio-bgvideo[data-effect=cinematic]::before { background: var(--bio-noise) 0 0 / 170px 170px; opacity: .14; animation: bio-static .5s steps(1, end) infinite; }
.bio-bgvideo[data-effect=lightleak] video { filter: saturate(1.15) brightness(1.04); }
.bio-bgvideo[data-effect=lightleak] .bio-fx__a { background: radial-gradient(ellipse 45% 60% at 0% 20%, rgba(255, 120, 40, .6), transparent 70%), radial-gradient(ellipse 35% 50% at 100% 85%, rgba(255, 40, 120, .5), transparent 70%); mix-blend-mode: screen; animation: fx-leak-a 11s ease-in-out infinite alternate; }
.bio-bgvideo[data-effect=lightleak] .bio-fx__b { background: radial-gradient(ellipse 30% 70% at 85% 0%, rgba(255, 210, 120, .45), transparent 70%), radial-gradient(ellipse 25% 40% at 20% 100%, rgba(255, 90, 200, .3), transparent 70%); mix-blend-mode: screen; animation: fx-leak-b 7s ease-in-out infinite alternate; }
.bio-bgvideo[data-effect=rainglass] video { filter: blur(3px) brightness(.82) saturate(1.2); transform: scale(1.05); }
.bio-bgvideo[data-effect=rainglass] .bio-fx__a {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cdefs%3E%3CradialGradient id='d' cx='.38' cy='.32' r='.7'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.9'/%3E%3Cstop offset='.35' stop-color='%23fff' stop-opacity='.18'/%3E%3Cstop offset='.8' stop-color='%23fff' stop-opacity='.04'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='.35'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cg fill='url(%23d)'%3E%3Cellipse cx='22' cy='30' rx='4' ry='5'/%3E%3Cellipse cx='71' cy='12' rx='2.5' ry='3'/%3E%3Cellipse cx='118' cy='58' rx='6' ry='7'/%3E%3Cellipse cx='190' cy='26' rx='3' ry='3.6'/%3E%3Cellipse cx='236' cy='80' rx='4.5' ry='5.5'/%3E%3Cellipse cx='40' cy='110' rx='3' ry='3.5'/%3E%3Cellipse cx='92' cy='150' rx='2' ry='2.4'/%3E%3Cellipse cx='160' cy='120' rx='5' ry='6'/%3E%3Cellipse cx='214' cy='170' rx='2.5' ry='3'/%3E%3Cellipse cx='16' cy='200' rx='5.5' ry='6.5'/%3E%3Cellipse cx='70' cy='232' rx='3.5' ry='4'/%3E%3Cellipse cx='130' cy='205' rx='2' ry='2.5'/%3E%3Cellipse cx='176' cy='246' rx='4' ry='4.8'/%3E%3Cellipse cx='248' cy='226' rx='2' ry='2.3'/%3E%3Cellipse cx='104' cy='96' rx='1.6' ry='1.9'/%3E%3Cellipse cx='58' cy='70' rx='1.4' ry='1.6'/%3E%3Cellipse cx='226' cy='126' rx='1.5' ry='1.8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 260px;
  mix-blend-mode: screen;
  opacity: .85;
}
.bio-bgvideo[data-effect=rainglass] .bio-fx__b {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='600'%3E%3Cdefs%3E%3ClinearGradient id='t' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='.85' stop-color='%23fff' stop-opacity='.22'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='.7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='url(%23t)'%3E%3Cpath d='M40 0q2 60 -1 120t2 90h3q-2-50 1-110t-2-100z'/%3E%3Cpath d='M152 180q-2 70 1 140t-1 60h2.6q1-40 -1-100t1-100z'/%3E%3Cpath d='M250 330q2 50 -1 100t2 90h3q-2-40 1-90t-2-100z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 300px 600px;
  mix-blend-mode: screen;
  animation: fx-rain-run 7s linear infinite;
}
.bio-bgvideo[data-effect=bloom] video { filter: brightness(1.04) contrast(1.08) saturate(1.2); }
.bio-bgvideo[data-effect=bloom] .bio-fx__a { -webkit-backdrop-filter: blur(22px) brightness(1.6) saturate(1.3); backdrop-filter: blur(22px) brightness(1.6) saturate(1.3); mix-blend-mode: screen; opacity: .55; }
.bio-bgvideo[data-effect=bloom] .bio-fx__b { background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .35)); }
.bio-bgvideo[data-effect=parallax] video { transform: scale(1.12) translate(var(--bgv-px, 0%), var(--bgv-py, 0%)); will-change: transform; }
.bio-bgvideo[data-effect=parallax] .bio-fx__a { background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .5)); }
.bio-bgvideo[data-effect=drift] video { animation: fx-drift 40s ease-in-out infinite alternate; }
.bio-bgvideo[data-effect=drift] .bio-fx__a { background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .45)); }

/* ---------- Keyframes ---------- */
@keyframes fx-blink { 50% { opacity: 0; } }
@keyframes fx-interlace { to { background-position: 0 140vh, 0 0; } }
@keyframes fx-track { to { transform: translateY(140vh); } }
@keyframes fx-holo-sweep { 0%, 100% { transform: translate(-30%, -10%); } 50% { transform: translate(30%, 10%); } }
@keyframes fx-neon-breathe { 50% { box-shadow: inset 0 0 0 1.5px var(--bio-accent-hi), inset 0 0 36px rgba(var(--bio-rgb), .55), inset 0 0 120px rgba(var(--bio-rgb), .2), 0 0 0 6px rgba(var(--bio-shade-rgb), .25); } }
@keyframes fx-neon-stutter { 0%, 100% { opacity: 1; } 71% { opacity: .45; } 72% { opacity: 1; } 74% { opacity: .6; } 75% { opacity: 1; } }
@keyframes fx-scratch { 0%, 100% { opacity: 0; } 12% { opacity: 1; transform: translateX(0); } 14% { opacity: 0; } 46% { opacity: .7; transform: translateX(-40px); } 47% { opacity: 0; } 80% { opacity: .8; transform: translateX(22px); } 82% { opacity: 0; } }
@keyframes fx-film-flicker { 50% { opacity: .4; } }
@keyframes fx-in-fade { from { opacity: 0; } }
@keyframes fx-in-rise { from { opacity: 0; transform: translateY(32px); } }
@keyframes fx-in-zoom { from { opacity: 0; transform: scale(.88); } }
@keyframes fx-in-blur { from { opacity: 0; filter: blur(16px); transform: scale(1.04); } }
@keyframes fx-in-slide { from { opacity: 0; transform: translateX(calc(var(--enter-dir, 1) * -56px)); } }
@keyframes fx-in-flip { from { opacity: 0; transform: perspective(900px) rotateX(-75deg); } }
@keyframes fx-in-boot {
  0% { opacity: 0; transform: scale(.8, .008); filter: brightness(3) saturate(0); }
  30% { opacity: 1; transform: scale(1, .008); filter: brightness(3) saturate(0); }
  55% { transform: scale(1, 1.04); filter: brightness(1.7) saturate(.6); }
  70% { transform: scale(1, .985); filter: brightness(1.2); }
  100% { transform: none; filter: none; }
}
@keyframes fx-in-glitch {
  0% { opacity: 0; clip-path: inset(0 0 100% 0); }
  8% { opacity: 1; clip-path: inset(12% 0 58% 0); transform: translateX(-14px); filter: drop-shadow(5px 0 rgba(var(--bio-red-rgb), .9)) drop-shadow(-5px 0 rgba(var(--bio-rgb), .9)); }
  16% { clip-path: inset(48% 0 18% 0); transform: translateX(12px) skewX(-6deg); }
  24% { clip-path: inset(0 0 0 0); transform: translateX(-5px); filter: drop-shadow(3px 0 rgba(var(--bio-red-rgb), .8)) drop-shadow(-3px 0 rgba(var(--bio-rgb), .8)); }
  32% { opacity: .35; }
  36% { opacity: 1; clip-path: inset(30% 0 40% 0); transform: translateX(6px); }
  44% { clip-path: inset(0 0 0 0); transform: none; filter: drop-shadow(2px 0 rgba(var(--bio-red-rgb), .7)) drop-shadow(-2px 0 rgba(var(--bio-rgb), .7)); }
  60% { transform: translateX(-2px); }
  70%, 100% { opacity: 1; clip-path: inset(0); transform: none; filter: none; }
}
@keyframes fx-in-scan {
  0% { clip-path: inset(0 0 100% 0); filter: brightness(2.4) saturate(1.6); }
  70% { clip-path: inset(0 0 0 0); filter: brightness(1.35); }
  100% { clip-path: inset(0 0 0 0); filter: none; }
}
@keyframes fx-in-warp {
  0% { opacity: 0; transform: scale(.3, 1.9); filter: blur(18px) brightness(2); }
  55% { opacity: 1; transform: scale(1.05, .96); filter: blur(0) brightness(1.25); }
  75% { transform: scale(.99, 1.01); }
  100% { transform: none; filter: none; }
}
@keyframes fx-in-drop {
  0% { opacity: 0; transform: translateY(-90px); }
  50% { opacity: 1; transform: translateY(10px); }
  68% { transform: translateY(-6px); }
  84% { transform: translateY(2px); }
  100% { transform: none; }
}
@keyframes fx-wave { 0%, 45%, 100% { transform: none; } 22% { transform: translateY(-.3em); color: var(--bio-accent-hi); text-shadow: 0 0 12px rgba(var(--bio-rgb), .8); } }
@keyframes fx-jelly { 0%, 50%, 100% { transform: none; } 10% { transform: scale(1.25, .75); } 20% { transform: scale(.82, 1.2) translateY(-.12em); } 30% { transform: scale(1.1, .9); } 40% { transform: scale(.96, 1.04); } }
@keyframes fx-pop { 0% { opacity: 0; transform: scale(0) translateY(.3em); } 7% { opacity: 1; transform: scale(1.3); } 11% { transform: scale(.92); } 14%, 100% { opacity: 1; transform: none; } }
@keyframes fx-flaky { 0%, 100% { opacity: 1; } 10% { opacity: .12; text-shadow: none; } 11% { opacity: 1; } 13% { opacity: .2; text-shadow: none; } 15% { opacity: 1; } 58% { opacity: 1; } 59% { opacity: .25; text-shadow: none; } 62% { opacity: 1; } }
@keyframes fx-chroma {
  0%, 100% { text-shadow: -2px 0 rgba(var(--bio-red-rgb), .75), 2px 0 rgba(var(--bio-rgb), .75); }
  30% { text-shadow: -3px -1px rgba(var(--bio-red-rgb), .75), 3px 1px rgba(var(--bio-rgb), .75); }
  48% { text-shadow: 2px 0 rgba(var(--bio-red-rgb), .75), -2px 0 rgba(var(--bio-rgb), .75); transform: none; }
  50% { text-shadow: -7px 0 rgba(var(--bio-red-rgb), .9), 7px 0 rgba(var(--bio-rgb), .9); transform: translateX(2px); }
  52% { text-shadow: -2px 0 rgba(var(--bio-red-rgb), .75), 2px 0 rgba(var(--bio-rgb), .75); transform: none; }
}
@keyframes fx-holo-lines { to { background-position: 0 6px; } }
@keyframes fx-holo-flicker { 0%, 100% { opacity: 1; } 31% { opacity: .55; } 32% { opacity: 1; } 70% { opacity: .75; } 71% { opacity: 1; } }
@keyframes fx-holo-jitter { 0%, 100% { transform: none; } 42% { transform: skewX(8deg) translateX(3px); } 43% { transform: none; } 81% { transform: translateX(-2px); } 82% { transform: none; } }
@keyframes fx-slice-top { 0%, 62%, 100% { transform: none; } 66% { transform: translateX(-.22em); } 72% { transform: translateX(.08em); } 76% { transform: none; } }
@keyframes fx-slice-bottom { 0%, 62%, 100% { transform: none; } 66% { transform: translateX(.26em); } 72% { transform: translateX(-.06em); } 76% { transform: none; } }
@keyframes fx-redact { 0%, 14% { background-size: 100% 100%; } 38%, 100% { background-size: 0% 100%; } }
@keyframes fx-chrome-shine { 0%, 55% { background-position: 125% 0, 0 0; } 85%, 100% { background-position: -125% 0, 0 0; } }
@keyframes fx-retro-bob { 0%, 100% { transform: none; } 50% { transform: translate(-.02em, -.06em); } }
@keyframes fx-manga-punch { 0% { transform: skewX(-6deg) scale(1.35); opacity: 0; } 6% { transform: skewX(-6deg) scale(.94); opacity: 1; } 10% { transform: skewX(-6deg) scale(1.04); } 14%, 100% { transform: skewX(-6deg); } }
@keyframes fx-aura { to { text-shadow: 0 0 .1em #fff, 0 0 .4em var(--bio-accent-hi), 0 -.1em .9em var(--bio-accent), 0 -.35em 1.4em rgba(var(--bio-rgb), .9); } }
@keyframes fx-aura-flare { from { transform: scaleY(.9); opacity: .65; } to { transform: scaleY(1.12) translateY(-4%); opacity: 1; } }
@keyframes fx-aura-quake { 0%, 9%, 100% { transform: none; } 2% { transform: translate(1px, -1px); } 4% { transform: translate(-1px, 1px); } 6% { transform: translate(1px, 0); } 8% { transform: translate(-1px, -1px); } }
@keyframes fx-impact { 0% { opacity: 0; transform: scale(1.7); filter: blur(4px); } 6% { opacity: 1; transform: scale(.94); filter: none; } 9% { transform: scale(1.05); } 12% { transform: none; } 13% { transform: translate(-3px, 1px) rotate(-1deg); } 14% { transform: translate(3px, -1px) rotate(1deg); } 15% { transform: translate(-2px, 0); } 16% { transform: translate(2px, 1px); } 17%, 100% { transform: none; } }
@keyframes fx-impact-lines { 0%, 4% { opacity: 0; transform: scale(.85); } 7% { opacity: .9; transform: scale(1); } 22%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes fx-fire { 0% { text-shadow: 0 0 .04em #fff, 0 -.05em .18em #ffd27f, 0 -.12em .32em #ff9a3c, 0 -.22em .5em #ff5a1f, 0 -.34em .8em #d8322c; } 100% { text-shadow: 0 0 .05em #fff, .02em -.08em .22em #ffd27f, -.02em -.16em .38em #ff9a3c, .03em -.3em .6em #ff5a1f, -.03em -.46em .95em #d8322c; } }
@keyframes fx-glint { 0%, 100% { transform: scale(0) rotate(0deg); opacity: 0; } 14% { transform: scale(1) rotate(45deg); opacity: 1; } 28% { transform: scale(0) rotate(90deg); opacity: 0; } }
@keyframes fx-breathe { 50% { opacity: .55; } }
@keyframes fx-card-jitter { 0%, 100% { transform: none; } 12% { transform: translate(-3px, 0); } 24% { transform: translate(3px, -1px); } 36% { transform: translate(-1px, 1px); } 48% { transform: translate(2px, 0) skewX(-4deg); } 60% { transform: none; } }
@keyframes fx-card-slices { 0% { opacity: 0; } 10% { opacity: 1; transform: translateX(-6px); } 22% { transform: translateX(8px) scaleY(.6); } 34% { opacity: .6; transform: translateX(-3px); } 50% { opacity: 1; transform: translateY(12px); } 62%, 100% { opacity: 0; transform: none; } }
@keyframes fx-card-scan { from { background-position: 0 120%, 0 0; } to { background-position: 0 -20%, 0 0; } }
@keyframes fx-jolt { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(1px); } }
@keyframes fx-nv-flicker { 0%, 100% { filter: grayscale(1) brightness(1.35) contrast(1.45); } 47% { filter: grayscale(1) brightness(1.15) contrast(1.45); } 48% { filter: grayscale(1) brightness(1.4) contrast(1.45); } }
@keyframes fx-leak-a { from { transform: translate(-4%, 0) scale(1); opacity: .7; } to { transform: translate(6%, 3%) scale(1.15); opacity: 1; } }
@keyframes fx-leak-b { from { transform: translate(3%, -2%); opacity: .5; } to { transform: translate(-5%, 4%); opacity: 1; } }
@keyframes fx-rain-run { to { background-position: 0 600px; } }
@keyframes fx-drift { from { transform: scale(1.03) translate(0, 0); } to { transform: scale(1.17) translate(-2.6%, -1.6%); } }

@media (prefers-reduced-motion: reduce) {
  .bio-ov *, .bio-public::after, .bio-term__cursor,
  .bio-page [data-text-effect] .bio-ch, .bio-page [data-text-effect]::before, .bio-page [data-text-effect] > span::before, .bio-page [data-text-effect] > span::after, .bio-glint,
  .bio-link-card .bio-link-fx, .bio-link-card > *,
  .bio-bgvideo video, .bio-bgvideo .bio-fx > i, .bio-bgvideo::before { animation: none !important; }
  .bio-page > :is([data-bio-block], .bio-cover) { animation: none !important; }
  .bio-page[data-s-link-hover] .bio-link-card:hover { transform: none; }
}
