/* Demo Lab refinement — page-local only. Keep the scroll staging and
   existing project cards; the full homepage and Modules are untouched. */

/* Remove the skewed outline/box around the header, not the actual dark
   atmospheric site background. A slightly shorter intro lifts card one. */
.lab-page .lab-hero::before{content:none!important;display:none!important}
@media(min-width:961px){
  .lab-page .lab-hero{
    min-height:clamp(480px,65svh,585px)!important;
    padding-top:clamp(1.4rem,3.5vh,2.7rem)!important;
    padding-bottom:clamp(1.9rem,3.8vh,3rem)!important;
  }
}
.lab-page .lab-hero-art .lab-orbit-app:nth-child(12){
  left:88%;top:69%;
}
.lab-page .lab-project[data-theme="seo"]{--project-accent:#bb79f3}
.lab-page .lab-project[data-theme="webdesk"]{--project-accent:#609cff}
.lab-page .lab-project[data-theme="threejs"]{--project-accent:#8dd9c4}
.lab-page .lab-project[data-theme="glsl"]{--project-accent:#dca9f7}
.lab-page .lab-tech-emblem{
  border-radius:28%;
  background:radial-gradient(circle at 34% 23%,rgba(188,155,246,.27),transparent 58%),#111421;
}
.lab-page .lab-tech-emblem span{
  font-size:clamp(2.5rem,6vw,5.2rem);
  font-weight:900;
  letter-spacing:-.085em;
  line-height:1;
  color:#cbbdff;
  text-shadow:0 0 32px #a87aff59;
}
.lab-page .lab-glsl-emblem span{
  font-size:clamp(1.8rem,4.6vw,3.9rem);
  letter-spacing:-.065em;
  color:#e1b8fa;
}
.lab-page .lab-gerald-note{
  display:inline-block;
  max-width:100%;
  padding:.75rem 1rem;
  border:1px dashed rgba(207,158,244,.37);
  border-radius:12px;
  background:rgba(119,73,158,.095);
  font-size:.83rem;
  font-weight:700;
  color:#e2c5f9;
}
.lab-page .lab-project-actions:has(a:nth-child(3)){
  align-items:center;
  row-gap:.5rem;
}
.lab-page .lab-project-actions:has(a:nth-child(3)) .lab-project-button{
  min-height:40px;
  padding:.6rem .73rem;
  font-size:.7rem;
}

/* 28 lightweight independent fragments on a transparent overlay.
   The cursor pushes nearby lines aside; no attached grid, box or backdrop.
   The layer is painted over the demo cards but never captures clicks. */
.lab-page .lab-code-shimmer{
  position:fixed;
  z-index:2;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  padding:0;
  margin:0;
  border:0;
  overflow:hidden;
  background:none;
  box-shadow:none;
  pointer-events:none;
  user-select:none;
  opacity:0;
  transition:opacity .28s ease;
  contain:layout style paint;
}
.lab-page.lab-code-visible .lab-code-shimmer{opacity:1}
.lab-page .lab-code-row{
  position:absolute;
  left:var(--lab-anchor-x,50%);
  top:var(--lab-anchor-y,50%);
  width:max-content;
  max-width:52vw;
  margin:0;
  padding:0;
  border:0;
  background:none;
  overflow:hidden;
  white-space:nowrap;
  pointer-events:none;
  color:#b4bfe6;
  font:600 clamp(10px,.7vw,12px)/1.45 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.009em;
  opacity:var(--lab-line-opacity,.09);
  transform:translate3d(var(--lab-shift-x,0px),var(--lab-shift-y,0px),0);
  transition:opacity .24s ease,transform .28s cubic-bezier(.16,.7,.26,1);
  text-shadow:0 0 7px rgba(110,91,180,.2);
}
.lab-page .lab-code-row:nth-child(4n + 1){color:#c5b2f2}
.lab-page .lab-code-row:nth-child(4n + 2){color:#a1cadd}
.lab-page .lab-code-row:nth-child(4n + 3){color:#bfc6d9}
.lab-page .lab-code-row b{font:inherit}
.lab-page .lab-code-row .kw{color:#b89aff}
.lab-page .lab-code-row .fn{color:#80d2e3}
.lab-page .lab-code-row .str{color:#e7b277}
.lab-page .lab-code-row .num{color:#f4a1cf}
.lab-page .lab-code-row .comment{color:#8ecbb1;font-style:italic}
.lab-page .lab-tech-emblem img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
}
@media(hover:none),(pointer:coarse),(prefers-reduced-motion:reduce){
  .lab-page .lab-code-shimmer{display:none!important}
  .lab-page.lab-code-visible .lab-code-shimmer{opacity:0!important}
}
@media(max-width:960px){
  .lab-page .lab-hero{padding-bottom:2rem}
  .lab-page .lab-project-actions:has(a:nth-child(3)){gap:.45rem}
}
