<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>:: 404 :: not found ::</title>
<link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;900&family=Share+Tech+Mono&family=Raleway:wght@300;400;500;600&display=swap" rel="stylesheet">
<style>
  :root {
    --neon: #39ff14;
    --neon-dim: #1aaa00;
    --neon-glow: #39ff1466;
    --silver: #c0c0c0;
    --silver-light: #e8e8e8;
    --silver-dim: #888;
    --black: #000000;
    --surface: #0a0f08;
    --border: #1e2e1a;

    /* iridescent palette — same as mycelium nav */
    --irid-1: #6acc50;
    --irid-2: #50c8aa;
    --irid-3: #50aacc;
    --irid-4: #c8c050;
    --irid-5: #b070cc;
    --irid-6: #cc5080;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html {
    background: var(--black);
    color: var(--silver);
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 13px;
    cursor: crosshair;
    height: 100%;
  }

  /* ── SCANLINES ── */
  body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0,0,0,0.12) 2px,
      rgba(0,0,0,0.12) 4px
    );
    pointer-events: none;
    z-index: 9999;
    animation: scanline-drift 8s linear infinite;
  }

  body {
    background:
      radial-gradient(ellipse 40% 30% at 50% 50%, #0f0a00 0%, transparent 70%),
      radial-gradient(ellipse 60% 40% at 30% 20%, #0a0f00 0%, transparent 60%),
      var(--black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    overflow: hidden;
  }

  /* ── EPILEPSY WARNING BANNER ── */
  #epilepsy-warning {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #0a0a00;
    border-bottom: 1px solid #3a3a00;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 99999;
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #aaa880;
  }

  #epilepsy-warning p {
    line-height: 1.6;
  }

  #epilepsy-warning strong {
    color: #cccc60;
    font-weight: normal;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  #epilepsy-dismiss {
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888860;
    background: transparent;
    border: 1px solid #3a3a00;
    padding: 4px 10px;
    cursor: crosshair;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.2s, border-color 0.2s;
  }

  #epilepsy-dismiss:hover {
    color: #cccc60;
    border-color: #8a8a00;
  }

  /* ── WRAPPER ── */
  #wrapper {
    max-width: 680px;
    width: 100%;
    position: relative;
    margin-top: 40px; /* clears the warning banner */
  }

  /* ── 404 GLITCH NUMBER ── */
  .glitch-wrap {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
  }

  .glitch-num {
    font-family: 'Cinzel', serif;
    font-size: clamp(80px, 18vw, 160px);
    font-weight: 900;
    letter-spacing: 12px;
    color: var(--neon-dim);
    text-shadow:
      0 0 10px var(--neon-glow),
      0 0 40px rgba(57,255,20,0.1);
    position: relative;
    display: inline-block;
    animation: num-flicker 7s infinite;
  }

  .glitch-num::before,
  .glitch-num::after {
    content: '404';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    font-family: 'Cinzel', serif;
    font-size: inherit;
    font-weight: 900;
    letter-spacing: 12px;
  }

  .glitch-num::before {
    color: #cc5040;
    text-shadow: 2px 0 0 #cc5040;
    animation: glitch-left 4s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  }

  .glitch-num::after {
    color: #4050cc;
    text-shadow: -2px 0 0 #4050cc;
    animation: glitch-right 4s infinite 0.1s;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  }

  /* ── DECAY BORDER — iridescent top line ── */
  .decay-border {
    border: 1px solid var(--border);
    border-top: 2px solid var(--irid-1);
    padding: 28px 32px;
    position: relative;
    background: var(--surface);
    animation: border-irid 3s linear infinite;
  }

  /* Iridescent top glow line */
  .decay-border::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    animation: topline-irid 3s linear infinite;
  }

  /* Fungal growth corner */
  .decay-border::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 60px; height: 60px;
    background:
      radial-gradient(circle at 100% 100%, rgba(57,255,20,0.08) 0%, transparent 70%);
    border-bottom: 1px solid var(--neon-dim);
    border-right: 1px solid var(--neon-dim);
    opacity: 0.4;
    animation: corner-grow 8s ease-in-out infinite;
  }

  /* ── SIGNAL LABEL ── */
  .signal-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--silver-dim);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: label-flicker 6s infinite;
  }

  .signal-label::before {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--irid-1);
    box-shadow: 0 0 6px rgba(106,204,80,0.8);
    animation: dot-irid 3s linear infinite;
    flex-shrink: 0;
  }

  /* ── MAIN MESSAGE ── */
.tree-message {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 2;
  color: var(--silver);
  margin-bottom: 24px;
  position: relative;
  font-style: italic;
  text-shadow: 0 0 1px rgba(255,255,255,0.1);
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}

  .tree-message .corrupt {
    display: inline-block;
    animation: char-decay 8s steps(1) infinite;
  }

  .tree-message .corrupt:nth-child(2) { animation-delay: 1.2s; }
  .tree-message .corrupt:nth-child(3) { animation-delay: 2.7s; }
  .tree-message .corrupt:nth-child(4) { animation-delay: 4.1s; }
  .tree-message .corrupt:nth-child(5) { animation-delay: 0.8s; }
  .tree-message .corrupt:nth-child(6) { animation-delay: 3.3s; }

  /* ── CONSTRUCTION LINE ── */
  .construction {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--silver-light);
    border-top: 1px solid var(--border);
    padding-top: 18px;
    margin-top: 4px;
    position: relative;
    animation: construction-glitch 9s infinite;
  }

  /* Iridescent strikethrough */
  .construction::after {
    content: '';
    position: absolute;
    left: 0; top: 100%;
    width: 0;
    height: 1px;
    animation:
      strikethrough 14s ease-in-out infinite 3s,
      strike-irid 3s linear infinite;
  }

  /* ── HOME LINK ── */
  .home-link-wrap {
    text-align: center;
    margin-top: 28px;
  }

  .home-link {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--neon-dim);
    text-decoration: none;
    padding: 8px 18px;
    border: 1px solid var(--border);
    display: inline-block;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
  }

  .home-link::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(57,255,20,0.06), transparent);
    transition: left 0.4s;
  }

  .home-link:hover::before { left: 100%; }

  .home-link:hover {
    color: var(--neon);
    border-color: var(--neon-dim);
    box-shadow: 0 0 10px var(--neon-glow);
  }

  /* ── ROOT DECORATION ── */
  .roots-svg {
    width: 100%;
    display: block;
    margin-top: 0;
    opacity: 0.5;
    animation: root-fade 10s ease-in-out infinite;
  }

  /* ── GLITCH BARS ── */
  .glitch-bar {
    position: fixed;
    left: 0; right: 0;
    height: 2px;
    pointer-events: none;
    z-index: 9997;
    opacity: 0;
  }

  .glitch-bar:nth-child(1) {
    top: 23%;
    animation: bar-flash 7s steps(1) infinite 0s, bar-irid 3s linear infinite;
  }
  .glitch-bar:nth-child(2) {
    top: 61%;
    animation: bar-flash 7s steps(1) infinite 2.3s, bar-irid 3s linear infinite 1s;
    height: 1px;
  }
  .glitch-bar:nth-child(3) {
    top: 44%;
    animation: bar-flash 7s steps(1) infinite 4.7s, bar-irid 3s linear infinite 2s;
    height: 3px;
  }

  /* ══════════════════════════════════════════
     IRIDESCENT COLOR KEYFRAMES
     Same palette as mycelium nav for cohesion
  ══════════════════════════════════════════ */

  @keyframes border-irid {
    0%   { border-top-color: #6acc50; }
    17%  { border-top-color: #50c8aa; }
    33%  { border-top-color: #50aacc; }
    50%  { border-top-color: #c8c050; }
    67%  { border-top-color: #b070cc; }
    83%  { border-top-color: #cc5080; }
    100% { border-top-color: #6acc50; }
  }

  @keyframes topline-irid {
    0%   { background: linear-gradient(90deg, transparent, #6acc50, transparent); box-shadow: 0 0 8px rgba(106,204,80,0.7); }
    17%  { background: linear-gradient(90deg, transparent, #50c8aa, transparent); box-shadow: 0 0 8px rgba(80,200,170,0.7); }
    33%  { background: linear-gradient(90deg, transparent, #50aacc, transparent); box-shadow: 0 0 8px rgba(80,170,204,0.7); }
    50%  { background: linear-gradient(90deg, transparent, #c8c050, transparent); box-shadow: 0 0 8px rgba(200,192,80,0.6); }
    67%  { background: linear-gradient(90deg, transparent, #b070cc, transparent); box-shadow: 0 0 8px rgba(176,112,204,0.7); }
    83%  { background: linear-gradient(90deg, transparent, #cc5080, transparent); box-shadow: 0 0 8px rgba(204,80,128,0.6); }
    100% { background: linear-gradient(90deg, transparent, #6acc50, transparent); box-shadow: 0 0 8px rgba(106,204,80,0.7); }
  }

  @keyframes dot-irid {
    0%   { background: #6acc50; box-shadow: 0 0 6px rgba(106,204,80,0.8); }
    17%  { background: #50c8aa; box-shadow: 0 0 6px rgba(80,200,170,0.8); }
    33%  { background: #50aacc; box-shadow: 0 0 6px rgba(80,170,204,0.8); }
    50%  { background: #c8c050; box-shadow: 0 0 6px rgba(200,192,80,0.7); }
    67%  { background: #b070cc; box-shadow: 0 0 6px rgba(176,112,204,0.8); }
    83%  { background: #cc5080; box-shadow: 0 0 6px rgba(204,80,128,0.7); }
    100% { background: #6acc50; box-shadow: 0 0 6px rgba(106,204,80,0.8); }
  }

  @keyframes strike-irid {
    0%   { background: #6acc50; box-shadow: 0 0 3px rgba(106,204,80,0.6); }
    17%  { background: #50c8aa; box-shadow: 0 0 3px rgba(80,200,170,0.6); }
    33%  { background: #50aacc; box-shadow: 0 0 3px rgba(80,170,204,0.6); }
    50%  { background: #c8c050; box-shadow: 0 0 3px rgba(200,192,80,0.5); }
    67%  { background: #b070cc; box-shadow: 0 0 3px rgba(176,112,204,0.6); }
    83%  { background: #cc5080; box-shadow: 0 0 3px rgba(204,80,128,0.5); }
    100% { background: #6acc50; box-shadow: 0 0 3px rgba(106,204,80,0.6); }
  }

  @keyframes bar-irid {
    0%   { background: rgba(106,204,80,0.25); }
    17%  { background: rgba(80,200,170,0.25); }
    33%  { background: rgba(80,170,204,0.25); }
    50%  { background: rgba(200,192,80,0.2); }
    67%  { background: rgba(176,112,204,0.25); }
    83%  { background: rgba(204,80,128,0.2); }
    100% { background: rgba(106,204,80,0.25); }
  }

  /* ══════════════════════════════════════════
     OTHER KEYFRAMES
  ══════════════════════════════════════════ */

  @keyframes scanline-drift {
    from { background-position: 0 0; }
    to   { background-position: 0 40px; }
  }

  @keyframes num-flicker {
    0%, 89%, 91%, 93%, 100% { opacity: 1; }
    90%  { opacity: 0.6; }
    92%  { opacity: 0.9; }
  }

  @keyframes glitch-left {
    0%, 85%, 100% { transform: translate(0); opacity: 0; }
    86%  { transform: translate(-3px, 1px); opacity: 0.7; }
    87%  { transform: translate(2px, -1px); opacity: 0.5; }
    88%  { transform: translate(-1px, 2px); opacity: 0.8; }
    89%  { transform: translate(0); opacity: 0; }
  }

  @keyframes glitch-right {
    0%, 85%, 100% { transform: translate(0); opacity: 0; }
    86%  { transform: translate(3px, -1px); opacity: 0.6; }
    87%  { transform: translate(-2px, 1px); opacity: 0.4; }
    88%  { transform: translate(1px, -2px); opacity: 0.7; }
    89%  { transform: translate(0); opacity: 0; }
  }

  @keyframes label-flicker {
    0%, 100% { opacity: 1; }
    60%  { opacity: 0.7; }
    61%  { opacity: 1; }
    90%  { opacity: 0.5; }
    91%  { opacity: 1; }
  }

@keyframes char-decay {
  0%, 88%, 100% { opacity: 1; }
  89%  { opacity: 0.2; }
  90%  { opacity: 1; }
}

  @keyframes construction-glitch {
    0%, 79%, 83%, 100% { transform: translate(0); letter-spacing: 4px; }
    80%  { transform: translate(-2px, 0); letter-spacing: 6px; color: var(--irid-2); }
    81%  { transform: translate(2px, 0); letter-spacing: 2px; }
    82%  { transform: translate(0); letter-spacing: 4px; color: var(--silver-light); }
  }

  @keyframes strikethrough {
    0%   { width: 0; opacity: 1; }
    40%  { width: 100%; opacity: 1; }
    60%  { width: 100%; opacity: 0.5; }
    80%  { width: 0; left: 100%; opacity: 0; }
    100% { width: 0; left: 0; opacity: 0; }
  }

  @keyframes corner-grow {
    0%, 100% { width: 60px; height: 60px; opacity: 0.4; }
    50%  { width: 80px; height: 80px; opacity: 0.6; }
  }

  @keyframes root-fade {
    0%, 100% { opacity: 0.45; }
    50%  { opacity: 0.65; }
  }

  @keyframes bar-flash {
    0%, 94%, 100% { opacity: 0; }
    95%  { opacity: 1; }
    96%  { opacity: 0; }
    97%  { opacity: 0.5; }
    98%  { opacity: 0; }
  }

  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--black); }
  ::-webkit-scrollbar-thumb { background: var(--neon-dim); }
</style>
</head>
<body>

  <!-- glitch bars -->
  <div class="glitch-bar"></div>
  <div class="glitch-bar"></div>
  <div class="glitch-bar"></div>

  <!-- ── EPILEPSY WARNING ── -->
  <div id="epilepsy-warning" role="alert">
    <p><strong>photosensitivity notice</strong> · this page contains flashing lights and sudden visual movement. if you are sensitive to these effects, please proceed with care.</p>
    <button id="epilepsy-dismiss" onclick="dismissWarning()" aria-label="dismiss notice">ok, noted</button>
  </div>

  <div id="wrapper">

    <div class="glitch-wrap">
      <span class="glitch-num">404</span>
    </div>

    <div class="decay-border">

      <div class="signal-label">signal lost · root query returned null</div>

<p class="tree-message">
  the great tree has sought news of this location through their extensive
  <span class="corrupt">roots,</span> but all that
  <span class="corrupt">returns</span> is the hum of traffic
  <span class="corrupt">rumbling</span> over asphalt and the acrid taste of
  their oily <span class="corrupt">excrement.</span>
</p>
      <div class="construction">page under construction.</div>

    </div>

<svg class="roots-svg" viewBox="0 0 680 80" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMin meet">
  <!-- main thick roots — run horizontally before diving -->
  <path d="M 0,8 C 40,6 90,18 140,14 C 190,10 220,28 280,22 C 340,16 380,30 440,24 C 500,18 540,32 600,26 C 640,22 660,30 680,28" fill="none" stroke="#2a5222" stroke-width="1.8" stroke-linecap="round"/>
  <path d="M 20,4 C 60,12 100,8 160,20 C 210,30 250,18 310,26 C 360,32 400,20 460,30 C 510,38 560,24 620,34 C 650,40 670,36 680,40" fill="none" stroke="#1e4018" stroke-width="1.4" stroke-linecap="round"/>
  <path d="M 0,22 C 50,16 80,32 130,28 C 180,24 200,38 260,32 C 320,26 350,40 410,36 C 460,32 500,44 560,40 C 610,36 650,48 680,44" fill="none" stroke="#2a5222" stroke-width="1.6" stroke-linecap="round"/>

  <!-- mid-depth roots — more wandering -->
  <path d="M 30,2 C 50,20 40,38 60,50 C 80,62 70,72 85,78" fill="none" stroke="#2a5222" stroke-width="1.3" stroke-linecap="round"/>
  <path d="M 80,0 C 100,14 120,10 130,28 C 140,44 120,56 130,70 C 136,78 140,80 145,80" fill="none" stroke="#1e4018" stroke-width="1.1" stroke-linecap="round"/>
  <path d="M 140,6 C 120,22 110,36 125,50 C 138,62 130,72 120,80" fill="none" stroke="#2a5222" stroke-width="0.9" stroke-linecap="round"/>
  <path d="M 200,0 C 220,16 210,30 230,44 C 248,56 240,66 255,78" fill="none" stroke="#1a3816" stroke-width="1.2" stroke-linecap="round"/>
  <path d="M 250,4 C 230,18 240,34 220,48 C 204,60 210,70 200,80" fill="none" stroke="#2a5222" stroke-width="1.0" stroke-linecap="round"/>
  <path d="M 310,2 C 330,18 320,32 340,46 C 356,58 348,68 360,78" fill="none" stroke="#2a5222" stroke-width="1.4" stroke-linecap="round"/>
  <path d="M 360,6 C 340,20 350,36 330,50 C 314,62 320,72 308,80" fill="none" stroke="#1e4018" stroke-width="1.0" stroke-linecap="round"/>
  <path d="M 420,0 C 440,16 430,30 450,44 C 466,56 458,68 470,78" fill="none" stroke="#2a5222" stroke-width="1.3" stroke-linecap="round"/>
  <path d="M 470,4 C 450,20 460,36 440,50 C 424,62 430,72 420,80" fill="none" stroke="#1a3816" stroke-width="0.9" stroke-linecap="round"/>
  <path d="M 540,2 C 560,18 550,32 570,46 C 586,58 578,70 590,80" fill="none" stroke="#2a5222" stroke-width="1.2" stroke-linecap="round"/>
  <path d="M 590,6 C 570,22 580,38 560,52 C 544,64 550,74 540,80" fill="none" stroke="#1e4018" stroke-width="1.0" stroke-linecap="round"/>
  <path d="M 640,0 C 656,18 648,34 660,50 C 670,62 664,72 672,80" fill="none" stroke="#2a5222" stroke-width="1.1" stroke-linecap="round"/>

  <!-- crossing roots — run diagonally across others -->
  <path d="M 0,30 C 60,24 120,40 180,34 C 240,28 280,44 340,38 C 380,34 400,46 440,42" fill="none" stroke="#1a3816" stroke-width="0.8" stroke-linecap="round"/>
  <path d="M 240,2 C 280,20 260,40 300,54 C 320,64 310,74 320,80" fill="none" stroke="#2a5222" stroke-width="0.8" stroke-linecap="round"/>
  <path d="M 340,0 C 300,16 280,32 300,48 C 316,60 308,72 300,80" fill="none" stroke="#1a3816" stroke-width="0.7" stroke-linecap="round"/>
  <path d="M 400,4 C 440,22 420,40 450,56 C 464,66 456,76 462,80" fill="none" stroke="#1a3816" stroke-width="0.8" stroke-linecap="round"/>
  <path d="M 460,2 C 420,18 430,36 410,52 C 396,64 402,74 394,80" fill="none" stroke="#2a5222" stroke-width="0.7" stroke-linecap="round"/>
  <path d="M 500,0 C 520,18 510,34 530,50 C 544,62 536,74 544,80" fill="none" stroke="#1e4018" stroke-width="0.9" stroke-linecap="round"/>

  <!-- fine hair roots — thin, wandering, near bottom -->
  <path d="M 10,40 C 30,50 20,62 35,72 C 44,78 40,80 50,80" fill="none" stroke="#1a3816" stroke-width="0.5" stroke-linecap="round"/>
  <path d="M 100,44 C 115,54 108,66 118,76 C 124,80 122,80 130,80" fill="none" stroke="#1a3816" stroke-width="0.5" stroke-linecap="round"/>
  <path d="M 170,38 C 155,50 162,62 152,74 C 146,80 148,80 140,80" fill="none" stroke="#1a3816" stroke-width="0.4" stroke-linecap="round"/>
  <path d="M 270,42 C 285,54 278,66 288,76 C 294,80 292,80 300,80" fill="none" stroke="#1a3816" stroke-width="0.5" stroke-linecap="round"/>
  <path d="M 380,40 C 365,52 372,64 362,76 C 356,80 358,80 350,80" fill="none" stroke="#1a3816" stroke-width="0.4" stroke-linecap="round"/>
  <path d="M 490,44 C 505,56 498,68 508,78 C 514,80 512,80 520,80" fill="none" stroke="#1a3816" stroke-width="0.5" stroke-linecap="round"/>
  <path d="M 610,42 C 595,54 602,66 592,78 C 586,80 588,80 580,80" fill="none" stroke="#1a3816" stroke-width="0.4" stroke-linecap="round"/>
  <path d="M 660,46 C 668,58 662,70 670,78 C 674,80 672,80 678,80" fill="none" stroke="#1a3816" stroke-width="0.5" stroke-linecap="round"/>
</svg>
    <div class="home-link-wrap">
      <a href="https://jaq.gay/remembering.html" class="home-link">← return to the surface</a>
    </div>

  </div>

  <script>
    function dismissWarning() {
      const el = document.getElementById('epilepsy-warning');
      el.style.transition = 'opacity 0.3s';
      el.style.opacity = '0';
      setTimeout(() => {
        el.style.display = 'none';
        document.getElementById('wrapper').style.marginTop = '0';
      }, 300);
      // Remember dismissal for this session
      sessionStorage.setItem('epilepsy-dismissed', '1');
    }

    // Don't show if already dismissed this session
    if (sessionStorage.getItem('epilepsy-dismissed')) {
      document.getElementById('epilepsy-warning').style.display = 'none';
      document.getElementById('wrapper').style.marginTop = '0';
    }

    // Occasional full-page glitch
    const wrapper = document.getElementById('wrapper');
    function maybeGlitch() {
      if (Math.random() < 0.3) {
        const x = (Math.random() - 0.5) * 6;
        const y = (Math.random() - 0.5) * 2;
        wrapper.style.transform = `translate(${x}px, ${y}px)`;
        setTimeout(() => {
          wrapper.style.transform = 'translate(0,0)';
        }, 60 + Math.random() * 80);

        if (Math.random() < 0.4) {
          setTimeout(() => {
            wrapper.style.transform = `translate(${-x * 0.5}px, 0)`;
            setTimeout(() => {
              wrapper.style.transform = 'translate(0,0)';
            }, 40);
          }, 120);
        }
      }
      setTimeout(maybeGlitch, 2000 + Math.random() * 6000);
    }
    setTimeout(maybeGlitch, 1500);
  </script>

</body>
</html>

