/* Public-facing copy of the authenticated Dashboard composition.
 * The lattice, optics, artwork and renderer are versioned public assets;
 * no authenticated workspace routes, credentials or API calls are imported. */
:root{
  --global-menu-height:44px;
  /* One public heading typography, independent of layout and material. */
  --public-heading-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --public-heading-weight:550;
  --public-heading-leading:1.12;
  --public-heading-tracking:-.035em;
}
html,body{margin:0;width:100%;min-height:100%;overflow-x:clip;}
body.public-home{
  min-height:100dvh;
  background:#0a0a0a;
  color:#f7f9fa;
  font:400 14px/1.5 var(--ui-font-sans,system-ui,-apple-system,sans-serif);
  isolation:isolate;
}
body.public-home::before{
  content:"";
  display:block;
  z-index:0;
  pointer-events:none;
}
body.public-home #workspace-shell{
  position:relative;
  z-index:1;
  min-height:100dvh;
  background:transparent;
}
body.public-home :is(.main,.workspace-scroll,.content){
  min-width:0;
  width:100%;
  background:transparent;
}
body.public-home .content{box-sizing:border-box;}
body.public-home .view[hidden]{display:none!important;}
body.public-home:has(> #workspace-shell .dashboard-home:not([hidden])){
  /* The original dashboard artwork is copied verbatim, but its private
     /app/assets URL must be replaced by the public-only asset location. */
  --workspace-wallpaper-image:url("/assets/home-dashboard/dashboard-cloud-veiled-colorful-fields.avif")!important;
}
.public-skip-link{
  position:fixed;left:16px;top:-80px;z-index:100;padding:9px 14px;
  background:#111;color:#fff;border:2px solid #fff;border-radius:9px;
}
.public-skip-link:focus{top:54px;}
/* Recreate the dashboard's 44px slate navigation; every button is inert. */
body:is(.public-home,.public-login) > .global-menu{
  position:fixed;
  inset:0 0 auto;
  width:100%;
  height:44px;
  box-sizing:border-box;
  display:block;
  z-index:70;
  color:rgba(248,248,250,.9);
  background:#676b71;
  border-bottom:1px solid rgba(255,255,255,.12);
  font:400 12px/1.3 var(--ui-font-sans,system-ui);
  -webkit-font-smoothing:antialiased;
}
body:is(.public-home,.public-login) .global-menu-inner{
  height:100%;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:clamp(12px,2.1vw,24px);
  padding:0 clamp(12px,3vw,46px);
}
body:is(.public-home,.public-login) .global-menu-links{
  display:flex;
  align-items:center;
  justify-content:space-evenly;
  flex:1 1 auto;
  min-width:0;
  max-width:810px;
  gap:clamp(8px,1.7vw,28px);
}
body:is(.public-home,.public-login) .global-menu-control{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  flex:0 0 auto;
  min-height:30px;
  margin:0;
  padding:5px 8px;
  background:transparent;
  border:0;
  border-radius:0;
  color:rgba(230,230,235,.8);
  font:inherit;
  font-size:12px;
  font-weight:400;
  line-height:1.3;
  white-space:nowrap;
  text-decoration:none;
  cursor:pointer;
  /* Match /app .global-menu-links a: color only, no button backing. */
  transition:color 125ms ease;
}
body:is(.public-home,.public-login) .global-menu-control:hover{
  background:transparent;
  color:#fff;
}
body:is(.public-home,.public-login) .global-menu-control:active{
  background:transparent;
  color:#fff;
  transform:none;
}
body:is(.public-home,.public-login) .global-menu-control:focus-visible{
  outline:2px solid var(--ui-focus);
  outline-offset:3px;
}
body:is(.public-home,.public-login) .public-github{
  width:32px;height:32px;padding:5px;flex:none;border-radius:7px;
}
body:is(.public-home,.public-login) .public-github:hover{
  background:rgba(255,255,255,.09);
}
body:is(.public-home,.public-login) .public-github svg{
  width:21px;height:21px;display:block;flex:none;
}
body:is(.public-home,.public-login) .global-menu-actions{display:flex;align-items:center;flex:none;}
body:is(.public-home,.public-login) .global-menu-icon{
  width:32px;height:32px;padding:6px;border-radius:7px;
}
body:is(.public-home,.public-login) .global-menu-icon:hover,
body:is(.public-home,.public-login) .global-menu-icon[aria-expanded="true"]{
  color:#fff;background:rgba(255,255,255,.09);
}
body:is(.public-home,.public-login) .global-menu-icon svg{width:19px;height:19px;display:block;}
/* The three-button row spans 374px at desktop sizes.
   Below approximately twice that span (2 * 374 = 748px), collapse
   central navigation to the menu beside Search, keeping GitHub at left. */
body:is(.public-home,.public-login) .public-menu-toggle,
body:is(.public-home,.public-login) .public-menu-panel{display:none;}
body:is(.public-home,.public-login) .public-menu-panel[hidden]{display:none!important;}
@media(max-width:748px){
  body:is(.public-home,.public-login) .global-menu-inner{gap:10px;padding-inline:clamp(10px,3vw,30px);}
  body:is(.public-home,.public-login) .global-menu-links{display:none;}
  body:is(.public-home,.public-login) .global-menu-actions{margin-left:auto;gap:4px;}
  body:is(.public-home,.public-login) .public-menu-toggle{display:inline-flex;}
  body:is(.public-home,.public-login) .public-menu-panel:not([hidden]){
    position:absolute;
    top:calc(100% + 8px);
    right:clamp(10px,3vw,30px);
    display:grid;
    gap:3px;
    box-sizing:border-box;
    width:min(260px,calc(100vw - 20px));
    padding:8px;
    z-index:80;
    border:1px solid rgba(255,255,255,.22);
    border-radius:13px;
    color:#f5f6f8;
    background:rgba(34,37,42,.95);
    box-shadow:0 15px 45px rgba(0,0,0,.38);
    -webkit-backdrop-filter:blur(16px);
    backdrop-filter:blur(16px);
    animation:public-menu-enter 150ms cubic-bezier(.2,.78,.2,1) both;
  }
  body:is(.public-home,.public-login) .public-menu-panel .global-menu-control{
    display:flex;
    width:100%;
    min-height:36px;
    text-align:left;
    justify-content:flex-start;
    padding-inline:13px;
    font-size:12px;
    border-radius:8px;
  }
  body:is(.public-home,.public-login) .public-menu-panel .global-menu-control:hover{
    background:rgba(255,255,255,.08);
    color:#fff;
  }
  body:is(.public-home,.public-login) .public-menu-toggle[aria-expanded="true"]{
    color:#fff;
    background:rgba(255,255,255,.09);
  }
}
@keyframes public-menu-enter{
  from{opacity:0;transform:translateY(-5px)}
  to{opacity:1;transform:translateY(0)}
}
/* Public-home glass and glyphs ONLY. Both images are ALPHA masks.
   Image 1: at the viewport's side edges squares retain 25% opacity;
   they return to full opacity after 75% of a fixed-width square.
   Image 2: an elliptical dip centered behind the displaced "doof" title;
   squares are 60% opaque at its center, gradually returning to 100%.
   The mosaic has EMPTY cells immediately behind the logo. A 65x40px
   ellipse intersected practically no real glass, so the oval needs to
   reach its adjacent occupied tiles. The loader measures the horizontal
   radius from the wordmark; 320px is the no-script fallback.
   Intersect (multiply) the masks so neither fade cancels the other.
   The 1080px lattice is centered; viewport-sized mask layers track the
   actual window edges, not the grid's off-screen edges.
   The photographic backdrop and the foreground title are NEVER masked. */
body.public-home .dashboard-home .cta6-mosaic{
  --public-edge-fade-width:calc(0.75 * ((1080px - 10 * 13px) / 11));
  --public-logo-oval-x:25vw;
  --public-logo-oval-y:7.8125vw;
  --public-logo-shift:var(--public-home-logo-shift,215.90909px);
  -webkit-mask-image:
    linear-gradient(to right,
      rgba(0,0,0,.25) 0,
      #000 var(--public-edge-fade-width),
      #000 calc(100% - var(--public-edge-fade-width)),
      rgba(0,0,0,.25) 100%),
    radial-gradient(ellipse var(--public-logo-oval-x) var(--public-logo-oval-y)
      at 50% calc(50% - var(--public-logo-shift)),
      rgba(0,0,0,.48) 0%,
      rgba(0,0,0,.5268) 30%,
      rgba(0,0,0,.6672) 60%,
      rgba(0,0,0,.8128) 80%,
      rgba(0,0,0,.9012) 90%,
      #000 100%);
  mask-image:
    linear-gradient(to right,
      rgba(0,0,0,.25) 0,
      #000 var(--public-edge-fade-width),
      #000 calc(100% - var(--public-edge-fade-width)),
      rgba(0,0,0,.25) 100%),
    radial-gradient(ellipse var(--public-logo-oval-x) var(--public-logo-oval-y)
      at 50% calc(50% - var(--public-logo-shift)),
      rgba(0,0,0,.48) 0%,
      rgba(0,0,0,.5268) 30%,
      rgba(0,0,0,.6672) 60%,
      rgba(0,0,0,.8128) 80%,
      rgba(0,0,0,.9012) 90%,
      #000 100%);
  -webkit-mask-composite:source-in;
  mask-composite:intersect;
  -webkit-mask-size:100vw 100%;
  mask-size:100vw 100%;
  -webkit-mask-position:center top;
  mask-position:center top;
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
}
/* The Home mosaic and Projects cards request the SAME SVG asset. The
 * homepage colors it black without creating or maintaining a second
 * icon drawing; Projects colors the identical source white. Keep the
 * brightness operation when GPU goes ready and icons move with tiles. */
body.public-home .dashboard-home .cta6-tile--icon img.cta6-icon{
  display:block;
  object-fit:contain;
  filter:brightness(0);
  -webkit-user-select:none;user-select:none;
  -webkit-user-drag:none;
  pointer-events:none;
}
/* The visual mosaic never participates in a text selection or image drag.
 * Pointer-based glass hover/press continues through the renderer's window
 * listeners, independently of native hit testing. */
body.public-home .dashboard-home .cta6-mosaic,
body.public-home .dashboard-home .cta6-tile{
  -webkit-user-select:none;user-select:none
}
/* When WebGPU is ready, glass squares are painted in the separate viewport-
   sized GPU canvas. Keeping a mask on this 6-row DOM mosaic clips moving
   icons to the original grid rectangle: they visibly "peel" away at its
   top/bottom while the squares continue fading in the GPU canvas.
   Remove that parent mask ONLY for GPU presentation, and instead use a
   per-icon alpha matching the shader's side and oval fades at each icon's
   live position. The existing parent tile opacity provides the exact same
   vertical track fade as the glass shader; do not double it. CSS fallback
   retains the original mosaic mask and unaffected static materials. */
body.public-home[data-gpu-scene="ready"] .dashboard-home .cta6-mosaic{
  -webkit-mask-image:none;
  mask-image:none;
}
/* Empty layout proxies never paint in the GPU-ready Home mosaic.
   Only icon tiles carry a DOM foreground or a semantic project link.
   Preserve every grid cell and the GPU's independent moving hit geometry. */
body.public-home[data-gpu-scene="ready"] .dashboard-home .cta6-tile--plain.cta6-tile--webgpu{
  visibility:hidden!important;
  will-change:auto!important;
}
body.public-home[data-gpu-scene="ready"] .dashboard-home .cta6-tile--webgpu .cta6-icon{
  opacity:var(--public-icon-spatial-alpha,1);
}
/* Hide only the flat duplicate after a real GPU silhouette owns it.
 * Preserve intrinsic layout, fallback SVG and pointer interaction. */
body.public-home[data-gpu-scene="ready"] .dashboard-home .cta6-icon[data-glass-icon-owned]{
  clip-path:inset(50%)!important
}

/* Public-only elevation: another exact 950/11px square above the last
   position; the foreground logo and the glass oval must move together.
   No authenticated Dashboard or mosaic geometry is changed. */
body.public-home .dashboard-home .cta6-center h1{
  translate:0 calc(-2.5 * var(--cta6-title-tile));
}
/* The persistent wordmark uses the Projects heading typography at its
 * original 45px size, on Home. */
body.public-home #dashboard-title{
  font-family:var(--public-heading-family);
  font-weight:var(--public-heading-weight);
  line-height:var(--public-heading-leading);
  letter-spacing:var(--public-heading-tracking);
  white-space:nowrap;
}
@property --home-cta-tint{
  syntax:"<number>";
  inherits:false;
  initial-value:0;
}
/* Exactly three horizontally aligned actions, using the Dashboard CTA
   material, hover/press effects, and viewport-bottom positioning. */
body.public-home .dashboard-home .cta6-bottom-action{
  gap:12px;
  align-items:center;
  flex-wrap:nowrap;
  white-space:nowrap;
}
body.public-home .dashboard-home .cta6-action{
  box-sizing:border-box;
  display:inline-flex;
  min-width:100px;
  min-height:58.5px;
  height:58.5px;
  margin:0;
  padding:9px 17px;
  border-radius:12px;
  --home-cta-tint:0;
  transition:transform 180ms cubic-bezier(.2,.78,.2,1),
    --home-cta-tint 180ms cubic-bezier(.2,.78,.2,1),
    background-color 180ms cubic-bezier(.2,.78,.2,1),
    box-shadow 180ms cubic-bezier(.2,.78,.2,1);
  font-family:inherit;
  text-align:center;
  white-space:nowrap;
}
/* The centered "See Projects" CTA is 1.5x the width of its two 100px peers. */
 body.public-home .dashboard-home .cta6-bottom-action button.cta6-action[data-public-target="/projects"]{
   min-width:150px;
   width:150px;
 }
body.public-home .dashboard-home .cta6-action:hover,
body.public-home .dashboard-home .cta6-action:focus-visible{
  --home-cta-tint:1;
  background:rgba(5,46,23,.45); /* Translucent fallback only. */
  transform:scale(1.039); /* Prior 3% growth, increased 30%. */
}
body.public-home .dashboard-home .cta6-action:active{
  /* Preserve the original touch/non-hover fallback press. */
  transform:scale(.97);
  background:rgba(17,63,36,.55);
  box-shadow:0 0 14px rgba(154,255,175,.25),inset 0 0 10px rgba(185,255,206,.18);
}
/* An actual mouse click begins from a hovering 1.039x capsule.
 * Compress it by 3% of THAT hovered size, not 3% of the initial 1x
 * button. The old hover->.97 jump collapsed the capsule by 6.6%
 * and made its GPU refractive contour visibly snap at pointer-down.
 * Keep --home-cta-tint:1 throughout press: click adds lighting to hover. */
body.public-home .dashboard-home .cta6-action:is(:hover,:focus-visible):active{
  transform:scale(1.00783); /* 1.039 * .97 */
}
/* Non-WebGPU fallback: translucent filter rather than a solid green fill.
 * This layer NEVER runs on top of the true GPU optical material. */
body.public-home:not([data-gpu-scene="ready"]) .dashboard-home .cta6-bottom-action .cta6-action{
  -webkit-backdrop-filter:blur(0px) saturate(1);
  backdrop-filter:blur(0px) saturate(1);
  transition:transform 180ms cubic-bezier(.2,.78,.2,1),
    --home-cta-tint 180ms cubic-bezier(.2,.78,.2,1),
    background-color 180ms cubic-bezier(.2,.78,.2,1),
    box-shadow 180ms cubic-bezier(.2,.78,.2,1),
    -webkit-backdrop-filter 180ms cubic-bezier(.2,.78,.2,1),
    backdrop-filter 180ms cubic-bezier(.2,.78,.2,1);
}
body.public-home:not([data-gpu-scene="ready"]) .dashboard-home .cta6-bottom-action .cta6-action:is(:hover,:focus-visible){
  -webkit-backdrop-filter:blur(12px) saturate(1.12);
  backdrop-filter:blur(12px) saturate(1.12);
}
/* Home CTAs are SOLID BLACK at rest, not permanently transparent glass.
 * Keep black DOM pigment on top of the shared GPU material until hover;
 * dissolve ONLY its opacity with the SAME registered 180ms value that
 * drives the 1.039 scale and dark-green GPU glass tint. At t=1 the
 * pigment is fully absent, exposing the authentic refractive capsule.
 * This is an opaque-to-optical crossfade, not a second CSS glass shader.
 * Without WebGPU the rules above preserve black -> dark-green fallback. */
body.public-home[data-gpu-scene="ready"] .dashboard-home .cta6-bottom-action .cta6-action{
  background:rgb(0 0 0 / calc(1 - var(--home-cta-tint)))!important;
  box-shadow:none!important;
}
@media(max-width:760px){
  body.public-home .dashboard-home .cta6-bottom-action{gap:9px;}
  body.public-home .dashboard-home .cta6-action{
    min-width:86px;
    min-height:48px;
    height:48px;
    padding:7px 10px;
  }
  /* Preserve the same 3:2 width ratio at narrow viewport sizes. */
  body.public-home .dashboard-home .cta6-bottom-action button.cta6-action[data-public-target="/projects"]{
     min-width:129px;
     width:129px;
   }
}
@media(prefers-reduced-motion:reduce){
  body.public-home .global-menu-control,
  body.public-home .dashboard-home .cta6-action{transition:none;}
  body.public-home .public-menu-panel{animation:none!important;}
}

/* X-close local optical dissolution, not the historical AppKit smoke poof.
   Background remains unchanged. */
body.public-home .dashboard-home .cta6-bottom-action{
  /* The persistent main page owns this motion, not /login. The horizontal
     centering transform remains intact while the whole row drops out. */
  transform:translate3d(-50%,0,0);
  transition:transform 440ms cubic-bezier(.22,.72,.24,1),
    opacity 390ms cubic-bezier(.24,.72,.3,1);
  will-change:transform,opacity;
}
body.public-home[data-public-route="leaving"] .dashboard-home .cta6-bottom-action{
  transform:translate3d(-50%,calc(100% + clamp(42px,5.4vh,66px) + env(safe-area-inset-bottom,0px) + 28px),0);
  opacity:0!important;
  pointer-events:none!important;
  animation:none!important;
}
/* Direct /login navigation never briefly displays the home buttons. */
body.public-home[data-direct-login="true"] .dashboard-home .cta6-bottom-action{
  transition:none!important;
}
/* The logo stays in its Home layout. The shared GPU glyph pass uses the
 * square dissolution; CSS is only a fallback. */
body.public-home .dashboard-home .cta6-center h1{
  transform-origin:center center;
  transition:transform 420ms cubic-bezier(.26,.62,.36,1),
    opacity 390ms cubic-bezier(.22,.62,.33,1),filter 420ms ease;
}
body.public-home[data-public-route="leaving"] .dashboard-home .cta6-center{
  pointer-events:none!important;
}
body.public-home[data-public-route="leaving"]:not([data-gpu-scene="ready"]) .dashboard-home .cta6-center h1{
  opacity:0!important;
  transform:translate3d(0,-1px,0) scale(1.085,1.065);
  filter:blur(1.4px);
}
body.public-home[data-direct-login="true"] #dashboard-title,
body.public-home:has(> #public-route-content:not([hidden])) #dashboard-title{
  visibility:hidden!important;
  opacity:0!important;
  transition:none!important;
}
body.public-home[data-public-route="leaving"]:not([data-gpu-scene="ready"]) .dashboard-home .cta6-tile:not(.cta6-tile--empty){
  opacity:0!important;
  transform:translate3d(0,-1px,0) scale(1.085,1.065)!important;
  filter:blur(1.4px);
  transition:transform 420ms cubic-bezier(.26,.62,.36,1),
    opacity 390ms cubic-bezier(.22,.62,.33,1),filter 420ms ease;
  transition-delay:calc(var(--cta6-delay,0s) * .015);
  animation:none!important;
}
@media(prefers-reduced-motion:reduce){
  body.public-home .dashboard-home .cta6-center h1,
  body.public-home .dashboard-home .cta6-bottom-action{transition:none!important;}
}

/* Render sign-in glass in the exact same scrolling coordinate space as
   the React card. The two layers are compositor-scrolled together, including
   native elastic overscroll, instead of chasing a fixed GPU canvas via JS. */
body.public-home #public-route-content > #dashboard-auth-glass-scene{
  position:absolute;
  top:0;left:0;
  z-index:0;
  display:block;
  pointer-events:none;
  opacity:0;
  contain:strict;
}
body.public-home[data-auth-gpu-scene="ready"] #public-route-content > #dashboard-auth-glass-scene{
  opacity:1;
}
/* Fixed-viewport full WebGPU presentation (default). The canvas stays
   anchored to the SAME viewport as the photograph and therefore cannot
   drag old background pixels across the wallpaper during native quick
   scroll/rubberband. The card still scrolls natively; its original SDF,
   all mipmap/LOD sampling, tint and hover follow live DOM geometry on the
   next WebGPU submission. No CSS optical substitute or image capture.
   ?auth-scroll=native restores the scroll-attached canvas for comparison. */
body.public-home[data-auth-scroll-mode="fixed"]
  #public-route-content > #dashboard-auth-glass-scene{
  position:fixed;
  top:var(--dashboard-scene-top,44px);
}
/* Native scroll/rubberband directly samples the fixed wallpaper, while
   the separate GPU layer emits ONLY the original SDF rim/hover response,
   never stale photograph pixels. Every homepage square remains full WebGPU;
   /login?auth-glass=compositor keeps the scroll-synchronized hybrid as an opt-in. */
body.public-home[data-auth-glass-mode="compositor"] #public-route-content > #dashboard-auth-glass-scene{
  /* Not a stale image: only shader-native local SDF rim and hover light. */
  z-index:2;
  opacity:1!important;
  visibility:visible!important;
}

/* Persistent public application shell: the backdrop, GPU and mark never unmount. */
body.public-home > #public-route-content{
  position:fixed;inset:44px 0 0;z-index:6;
  display:block;overflow-x:hidden;overflow-y:auto;
  overscroll-behavior:auto;background:transparent;pointer-events:auto;
}
body.public-home > #public-route-content[hidden]{display:none!important;}
/* The React mount never owns/removes the WebGPU canvas. Both are direct
   children of the same scrollport, and the transparent card text sits above
   the scroll-anchored glass without a competing independent scroller. */
body.public-home > #public-route-content > #public-route-stage{
  position:relative;z-index:1;min-height:100%;
}
body.public-home[data-direct-login="true"] .cta6-center h1{transition:none!important;}
/* Native scroll controls the extent and momentum. A sticky presentation
   viewport prevents async compositor scrolling from moving the foreground
   ahead of the fixed WebGPU frame. Translate only the route's content, not
   the GPU canvas or wallpaper; the renderer owns the presented offset. */
body.public-home > #public-route-content[data-project-scroll-sync="true"]{
  overflow-anchor:none;
}
body.public-home > #public-route-content[data-project-scroll-sync="true"] > #public-route-stage{
  position:sticky;top:0;height:100%;min-height:0;overflow:clip;
}
body.public-home > #public-route-content[data-project-scroll-sync="true"] .public-projects-root{
  transform:translateY(calc(-1 * var(--project-presented-scroll,0px)));
}
body.public-home > #public-route-content > .project-scroll-spacer{
  display:none;pointer-events:none;width:1px;
}
body.public-home > #public-route-content[data-project-scroll-sync="true"] > .project-scroll-spacer{
  display:block;
}
body.public-home[data-public-route="returning"]:not([data-gpu-scene="ready"])
  .dashboard-home .cta6-tile:not(.cta6-tile--empty){
  transition:opacity 440ms cubic-bezier(.24,.72,.3,1),
    transform 440ms cubic-bezier(.22,.72,.24,1),filter 440ms ease;
}
body.public-home .public-route-error{
  max-width:440px;margin:calc(30vh - 22px) auto 0;padding:22px;
  border-radius:12px;background:rgba(24,25,27,.93);
  color:#fff;text-align:center;
}

/* Public copyright stays shell-owned, including on /login.
   Override the mirrored Dashboard footer without changing private styles. */
body.public-home:has(> #workspace-shell .dashboard-home:not([hidden])) > .workspace-footer{
  inset:auto auto calc(17px + env(safe-area-inset-bottom,0px)) 50%!important;
  right:auto!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  text-align:center!important;
  opacity:.07!important;
}
@media(max-width:760px){
  body.public-home:has(> #workspace-shell .dashboard-home:not([hidden])) > .workspace-footer{
    right:auto!important;
    left:50%!important;
    bottom:calc(15px + env(safe-area-inset-bottom,0px))!important;
  }
}

 
/* Single paint ownership, not an optical mask. The registered authored
 * source is presented by the GPU both normally and in upper glass backdrops.
 * DOM layout, semantics and computed opacity are unchanged. Suppress only
 * duplicate paint of non-interactive descendants with uploaded sources. */
body.public-home[data-gpu-scene="ready"] :is([data-glass-paint-owned="scene"],[data-glass-paint-owned="mosaic"]),
body.public-home[data-auth-gpu-scene="ready"]:not([data-auth-glass-mode="compositor"]) [data-glass-paint-owned="route"]{
 clip-path:inset(50%)!important;
}

/* Cold-start gate: retain measurable layout without provisional dark faces.
 * Clip rather than hiding ancestors, so authored glyphs remain measurable. */
body.public-home #cta6-mosaic[data-glass-startup="pending"]{
  clip-path:inset(50%);
}
body.public-home #cta6-mosaic[data-glass-startup="pending"] .cta6-tile{
  animation:none!important;
  transition:none!important;
}
body.public-home #cta6-mosaic[data-glass-startup="pending"] .cta6-icon{
  opacity:var(--public-icon-spatial-alpha,0);
}

/* The GPU owns the entire Home clock entrance, including its geometry.
 * Do not compound its reverse dissolve with the generic center slide/fade.
 * The existing CSS animation remains available in non-GPU fallback. */
body.public-home #cta6-mosaic:is([data-glass-startup="pending"],[data-glass-startup="ready"]) + .cta6-center{
  animation:none!important;
}

/* Cold Home follows the mosaic's existing first-frame startup gate.
 * The native heading stays measurable and accessible, but never paints
 * flat letters ahead of the completed GPU clock-text frame. A confirmed
 * fallback releases the gate; The home glyph stays GPU-owned during dissolve. */
body.public-home:not([data-public-route]) #cta6-mosaic[data-glass-startup="pending"] + .cta6-center > #dashboard-title,
body.public-home[data-gpu-scene="ready"] .cta6-center > #dashboard-title[data-glass-text-ready],
body.public-home[data-auth-gpu-scene="ready"] .public-projects-root [data-glass-text-ready]{
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  text-shadow:none!important
}

/* No script can complete the startup gate when scripting is disabled. */
@media(scripting:none){
  body.public-home:not([data-public-route]) #cta6-mosaic[data-glass-startup="pending"] + .cta6-center > #dashboard-title{
    color:#f7f9fa!important;-webkit-text-fill-color:#f7f9fa!important
  }
}

/* The 1080px lattice has explicit square grid tracks. WebKit must not
   infer the row height from the 24px intrinsic SVG or an auto aspect ratio. */
body.public-home .dashboard-home .cta6-mosaic{
  --public-square-size:calc((1080px - 10 * var(--cta6-grid-gap))/11);
  grid-template-rows:repeat(6,var(--public-square-size));
}
body.public-home .dashboard-home .cta6-tile{
  width:100%;height:100%;min-height:0;justify-self:stretch;align-self:stretch;
}
body.public-home .dashboard-home .cta6-track-entry{
  grid-template-rows:var(--public-square-size);
}
/* An unavailable GPU is reported, not replaced by simulated glass. */
body.public-home[data-gpu-scene="unavailable"] #cta6-mosaic{
  visibility:hidden;
}
body.public-home[data-gpu-scene="unavailable"] #dashboard-title{
  color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important;
}
.public-glass-unavailable{
  position:fixed;z-index:5;left:50%;top:calc(44px + 18px);
  transform:translateX(-50%);width:max-content;max-width:calc(100vw - 36px);
  box-sizing:border-box;padding:8px 12px;border-radius:8px;
  background:#202125;color:#f7f9fa;font:400 12px/1.4 system-ui,sans-serif;
  text-align:center;pointer-events:none;
}
/* Responsive public Home only. Keep the original scene and CTA motion. */
body.public-home{
  --public-home-margin:32px;
  --public-home-cta-width:150px;
  --public-home-cta-x:0%;
}
body.public-home .dashboard-home .cta6-center,
body.public-home .dashboard-home .cta6-bottom-action{
  /* iOS text inflation must not override explicitly measured artwork or CTA labels. */
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body.public-home .dashboard-home .cta6-center{
  inset:auto;
  left:calc(50% - 50vw);
  top:calc(50% - var(--dashboard-scene-height)/2);
  width:100vw;height:var(--dashboard-scene-height);
  box-sizing:border-box;
  padding:0 var(--public-home-margin) calc(var(--public-home-margin) + env(safe-area-inset-bottom,0px));
  align-items:flex-start;justify-content:flex-end;
}
body.public-home .dashboard-home .cta6-center h1{font-size:var(--public-home-logo-size,min(157.5px,14vw));translate:none;}
body.public-home .dashboard-home .cta6-bottom-action{
  display:grid;grid-template-columns:minmax(0,1fr);
  width:var(--public-home-cta-width);left:auto;right:var(--public-home-margin);
  bottom:calc(var(--public-home-margin) + env(safe-area-inset-bottom,0px));
  transform:translate3d(var(--public-home-cta-x),0,0);
}
body.public-home .dashboard-home .cta6-bottom-action > .cta6-action,
body.public-home .dashboard-home .cta6-bottom-action button.cta6-action[data-public-target="/projects"]{
  width:100%;min-width:0;padding-inline:clamp(4px,1vw,17px);
}
body.public-home .dashboard-home .cta6-bottom-action button.cta6-action[data-public-target="/projects"]{grid-row:1;}
body.public-home[data-public-route="leaving"] .dashboard-home .cta6-bottom-action{
  transform:translate3d(var(--public-home-cta-x),calc(100% + clamp(42px,5.4vh,66px) + env(safe-area-inset-bottom,0px) + 28px),0);
}
/* Only the mosaic is masked. The wallpaper and wordmark retain their paint. */
body.public-home:not([data-gpu-scene="ready"]) .dashboard-home .cta6-mosaic{
  -webkit-mask-image:linear-gradient(to right,rgba(0,0,0,.25) 0,#000 var(--public-edge-fade-width),#000 calc(100% - var(--public-edge-fade-width)),rgba(0,0,0,.25) 100%),var(--public-desktop-aperture,linear-gradient(#000,#000));
  mask-image:linear-gradient(to right,rgba(0,0,0,.25) 0,#000 var(--public-edge-fade-width),#000 calc(100% - var(--public-edge-fade-width)),rgba(0,0,0,.25) 100%),var(--public-desktop-aperture,linear-gradient(#000,#000));
}
/* Measured layout is authoritative once the public heading observer runs. */
body.public-home[data-home-layout="centered"]{--public-home-cta-width:calc(100vw * 5 / 12);--public-home-cta-x:0%;}
body.public-home[data-home-layout="centered"] .dashboard-home .cta6-center{padding:0;align-items:center;justify-content:center;}
body.public-home[data-home-layout="centered"] .dashboard-home .cta6-center h1{
  font-size:var(--public-home-logo-size,9vw);
  width:max-content;flex:none;
  translate:0 calc(-1 * var(--public-home-logo-shift,215.90909px));
}
body.public-home[data-home-layout="centered"] .dashboard-home .cta6-bottom-action{
  grid-template-columns:repeat(2,minmax(0,1fr));
  /* Center in layout, not via a transitioning horizontal transform.
     Only the existing route-dismissal Y translation is animated. */
  left:0;right:0;margin-inline:auto;
  bottom:calc(clamp(42px,5.4vh,66px) + env(safe-area-inset-bottom,0px));
}
body.public-home[data-home-layout="centered"] .dashboard-home .cta6-bottom-action button.cta6-action[data-public-target="/projects"]{grid-column:1/-1;}
body.public-home[data-home-layout="centered"]:not([data-gpu-scene="ready"]) .dashboard-home .cta6-mosaic{
  -webkit-mask-image:linear-gradient(to right,rgba(0,0,0,.25) 0,#000 var(--public-edge-fade-width),#000 calc(100% - var(--public-edge-fade-width)),rgba(0,0,0,.25) 100%),radial-gradient(ellipse var(--public-logo-oval-x) var(--public-logo-oval-y) at 50% calc(50% - var(--public-logo-shift)),rgba(0,0,0,.48) 0%,rgba(0,0,0,.5268) 30%,rgba(0,0,0,.6672) 60%,rgba(0,0,0,.8128) 80%,rgba(0,0,0,.9012) 90%,#000 100%);
  mask-image:linear-gradient(to right,rgba(0,0,0,.25) 0,#000 var(--public-edge-fade-width),#000 calc(100% - var(--public-edge-fade-width)),rgba(0,0,0,.25) 100%),radial-gradient(ellipse var(--public-logo-oval-x) var(--public-logo-oval-y) at 50% calc(50% - var(--public-logo-shift)),rgba(0,0,0,.48) 0%,rgba(0,0,0,.5268) 30%,rgba(0,0,0,.6672) 60%,rgba(0,0,0,.8128) 80%,rgba(0,0,0,.9012) 90%,#000 100%);
}

/* Initial and no-script layout only; the measured font replaces this estimate. */
@media(max-width:1125px),(any-pointer:coarse),(min-width:2560px){
  body.public-home:not([data-home-layout]){--public-home-cta-width:calc(100vw * 5 / 12);--public-home-cta-x:0%;}
  body.public-home:not([data-home-layout]) .dashboard-home .cta6-center{padding:0;align-items:center;justify-content:center;}
  body.public-home:not([data-home-layout]) .dashboard-home .cta6-center h1{
    font-size:var(--public-home-logo-size,9vw);
    width:max-content;flex:none;
    translate:0 calc(-1 * var(--public-home-logo-shift,215.90909px));
  }
  body.public-home:not([data-home-layout]) .dashboard-home .cta6-bottom-action{
    grid-template-columns:repeat(2,minmax(0,1fr));
    /* Center in layout, not via a transitioning horizontal transform.
       Only the existing route-dismissal Y translation is animated. */
    left:0;right:0;margin-inline:auto;
    bottom:calc(clamp(42px,5.4vh,66px) + env(safe-area-inset-bottom,0px));
  }
  body.public-home:not([data-home-layout]) .dashboard-home .cta6-bottom-action button.cta6-action[data-public-target="/projects"]{grid-column:1/-1;}
  body.public-home:not([data-home-layout]):not([data-gpu-scene="ready"]) .dashboard-home .cta6-mosaic{
    -webkit-mask-image:linear-gradient(to right,rgba(0,0,0,.25) 0,#000 var(--public-edge-fade-width),#000 calc(100% - var(--public-edge-fade-width)),rgba(0,0,0,.25) 100%),radial-gradient(ellipse var(--public-logo-oval-x) var(--public-logo-oval-y) at 50% calc(50% - var(--public-logo-shift)),rgba(0,0,0,.48) 0%,rgba(0,0,0,.5268) 30%,rgba(0,0,0,.6672) 60%,rgba(0,0,0,.8128) 80%,rgba(0,0,0,.9012) 90%,#000 100%);
    mask-image:linear-gradient(to right,rgba(0,0,0,.25) 0,#000 var(--public-edge-fade-width),#000 calc(100% - var(--public-edge-fade-width)),rgba(0,0,0,.25) 100%),radial-gradient(ellipse var(--public-logo-oval-x) var(--public-logo-oval-y) at 50% calc(50% - var(--public-logo-shift)),rgba(0,0,0,.48) 0%,rgba(0,0,0,.5268) 30%,rgba(0,0,0,.6672) 60%,rgba(0,0,0,.8128) 80%,rgba(0,0,0,.9012) 90%,#000 100%);
  }
}

/* The public shell is a fixed scene, not a document scrollport. Projects
   and login retain their own independent native vertical scrollport. */
html:has(>body.public-home){
  height:100%;overflow:hidden;overscroll-behavior:none;
}
body.public-home{
  height:100dvh;min-height:0;overflow:hidden;overscroll-behavior:none;
}
body.public-home #workspace-shell{
  height:100%;min-height:0;overflow:clip;
}
body.public-home .dashboard-home{
  overscroll-behavior:none;touch-action:pinch-zoom;
}
@media(hover:none) and (pointer:coarse){
  /* WebKit can retain synthetic :hover after a tap. Do not leave the
     green optical surface exposed until the next unrelated touch. */
  body.public-home .dashboard-home .cta6-action:hover:not(:active):not(:focus-visible){
    --home-cta-tint:0;transform:none;background:#000;box-shadow:none;
  }
  body.public-home .dashboard-home .cta6-action:active{
    --home-cta-tint:1;
  }
}

/* Touch CTA paint has exactly one owner: the WebGPU rounded rectangle
   emits both the black resting pigment and the live optical face. No
   separately rasterized DOM rectangle can expose an optical edge. */
body.public-home[data-gpu-scene="ready"][data-home-cta-paint="gpu"]
 .dashboard-home .cta6-bottom-action .cta6-action{
  appearance:none!important;-webkit-appearance:none!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
  -webkit-tap-highlight-color:transparent;
}
