:root{--ws-bg:#f3f5f8;--ws-panel:#fff;--ws-raised:#F3F1EF;--ws-text:#171919;--ws-muted:#585B5B;--ws-line:#D8DADB;--ws-accent:#7E5B47;--ws-action:#171919;--ws-on-action:#fff;--ws-focus:#7E5B47;--ws-danger:#ae2f35;--ws-good:#126345}
html[data-theme="dark"]{color-scheme:dark;--ws-bg:#0F1010;--ws-panel:#171919;--ws-raised:#262828;--ws-text:#F3F1EF;--ws-muted:#D8DADB;--ws-line:#585B5B;--ws-accent:#B99A88;--ws-action:#B99A88;--ws-on-action:#171919;--ws-focus:#B99A88;--ws-danger:#ffaaaa;--ws-good:#8be3b8;--ink:var(--ws-text)!important;--muted:var(--ws-muted)!important;--cream:var(--ws-bg)!important;--paper:var(--ws-panel)!important;--accent:var(--ws-accent)!important;--line:var(--ws-line)!important;--line2:var(--ws-line)!important;--dark-bg:var(--ws-bg)!important;--dark-surface:var(--ws-panel)!important;--dark-surface-2:var(--ws-panel)!important;--dark-surface-3:var(--ws-raised)!important;--dark-muted:var(--ws-muted)!important;--dark-text:var(--ws-text)!important}
html body{background:var(--ws-bg);color:var(--ws-text)}
html .hero-canvas{background:radial-gradient(ellipse at 85% 15%,#F3F1EF 0,transparent 60%),var(--ws-bg)}
html[data-theme="dark"] .hero-canvas{background:radial-gradient(ellipse at 85% 15%,#262828 0,transparent 60%),var(--ws-bg)}
html .cursor-ring{display:none!important}
html :is(.home,.clone-page){height:auto!important;min-height:100%;}
html .shell__panel{overflow-y:auto!important;overflow-x:clip!important;scrollbar-gutter:stable}
html :is(.ph-duo,.ph-duo path){filter:none!important;transition:color .15s!important;animation:none!important}
html .ph-duo path[opacity]{opacity:.24!important}
html .ph-duo path{transform:none!important}
html :is(input,select,textarea){max-width:100%;font-size:16px!important}
html :is(button,a,input,textarea,select):focus-visible{outline:3px solid var(--ws-focus)!important;outline-offset:3px!important}
html :is(button:disabled,[aria-disabled="true"]){opacity:.55!important;cursor:not-allowed}
html[data-theme="dark"] :is(input,select,textarea){background:var(--ws-bg)!important;color:var(--ws-text)!important;border:1px solid var(--ws-line)!important;box-shadow:none!important}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:var(--ws-muted)!important}
html[data-theme="dark"] :is(.rail__link,.rail__social,.rail__theme,.rail__edit-profile){color:var(--ws-text)!important}
html[data-theme="dark"] .rail__link.active{background:var(--ws-raised)!important}
.mobile-nav,.mobile-more{display:none}
@media(min-width:901px){html .home{display:flex;flex-direction:column;padding:28px clamp(18px,3vw,48px)!important;gap:18px}
html .home__topbar{grid-template-columns:minmax(130px,.38fr) minmax(0,1fr)!important;min-height:188px}
html .rail{flex-basis:260px;width:260px;padding:28px 20px;overflow-y:auto}
html .rail__nav{margin-top:14px;padding-top:10px}
html .rail__link{font-size:15px;min-height:44px}
html .rail__avatar{width:104px;height:104px}
html .clone-page{padding:28px clamp(18px,3vw,48px) 50px}}
@media(max-width:900px){html,html body,html #root{height:auto;overflow:visible}
html .shell{display:block!important;height:auto!important;min-height:100dvh;overflow:visible!important}
html .rail{position:relative;min-height:88px!important;width:100%!important;padding:12px 16px!important;background:var(--ws-panel)!important;border-bottom:1px solid var(--ws-line)}
html .rail__inner{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;gap:2px 10px!important;min-height:0!important;align-items:center!important}
html .rail__avatar{width:44px!important;height:44px!important;grid-row:1/3!important}
html .rail__name{font-size:16px!important;margin:0!important;grid-column:2;grid-row:1}
html .rail__edit-profile,html .rail__copy,html .rail__nav{display:none!important}
html .rail__actions{display:flex!important;grid-column:3!important;grid-row:1/3!important;gap:4px!important;margin:0!important}
html .rail__socials{gap:4px!important}
html :is(.rail__social,.rail__theme){width:44px!important;height:44px!important;flex-basis:44px!important}
html .shell__panel{height:auto!important;min-height:calc(100dvh - 88px);overflow:visible!important;scrollbar-gutter:auto;padding:0 0 calc(84px + env(safe-area-inset-bottom))!important}
html :is(.home,.clone-page){padding:16px!important;min-height:0!important;overflow:visible!important;width:100%;display:block!important}
html .home__topbar{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;margin-bottom:16px}
html .home__glass--showcase{padding:0!important;background:none!important;box-shadow:none!important;border-radius:0!important}
html .mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:10010;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--ws-line);background:var(--ws-panel);box-shadow:0 -4px 18px #0000000a}
html .mobile-nav :is(a,button){appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;padding:5px 2px;border:0;border-radius:14px;background:none;color:var(--ws-muted);font:600 12px/1.2 Poppins,system-ui}
html .mobile-nav svg{width:23px!important;height:23px!important;color:inherit!important}
html .mobile-nav .is-active{background:var(--ws-raised);color:var(--ws-text)}
html .mobile-more[open]{display:block;position:fixed;inset:auto 0 0;margin:0;max-width:100%;width:100%;max-height:85dvh;overflow:auto;border:1px solid var(--ws-line);border-radius:24px 24px 0 0;padding:20px 20px calc(24px + env(safe-area-inset-bottom));background:var(--ws-panel);color:var(--ws-text)}
html .mobile-more::backdrop{background:#0F101099}
html .mobile-more header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
html .mobile-more h2{font-size:20px;margin:0}
html .mobile-more header button{border:0;border-radius:50%;width:44px;height:44px;background:var(--ws-raised);color:var(--ws-text);font-size:26px}
html .mobile-more-links{display:grid;grid-template-columns:1fr 1fr;gap:10px}
html .mobile-more-links a{display:flex;align-items:center;gap:10px;min-height:64px;padding:12px;border-radius:16px;background:var(--ws-raised);color:var(--ws-text);font-size:14px}
html .mobile-more-links svg{width:22px;height:22px;flex-shrink:0}
html .a11y{left:auto;right:12px;bottom:calc(86px + env(safe-area-inset-bottom));z-index:10000}
html .a11y__panel{left:auto;right:0}
html .kape__panel{position:fixed;inset:12px 12px calc(90px + env(safe-area-inset-bottom));width:auto!important;max-height:none!important}

}
@media(max-width:420px){html .rail{padding:10px!important}
html .rail__name{font-size:14px!important}
html .rail__socials li:last-child{display:none}}
@media(prefers-reduced-motion:reduce){html *,html *::before,html *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(max-width:900px){html .home__glass--showcase{border:0!important;box-shadow:none!important;background:transparent!important}}
@media(max-width:360px){html .mobile-more-links{grid-template-columns:1fr}}
.mobile-tool-label{display:none}
@media(max-width:900px){html .mobile-nav{gap:2px;padding-left:6px;padding-right:6px}
html .mobile-nav :is(a,button){font-size:11px!important;text-align:center}
html .mobile-nav span{white-space:nowrap}
html .mobile-more-links :is(a,button){min-width:0;overflow-wrap:anywhere}
html .mobile-more-tools{display:grid;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid var(--ws-line)}
html .mobile-more-tools .a11y{position:static!important;inset:auto!important;width:100%;height:auto;display:flex;flex-direction:column;min-width:0}
html .mobile-more-tools .a11y__button{width:100%;min-height:48px;display:flex;justify-content:flex-start;gap:10px;padding:12px 16px;border-radius:14px;background:var(--ws-raised)!important;color:var(--ws-text)!important;box-shadow:none!important;font:500 14px/1.4 Poppins,system-ui}
html .mobile-tool-label{display:inline}
html .mobile-more-tools .a11y__panel{position:static!important;inset:auto!important;display:none;order:1;width:100%!important;max-width:100%;height:auto;max-height:none;margin-top:10px;background:var(--ws-panel);color:var(--ws-text);box-shadow:inset 0 0 0 1px var(--ws-line)!important;backdrop-filter:none;transform:none;transition:none}
html .mobile-more-tools .a11y.is-open .a11y__panel{display:flex}
html .mobile-more-tools .a11y__head{height:auto;margin-bottom:0}
html .mobile-more-tools .a11y__switch-label{color:var(--ws-text)}
html .mobile-more-tools .a11y__toggle{background:var(--ws-line)}
html .mobile-more-tools .a11y__close{min-width:44px;min-height:44px;color:var(--ws-text)}

}
@media(min-width:901px){html .rail__inner,html .rail__nav,html .rail__nav ul,html .rail__link{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
html .rail__nav{padding-right:0;mask-image:none;-webkit-mask-image:none}
html .rail__link{border-radius:14px;transform:none}
html .home__topbar{height:174px;min-height:174px;align-items:stretch}

}
html .a11y__panel,html .a11y__list{height:auto}
html.a11y-high-contrast{filter:none;--ws-line:#585B5B;--line:var(--ws-line)!important;--line2:var(--ws-line)!important}
html.a11y-high-contrast[data-theme="dark"]{--ws-line:#D8DADB}
@media(max-width:700px){html .kape__panel{
    position:fixed!important;
    inset:auto 10px calc(82px + env(safe-area-inset-bottom)) auto!important;
    width:min(330px,calc(100vw - 20px))!important;
    height:auto!important;
    max-height:min(52dvh,430px)!important;
    min-height:0!important;
    border-radius:18px!important;
    overflow:hidden!important;
  }

}
@media(max-width:900px){html .mobile-nav{transition:transform .28s cubic-bezier(.22,1,.36,1),opacity .2s ease!important;will-change:transform,opacity}
html.mobile-nav-hidden .mobile-nav{transform:translateY(calc(100% + env(safe-area-inset-bottom) + 8px))!important;opacity:0!important;pointer-events:none!important}
html .hero-canvas{background:transparent!important}
html .hero-canvas canvas{opacity:1!important;filter:contrast(1.18) saturate(1.08)!important}

}
@media(max-width:900px){html[data-theme="dark"] :is(.rail__social,.rail__theme){
    width:36px!important;height:36px!important;min-width:36px!important;max-width:36px!important;
    min-height:36px!important;max-height:36px!important;flex:0 0 36px!important;
    padding:0!important;aspect-ratio:1/1!important;border-radius:50%!important;
    display:grid!important;place-items:center!important;
  }

}
@media(max-width:620px){html[data-theme="dark"] :is(.rail__social,.rail__theme){
    width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;
    min-height:32px!important;max-height:32px!important;flex-basis:32px!important;
  }

}
@media(max-width:900px){html :is(.rail__social,.rail__theme){
    box-sizing:border-box!important;width:36px!important;height:36px!important;
    min-width:36px!important;max-width:36px!important;min-height:36px!important;max-height:36px!important;
    flex:0 0 36px!important;padding:0!important;aspect-ratio:1!important;border-radius:999px!important;
    display:grid!important;place-items:center!important;
  }

}
@media(max-width:620px){html :is(.rail__social,.rail__theme){
    width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;
    min-height:32px!important;max-height:32px!important;flex:0 0 32px!important;
  }

}
@media(max-width:900px){html .mobile-nav{
    transform:translate3d(0,0,0);
    opacity:1;
    visibility:visible;
    transition:
      transform .46s cubic-bezier(.22,1,.36,1),
      opacity .30s ease,
      visibility 0s linear 0s!important;
    will-change:transform,opacity;
    backface-visibility:hidden;
  }
html.mobile-nav-hidden .mobile-nav{
    transform:translate3d(0,calc(100% + env(safe-area-inset-bottom) + 12px),0)!important;
    opacity:0!important;
    visibility:hidden;
    pointer-events:none!important;
    transition:
      transform .38s cubic-bezier(.4,0,.2,1),
      opacity .26s ease,
      visibility 0s linear .38s!important;
  }

}


/* Hero mobile bottom navigator — reference style lock. */
@media(max-width:900px){
  html .mobile-nav{
    position:fixed!important;
    left:50%!important;
    right:auto!important;
    bottom:max(8px,env(safe-area-inset-bottom))!important;
    z-index:10010!important;
    display:grid!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:0!important;
    width:calc(100% - 20px)!important;
    max-width:520px!important;
    min-height:64px!important;
    padding:0!important;
    overflow:hidden!important;
    border:1px solid rgba(15,16,16,.16)!important;
    border-radius:16px!important;
    background:#FCFCFB!important;
    box-shadow:0 14px 34px -24px rgba(15,16,16,.42),0 4px 10px -7px rgba(15,16,16,.18)!important;
    transform:translateX(-50%)!important;
    transition:
      width .45s ease-in-out,
      transform .45s ease-in-out,
      opacity .45s ease-in-out!important;
  }

  html .mobile-nav :is(a,button){
    appearance:none!important;
    position:relative!important;
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:center!important;
    gap:12px!important;
    width:100%!important;
    height:64px!important;
    min-height:64px!important;
    padding:16px!important;
    margin:0!important;
    border:1px solid transparent!important;
    border-radius:12px!important;
    background:transparent!important;
    color:#585B5B!important;
    box-shadow:none!important;
    font:inherit!important;
    text-decoration:none!important;
    transition:
      transform .3s ease-in-out,
      border-color .3s ease-in-out,
      box-shadow .3s ease-in-out,
      color .3s ease-in-out,
      background-color .3s ease-in-out!important;
  }

  html .mobile-nav :is(a,button)::before{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    border-radius:12px!important;
    pointer-events:none!important;
  }

  html .mobile-nav :is(a,button).is-active{
    border-color:rgba(126,91,71,.22)!important;
    background:rgba(126,91,71,.09)!important;
    box-shadow:0 10px 22px -16px rgba(126,91,71,.28),0 4px 10px -8px rgba(15,16,16,.14)!important;
    color:#7E5B47!important;
  }

  html .mobile-nav :is(a,button) > :is(i,svg){
    width:24px!important;
    height:24px!important;
    flex:0 0 24px!important;
    margin:0!important;
    color:currentColor!important;
    fill:currentColor!important;
    font-size:24px!important;
    line-height:1!important;
    transform:scale(1)!important;
    transform-origin:center!important;
    transition:
      transform .3s ease-in-out,
      color .3s ease-in-out,
      fill .3s ease-in-out!important;
  }

  html .mobile-nav :is(a,button):hover > :is(i,svg),
  html .mobile-nav :is(a,button).is-active > :is(i,svg){
    color:#7E5B47!important;
    fill:#7E5B47!important;
    transform:scale(1.25)!important;
  }

  html .mobile-nav :is(a,button) > span{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    padding:0!important;
    margin:-1px!important;
    overflow:hidden!important;
    clip:rect(0,0,0,0)!important;
    white-space:nowrap!important;
    border:0!important;
  }

  html.mobile-nav-hidden .mobile-nav{
    transform:translateX(-50%)!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }

  html[data-theme="dark"] .mobile-nav{
    background:rgba(23,25,25,.92)!important;
    border-color:rgba(255,255,255,.14)!important;
    box-shadow:0 16px 36px -24px rgba(0,0,0,.72),0 4px 12px -8px rgba(0,0,0,.52)!important;
    -webkit-backdrop-filter:blur(14px) saturate(115%)!important;
    backdrop-filter:blur(14px) saturate(115%)!important;
  }

  html[data-theme="dark"] .mobile-nav :is(a,button){
    color:#A9ADAD!important;
  }

  html[data-theme="dark"] .mobile-nav :is(a,button).is-active{
    background:rgba(126,91,71,.22)!important;
    color:#B99A88!important;
    border-color:rgba(185,154,136,.24)!important;
  }

  html .shell__panel{
    padding-bottom:calc(88px + env(safe-area-inset-bottom))!important;
  }

  html .kape__panel{
    inset:auto 10px calc(92px + env(safe-area-inset-bottom))!important;
  }
}

/* Mobile density pass — ultra-compact spacing on phones/tablets only; desktop (min-width:901px) is never touched. */
@media(max-width:900px){
  html .portfolio-dashboard :is(.home,.clone-page){padding:8px!important;gap:7px!important}
  html .portfolio-dashboard .home__topbar{gap:7px!important;margin-bottom:7px!important}
  html .portfolio-dashboard .portfolio-about-headline{margin-bottom:2px!important;padding:0 2px!important}
  html .portfolio-dashboard .portfolio-about-headline :is(h1,h2){font-size:20px!important;line-height:1.04!important}
html .portfolio-dashboard .portfolio-about-headline p{font-size:12px!important;line-height:1.32!important;margin-top:3px!important}
  html .portfolio-dashboard .portfolio-reference-grid{gap:7px!important}
  html .portfolio-dashboard .portfolio-reference-grid .portfolio-ref-card{padding:9px 10px!important;border-radius:12px!important;gap:5px!important;font-size:13.5px!important;line-height:1.34!important}
  html .portfolio-dashboard .portfolio-reference-grid .portfolio-ref-card :is(p,span,li,small,dd,dt){line-height:1.32!important}
  html .portfolio-dashboard .portfolio-ref-card--feature{gap:5px!important}
  html .portfolio-dashboard .portfolio-ref-head{gap:8px!important;margin-bottom:2px!important}
  html .portfolio-dashboard .portfolio-about-assess-tile{padding:8px 9px!important;gap:8px!important;border-radius:11px!important}
  /* Shorter floating nav + matching scroll clearance frees vertical space. */
  html .mobile-nav{min-height:54px!important}
  html .mobile-nav :is(a,button){height:54px!important;min-height:54px!important;padding:10px!important}
  html .shell__panel{padding-bottom:calc(72px + env(safe-area-inset-bottom))!important}
}
@media(max-width:620px){
  html .portfolio-dashboard :is(.home,.clone-page){padding:7px!important;gap:6px!important}
  html .portfolio-dashboard .portfolio-reference-grid{gap:6px!important}
  html .portfolio-dashboard .portfolio-reference-grid .portfolio-ref-card{padding:8px 9px!important;font-size:13px!important}
  html .portfolio-dashboard .portfolio-about-headline :is(h1,h2){font-size:19px!important}
  html .portfolio-dashboard .portfolio-about-assess-tile{padding:7px 8px!important}
}

/* Theme switch reveal + matching sun/moon motion. */
html .rail__theme .tg-rays,
html .rail__theme .tg-sun-core,
html .rail__theme .tg-moon{
  transform-box:fill-box!important;
  transform-origin:center!important;
  transition:transform .42s cubic-bezier(.2,.8,.2,1),opacity .24s ease!important;
}
html .rail__theme .tg-rays{opacity:1!important;transform:rotate(0deg)!important}
html .rail__theme .tg-moon{opacity:0!important;transform:rotate(-35deg) scale(.62)!important}
html[data-theme="dark"] .rail__theme .tg-rays{opacity:0!important;transform:rotate(55deg)!important}
html[data-theme="dark"] .rail__theme .tg-sun-core{transform:scale(.74)!important}
html[data-theme="dark"] .rail__theme .tg-moon{opacity:1!important;transform:rotate(0) scale(1)!important}
::view-transition-old(root){animation:none!important;z-index:1!important}
::view-transition-new(root){animation:portfolio-theme-reveal .62s cubic-bezier(.22,1,.36,1) both!important;z-index:2!important}
@keyframes portfolio-theme-reveal{
  from{clip-path:circle(0 at var(--theme-origin-x,50%) var(--theme-origin-y,40px))}
  to{clip-path:circle(150vmax at var(--theme-origin-x,50%) var(--theme-origin-y,40px))}
}
@media(prefers-reduced-motion:reduce){::view-transition-new(root){animation:none!important}}
html.a11y-reduce-motion::view-transition-new(root){animation:none!important}
