
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;min-height:40px;padding:10px 13px;border:1px solid rgba(255,226,248,.5);background:rgba(255,255,255,.1);border-radius:999px;color:#fff2fa;font-family:inherit;font-weight:700;font-size:11px;letter-spacing:.055em;cursor:pointer;transition:background .25s,transform .25s,border-color .25s}
.theme-toggle:hover{transform:translateY(-1px);background:rgba(255,255,255,.2)}
.theme-toggle:focus-visible{outline:3px solid #e996d0;outline-offset:3px}
.theme-toggle .theme-icon{font-size:15px;line-height:1}
html[data-theme="light"]{color-scheme:light;--ink:#322341;--muted:#655270;--accent:#893d76;--bg:#fcf4fa}
html[data-theme="light"] body{color:#322341;background:#fcf4fa}
html[data-theme="light"] .theme-toggle{background:#ffffffa9;border-color:#996a9577;color:#42264a}
html[data-theme="light"] .theme-toggle:hover{background:#fff}
html[data-theme="light"] a:focus-visible,html[data-theme="light"] button:focus-visible{outline-color:#8f3973}
html[data-theme="light"] header{background:linear-gradient(180deg,rgba(255,248,255,.97),rgba(255,248,255,.76));border-bottom:1px solid #7e59802b}
html[data-theme="light"] header a,html[data-theme="light"] .brand,html[data-theme="light"] .plain-link{color:#42274e}
html[data-theme="light"] header .brand span{color:#9e4683}
html[data-theme="light"] .backdrop{background:radial-gradient(ellipse at 76% 18%,#ecd0f9,transparent 63%),#fcf5fa}
html[data-theme="light"] .chapter:nth-child(odd){background:radial-gradient(ellipse at 86% 22%,#d9c3f18c,transparent 65%),linear-gradient(130deg,#fff7fb,#f0e7fb 53%,#fce9f1)}
html[data-theme="light"] .chapter:nth-child(even){background:radial-gradient(ellipse at 82% 28%,#f9c8e48c,transparent 62%),linear-gradient(135deg,#fff7fb,#f4dbe8 50%,#ede0f7)}
html[data-theme="light"] .chapter:nth-child(3n){background:radial-gradient(ellipse at 80% 70%,#d8c9efb5,transparent 65%),linear-gradient(135deg,#fdf4fc,#ebdff5 56%,#f9e6ee)}
html[data-theme="light"] .chapter:nth-child(4n){background:radial-gradient(ellipse at 84% 20%,#edbfdba3,transparent 60%),linear-gradient(125deg,#fff8fa,#f1dded 50%,#eae0fa)}
html[data-theme="light"] .chapter .eyebrow,html[data-theme="light"] .eyebrow{color:#713a68}
html[data-theme="light"] .chapter h1,html[data-theme="light"] .chapter h2,html[data-theme="light"] .chapter h1 .accent,html[data-theme="light"] .chapter h2 .accent{color:#3d264b;text-shadow:none}
html[data-theme="light"] .chapter .accent{color:#964375}
html[data-theme="light"] .chapter p,html[data-theme="light"] .chapter:nth-child(even) p{color:#46354f}
html[data-theme="light"] .chapter .chip{border-color:#8a678884;color:#483450;background:#ffffff70}
html[data-theme="light"] .glass,html[data-theme="light"] .chapter:nth-child(even) .glass{background:#fffaf9c9;border:1px solid #a373a476;box-shadow:0 10px 32px #77537f14}
html[data-theme="light"] .work strong,html[data-theme="light"] .work small{color:#382342}
html[data-theme="light"] .work small{color:#745276}
html[data-theme="light"] .work .arrow{color:#70345f;background:#f2d7e7;border-color:#a8739c}
html[data-theme="light"] .work:hover,html[data-theme="light"] .work.is-lit,html[data-theme="light"] .work:focus-visible{background:#fff;border-color:#b36b9e;box-shadow:0 8px 38px #c57dac54}
html[data-theme="light"] .work:before{background:radial-gradient(circle,#dc95ca4d,transparent 44%)}
html[data-theme="light"] .cta{color:#fff;background:#873c72}
html[data-theme="light"] .cta:hover{background:#673053}
html[data-theme="light"] .mode,html[data-theme="light"] .resume-pill{color:#42274e;background:#ffffff99;border-color:#8b679684}
html[data-theme="light"] .mode span,html[data-theme="light"] .resume-pill span{color:#8d3b79}
html[data-theme="light"] .next-section,html[data-theme="light"] .chapter:nth-child(even) .next-section{color:#4c2d53}
html[data-theme="light"] .next-section span{border-color:#965c90;background:#f3e2ef}
html[data-theme="light"] .next-section:hover span{background:#eed3e6}
html[data-theme="light"] .chapter .footer-links a{color:#6f3866}
html[data-theme="light"] .constellation-track button{border-color:#8f538c;background:#9a689a;box-shadow:0 0 7px #b785bb88}
html[data-theme="light"] .constellation-track button[aria-current="step"]{background:#512656;border-color:#512656;box-shadow:0 0 13px #bd80bd}
html[data-theme="light"] .constellation-current{color:#533158}
html[data-theme="light"] .constellation-lines path:first-child{stroke:#9f729a}
html[data-theme="light"] #constellation-active-line{stroke:#83417c}
html[data-theme="light"] .universe{background:radial-gradient(ellipse at center,#f3d7ed,#e7dff8 65%,#fdf5fa)}
html[data-theme="light"] .universe-title{color:#613866}
html[data-theme="light"] .close{background:#fff8;border-color:#985a91;color:#4a2c52}
html[data-theme="light"] .hex{color:#43264c;background:linear-gradient(150deg,#fff,#ead2ee 22%,#bd96d0 49%,#efcde1 75%,#fff 100%);box-shadow:inset 4px 4px 9px #fff,inset -7px -9px 16px #9c69a688,0 8px 25px #7d588955}
html[data-theme="light"] .hex:before{background:linear-gradient(140deg,#fff7,#f1ddf4ac)}
html[data-theme="light"] .hex strong{color:#3d264d;text-shadow:none}
html[data-theme="light"] .hex small{color:#634067}
html[data-theme="light"] #stardust{opacity:.4;mix-blend-mode:multiply}

html[data-theme="light"] .intro{background:radial-gradient(ellipse at 82% 28%,#edd1f0,transparent 57%),#fbf1fa}
html[data-theme="light"] .intro h1,html[data-theme="light"] .case h2{color:#392647}
html[data-theme="light"] .intro .accent,html[data-theme="light"] .case .accent{color:#8e4176}
html[data-theme="light"] .intro p,html[data-theme="light"] .case p{color:#4b3a53}
html[data-theme="light"] .case:nth-of-type(even){background:radial-gradient(ellipse at 88% 48%,#ebbbd965,transparent 58%),#fff8fc}
html[data-theme="light"] .case:nth-of-type(odd){background:radial-gradient(ellipse at 88% 28%,#d8c8ef88,transparent 58%),#f2eafa}
html[data-theme="light"] .case{border-color:#af88ad55}
html[data-theme="light"] .case .chip,html[data-theme="light"] .case-links a{border-color:#9c7599;color:#47334c}
html[data-theme="light"] .case .cta{background:#863d74;color:#fff}
html[data-theme="light"] footer{background:#f8eef7;color:#54425f}
html[data-theme="light"] footer a{color:#78346c}

html[data-theme="light"] body:has(.role){background:radial-gradient(ellipse at 89% 0%,#e9c5e7,transparent 48%),radial-gradient(ellipse at 15% 70%,#d9cef0,transparent 55%),#fff8fb}
html[data-theme="light"] body:has(.role) h1,html[data-theme="light"] body:has(.role) h2{color:#392647}
html[data-theme="light"] body:has(.role) .meta{color:#765373}
html[data-theme="light"] body:has(.role) .role{background:#ffffffaa;border-color:#ac85ab6a}
html[data-theme="light"] body:has(.role) .chip{border-color:#997b99;color:#432a4a}
html[data-theme="light"] body:has(.role) .button{color:#663457;border-color:#9c7399}
html[data-theme="light"] body:has(.role) .button.primary{color:white;background:#873c72}
html[data-theme="light"] body:has(.role) section{border-color:#99749a55}
html[data-theme="light"] body:has(.role) footer{background:transparent;color:#66536e}
@media(max-width:650px){.theme-toggle{font-size:10px;padding:9px 10px}.theme-toggle .theme-icon{font-size:14px}}
@media print{.theme-toggle{display:none!important}html[data-theme="light"] body:has(.role){background:white!important}}

@media(max-width:650px){.theme-toggle{width:37px;min-width:37px;height:37px;padding:0;border-radius:50%;flex-shrink:0}.theme-toggle .theme-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.head-actions{gap:7px}.resume-pill{padding:9px 10px;font-size:10px}.mode{padding:9px 10px;font-size:10px}header nav{gap:9px}header nav a{font-size:11px}}

.theme-toggle{width:44px;height:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;padding:0 10px!important;position:relative;line-height:1}
.theme-toggle .theme-icon{font-family:Georgia,serif;display:grid;place-items:center;width:20px;height:20px;line-height:1;font-size:19px;transform:none}
.theme-toggle .theme-label{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}
.resume-pill,.mode{height:44px!important;min-height:44px!important;display:inline-flex!important;align-items:center;justify-content:center;padding:0 17px!important;box-sizing:border-box}
html[data-theme="light"] .constellation-arc .star-path{stroke:#955b95}
html[data-theme="light"] .constellation-arc #constellation-active-line{stroke:#8d4182}
html[data-theme="light"] .case-grid-nav .nav-star{color:#8b427b}
html[data-theme="light"] .case-grid-nav .nav-star[aria-current="step"]{color:#5c2a61}
html[data-theme="light"] .work-panel{color:#392647}
html[data-theme="light"] .work-panel .panel-intro,html[data-theme="light"] .work-panel p{color:#49354e}
html[data-theme="light"] .work-panel .artifact-placeholder{color:#614c68;background:#fffafdc4;border-color:#b67fb1}
html[data-theme="light"] .work-panel .panel-pill{background:linear-gradient(125deg,#ffe0ef,#e7cdf3);color:#5c285c;border-color:#b963a3}
html[data-theme="light"] .gallery-action{color:#5b2a5a;background:linear-gradient(135deg,#fce0ef,#e8d0ef);border-color:#b76da8}
html[data-theme="light"] .gallery-arrow{background:#fff9fc;border-color:#ae6da7;color:#643067}
html[data-theme="light"] .gallery-arrow:hover{background:#f6daec}
html[data-theme="light"] .gallery-shell{background:#fbf4fb}
html[data-theme="light"] .gallery-hero{background:radial-gradient(ellipse at 82% 30%,#e9c8ef,transparent 55%),linear-gradient(140deg,#fff6fc,#eedcf2)}
html[data-theme="light"] .gallery-hero p,html[data-theme="light"] .gallery-hero h1{color:#412a4b}
html[data-theme="light"] .gallery-hero em{color:#963d7a}
html[data-theme="light"] .gallery-hero .eyebrow{color:#74376f}
html[data-theme="light"] .work-panel:nth-child(1){background:linear-gradient(145deg,#fff3fa,#eddcf6)}
html[data-theme="light"] .work-panel:nth-child(2){background:linear-gradient(145deg,#f6e6f7,#fce4ef)}
html[data-theme="light"] .work-panel:nth-child(3){background:linear-gradient(145deg,#fbe5f1,#e5dff7)}
html[data-theme="light"] .work-panel:nth-child(4){background:linear-gradient(145deg,#f0e5fa,#ffe6f1)}
@media(max-width:650px){.theme-toggle{width:38px;height:38px;min-height:38px;padding:0!important}.resume-pill,.mode{height:38px!important;min-height:38px!important;padding:0 10px!important}}

body:has(.role) .chip,.case .chip,.panel-pill{border:1px solid #ee92ce!important;background:linear-gradient(120deg,#c0439b55,#8c3cac66)!important;color:#ffe8f7!important;box-shadow:inset 0 1px 0 #ffffff25,0 0 15px #b84d9a55!important;border-radius:999px;font-weight:700}
html[data-theme="light"] body:has(.role) .chip,html[data-theme="light"] .case .chip,html[data-theme="light"] .panel-pill{border-color:#b45d9d!important;background:linear-gradient(125deg,#ffdbed,#e5c8f3)!important;color:#542954!important;box-shadow:0 0 14px #e58ac259!important}

.gallery-kicker{color:#f8e1ef!important;font-weight:700;letter-spacing:.11em}
.panel-number,.work-panel .eyebrow,.story-details h3,.panel-end,.artifact-kicker{color:#ffe3f2!important}
.gallery-instructions{color:#e9d9e8!important;font-weight:600}
.gallery-shell{height:calc(100dvh - 74px);min-height:520px;display:flex;flex-direction:column;padding:18px 0 12px!important;overflow:hidden;background:linear-gradient(155deg,#302039,#1b172b 60%,#31203b)!important}
.gallery-frame{flex:1;min-height:0;display:flex}
.panels{height:100%;flex:1;min-height:0;scroll-padding-inline:calc((100vw - min(92vw,1160px))/2);padding-inline:calc((100vw - min(92vw,1160px))/2);align-items:stretch}
.work-panel{height:100%!important;min-height:0!important;max-height:none!important;flex:0 0 min(92vw,1160px)!important;margin:0!important;scroll-snap-align:center;scroll-snap-stop:always}
.panel-scroller{height:100%;min-height:0;scroll-padding-bottom:45px}
.gallery-controls{flex:0 0 auto;min-height:78px;padding:14px 20px!important}
.gallery-instructions{flex:0 0 auto;padding:4px 20px 8px!important;line-height:1.35}
.case-grid-nav{gap:14px!important;min-width:172px!important;justify-content:space-between!important;padding:0 6px!important;align-self:center}
.case-grid-nav:before{left:17px!important;right:17px!important;top:50%!important;height:2px!important;transform:translateY(-50%);background:#e9a9dc!important;box-shadow:0 0 9px #f2b8e4}
.case-grid-nav .nav-star{width:24px!important;height:24px!important;padding:2px!important;display:grid!important;place-items:center!important;line-height:1!important;flex:0 0 24px;border-radius:50%;background:#251a36!important;color:#f2bce4!important}
.case-grid-nav .nav-star svg{width:21px;height:21px;display:block}
.case-grid-nav .nav-star[aria-current="step"]{color:#fff!important;transform:scale(1.22);text-shadow:none;filter:drop-shadow(0 0 7px #ffbfe9)}
header{box-shadow:0 4px 27px #07020f48;border-bottom:1px solid #d7a6cf62!important}
.gallery-footer,footer{border-top:1px solid #e3a8ce47}
html[data-theme="light"] header{background:linear-gradient(130deg,#eddaef,#e6cfdf)!important;border-bottom:1px solid #a973a267!important;box-shadow:0 6px 24px #84578026}
html[data-theme="light"] .gallery-footer,html[data-theme="light"] footer{background:linear-gradient(135deg,#ead4e8,#e6d8ef)!important;border-top:1px solid #ae76a056}
html[data-theme="light"] .gallery-shell{background:linear-gradient(145deg,#e6d5e6,#ddd4ed 55%,#e6cde0)!important}
html[data-theme="light"] .gallery-kicker{color:#66335f!important}
html[data-theme="light"] .panel-number,html[data-theme="light"] .work-panel .eyebrow,html[data-theme="light"] .story-details h3,html[data-theme="light"] .panel-end,html[data-theme="light"] .artifact-kicker{color:#713765!important}
html[data-theme="light"] .gallery-instructions{color:#5e4266!important}
html[data-theme="light"] .work-panel:nth-child(1){background:linear-gradient(142deg,#f4e2f0,#f0d9e9)!important}
html[data-theme="light"] .work-panel:nth-child(2){background:linear-gradient(142deg,#e9e0f3,#e4d6ed)!important}
html[data-theme="light"] .work-panel:nth-child(3){background:linear-gradient(142deg,#f5e1e8,#ead8ec)!important}
html[data-theme="light"] .work-panel:nth-child(4){background:linear-gradient(142deg,#eadcf3,#f1dce8)!important}
html[data-theme="light"] .case-grid-nav:before{background:#8d4385!important;box-shadow:0 0 7px #b669a8}
html[data-theme="light"] .case-grid-nav .nav-star{background:#e6d4e6!important;color:#8a4883!important}
html[data-theme="light"] .case-grid-nav .nav-star[aria-current="step"]{color:#5c255b!important;filter:drop-shadow(0 0 6px #c889b9)}
html[data-theme="light"] .gallery-action{color:#4b244e!important}
html[data-theme="light"] .gallery-hero{background:radial-gradient(ellipse at 80% 27%,#d6b1dd,transparent 63%),linear-gradient(145deg,#f2e4f3,#e9d8e8)!important}
html[data-theme="light"] .gallery-hero .eyebrow{color:#63335e!important}
html[data-theme="light"] .gallery-hero p{color:#3d3048!important}
html[data-theme="light"] .gallery-footer h2{color:#41284b}
html:not([data-theme="light"]) .gallery-hero{background:radial-gradient(ellipse at 80% 25%,#9d6d9c85,transparent 58%),linear-gradient(145deg,#342140,#423050)!important}
html:not([data-theme="light"]) .gallery-shell{background:linear-gradient(140deg,#34233c,#292236)!important}
html:not([data-theme="light"]) .gallery-footer{background:#37253f!important}
html:not([data-theme="light"]) header{background:#30213be9!important}
@media(max-width:700px){.gallery-shell{height:calc(100dvh - 65px);min-height:470px;padding-top:12px!important}.gallery-controls{min-height:74px;padding:12px 10px!important}.gallery-instructions{font-size:11px!important;padding:2px 18px 9px!important}.case-grid-nav{gap:9px!important;min-width:144px!important}.case-grid-nav .nav-star{width:21px!important;height:21px!important;flex-basis:21px}.case-grid-nav .nav-star svg{width:18px;height:18px}.panels{scroll-padding-inline:4vw;padding-inline:4vw}.work-panel{flex-basis:92vw!important}.panel-scroller{padding:23px 24px 38px}.gallery-arrow{width:43px;height:43px}}
@media(max-height:610px){.gallery-instructions{display:none}.gallery-controls{min-height:56px}.gallery-shell{min-height:340px}}

html{scroll-padding-top:var(--gallery-header-height,72px)}
.gallery-hero,.gallery-shell,.gallery-footer{scroll-margin-top:0!important}
.gallery-hero{height:auto!important;min-height:calc(100dvh - var(--gallery-header-height,72px))!important}
.gallery-shell{
  height:calc(100dvh - var(--gallery-header-height,72px))!important;
  min-height:0!important;
  display:grid!important;
  grid-template-rows:minmax(0,1fr) auto auto;
  padding:14px 0 12px!important;
  gap:0;
}
.gallery-frame{height:100%;min-height:0;display:block;overflow:visible}
.panels{
  height:100%;
  min-height:0;
  box-sizing:border-box;
  align-items:stretch;
  padding-block:11px 17px;
  padding-inline:calc((100vw - min(95vw,1400px))/2)!important;
  scroll-padding-inline:calc((100vw - min(95vw,1400px))/2)!important;
}
.work-panel{
  flex:0 0 min(95vw,1400px)!important;
  height:100%!important;
  max-height:none!important;
  min-height:0!important;
  margin:0!important;
  border-radius:24px;
  box-shadow:0 10px 25px #08031365;
}
.panel-scroller{
  box-sizing:border-box;
  height:100%;
  min-height:0;
  max-height:100%;
  padding:clamp(25px,4vw,62px) clamp(24px,5vw,74px) 55px!important;
  overflow-y:auto!important;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-y:contain;
  scrollbar-gutter:stable;
}
.panel-scroller:focus-visible{outline:3px solid #f2b8e4;outline-offset:-4px}
.gallery-controls{min-height:64px!important;padding:7px 15px!important;gap:clamp(8px,2vw,22px)!important;box-sizing:border-box}
.gallery-instructions{margin:0!important;padding:0 18px 6px!important;min-height:20px;line-height:1.3!important;text-wrap:balance}
.gallery-footer{min-height:min(57dvh,560px)!important}
.gallery-arrow{flex:0 0 46px;height:46px;width:46px}
.case-grid-nav{min-width:248px!important;width:248px!important;gap:0!important;justify-content:space-between!important;padding:0!important;height:48px}
.case-grid-nav:before{left:24px!important;right:24px!important;top:50%!important;transform:translateY(-50%);height:1px!important;background:linear-gradient(90deg,#e9b2e7,#f9d9ef,#e8b0e4)!important;box-shadow:0 0 8px #f3b5de8c;z-index:0}
.case-grid-nav .nav-star,.case-grid-nav .nav-star[aria-current="step"]{
  flex:0 0 44px!important;
  width:44px!important;height:44px!important;
  padding:0!important;margin:0!important;
  display:grid!important;place-items:center!important;
  position:relative;
  isolation:isolate;
  border:0!important;
  background:transparent!important;
  border-radius:50%;
  color:#ffe6f7!important;
  box-shadow:none!important;
  filter:none;
  transform:none;
  transition:color .25s;
}
.case-grid-nav .nav-star svg{
  display:block!important;
  width:19px!important;height:19px!important;
  stroke:#ffedf9;stroke-width:1.3;fill:none!important;
  filter:drop-shadow(0 0 3px #fff8) drop-shadow(0 0 7px #cd7ec4);
  transition:transform .3s ease,filter .3s ease,stroke .3s ease;
  animation:gallery-star-idle 3.6s ease-in-out infinite alternate;
}
.case-grid-nav .nav-star:nth-child(2) svg{animation-delay:.5s}
.case-grid-nav .nav-star:nth-child(3) svg{animation-delay:1s}
.case-grid-nav .nav-star:nth-child(4) svg{animation-delay:1.5s}
.case-grid-nav .nav-star[aria-current="step"] svg{
  width:23px!important;height:23px!important;
  stroke:white;
  animation:gallery-star-active 2.7s ease-in-out infinite!important;
  filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 9px #fa9dda) drop-shadow(0 0 16px #a56af2);
}
.case-grid-nav .nav-star[aria-current="step"]::before{
  content:"";position:absolute;inset:4px;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,#ffe8f850 0%,#f7b1e33d 32%,transparent 72%);
  animation:gallery-star-halo 2.7s ease-in-out infinite;
}
.case-grid-nav .nav-star[aria-current="step"]::after{
  content:"";position:absolute;inset:7px;border:1px solid #ffe8f8a8;border-radius:50%;pointer-events:none;
  animation:gallery-star-ring 2.7s ease-out infinite;
}
.case-grid-nav .nav-star:focus-visible{outline:3px solid #ffd5ee!important;outline-offset:1px!important}
@keyframes gallery-star-idle{from{opacity:.77;transform:scale(.92)}to{opacity:1;transform:scale(1.04)}}
@keyframes gallery-star-active{0%,100%{transform:scale(1.04) rotate(0deg);opacity:1}50%{transform:scale(1.23) rotate(10deg);opacity:1}}
@keyframes gallery-star-halo{0%,100%{transform:scale(.78);opacity:.45}50%{transform:scale(1.23);opacity:1}}
@keyframes gallery-star-ring{0%{transform:scale(.64);opacity:.9}80%,100%{transform:scale(1.65);opacity:0}}
html[data-theme="light"] .case-grid-nav:before{background:linear-gradient(90deg,#9f6aa7,#985c95,#9f6aa7)!important;box-shadow:0 0 7px #bc7db3}
html[data-theme="light"] .case-grid-nav .nav-star,html[data-theme="light"] .case-grid-nav .nav-star[aria-current="step"]{background:transparent!important;color:#713373!important}
html[data-theme="light"] .case-grid-nav .nav-star svg{stroke:#703573;filter:drop-shadow(0 0 4px #fff) drop-shadow(0 0 5px #b77cae)}
html[data-theme="light"] .case-grid-nav .nav-star[aria-current="step"] svg{stroke:#fff;filter:drop-shadow(0 0 3px #5e2868) drop-shadow(0 0 7px #b65eae) drop-shadow(0 0 13px #a075cc)}
html[data-theme="light"] .case-grid-nav .nav-star[aria-current="step"]::before{background:radial-gradient(circle,#b76cbe8c,#dca0cf4a 39%,transparent 75%)}
@media(max-width:700px){
  .gallery-shell{min-height:0!important;padding:9px 0 8px!important}
  .panels{
    padding-inline:2.5vw!important;
    scroll-padding-inline:2.5vw!important;
    padding-block:8px 10px;
  }
  .work-panel{flex:0 0 95vw!important;border-radius:19px}
  .panel-scroller{padding:22px 20px 48px!important;scrollbar-gutter:auto}
  .gallery-controls{min-height:56px!important;padding:4px 10px!important;gap:8px!important}
  .gallery-arrow{width:42px;height:42px;flex-basis:42px}
  .case-grid-nav{min-width:176px!important;width:176px!important;height:44px}
  .case-grid-nav .nav-star,.case-grid-nav .nav-star[aria-current="step"]{width:40px!important;height:40px!important;flex-basis:40px!important}
  .case-grid-nav .nav-star svg{width:17px!important;height:17px!important}
  .case-grid-nav .nav-star[aria-current="step"] svg{width:20px!important;height:20px!important}
  .case-grid-nav:before{left:20px!important;right:20px!important}
  .gallery-instructions{padding:0 15px 5px!important;font-size:10px!important}
}
@media(max-height:610px){
  .gallery-shell{min-height:0!important;padding:5px 0!important}
  .panels{padding-block:4px 6px}
  .gallery-controls{min-height:49px!important}
  .gallery-instructions{display:none}
  .panel-scroller{padding-bottom:35px!important}
}
@media(prefers-reduced-motion:reduce){
  .case-grid-nav .nav-star svg,.case-grid-nav .nav-star[aria-current="step"] svg,
  .case-grid-nav .nav-star[aria-current="step"]::before,.case-grid-nav .nav-star[aria-current="step"]::after{
    animation:none!important;transition:none!important
  }
}

body:has(.gallery-shell){overflow-x:hidden}
.gallery-shell{
  box-sizing:border-box;
  width:100%!important;
  max-width:100vw!important;
  overflow:hidden!important;
  min-width:0!important;
  grid-template-columns:minmax(0,1fr)!important;
}
.gallery-frame{
  box-sizing:border-box;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  overflow:hidden!important;
}
#project-track.panels{
  box-sizing:border-box!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
  height:100%!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
}
#project-track.panels::-webkit-scrollbar{display:none}
.work-panel{
  box-sizing:border-box;
  min-width:0!important;
  overflow:hidden;
  scroll-snap-align:center;
}
.work-panel .panel-scroller{box-sizing:border-box;min-width:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain}
.work-panel .panel-scroller > *{opacity:1;visibility:visible}
.gallery-controls{
  box-sizing:border-box;
  width:100%!important;
  max-width:100vw!important;
  min-width:0;
  margin:0 auto!important;
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  overflow:visible!important;
}
.gallery-arrow{flex-shrink:0}
.case-grid-nav{
  flex-shrink:0;
  margin:0!important;
}
.case-grid-nav .nav-star svg{
  width:18px!important;height:18px!important;
  fill:none!important;stroke:#fff!important;stroke-width:1.2;
  filter:drop-shadow(0 0 4px #fff9) drop-shadow(0 0 8px #ef9fd8) drop-shadow(0 0 14px #a76fec);
  animation:thin-star-twinkle 3.4s ease-in-out infinite!important;
}
.case-grid-nav .nav-star:nth-child(2) svg{animation-delay:.45s!important}
.case-grid-nav .nav-star:nth-child(3) svg{animation-delay:.9s!important}
.case-grid-nav .nav-star:nth-child(4) svg{animation-delay:1.35s!important}
.case-grid-nav .nav-star[aria-current="step"] svg{
  width:23px!important;height:23px!important;
  fill:none!important;stroke:#fff!important;
  animation:thin-star-spin 4.7s linear infinite!important;
  filter:drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #ffa9e7) drop-shadow(0 0 20px #a773f5)!important;
}
.case-grid-nav .nav-star[aria-current="step"]::before{
  animation:gallery-star-halo 2.3s ease-in-out infinite!important;
  background:radial-gradient(circle,#ffffff9c 0%,#f6a9ed73 25%,#a764da43 55%,transparent 75%)!important;
}
.case-grid-nav .nav-star[aria-current="step"]::after{
  animation:gallery-star-ring 2.3s ease-out infinite!important;
}
@keyframes thin-star-twinkle{
  0%,100%{opacity:.93;transform:scale(.94) rotate(-3deg)}
  45%{opacity:1;transform:scale(1.16) rotate(3deg)}
  70%{opacity:.86;transform:scale(1.02) rotate(-1deg)}
}
@keyframes thin-star-spin{
  0%{transform:rotate(0deg) scale(1.12)}
  50%{transform:rotate(180deg) scale(1.3)}
  100%{transform:rotate(360deg) scale(1.12)}
}
html[data-theme="light"] .case-grid-nav .nav-star svg,
html[data-theme="light"] .case-grid-nav .nav-star[aria-current="step"] svg{
  stroke:#fff!important;
  filter:drop-shadow(0 0 2px #4f245f) drop-shadow(0 0 7px #aa5bac) drop-shadow(0 0 14px #9c74d0)!important;
}
@media(max-width:700px){
  .gallery-shell{grid-template-columns:minmax(0,1fr)!important}
  #project-track.panels{
    padding-left:2.5vw!important;
    padding-right:2.5vw!important;
    scroll-padding-left:2.5vw!important;
    scroll-padding-right:2.5vw!important;
  }
  .work-panel{
    flex:0 0 95vw!important;
    width:95vw!important;
    max-width:95vw!important;
  }
  .gallery-controls{gap:clamp(4px,1.5vw,12px)!important;padding-left:8px!important;padding-right:8px!important}
}
@media(prefers-reduced-motion:reduce){
  .case-grid-nav .nav-star svg,
  .case-grid-nav .nav-star[aria-current="step"] svg,
  .case-grid-nav .nav-star[aria-current="step"]::before,
  .case-grid-nav .nav-star[aria-current="step"]::after{
    animation:none!important;
  }
}

:root{--card-deep:#392540;--card-deep-alt:#33243c;--card-light:#fffafd;--card-light-alt:#fff5fa}
html:not([data-theme="light"]) #work .work,
html:not([data-theme="light"]) .glass.work,
html:not([data-theme="light"]) .resume-highlights article,
html:not([data-theme="light"]) .resume-section .role,
html:not([data-theme="light"]) .resume-section .role.featured-role,
html:not([data-theme="light"]) .skill-group,
html:not([data-theme="light"]) .interest {
  background:linear-gradient(150deg,var(--card-deep),var(--card-deep-alt))!important;
  border:1px solid #dda7d48c!important;
  box-shadow:0 9px 25px #0d071b40,inset 0 1px 0 #ffe3fa10!important;
}
html:not([data-theme="light"]) .resume-highlights article h3,
html:not([data-theme="light"]) .resume-section .role h3,
html:not([data-theme="light"]) .skill-group h3,
html:not([data-theme="light"]) .interest b,
html:not([data-theme="light"]) #work .work strong{color:#fff0fa!important}
html:not([data-theme="light"]) .resume-highlights article p,
html:not([data-theme="light"]) .resume-section .role li,
html:not([data-theme="light"]) .skill-group p,
html:not([data-theme="light"]) .interest p{color:#efdbeb!important}
html[data-theme="light"] #work .work,
html[data-theme="light"] .glass.work,
html[data-theme="light"] .resume-highlights article,
html[data-theme="light"] .resume-section .role,
html[data-theme="light"] .resume-section .role.featured-role,
html[data-theme="light"] .skill-group,
html[data-theme="light"] .interest {
  background:linear-gradient(145deg,var(--card-light),var(--card-light-alt))!important;
  border:1px solid #bd8caf9c!important;
  box-shadow:0 9px 24px #8e649026,inset 0 1px 0 #fff!important;
}
html[data-theme="light"] #work .work small,
html[data-theme="light"] #work .work strong,
html[data-theme="light"] .resume-highlights article h3,
html[data-theme="light"] .resume-section .role h3,
html[data-theme="light"] .skill-group h3,
html[data-theme="light"] .interest b{color:#412b4a!important}
html[data-theme="light"] .resume-highlights article p,
html[data-theme="light"] .resume-section .role li,
html[data-theme="light"] .skill-group p,
html[data-theme="light"] .interest p{color:#4c3a53!important}
html[data-theme="light"] #work .work:hover,
html[data-theme="light"] #work .work:focus-visible,
html[data-theme="light"] #work .work.is-lit{
  background:#ffffff!important;
  border-color:#a85a93!important;
  box-shadow:0 8px 26px #bf75a63e,0 0 21px #e1a1ce60!important;
}
html:not([data-theme="light"]) #work .work:hover,
html:not([data-theme="light"]) #work .work:focus-visible,
html:not([data-theme="light"]) #work .work.is-lit{
  border-color:#f5bee7!important;
  box-shadow:0 8px 30px #0d071b60,0 0 22px #db8fc86b!important;
}

html:not([data-theme="light"]) #approach .step{
  background:linear-gradient(150deg,#392540,#30223b)!important;
  border:1px solid #dda7d48c!important;border-radius:14px;
  box-shadow:0 6px 18px #130c244a!important;
}
html[data-theme="light"] #approach .step{
  background:linear-gradient(150deg,#fffcfd,#fff3fa)!important;
  border:1px solid #bd8caf9c!important;border-radius:14px;
  box-shadow:0 6px 18px #8e649026!important;
}
html[data-theme="light"] #approach .step b{color:#422a4b!important}
html[data-theme="light"] #approach .step small{color:#594366!important}
html:not([data-theme="light"]) #approach .step b{color:#fff0fa!important}
html:not([data-theme="light"]) #approach .step small{color:#efdceb!important}
