:root{
  --blue:#5ad7ff;
  --purple:#b98bff;
  --white:#f4f8ff;
  --dim:#5c6a8a;
  --bg:#070a14;
  --bg2:#0d1226;
  --glow: 0 0 16px rgba(120,150,255,0.7), 0 0 34px rgba(150,100,255,0.35);
}
*{box-sizing:border-box;}
html,body{height:100%;margin:0;background:var(--bg);}
/* custom HUD reticle cursor — desktop/fine-pointer only, so touch devices
   keep the OS default instead of a stray cursor icon */
body{
  font-family:'Courier New',ui-monospace,monospace;
  background:radial-gradient(circle at 50% 30%, var(--bg2), var(--bg) 70%);
  color:var(--white);
  min-height:100vh;
  display:flex;flex-direction:column;align-items:center;
  overflow-x:hidden;
  padding:20px 14px 40px;
}
body::before{
  content:"";position:fixed;inset:0;
  background:repeating-linear-gradient(0deg, rgba(120,150,255,0.02) 0px, rgba(120,150,255,0.02) 1px, transparent 1px, transparent 3px);
  pointer-events:none;z-index:1;
}
body::after{
  content:"";position:fixed;inset:0;
  box-shadow: inset 0 0 160px rgba(0,0,0,0.55);
  pointer-events:none;z-index:2;
}

.header{text-align:center;margin-bottom:6px;position:relative;z-index:5;}
.header .brand{font-size:13px;letter-spacing:6px;color:var(--dim);text-transform:uppercase;}

.about-signoff{
  margin-top:20px;padding-top:16px;
  border-top:1px solid rgba(120,150,255,0.15);
  display:flex;justify-content:center;
}
.about-signoff .signoff-logo{height:clamp(20px, 4.5vw, 34px);width:auto;opacity:0.6;}
.header h1{
  margin:6px 0 0;font-size:28px;font-weight:600;letter-spacing:3px;
  color:var(--white);text-shadow:0 0 14px rgba(120,150,255,0.4);
}
.header h1 span{
  color:var(--blue);
  text-shadow:0 0 16px rgba(90,215,255,0.6);
  font-weight:600;
}
.status-line{
  font-size:11px;letter-spacing:2px;color:var(--dim);text-transform:uppercase;
  margin:4px 0 10px;height:14px;z-index:5;text-align:center;
}

/* ---------- Boot sequence: brief HUD-style intro before the site reveals itself ---------- */
.boot-screen{
  position:fixed;inset:0;z-index:200;
  background:radial-gradient(circle at 50% 30%, var(--bg2), var(--bg) 70%);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:14px;cursor:pointer;
  transition:opacity .6s ease;
}
.boot-screen.hidden{ opacity:0;pointer-events:none; }
.boot-lines{
  font-family:'Courier New',ui-monospace,monospace;
  font-size:13px;letter-spacing:1.5px;color:var(--blue);text-transform:uppercase;
  text-align:center;min-height:120px;
}
.boot-lines .boot-line{ opacity:0;margin:6px 0;transition:opacity .3s ease; }
.boot-lines .boot-line.show{ opacity:1; }
.boot-lines .boot-line.final{ color:var(--white); }
.boot-hint{
  font-size:10px;letter-spacing:2px;color:var(--dim);text-transform:uppercase;opacity:.6;
}
@media (prefers-reduced-motion: reduce){
  .boot-screen{ display:none; }
}

/* ---------- Diagnostics HUD: live render stats, toggled with ` or the DIAG bar ---------- */
.hud-panel{
  position:fixed;top:14px;right:14px;z-index:40;
  width:230px;
  background:rgba(9,12,24,0.88);
  border:1px solid rgba(90,215,255,0.35);
  border-radius:6px;
  padding:10px 12px;
  font-size:10.5px;letter-spacing:1px;
  box-shadow:0 0 18px rgba(90,215,255,0.15);
  backdrop-filter:blur(6px);
}
.hud-panel[hidden]{ display:none; }
.hud-title{ color:var(--blue);margin-bottom:8px;letter-spacing:2px; }
.hud-row{
  display:flex;justify-content:space-between;gap:8px;
  color:var(--dim);margin:3px 0;text-transform:uppercase;
}
.hud-row span:last-child{ color:var(--white); }
.hud-note{
  margin-top:8px;padding-top:6px;border-top:1px solid rgba(120,150,255,0.18);
  color:var(--dim);font-size:9.5px;line-height:1.5;letter-spacing:0.5px;
}

/* ---------- Systems view: in-place annotations over the reactor ---------- */
.annotate-layer{
  position:absolute;inset:0;z-index:8;
  pointer-events:none;
}
.annotate-layer[hidden]{ display:none; }
.callout{
  position:absolute;max-width:210px;
  background:rgba(9,12,24,0.85);
  border-left:2px solid var(--blue);
  padding:6px 9px;border-radius:0 5px 5px 0;
  font-size:10.5px;line-height:1.5;color:#c9d6ff;letter-spacing:0.4px;
  box-shadow:0 0 14px rgba(90,215,255,0.12);
  animation:calloutIn .4s ease both;
}
.callout b{
  display:block;color:var(--blue);letter-spacing:1.5px;font-size:10px;
  margin-bottom:2px;
}
.callout.co-right{
  border-left:none;border-right:2px solid var(--purple);
  border-radius:5px 0 0 5px;text-align:right;
}
.callout.co-right b{ color:var(--purple); }
.annotate-close{ display:none; } /* only needed on the mobile fixed-overlay layout below */
.annotate-scroll{ display:contents; } /* invisible passthrough on desktop — real behavior added on mobile below */
/* Tap-outside-to-close backdrops for Systems/Diag, mobile only — on desktop
   Systems is just floating labels over a still-interactive orb (no modal
   metaphor, nothing to dismiss by clicking away) and Diag is a small
   corner HUD that doesn't need one either. */
.annotate-backdrop, .hud-backdrop{ display:none; }
@keyframes calloutIn{
  from{ opacity:0;transform:translateY(6px); }
  to{ opacity:1;transform:translateY(0); }
}
@media (max-width:900px){
  .callout{ max-width:150px;font-size:9.5px; }
}

/* ---------- Main stage: side bars + centered particle system ---------- */
.stage{
  position:relative;
  width:100%;max-width:1200px;
  flex:1;
  display:flex;align-items:center;justify-content:center;
  gap:28px;
  z-index:5;
  padding:20px 0 30px;
  min-height:0;
}

.rail{
  display:flex;flex-direction:column;gap:12px;
  z-index:5;
  flex-shrink:0;
  min-width:84px; /* reserves the same width as the (now empty) right rail, keeping the orb centered */
}
.bar{
  appearance:none;font-family:inherit;padding:0;
  width:84px;height:50px;
  border-radius:8px;
  background:linear-gradient(160deg, #2a3350, #12162a 60%);
  border:1px solid rgba(120,150,255,0.35);
  box-shadow:0 2px 6px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -6px 10px rgba(0,0,0,0.4);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:6px;
  cursor:pointer;
  position:relative;
  overflow:hidden;
  transition:all .18s ease;
}
.bar::before{
  content:"";position:absolute;inset:0;
  background:linear-gradient(100deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  transform:translateX(-100%);
  transition:transform .5s ease;
}
.bar:hover::before{ transform:translateX(100%); }
.bar:hover{
  border-color:var(--blue);
  box-shadow:0 0 16px rgba(90,215,255,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  transform:translateX(2px);
}
.bar .tick{ width:22px;height:2px;background:var(--dim);border-radius:1px; }
.bar:hover .tick{ background:var(--blue); }
.bar .bar-label{
  font-size:10.5px;letter-spacing:2px;text-transform:uppercase;color:var(--dim);
}
.bar:hover .bar-label{ color:var(--white); }

.center-slot{
  position:relative;
  display:flex;align-items:center;justify-content:center;
  min-height:min(78vmin, 680px);
  width:100%;
}
.core-stage{
  position:relative;
  width:min(78vmin, 680px);
  height:min(78vmin, 680px);
  flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition:transform .9s cubic-bezier(.65,0,.35,1), opacity .6s ease;
  animation:float 6s ease-in-out infinite;
}
@keyframes float{
  0%,100%{ transform:translateY(0px); }
  50%{ transform:translateY(-14px); }
}
.core-stage.spin-out{ transform:rotate(360deg) scale(0.8) !important; opacity:0; animation:none; }
.core-stage.hidden{ display:none; }
.core-stage.chat-active{ filter:brightness(1.06); }
#coreParticles{
  width:100%;height:100%;
  display:block;
  pointer-events:none;
}
/* cheap "poor man's bloom": a second canvas redrawn from the source canvas
   each frame, then blurred + brightened via CSS filter and screen-blended
   on top — gives a soft glow without a full postprocessing pipeline (which
   would fight the transparent-canvas-over-gradient layering these use). */
#coreParticlesGlow{
  position:absolute;
  inset:0;
  width:100%;height:100%;
  display:block;
  pointer-events:none;
  mix-blend-mode:screen;
  filter:blur(7px) brightness(1.6) saturate(1.25);
  opacity:0.65;
}
#particleField{
  position:fixed;
  inset:0;
  width:100vw;height:100vh;
  display:block;
  z-index:0;
  pointer-events:none;
}
#particleFieldGlow{
  position:fixed;
  inset:0;
  width:100vw;height:100vh;
  display:block;
  z-index:0;
  pointer-events:none;
  mix-blend-mode:screen;
  filter:blur(5px) brightness(1.5) saturate(1.2);
  opacity:0.5;
}
.tap-hint{
  position:absolute;bottom:-6px;left:50%;transform:translateX(-50%);
  font-size:10px;letter-spacing:2px;color:var(--dim);text-transform:uppercase;
  white-space:nowrap;
}

/* ---------- Content panel ---------- */
.panel-backdrop{
  position:fixed;inset:0;z-index:15;
  background:rgba(2,3,8,0.6);
  opacity:0;pointer-events:none;
  transition:opacity .4s ease;
}
.panel-backdrop.open{ opacity:1;pointer-events:auto; }
.panel{
  width:min(92vw, 560px);
  border:1px solid rgba(120,150,255,0.3);
  border-radius:6px;
  background:rgba(9,12,24,0.92);
  backdrop-filter:blur(8px);
  box-shadow:var(--glow), inset 0 0 40px rgba(90,120,255,0.03);
  position:fixed;z-index:20;
  top:50%;left:50%;
  display:none;
  flex-direction:column;
  height:min(70vh, 560px);
  opacity:0;
  transform:translate(-50%,-50%) scale(0.9);
  transition:transform .5s cubic-bezier(.34,1.4,.64,1), opacity .4s ease;
}
.panel.open{ display:flex; opacity:1; transform:translate(-50%,-50%) scale(1); }
.panel-header{
  position:relative;
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 14px;border-bottom:1px solid rgba(120,150,255,0.25);
  font-size:11px;letter-spacing:2px;color:var(--dim);text-transform:uppercase;
}
.panel-header .back{ cursor:pointer;color:var(--blue);}
.panel-header .back::before{ content:"‹ "; }
/* The title is the header's 2nd child everywhere it's used (info panel,
   resume modal, chat drawer) — flex space-between only balances the gaps
   around it, so it visibly drifts off-center whenever the back label and
   the actions on the other side aren't the same width (e.g. "Core" vs an
   empty span, or vs "Clear · Email"). Centering it absolutely makes it
   truly centered regardless of what's on either side. */
.panel-header > span:nth-child(2){
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  white-space:nowrap;pointer-events:none;
}
.header-actions{ display:flex;gap:12px; }
.header-action{ cursor:pointer;color:var(--purple); }
.header-action:hover{ color:var(--white); }

/* visible keyboard-focus ring for every interactive element */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
[tabindex]:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:2px;
  border-radius:4px;
}

/* ---------- Resume preview modal: opens the PDF in-page instead of downloading ---------- */
.resume-modal{
  width:min(94vw, 820px);
  height:min(88vh, 900px);
  border:1px solid rgba(120,150,255,0.3);
  border-radius:6px;
  background:rgba(9,12,24,0.97);
  box-shadow:var(--glow), inset 0 0 40px rgba(90,120,255,0.03);
  position:fixed;z-index:25;
  top:50%;left:50%;
  display:none;
  flex-direction:column;
  opacity:0;
  transform:translate(-50%,-50%) scale(0.96);
  transition:transform .35s cubic-bezier(.34,1.4,.64,1), opacity .3s ease;
}
.resume-modal.open{ display:flex; opacity:1; transform:translate(-50%,-50%) scale(1); }
.resume-modal iframe{ flex:1;width:100%;border:0;border-radius:0 0 6px 6px;background:#fff; }

/* ---------- Chat drawer: slides in from the right, orb stays visible/animating ---------- */
.chat-drawer{
  position:fixed;top:0;right:0;bottom:0;z-index:20;
  width:min(380px, 92vw);
  background:rgba(9,12,24,0.97);
  border-left:1px solid rgba(120,150,255,0.3);
  box-shadow:var(--glow);
  display:flex;flex-direction:column;
  transform:translateX(100%);
  transition:transform .5s cubic-bezier(.34,1.4,.64,1);
}
.chat-drawer.open{ transform:translateX(0); }

.tab-bar{
  display:flex;flex-direction:row;
  border-bottom:1px solid rgba(120,150,255,0.25);
  overflow-x:auto;
}
.tab-btn{
  appearance:none;background:none;border:none;font-family:inherit;
  flex:1;text-align:center;white-space:nowrap;
  padding:10px 8px;font-size:11px;letter-spacing:1.5px;text-transform:uppercase;
  color:var(--dim);cursor:pointer;border-bottom:2px solid transparent;
  transition:all .15s ease;
}
.tab-btn:hover{ color:var(--white); }
.tab-btn.active{ color:var(--blue);border-bottom-color:var(--blue); }

.tab-content{ display:none;flex:1;overflow-y:auto;padding:16px;font-size:13.5px;line-height:1.65; }
.tab-content.active{ display:block; }
.tab-content::-webkit-scrollbar{width:5px;}
.tab-content::-webkit-scrollbar-thumb{background:rgba(120,150,255,0.3);border-radius:3px;}

.entry{ margin-bottom:16px; }
.entry h3{ margin:0 0 6px;color:var(--white);font-size:14px;letter-spacing:1px; }
.entry p{ margin:0 0 4px;color:#c9d6ff; }
.project-card{ margin-bottom:22px; }
.project-media{
  width:100%;border-radius:8px;overflow:hidden;margin-bottom:8px;
  background:rgba(120,150,255,0.06);border:1px solid rgba(120,150,255,0.18);
}
.project-media img,.project-media video{
  width:100%;max-height:220px;object-fit:cover;display:block;
}
.project-media img{ cursor:pointer; }
.project-media video{ max-height:none;background:#000; }
.tag{
  display:inline-block;border:1px solid rgba(120,150,255,0.35);border-radius:20px;
  padding:2px 9px;font-size:10.5px;color:var(--dim);margin:2px 4px 0 0;
}
.entry a{ color:var(--purple); }
.photo-grid{ display:grid;grid-template-columns:repeat(2,1fr);gap:12px; }
.photo-grid figure{ margin:0; }
.photo-grid img{
  aspect-ratio:1/1;width:100%;object-fit:cover;
  border:1px solid rgba(120,150,255,0.35);border-radius:6px;background:rgba(120,150,255,0.06);
  display:block;cursor:pointer;
}
.photo-grid figcaption{
  margin-top:6px;font-size:11px;line-height:1.4;color:var(--dim);
}
@media (max-width:520px){
  .photo-grid{ grid-template-columns:1fr; }
}

/* ---------- Photo lightbox: full, uncropped image on click ---------- */
.lightbox{
  position:fixed;inset:0;z-index:30;
  background:rgba(2,3,8,0.92);
  display:flex;align-items:center;justify-content:center;
  padding:32px;
  opacity:0;pointer-events:none;
  transition:opacity .3s ease;
}
.lightbox.open{ opacity:1;pointer-events:auto; }
.lightbox img{
  max-width:100%;max-height:100%;
  object-fit:contain;
  border-radius:6px;
  box-shadow:var(--glow);
}

/* Chat panel specifics */
.log{ flex:1;overflow-y:auto;padding:14px;font-size:13.5px;line-height:1.6; }
.line{margin-bottom:10px;white-space:pre-wrap;word-break:break-word;}
.line.you{color:var(--white);}
.line.you::before{content:"YOU  › "; color:var(--dim);}
.line.ai{color:var(--blue);text-shadow:0 0 6px rgba(90,215,255,0.4);}
.line.ai::before{content:"WM-AI› "; color:var(--purple);}
.line.sys{color:var(--dim);font-style:italic;font-size:12px;}
.line.sys a{ color:var(--blue);font-style:normal;text-decoration:underline; }
.line.sys a:hover{ color:var(--white); }
/* suggested question chips — one-tap starter prompts above the input */
.chip-row{
  display:flex;flex-wrap:wrap;gap:6px;
  padding:8px 12px;border-top:1px solid rgba(120,150,255,0.18);
}
.chip-row.hidden{ display:none; }
.chip{
  background:rgba(120,150,255,0.08);
  border:1px solid rgba(120,150,255,0.35);
  border-radius:20px;
  color:#c9d6ff;
  font-family:inherit;font-size:11px;letter-spacing:1px;
  padding:5px 11px;cursor:pointer;
  transition:all .15s ease;
}
.chip:hover{
  border-color:var(--blue);color:var(--white);
  box-shadow:0 0 10px rgba(90,215,255,0.35);
}

.voice-row{
  display:flex;align-items:center;gap:8px;
  padding:6px 12px;border-top:1px solid rgba(120,150,255,0.18);
  font-size:10.5px;letter-spacing:1.5px;text-transform:uppercase;color:var(--dim);
}
.voice-row select{
  flex:1;min-width:0;background:rgba(9,12,24,0.9);border:1px solid rgba(120,150,255,0.35);
  border-radius:4px;color:var(--white);font-family:inherit;font-size:12px;
  padding:5px 6px;outline:none;
}
.voice-row select:focus{ box-shadow:0 0 8px rgba(120,150,255,0.4); }

.input-row{ display:flex;gap:6px;padding:10px 12px;border-top:1px solid rgba(120,150,255,0.25); }
.input-row input{
  flex:1;min-width:0;background:transparent;border:1px solid rgba(120,150,255,0.35);
  border-radius:4px;color:var(--white);font-family:inherit;font-size:13.5px;
  padding:9px 10px;outline:none;
}
.input-row input:focus{box-shadow:0 0 8px rgba(120,150,255,0.4);}
.input-row input::placeholder{color:rgba(120,150,255,0.35);}
.input-row button{
  background:linear-gradient(160deg, rgba(120,150,255,0.25), rgba(150,100,255,0.15));
  border:1px solid var(--blue);
  color:var(--white);border-radius:4px;padding:0 16px;font-family:inherit;
  font-size:12px;letter-spacing:2px;text-transform:uppercase;cursor:pointer;
}
.input-row button:hover{ box-shadow:0 0 10px rgba(90,215,255,0.4); }
.input-row button.icon-btn{
  padding:0 10px;font-size:10.5px;letter-spacing:1px;flex-shrink:0;
  transition:box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
@media (max-width: 420px){
  .input-row{ gap:5px;padding:8px; }
  .input-row button{ padding:0 10px;font-size:10.5px;letter-spacing:1px; }
  .input-row button.icon-btn{ padding:0 8px; }
}
#micBtn.listening{
  border-color:#ff6a6a;color:#ffb3b3;
  box-shadow:0 0 12px rgba(255,90,90,0.55);
  animation:micPulse 1.1s ease-in-out infinite;
}
@keyframes micPulse{
  0%,100%{ box-shadow:0 0 8px rgba(255,90,90,0.4); }
  50%{ box-shadow:0 0 18px rgba(255,90,90,0.85); }
}
#voiceToggle.muted{ color:var(--dim);border-color:rgba(120,150,255,0.25);opacity:0.6; }

@media (max-width: 900px){
  /* the home screen (orb + rail) should never scroll on mobile — panels and
     the chat drawer are fixed-position overlays with their own internal
     scroll areas, so locking the page itself doesn't affect them.
     position:fixed (not just overflow:hidden) is what actually stops iOS
     Safari's residual rubber-band bounce — that bounce was both revealing
     html's background as white bars at the top/bottom AND stealing touch
     gestures that should've scrolled the panel underneath instead. */
  html,body{
    position:fixed;inset:0;width:100%;height:100dvh;
    overflow:hidden;overscroll-behavior:none;
  }

  /* Systems/Diag tap-outside-to-close backdrops — same visual language as
     .panel-backdrop, sitting just below their respective overlay's z-index. */
  .annotate-backdrop{
    display:block;position:fixed;inset:0;z-index:6;
    background:rgba(2,3,8,0.6);opacity:0;pointer-events:none;
    transition:opacity .3s ease;
  }
  .annotate-backdrop.open{ opacity:1;pointer-events:auto; }
  .hud-backdrop{
    display:block;position:fixed;inset:0;z-index:39;
    background:rgba(2,3,8,0.5);opacity:0;pointer-events:none;
    transition:opacity .3s ease;
  }
  .hud-backdrop.open{ opacity:1;pointer-events:auto; }

  .stage{ flex-direction:column; gap:16px; }
  .rail{ flex-direction:row; flex-wrap:wrap; justify-content:center; min-width:0; }

  /* chat becomes a bottom sheet instead of a right-side drawer; the orb
     shrinks and moves toward the top of the screen so both stay visible
     together instead of the drawer covering it */
  .chat-drawer{
    top:auto;left:0;right:0;bottom:0;
    width:100%;height:min(58vh, 520px);
    border-left:none;border-top:1px solid rgba(120,150,255,0.3);
    border-radius:14px 14px 0 0;
    transform:translateY(100%);
  }
  .chat-drawer.open{ transform:translateY(0); }

  /* the topic rail steps aside while chatting on mobile so the orb has the
     whole upper area to itself instead of overlapping it */
  .rail.chat-hidden{ display:none; }

  .core-stage.chat-active{
    animation:none;
    width:min(42vmin, 260px);
    height:min(42vmin, 260px);
    transform:translateY(-14vh);
  }

  /* Systems callouts are hand-positioned (top/left/right/bottom %) for a
     wide desktop orb — on a narrow screen they overlap. Turn them into a
     plain stacked, scrollable list instead; position:static makes the
     inline offset styles on each .callout a no-op.
     Anchored to the viewport (position:fixed), not to .center-slot: that
     element sits wherever the flex column above it (header/rail) pushes it,
     so a box positioned relative to it could extend past the bottom of the
     locked mobile viewport — and since html/body clip overflow, that tail
     end (and its scroll handle) became unreachable. Fixed + centered on the
     viewport, like .panel and .resume-modal already do, guarantees the
     whole thing — and its scrollbar — stays on-screen. */
  .annotate-layer{
    position:fixed;inset:auto;top:50%;left:50%;
    transform:translate(-50%,-50%);
    width:92%;max-width:360px;max-height:70dvh;
    pointer-events:auto;
    background:rgba(9,12,24,0.94);
    border:1px solid rgba(120,150,255,0.25);
    border-radius:8px;
    padding:14px;
    display:flex;flex-direction:column;
  }
  /* the scrollable list lives in its own wrapper, separate from the close
     button below — sticky-positioning the button inside this same scroll
     area was tried first, but a sticky item's reserved flow-space scrolls
     away while its pinned *visual* position stays put, so later callouts
     ended up rendering underneath/through it. Pulling the button fully out
     of the scrolling box avoids that entirely. */
  .annotate-scroll{
    overflow-y:auto;-webkit-overflow-scrolling:touch;
    display:flex;flex-direction:column;gap:8px;
    padding-top:34px; /* clears the absolutely-positioned button above */
  }
  .callout{
    position:static;max-width:none;width:100%;
  }
  .callout.co-right{
    border-left:2px solid var(--purple);border-right:none;
    border-radius:0 5px 5px 0;text-align:left;
  }
  /* Belt-and-suspenders way out: the panel can cover the Systems rail
     button that would otherwise toggle it closed, so give the panel its
     own always-reachable close control instead of relying on that. */
  .annotate-close{
    position:absolute;top:10px;right:10px;z-index:2;
    display:flex;align-items:center;justify-content:center;
    width:28px;height:28px;
    border-radius:50%;
    border:1px solid rgba(120,150,255,0.35);
    background:rgba(20,26,50,0.95);
    color:var(--dim);font-family:inherit;font-size:14px;line-height:1;
    cursor:pointer;
  }
  .annotate-close:active{ color:var(--white);border-color:var(--blue); }
}
@media (prefers-reduced-motion: reduce){
  .core-stage,.panel,.chat-drawer,.resume-modal,.lightbox{transition:none;}
}

/* custom HUD reticle cursor — desktop/fine-pointer only, so touch devices
   keep the OS default instead of a stray cursor icon. Placed last in the
   cascade so it wins over the various per-element `cursor:pointer` rules
   above at equal specificity. */
@media (pointer: fine){
  body{ cursor:url("../assets/cursor-reticle.svg") 14 14, auto; }
  a, button, .bar, .tab-btn, .core-stage, .icon-btn, .back,
  .project-media img, .lightbox{
    cursor:url("../assets/cursor-reticle-active.svg") 14 14, pointer;
  }
  input[type="text"], textarea{ cursor:text; }
}
