@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;1,500&display=swap');
:root{--head-height:74px;--viewport:100vh;--paper:#211629;--ink:#fff4fb;--sub:#eddaea;--accent:#f7badd;--line:#f3b5dd85;--hero-bg:radial-gradient(ellipse at 78% 24%,#9874ad70,transparent 58%),linear-gradient(145deg,#342141,#3e2d4d);--shell-bg:linear-gradient(145deg,#34233e,#292137);--footer-bg:#35243f;--panel1:linear-gradient(143deg,#442a4c,#2d203f);--panel2:linear-gradient(143deg,#4a3150,#332442);--panel3:linear-gradient(143deg,#4a2d48,#342447);--panel4:linear-gradient(143deg,#3a2c50,#4c3051)}
@supports(height:100svh){:root{--viewport:100svh}}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:var(--head-height);scroll-snap-type:y mandatory;overscroll-behavior-x:none}
body{margin:0;max-width:100%;overflow-x:clip;background:var(--paper);color:var(--ink);font-family:'DM Sans',Arial,sans-serif}
a{color:inherit}button{font:inherit;cursor:pointer}
:focus-visible{outline:3px solid #ffd4ef;outline-offset:4px}
.skip-link{position:fixed;top:8px;left:8px;z-index:200;transform:translateY(-180%);padding:12px 17px;color:#362244;background:#ffecfa;border:2px solid #7b4185;border-radius:9px;text-decoration:none;font-weight:700}
.skip-link:focus{transform:translateY(0)}
.sr-only{position:absolute!important;clip:rect(0,0,0,0)!important;width:1px!important;height:1px!important;overflow:hidden!important;white-space:nowrap!important}
.site-header{position:sticky;top:0;z-index:80;min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px clamp(18px,5vw,80px);background:#32213ddf;backdrop-filter:blur(20px);border-bottom:1px solid var(--line);box-shadow:0 5px 28px #0803134a}
.brand{font-size:26px;line-height:1.1;font-weight:700;letter-spacing:-.08em;text-decoration:none}.brand span{color:var(--accent)}
.site-header nav{display:flex;align-items:center;gap:clamp(10px,2vw,22px)}
.site-header nav a{font-size:12px;font-weight:600;text-decoration:none;white-space:nowrap}
.site-header nav a:hover{text-decoration:underline}
.theme-toggle{border:1px solid var(--line);color:var(--ink);background:#ffffff12;display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;min-width:42px;border-radius:50%;padding:0}
.theme-toggle:hover{background:#ffffff27}
.theme-icon{display:grid;place-items:center;width:22px;height:22px;font-size:19px;font-family:Georgia,serif;line-height:1}
.theme-label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
main{display:block;min-width:0}
.gallery-hero,.gallery-shell,.gallery-footer{scroll-snap-align:start;scroll-snap-stop:normal;scroll-margin:0;max-width:100%;min-width:0}
.gallery-hero{min-height:calc(var(--viewport) - var(--head-height));padding:clamp(52px,8vh,120px) clamp(24px,10vw,160px);display:flex;flex-direction:column;justify-content:center;position:relative;isolation:isolate;overflow:hidden;background:var(--hero-bg)}
.gallery-hero:after{content:'✧';font-family:Georgia,serif;font-size:clamp(100px,22vw,280px);color:#f5b8e92a;position:absolute;right:7%;top:14%;pointer-events:none;z-index:-1}
.eyebrow{font-weight:700;letter-spacing:.18em;font-size:11px;text-transform:uppercase;color:var(--accent)}
.gallery-hero h1,.work-panel h2,.gallery-footer h2{font-family:'Playfair Display',Georgia,serif;font-weight:500;letter-spacing:-.057em;line-height:1.09}
.gallery-hero h1{font-size:clamp(3.5rem,9vw,8rem);margin:26px 0 18px}
.gallery-hero h1 em{color:var(--accent)}
.gallery-hero p{font-size:clamp(1.04rem,1.9vw,1.4rem);line-height:1.7;max-width:680px;color:var(--sub)}
.gallery-kicker{font-size:12px;letter-spacing:.08em;font-weight:700;color:var(--sub);margin-top:20px}
.gallery-shell{height:calc(var(--viewport) - var(--head-height));min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto auto;gap:0;width:100%;padding:12px 0 8px;background:var(--shell-bg);overflow:hidden}
.gallery-frame{min-width:0;min-height:0;height:100%;width:100%;overflow:hidden}
.panels{position:relative;--card-width:min(94vw,1320px);--gutter:calc((100vw - var(--card-width))/2);display:flex;align-items:stretch;width:100%;height:100%;min-height:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;scroll-snap-type:x mandatory;scroll-behavior:smooth;scroll-padding-inline:var(--gutter);padding:8px var(--gutter) 11px;gap:0}
.panels::-webkit-scrollbar{display:none}
.work-panel{flex:0 0 var(--card-width);box-sizing:border-box;min-width:0;max-width:var(--card-width);height:100%;min-height:0;overflow:hidden;border:1px solid #edbfe052;border-radius:24px;scroll-snap-align:center;scroll-snap-stop:always;box-shadow:0 10px 20px #06030c42}
.work-panel:nth-child(1){background:var(--panel1)}.work-panel:nth-child(2){background:var(--panel2)}.work-panel:nth-child(3){background:var(--panel3)}.work-panel:nth-child(4){background:var(--panel4)}
.panel-scroller{box-sizing:border-box;height:100%;min-height:0;max-height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#ce8dc0 transparent;padding:clamp(28px,4vw,66px) clamp(23px,5vw,75px) 54px}
.panel-scroller:focus-visible,.panels:focus-visible{outline:3px solid #ffd1ec;outline-offset:-4px}
.panel-scroller>*{opacity:1;visibility:visible}
.panel-number{font-weight:700;font-size:14px;color:var(--accent);margin-bottom:24px}
.panel-number span{opacity:.74}
.work-panel h2{font-size:clamp(2.7rem,6.3vw,5.9rem);margin:18px 0 22px}
.work-panel p{font-size:clamp(1.03rem,1.75vw,1.2rem);max-width:780px;line-height:1.75;color:var(--sub)}
.panel-intro{font-size:clamp(1.12rem,1.9vw,1.35rem)!important}
.panel-pills{display:flex;flex-wrap:wrap;gap:9px;margin:25px 0}
.panel-pill{padding:8px 13px;border:1px solid #e3a2d0;border-radius:40px;background:linear-gradient(125deg,#a648925e,#8645a95e);color:var(--ink);font-weight:700;font-size:12px;box-shadow:0 0 15px #b354a149}
.artifact-preview{margin:38px 0}
.artifact-summary{min-height:200px;display:flex;flex-direction:column;justify-content:center;padding:28px 7%;border-radius:18px;border:1px dashed #e8afd389;background:#ffffff0b}
.artifact-kicker{font-size:10px;letter-spacing:.2em;font-weight:700;color:var(--accent)}
.artifact-summary strong{font-family:'Playfair Display',Georgia,serif;font-weight:500;font-size:clamp(1.8rem,3.1vw,2.8rem);margin:15px 0 4px}
.story-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px;margin-top:26px}
.story-details section{border-top:1px solid #e3abd77a;padding-top:14px}
.story-details h3{font-size:1.1rem;color:var(--accent)}
.story-details p{font-size:.98rem}
.project-links{display:flex;flex-wrap:wrap;gap:11px;margin:30px 0}
.gallery-action{display:inline-flex;align-items:center;gap:10px;padding:13px 17px;border-radius:32px;border:1px solid #ffc7e6;color:var(--ink);text-decoration:none;background:linear-gradient(120deg,#aa4d9180,#7643a36b);font-size:13px;font-weight:700}
.gallery-action:hover{background:#985b9eaa}
.gallery-action svg{width:18px;height:18px}
.panel-end{font-size:11px;letter-spacing:.13em;color:var(--accent);padding-top:26px}
.gallery-controls{display:flex;align-items:center;justify-content:center;gap:clamp(7px,2vw,22px);padding:5px 12px;min-height:60px;min-width:0}
.gallery-arrow{border-radius:50%;height:44px;width:44px;flex:0 0 44px;display:grid;place-items:center;border:1px solid #d5a4cc;color:var(--ink);background:#ffffff16;box-shadow:0 0 12px #d481be40}
.gallery-arrow:hover:not(:disabled){background:#ffffff35}
.gallery-arrow:disabled{opacity:.36;cursor:default}
.gallery-arrow svg{width:19px;height:19px}.gallery-arrow.previous svg{transform:rotate(180deg)}
.case-grid-nav{display:flex;align-items:center;justify-content:space-between;position:relative;width:232px;max-width:100%;height:46px;flex:0 1 232px}
.case-grid-nav:before{content:'';position:absolute;top:50%;left:23px;right:23px;height:1px;background:#fce0f6cc;box-shadow:0 0 8px #f8b8e7;transform:translateY(-50%)}
.case-grid-nav .nav-star{position:relative;z-index:1;flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:50%;padding:0;background:transparent;color:white;isolation:isolate}
.case-grid-nav .nav-star svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.2;filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 8px #e58fcf);animation:star-twinkle 3s 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;height:23px;animation:star-spin 4.5s linear infinite;filter:drop-shadow(0 0 4px white) drop-shadow(0 0 10px #ffb1e6) drop-shadow(0 0 17px #ac6ceb)}
.case-grid-nav .nav-star[aria-current="step"]:before{content:'';position:absolute;inset:4px;border-radius:50%;background:radial-gradient(circle,#fffc,#eba9e880 36%,transparent 72%);animation:star-halo 2.4s ease-in-out infinite}
.case-grid-nav .nav-star[aria-current="step"]:after{content:'';position:absolute;inset:6px;border-radius:50%;border:1px solid #ffe9fbba;animation:star-ring 2.4s ease-out infinite}
@keyframes star-twinkle{from{transform:scale(.94) rotate(-4deg);opacity:.79}to{transform:scale(1.12) rotate(5deg);opacity:1}}
@keyframes star-spin{from{transform:rotate(0deg) scale(1.1)}50%{transform:rotate(180deg) scale(1.32)}to{transform:rotate(360deg) scale(1.1)}}
@keyframes star-halo{0%,100%{transform:scale(.86);opacity:.55}50%{transform:scale(1.23);opacity:1}}
@keyframes star-ring{from{transform:scale(.55);opacity:.85}to{transform:scale(1.8);opacity:0}}
.gallery-instructions{text-align:center;color:var(--sub);font-size:12px;font-weight:600;line-height:1.3;padding:3px 12px 8px;margin:0}
.gallery-footer{min-height:calc(var(--viewport) - var(--head-height));display:flex;flex-direction:column;justify-content:center;padding:65px clamp(25px,10vw,150px);background:var(--footer-bg);border-top:1px solid var(--line)}
.gallery-footer h2{font-size:clamp(2.4rem,6vw,5rem);margin:25px 0}
.gallery-footer p{color:var(--sub);line-height:1.7;font-size:1.08rem}
.gallery-footer a{color:var(--accent);font-weight:700}
html[data-theme="light"]{color-scheme:light;--paper:#f8edf8;--ink:#3f2b49;--sub:#4e3d53;--accent:#833870;--line:#ab76a98c;--hero-bg:radial-gradient(ellipse at 82% 25%,#d7bde5,transparent 61%),linear-gradient(140deg,#f2e2f3,#e7d3e5);--shell-bg:linear-gradient(145deg,#e1d0e4,#dad0ea);--footer-bg:linear-gradient(140deg,#e9d1e6,#e3d5ec);--panel1:linear-gradient(145deg,#fffdfd,#fff3fa);--panel2:linear-gradient(145deg,#fffafb,#f8f0fd);--panel3:linear-gradient(145deg,#fff9fc,#fff0f8);--panel4:linear-gradient(145deg,#fffafb,#f5f0ff)}
html[data-theme="light"] .site-header{background:#ead7e9ef}
html[data-theme="light"] .theme-toggle{background:#fff9fc;border-color:#a980a8}
html[data-theme="light"] .theme-toggle:hover{background:white}
html[data-theme="light"] .gallery-hero:after{color:#8c519124}
html[data-theme="light"] .panel-pill{color:#592953;background:linear-gradient(120deg,#ffd3e9,#e3c4ed);border-color:#a9659f;box-shadow:0 0 14px #be79b346}
html[data-theme="light"] .gallery-action{color:#602d5e;background:linear-gradient(140deg,#f9dced,#e1c6ed);border-color:#a864a0}
html[data-theme="light"] .gallery-arrow{background:#fff9fc;border-color:#aa70a6}
html[data-theme="light"] .work-panel{border-color:#bd93b68e;box-shadow:0 9px 24px #644c6740}
html[data-theme="light"] .artifact-summary{background:#fffbfd9c;border-color:#aa74a4}
html[data-theme="light"] .case-grid-nav:before{background:#8c4c8a;box-shadow:0 0 8px #9d5ba2}
html[data-theme="light"] .case-grid-nav .nav-star{color:#fff}
html[data-theme="light"] .case-grid-nav .nav-star svg{filter:drop-shadow(0 0 3px #6e316f) drop-shadow(0 0 7px #a95eac)}
html[data-theme="light"] .case-grid-nav .nav-star[aria-current="step"] svg{filter:drop-shadow(0 0 4px #572967) drop-shadow(0 0 11px #ac63b0)}
@media(max-width:700px){
 :root{--head-height:67px}
 .site-header{min-height:0;padding:11px 18px}
 .site-header nav{gap:11px}
 .site-header nav a{font-size:12px}
 .theme-toggle{width:40px;height:40px;min-width:40px}
 .gallery-hero{padding:42px 25px}
 .gallery-hero h1{font-size:clamp(3.25rem,12vw,5.5rem);margin:17px 0}
 .gallery-hero p{font-size:clamp(.94rem,3.6vw,1.16rem);line-height:1.6}
 .gallery-shell{padding:8px 0 5px}
 .panels{--card-width:calc(100vw - 32px);padding-block:7px 9px}
 .work-panel{border-radius:20px}
 .panel-scroller{padding:23px 19px 42px;scrollbar-width:none}
 .work-panel h2{font-size:clamp(2.55rem,10.7vw,4.4rem)}
 .work-panel p{font-size:1rem;line-height:1.65}
 .story-details{grid-template-columns:1fr;gap:14px}
 .gallery-controls{min-height:55px;padding:3px 9px;gap:8px}
 .gallery-arrow{width:41px;height:41px;flex-basis:41px}
 .case-grid-nav{width:172px;flex-basis:172px;height:42px}
 .case-grid-nav .nav-star{width:37px;height:37px;flex-basis:37px}
 .case-grid-nav:before{left:19px;right:19px}
 .case-grid-nav .nav-star svg{width:17px;height:17px}
 .case-grid-nav .nav-star[aria-current="step"] svg{width:20px;height:20px}
 .gallery-instructions{font-size:10.5px;padding:1px 13px 7px}
 .gallery-footer{padding:45px 27px}
}
@media(max-width:360px){.site-header nav{gap:7px}.site-header nav a{font-size:11px}.gallery-controls{gap:4px}.gallery-arrow{width:37px;height:37px;flex-basis:37px}.case-grid-nav{width:158px;flex-basis:158px}}
@media(max-height:590px){.gallery-shell{padding:5px 0 3px}.gallery-instructions{display:none}.gallery-controls{min-height:49px}.gallery-hero h1{font-size:clamp(2.9rem,8.3vh,5rem)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.panels{scroll-behavior:auto}.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}}

.work-panel{border-color:#e3afd483;background-clip:padding-box}
.artifact-summary{background:linear-gradient(145deg,#4a31517a,#3a274574);border-color:#d5a9d57a}
html[data-theme="light"] .work-panel{border:1px solid #b689a99c;box-shadow:0 12px 27px #846a8b31}
html[data-theme="light"] .artifact-summary{background:linear-gradient(145deg,#ffffff,#fff4fa);border-color:#ad82ac98}
@media(prefers-contrast:more){.work-panel{border-width:2px}.panel-pill{box-shadow:none}}

html{max-width:100%;overflow-x:hidden;overscroll-behavior-x:none;scroll-snap-type:y mandatory}
body,main{max-width:100%;min-width:0;overflow-x:clip;overscroll-behavior-x:none}
.gallery-shell{
  width:100%!important;min-width:0!important;
  height:calc(var(--viewport) - var(--head-height))!important;
  min-height:0!important;
  grid-template-rows:minmax(0,1fr) minmax(48px,auto) minmax(18px,auto)!important;
  padding:clamp(5px,1vh,10px) 0 7px!important;
  scroll-snap-align:start!important;scroll-snap-stop:always!important;
  overflow:hidden!important;
}
.gallery-frame{min-width:0!important;min-height:0!important;height:100%!important;overflow:hidden!important}
#project-track.panels{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;
  height:100%!important;min-height:0!important;overflow-x:auto!important;overflow-y:hidden!important;
  touch-action:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
}
.work-panel{height:100%!important;min-height:0!important;max-height:none!important}
.panel-scroller{height:100%!important;min-height:0!important;max-height:100%!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch}
.gallery-hero,.gallery-footer{scroll-snap-align:start!important;scroll-snap-stop:always!important}
.gallery-footer{
  min-height:calc(var(--viewport) - var(--head-height))!important;
  justify-content:flex-start!important;
  padding-top:clamp(55px,12svh,110px)!important;
  scroll-margin:0!important;
}
.gallery-footer h2{max-width:730px;font-size:clamp(2.5rem,6vw,5rem)}
.gallery-controls{
  display:flex!important;justify-content:center!important;align-items:center!important;
  width:100%!important;max-width:100%!important;min-width:0!important;
  overflow:visible!important;gap:clamp(7px,2.3vw,20px)!important;
}
.gallery-instructions{max-width:730px!important;margin:0 auto!important;padding:2px 15px 5px!important}
@media(max-width:700px){
 .gallery-shell{grid-template-rows:minmax(0,1fr) 54px 38px!important;padding:7px 0 6px!important}
 .gallery-controls{min-height:54px!important;padding:5px 10px!important}
 .gallery-instructions{font-size:10.5px!important;line-height:1.45!important;padding:0px 17px 5px!important}
 .gallery-footer{padding:clamp(43px,9svh,70px) 25px!important}
 .gallery-footer h2{font-size:clamp(2.2rem,9vw,3.5rem)!important;margin:12px 0!important}
 .gallery-footer p{font-size:1rem!important;line-height:1.55!important}
}
@media(orientation:landscape) and (max-height:560px){
 .gallery-shell{grid-template-rows:minmax(0,1fr) 46px 0px!important;padding:3px 0!important}
 .gallery-controls{min-height:46px!important;padding:0!important}
 .gallery-instructions{display:none!important}
 .panels{padding-block:4px 7px!important}
 .panel-scroller{padding:14px 22px 30px!important}
 .panel-number{margin-bottom:8px!important}
 .work-panel h2{font-size:clamp(1.85rem,6svh,3.1rem)!important;margin:8px 0!important}
 .work-panel p{font-size:clamp(.88rem,2.6svh,1rem)!important;line-height:1.42!important}
 .gallery-footer{padding-top:40px!important}
}
@media(max-width:350px){.gallery-controls{gap:4px!important}.gallery-arrow{width:36px!important;height:36px!important;flex-basis:36px!important}.case-grid-nav{width:157px!important;flex-basis:157px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}#project-track.panels{scroll-behavior:auto!important}}
/* Three stops keep the project constellation balanced. */
.case-grid-nav{width:170px!important;flex-basis:170px!important}
@media(max-width:700px){.case-grid-nav{width:135px!important;flex-basis:135px!important}}

/* Compact-height screens: keep the entire project and its controls in view.
   The project body itself remains vertically scrollable. */
@media (orientation:landscape) and (max-height:680px){
  .site-header{
    min-height:0!important;
    padding:7px clamp(14px,3vw,36px)!important;
  }
  .site-header nav{gap:clamp(9px,2vw,19px)}
  .gallery-shell{
    grid-template-rows:minmax(0,1fr) 48px 0px!important;
    padding:5px 0!important;
  }
  .gallery-instructions{display:none!important}
  .gallery-controls{
    height:48px!important;min-height:48px!important;
    padding:3px 10px!important;gap:clamp(9px,2vw,22px)!important;
  }
  #project-track.panels{
    --card-width:calc(100% - 40px);
    --gutter:20px;
    padding:4px var(--gutter) 7px!important;
    scroll-padding-inline:var(--gutter)!important;
  }
  .work-panel{
    flex:0 0 var(--card-width)!important;
    width:var(--card-width)!important;
    max-width:var(--card-width)!important;
  }
  .panel-scroller{padding:14px clamp(18px,3vw,31px) 26px!important}
  .panel-number{font-size:11px;margin-bottom:6px!important}
  .work-panel h2{font-size:clamp(1.7rem,6svh,2.75rem)!important}
  .panel-intro{font-size:clamp(.88rem,2.7svh,1rem)!important}
  .gallery-arrow{width:38px;height:38px;flex-basis:38px}
}
@media (orientation:landscape) and (max-height:420px){
  .site-header{padding-top:5px!important;padding-bottom:5px!important}
  .site-header .brand{font-size:21px}
  .site-header .theme-toggle{width:35px;height:35px;min-width:35px;flex-basis:35px}
  .gallery-shell{grid-template-rows:minmax(0,1fr) 43px 0!important}
  .gallery-controls{height:43px!important;min-height:43px!important}
  .panel-scroller{padding:12px 20px 22px!important}
}
@media(max-width:700px) and (orientation:portrait){
  #project-track.panels{--card-width:calc(100% - 30px);--gutter:15px}
  .work-panel{flex-basis:var(--card-width)!important;width:var(--card-width)!important;max-width:var(--card-width)!important}
}
