@charset "UTF-8";
:root{--blue:#526b86;--blue-dark:#354b63;--ink:#303944;--muted:#6f7884;--line:#e1e6ec;--pale:#f2f5f8;--white:#fff;--max:1160px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:Arial,"Noto Sans TC","Microsoft JhengHei",sans-serif;line-height:1.75;background:#fff}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.site-header{height:82px;position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);border-bottom:1px solid rgba(225,230,236,.8);backdrop-filter:blur(12px)}.nav-wrap{max-width:var(--max);height:100%;margin:auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px}.nav-links{display:flex;align-items:center;gap:31px;font-size:14px}.nav-links a{transition:color .2s}.nav-links a:hover,.nav-links a.active{color:var(--blue)}.menu-toggle{display:none;border:0;background:none;color:var(--blue);font-size:27px;cursor:pointer}.container{max-width:var(--max);margin:auto;padding:0 24px}.hero{position:relative;overflow:hidden;background:linear-gradient(105deg,#f5f7f9 0%,#fff 58%,#eaf0f5 100%);min-height:570px;display:flex;align-items:center}.hero:after{content:"X";position:absolute;right:5%;top:3%;font-size:clamp(260px,42vw,570px);font-weight:900;font-style:italic;line-height:1;color:rgba(82,107,134,.055);pointer-events:none}.hero-inner{position:relative;z-index:1;width:100%;max-width:var(--max);margin:auto;padding:92px 24px}.eyebrow{color:var(--blue);font-size:12px;font-weight:800;letter-spacing:3px;text-transform:uppercase}.hero h1{font-size:clamp(38px,5.4vw,68px);line-height:1.18;letter-spacing:-1.5px;max-width:720px;margin:18px 0 22px}.hero h1 em{font-style:normal;color:var(--blue)}.hero p{max-width:600px;color:var(--muted);font-size:17px;margin:0 0 32px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 23px;background:var(--blue);color:white;border:1px solid var(--blue);border-radius:3px;font-weight:700;font-size:14px;transition:.2s}.button:hover{background:var(--blue-dark);border-color:var(--blue-dark);transform:translateY(-1px)}.button.secondary{background:transparent;color:var(--blue);margin-left:10px}.button.secondary:hover{background:#eaf0f5}.section{padding:88px 0}.section.soft{background:var(--pale)}.section-head{text-align:center;max-width:680px;margin:0 auto 42px}.section-head h2,.page-heading h1{font-size:clamp(29px,4vw,42px);line-height:1.25;margin:10px 0 14px;letter-spacing:-.7px}.section-head p,.page-heading p{color:var(--muted);margin:0}.rule{width:46px;height:3px;background:var(--blue);margin:20px auto}.services{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.service-card{padding:30px 28px;border:1px solid var(--line);background:#fff;border-radius:5px}.service-icon{width:46px;height:46px;border-radius:5px;background:#eaf0f5;color:var(--blue);display:grid;place-items:center;font-size:23px;margin-bottom:20px}.service-card h3{margin:0 0 8px;font-size:20px}.service-card p{color:var(--muted);font-size:14px;margin:0}.split{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}.split h2{font-size:clamp(30px,4vw,42px);line-height:1.25;margin:12px 0 18px}.split p{color:var(--muted)}.visual-panel{min-height:350px;background:linear-gradient(145deg,#e9eef3,#d8e1ea);border-radius:5px;position:relative;overflow:hidden;display:grid;place-items:center}.visual-panel:before{content:"X";font-size:300px;line-height:1;font-weight:900;font-style:italic;color:rgba(82,107,134,.16)}.visual-label{position:absolute;left:24px;bottom:22px;background:#fff;padding:13px 17px;font-size:12px;letter-spacing:2px;color:var(--blue)}.cta{padding:54px 0;background:var(--blue);color:#fff}.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}.cta h2{font-size:clamp(24px,3vw,34px);margin:0 0 5px}.cta p{margin:0;color:#e2e9f0}.cta .button{background:#fff;color:var(--blue);border-color:#fff;white-space:nowrap}.site-footer{background:#252f3a;color:#fff;padding:43px 0 22px}.footer-inner{max-width:var(--max);padding:0 24px;margin:auto}.site-footer p{color:#c1cbd5;font-size:14px}.footer-bottom{border-top:1px solid #46515d;padding-top:18px;margin-top:26px;color:#aeb9c4;font-size:12px}.page-hero{background:linear-gradient(110deg,#f3f6f9,#fff);padding:76px 0 70px;border-bottom:1px solid var(--line)}.page-heading{max-width:var(--max);padding:0 24px;margin:auto}.page-heading h1{margin:10px 0}.page-content{padding:68px 0 90px}.content-narrow{max-width:850px;margin:auto;padding:0 24px}.content-narrow p{color:#5f6975}.news-list{display:grid;gap:16px}.news-item{display:grid;grid-template-columns:120px 1fr;gap:24px;padding:24px;border:1px solid var(--line);border-radius:4px}.news-item h2{font-size:20px;margin:0 0 7px}.news-item p{margin:0;color:var(--muted);font-size:14px}.contact-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:55px}.contact-info h2{font-size:28px;margin-top:0}.contact-info p{color:var(--muted)}.info-row{padding:15px 0;border-bottom:1px solid var(--line)}.info-row strong{display:block;font-size:13px;color:var(--blue)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.field{display:flex;flex-direction:column;gap:7px}.field.full{grid-column:1/-1}.field label{font-size:13px;font-weight:700}.field input,.field textarea,.field select{font:inherit;font-size:14px;padding:12px 13px;border:1px solid #d8dfe6;border-radius:3px;background:#fff;color:var(--ink);width:100%}.field textarea{min-height:140px;resize:vertical}.form-note{font-size:12px;color:var(--muted)}.login-shell{max-width:460px;margin:0 auto;padding:34px;border:1px solid var(--line);border-radius:5px;box-shadow:0 10px 35px rgba(35,50,65,.05)}.login-shell h2{margin:0 0 5px}.login-shell>p{color:var(--muted);font-size:14px;margin-top:0}.login-shell .field{margin:17px 0}.login-shell .button{width:100%;cursor:pointer}.notice{background:#f0f4f8;border-left:3px solid var(--blue);padding:13px 15px;color:#526170;font-size:13px;margin-top:18px}
@media(max-width:850px){.nav-links{gap:17px}.split{gap:30px}.services{grid-template-columns:repeat(2,1fr)}.contact-layout{gap:30px}}
@media(max-width:680px){.site-header{height:72px}.nav-wrap{padding:0 18px}.menu-toggle{display:block}.nav-links{display:none;position:absolute;top:71px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);padding:12px 20px 20px;align-items:stretch;gap:0;box-shadow:0 12px 18px rgba(20,35,50,.06)}.nav-links.open{display:flex;flex-direction:column}.nav-links a{padding:12px 3px;border-bottom:1px solid #eef1f4}.hero{min-height:500px}.hero-inner{padding:75px 22px}.hero p{font-size:15px}.button{padding:12px 17px}.section{padding:62px 0}.container{padding:0 20px}.services{grid-template-columns:1fr;gap:13px}.service-card{padding:24px}.split{grid-template-columns:1fr;gap:28px}.visual-panel{min-height:260px}.visual-panel:before{font-size:240px}.cta-inner{align-items:flex-start;flex-direction:column}.page-hero{padding:52px 0}.page-content{padding:45px 0 65px}.news-item{grid-template-columns:1fr;gap:6px;padding:19px}.contact-layout{grid-template-columns:1fr;gap:35px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.login-shell{padding:25px 20px}.footer-inner{padding:0 20px}.button.secondary{margin:10px 0 0 0}.hero .button.secondary{margin-left:7px}}
@media(max-width:390px){.hero h1{font-size:36px}.hero .button{font-size:12px;padding:11px 13px}}/* X-IMAGE actual portfolio + supplied logo */


.brand-logo{display:block;width:190px;max-width:42vw;height:auto;max-height:54px;object-fit:contain;object-position:left center}.footer-brand .brand-logo{width:175px;max-height:48px}
.portfolio-filters{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}.filter-button{border:1px solid #d8e0e8;background:#fff;color:#526b86;padding:10px 16px;border-radius:999px;cursor:pointer;font:inherit;transition:.2s}.filter-button:hover,.filter-button.active{background:#526b86;border-color:#526b86;color:#fff}.work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.work-card{min-width:0;border:1px solid #e5e9ee;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(40,55,70,.05)}.work-images{display:grid;grid-template-columns:1fr;gap:3px;background:#eef1f4;overflow:hidden}.work-images.multi{grid-template-columns:repeat(2,minmax(0,1fr))}.work-image{display:block;overflow:hidden;min-height:180px;background:#f3f5f7}.work-image img{width:100%;height:250px;object-fit:cover;display:block;transition:transform .35s}.work-image:hover img{transform:scale(1.035)}.work-images.multi .work-image img{height:210px}.work-info{padding:17px 18px 19px;position:relative}.work-info>span{font-size:.78rem;color:#71849a;letter-spacing:.04em}.work-info h3{font-size:1.03rem;margin:6px 0 0;color:#303944;overflow-wrap:anywhere}.work-count{position:absolute;right:16px;bottom:19px;font-size:.75rem;color:#7a8794}.work-card[hidden]{display:none!important}@media(max-width:900px){.work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.work-image img{height:220px}}@media(max-width:560px){.brand-logo{width:155px;max-height:45px}.work-grid{grid-template-columns:1fr;gap:18px}.work-image img{height:260px}.work-images.multi .work-image img{height:175px}.portfolio-filters{gap:7px}.filter-button{padding:8px 12px;font-size:.88rem}}/* X-IMAGE actual portfolio + supplied logo */


.brand-logo{display:block;width:190px;max-width:42vw;height:auto;max-height:54px;object-fit:contain;object-position:left center}.footer-brand .brand-logo{width:175px;max-height:48px}
.portfolio-filters{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}.filter-button{border:1px solid #d8e0e8;background:#fff;color:#526b86;padding:10px 16px;border-radius:999px;cursor:pointer;font:inherit;transition:.2s}.filter-button:hover,.filter-button.active{background:#526b86;border-color:#526b86;color:#fff}.work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.work-card{min-width:0;border:1px solid #e5e9ee;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 8px 24px rgba(40,55,70,.05)}.work-images{display:grid;grid-template-columns:1fr;gap:3px;background:#eef1f4;overflow:hidden}.work-images.multi{grid-template-columns:repeat(2,minmax(0,1fr))}.work-image{display:block;overflow:hidden;min-height:180px;background:#f3f5f7}.work-image img{width:100%;height:250px;object-fit:cover;display:block;transition:transform .35s}.work-image:hover img{transform:scale(1.035)}.work-images.multi .work-image img{height:210px}.work-info{padding:17px 18px 19px;position:relative}.work-info>span{font-size:.78rem;color:#71849a;letter-spacing:.04em}.work-info h3{font-size:1.03rem;margin:6px 0 0;color:#303944;overflow-wrap:anywhere}.work-count{position:absolute;right:16px;bottom:19px;font-size:.75rem;color:#7a8794}.work-card[hidden]{display:none!important}@media(max-width:900px){.work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.work-image img{height:220px}}@media(max-width:560px){.brand-logo{width:155px;max-height:45px}.work-grid{grid-template-columns:1fr;gap:18px}.work-image img{height:260px}.work-images.multi .work-image img{height:175px}.portfolio-filters{gap:7px}.filter-button{padding:8px 12px;font-size:.88rem}}/* Refined navigation, dropdown, form focus and smooth motion */



:root{--focus-blue:#526b86;--focus-glow:rgba(82,107,134,.19)}
.nav-links{gap:clamp(14px,2vw,27px)}
.nav-links>a:not(.login-link),.nav-dropdown-trigger{position:relative;display:inline-flex;align-items:center;gap:7px;padding:11px 1px;color:#465363;font-weight:600;transition:color .28s ease}
.nav-links>a:not(.login-link)::after,.nav-dropdown-trigger::after{content:"";position:absolute;left:0;right:100%;bottom:4px;height:2px;border-radius:2px;background:var(--blue);transition:right .3s cubic-bezier(.2,.75,.25,1)}
.nav-links>a:not(.login-link):hover::after,.nav-links>a:not(.login-link):focus-visible::after,.nav-links>a:not(.login-link).active::after,.nav-dropdown:hover .nav-dropdown-trigger::after,.nav-dropdown:focus-within .nav-dropdown-trigger::after,.nav-dropdown-trigger.active::after{right:0}
.nav-links>a:not(.login-link):hover,.nav-links>a:not(.login-link).active,.nav-dropdown-trigger:hover,.nav-dropdown-trigger.active{color:var(--blue)}
.nav-dropdown{position:relative;display:flex;align-items:center}
.nav-chevron{display:inline-block;font-size:17px;line-height:1;transition:transform .28s ease}
.nav-dropdown:hover .nav-chevron,.nav-dropdown:focus-within .nav-chevron,.nav-dropdown.open .nav-chevron{transform:rotate(180deg)}
.nav-submenu{position:absolute;top:calc(100% + 10px);left:-18px;min-width:174px;padding:8px;background:rgba(255,255,255,.70);border:1px solid #e1e7ee;border-radius:9px;box-shadow:0 16px 38px rgba(36,52,69,.14);opacity:0;visibility:hidden;transform:translateY(9px);transition:opacity .24s ease,transform .24s ease,visibility .24s;z-index:80}
.nav-submenu::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
.nav-dropdown:hover .nav-submenu,.nav-dropdown:focus-within .nav-submenu,.nav-dropdown.open .nav-submenu{opacity:1;visibility:visible;transform:translateY(0)}
.nav-submenu a{display:block;padding:9px 12px;border-radius:6px;color:#465363;font-size:13px;white-space:nowrap;transition:background .22s ease,color .22s ease,padding-left .22s ease}
.nav-submenu a:hover,.nav-submenu a:focus-visible{background:#edf2f7;color:var(--blue-dark);padding-left:17px}
.button,.filter-button{transition:background .28s ease,color .28s ease,border-color .28s ease,box-shadow .28s ease,transform .35s cubic-bezier(.2,.75,.25,1)}
.button:hover{transform:translateY(-2px)}
.field input,.field textarea,.field select{border:1px solid #d5dde6;outline:none;transition:border-color .25s ease,box-shadow .25s ease,background-color .25s ease;color:var(--ink);caret-color:var(--blue)}
.field input:focus,.field textarea:focus,.field select:focus{border-color:#526b86;background:#fff;box-shadow:0 0 0 3px rgba(82,107,134,.10),0 0 13px rgba(82,107,134,.13)}
.field input::placeholder,.field textarea::placeholder{color:#a0a9b4;transition:color .2s ease}
.field input:focus::placeholder,.field textarea:focus::placeholder{color:#b4bdc7}
.field select:focus{color:#303944}
.filter-button{position:relative;overflow:hidden}
.filter-button:hover{transform:translateY(-2px);box-shadow:0 5px 14px rgba(53,75,99,.12)}
.filter-button.active{box-shadow:0 4px 12px rgba(53,75,99,.16)}
.work-card{transition:opacity .28s ease,transform .38s cubic-bezier(.2,.75,.25,1),box-shadow .28s ease}
.work-card.is-filtering-out{opacity:0;transform:translateY(10px) scale(.985);pointer-events:none}
.work-card.is-filtering-in{animation:workSlideIn .42s cubic-bezier(.2,.75,.25,1) both}
@keyframes workSlideIn{from{opacity:.25;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:680px){
 .nav-links{gap:0}
 .nav-dropdown{display:block;border-bottom:1px solid #eef1f4}
 .nav-dropdown-trigger{display:flex;width:100%;justify-content:space-between;padding:12px 3px}
 .nav-dropdown-trigger::after{display:none}
 .nav-submenu{position:static;min-width:0;padding:0 0 6px 12px;border:0;border-radius:0;box-shadow:none;background:rgba(255,255,255,.70);opacity:1;visibility:visible;transform:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px;max-height:0;overflow:hidden;transition:max-height .32s ease,padding .32s ease}
 .nav-dropdown.open .nav-submenu,.nav-dropdown:focus-within .nav-submenu{max-height:320px;padding:5px 0 9px 12px}
 .nav-submenu::before{display:none}
 .nav-submenu a{white-space:normal;padding:8px 10px;font-size:13px}
 .nav-submenu a:hover{padding-left:13px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}/* X-IMAGE refinement: prominent cropped logo, image-led page heroes, and lightbox gallery */


.site-header{height:94px}
.brand{flex:0 0 auto;min-width:220px}
.brand-logo{width:230px;max-width:34vw;height:68px;max-height:none;object-fit:contain;object-position:left center}
.footer-brand .brand-logo{width:220px;height:64px;max-height:none}
.hero{isolation:isolate;min-height:600px}
.hero-inner{max-width:var(--max);padding-right:clamp(300px,38vw,470px)}
.page-hero{position:relative;isolation:isolate;display:flex;align-items:center;min-height:290px;padding:52px 0;overflow:hidden}
.page-heading{position:relative;z-index:2;width:100%;padding-right:min(42vw,480px)}/* Keep portfolio filter movement deliberate and smooth */

.work-card{transition:opacity .48s ease,transform .56s cubic-bezier(.2,.75,.25,1),box-shadow .35s ease}
.work-card.is-filtering-in{animation:workSlideIn .58s cubic-bezier(.2,.75,.25,1) both}
@keyframes workSlideIn{from{opacity:.1;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}/* Modal gallery */

.gallery-modal{position:fixed;inset:0;z-index:9999;display:grid;grid-template-columns:minmax(0,1fr);place-items:center;padding:24px;background:rgba(20,29,39,.88);opacity:0;visibility:hidden;transition:opacity .35s ease,visibility .35s ease;backdrop-filter:blur(8px)}
.gallery-modal.is-open{opacity:1;visibility:visible}
.gallery-dialog{position:relative;width:min(1080px,100%);max-height:calc(100vh - 48px);display:grid;grid-template-rows:minmax(0,1fr) auto;gap:14px;transform:translateY(14px) scale(.99);transition:transform .4s cubic-bezier(.2,.75,.25,1)}
.gallery-modal.is-open .gallery-dialog{transform:translateY(0) scale(1)}
.gallery-image-stage{position:relative;min-height:180px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.gallery-image-stage img{display:block;max-width:100%;max-height:calc(100vh - 170px);width:auto;height:auto;object-fit:contain;border-radius:3px;box-shadow:0 20px 70px rgba(0,0,0,.25)}
.gallery-caption{color:#fff;text-align:center;padding:0 60px 3px}
.gallery-caption h2{font-size:clamp(17px,2vw,22px);margin:0 0 3px;font-weight:700}
.gallery-caption p{font-size:13px;color:#d5dee7;margin:0}
.gallery-control{position:absolute;z-index:2;display:grid;place-items:center;border:1px solid rgba(255,255,255,.45);background:rgba(35,49,64,.62);color:#fff;width:48px;height:48px;border-radius:50%;font-size:27px;line-height:1;cursor:pointer;transition:background .2s,transform .2s,border-color .2s}
.gallery-control:hover{background:#526b86;border-color:#fff;transform:scale(1.06)}
.gallery-prev{left:clamp(8px,3vw,30px);top:50%;transform:translateY(-50%)}.gallery-prev:hover{transform:translateY(-50%) scale(1.06)}
.gallery-next{right:clamp(8px,3vw,30px);top:50%;transform:translateY(-50%)}.gallery-next:hover{transform:translateY(-50%) scale(1.06)}
.gallery-close{top:8px;right:8px;font-size:24px;width:42px;height:42px}
body.gallery-lock{overflow:hidden}
@media(max-width:900px){.site-header{height:84px}.brand{min-width:0}.brand-logo{width:200px;height:60px;max-width:38vw}.hero{min-height:540px}.hero-inner{padding-right:36vw}.page-heading{padding-right:35vw}}
@media(max-width:680px){.site-header{height:74px}.nav-wrap{padding:0 16px}.brand-logo{width:174px;height:54px;max-width:58vw}.nav-links{top:73px}.hero{min-height:0;display:flex;flex-direction:column;align-items:stretch;padding-bottom:28px}.hero-inner{padding:58px 22px 22px;max-width:none}.hero:after{font-size:300px;top:0;right:-4%}.page-hero{min-height:0;display:flex;flex-direction:column;align-items:stretch;padding:36px 0 26px}.page-heading{padding:0 22px}.page-heading h1{font-size:32px}.gallery-modal{padding:12px}.gallery-dialog{max-height:calc(100vh - 24px);gap:10px}.gallery-image-stage img{max-height:calc(100vh - 170px)}.gallery-control{width:42px;height:42px;font-size:24px}.gallery-prev{left:5px}.gallery-next{right:5px}.gallery-caption{padding:0 8px}.gallery-caption p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.gallery-modal,.gallery-dialog,.gallery-image-stage img{transition:none!important}}/* X-IMAGE refinements: custom five-page image navigation row */


.site-header .brand{align-items:center;justify-content:flex-start;min-width:0;}
.site-header .brand-logo{width:190px;height:58px;max-width:30vw;object-fit:contain;object-position:left center;}
.footer-brand .brand-logo{width:190px;height:56px;object-position:left center;}
.quick-pages{padding:34px 24px 24px;background:#fff;}
.quick-pages-inner{max-width:var(--max);margin:0 auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;}
.quick-page-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #e2e8ef;border-radius:8px;background:#fff;box-shadow:0 5px 20px rgba(45,63,82,.045);transition:transform .35s cubic-bezier(.2,.75,.25,1),box-shadow .35s,border-color .3s;}
.quick-page-card:hover{transform:translateY(-5px);border-color:#bdcbd9;box-shadow:0 14px 30px rgba(45,63,82,.12);}
.quick-page-card>img{width:100%;height:116px;object-fit:cover;transition:transform .65s cubic-bezier(.2,.75,.25,1);}
.quick-page-card:hover>img{transform:scale(1.055);}
.quick-page-copy{position:relative;display:flex;flex-direction:column;gap:3px;padding:13px 32px 15px 15px;}
.quick-page-copy strong{font-size:16px;color:#303944;font-weight:700;}
.quick-page-copy small{font-size:11px;color:#7a8592;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.quick-page-copy i{position:absolute;right:13px;top:50%;transform:translateY(-50%);font-size:18px;font-style:normal;color:#8297ad;transition:transform .25s,color .25s;}
.quick-page-card:hover .quick-page-copy i{transform:translate(3px,-50%);color:#526b86;}/* The X in browser tab is upright, not rotated */

@keyframes galleryZoomIn{0%{opacity:0;transform:scale(.88) translateY(12px);filter:blur(3px)}65%{opacity:1;filter:blur(0);transform:scale(1.015) translateY(0)}100%{opacity:1;transform:scale(1);filter:blur(0)}}
@keyframes gallerySlideFromRight{from{opacity:.15;transform:translateX(42px) scale(.97);filter:blur(2px)}to{opacity:1;transform:translateX(0) scale(1);filter:blur(0)}}
@keyframes gallerySlideFromLeft{from{opacity:.15;transform:translateX(-42px) scale(.97);filter:blur(2px)}to{opacity:1;transform:translateX(0) scale(1);filter:blur(0)}}
.gallery-image-stage img.image-arrive{animation:galleryZoomIn .48s cubic-bezier(.2,.75,.25,1) both;}
.gallery-image-stage img.image-arrive.image-from-right{animation-name:gallerySlideFromRight;}
.gallery-image-stage img.image-arrive.image-from-left{animation-name:gallerySlideFromLeft;}
@media(max-width:900px){.quick-pages-inner{grid-template-columns:repeat(3,minmax(0,1fr));}.quick-page-card>img{height:125px}.site-header .brand-logo{width:180px;height:56px;max-width:34vw}}
@media(max-width:680px){.site-header .brand-logo{width:160px;height:50px;max-width:55vw}.quick-pages{padding:24px 16px 12px}.quick-pages-inner{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quick-page-card>img{height:110px}.quick-page-copy{padding:11px 28px 13px 12px}.quick-page-copy strong{font-size:15px}.quick-page-copy small{font-size:10px}.quick-pages-inner .quick-page-card:last-child{grid-column:1/-1}.quick-pages-inner .quick-page-card:last-child>img{height:125px}}
@media(prefers-reduced-motion:reduce){.gallery-image-stage img.image-arrive{animation:none!important}}/* Final correction: compact brand lockup and clearly image-led five-page navigation */



.site-header .brand{display:flex;align-items:center;justify-content:flex-start;min-width:0;flex:0 0 auto;}
.site-header .brand-lockup,.footer-brand .brand-lockup{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;}
.site-header .brand-logo{display:block;width:42px;height:42px;max-width:none;max-height:none;object-fit:contain;object-position:left center;flex:0 0 42px;}
.footer-brand .brand-logo{width:38px;height:38px;flex-basis:38px;}
.quick-pages{padding:36px 24px 34px;background:#fff;}
.quick-pages-heading{text-align:center;margin:0 auto 22px;}
.quick-pages-heading>span{font-size:10px;letter-spacing:3px;font-weight:800;color:#71849a;}
.quick-pages-heading h2{font-size:clamp(20px,2.4vw,27px);line-height:1.3;margin:5px 0 0;color:#303944;}
.quick-pages-inner{max-width:var(--max);margin:0 auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;}
.quick-page-card{min-width:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid #e0e6ed;border-radius:8px;background:#fff;box-shadow:0 5px 18px rgba(45,63,82,.05);transition:transform .38s cubic-bezier(.2,.75,.25,1),box-shadow .38s,border-color .3s;}
.quick-page-card>img{display:block;width:100%;height:158px;object-fit:cover;object-position:center;transition:transform .7s cubic-bezier(.2,.75,.25,1),filter .45s;}
.quick-page-card:hover>img{transform:scale(1.06);filter:saturate(1.05);}
.quick-page-copy{min-height:75px;position:relative;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:12px 32px 13px 14px;}
.quick-page-copy strong{font-size:15px;color:#303944;font-weight:700;}
.quick-page-copy small{font-size:11px;color:#7a8592;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.quick-page-copy i{position:absolute;right:13px;top:50%;transform:translateY(-50%);font-size:18px;font-style:normal;color:#8297ad;transition:transform .28s,color .28s;}
.quick-page-card:hover{transform:translateY(-4px);border-color:#bdcbd9;box-shadow:0 14px 30px rgba(45,63,82,.12);}
.quick-page-card:hover .quick-page-copy i{transform:translate(3px,-50%);color:#526b86;}
@media(max-width:900px){.site-header .brand-logo{width:38px;height:38px;flex-basis:38px}.nav-wrap{gap:16px}.nav-links{gap:clamp(10px,1.4vw,18px)}.quick-pages-inner{grid-template-columns:repeat(3,minmax(0,1fr));}.quick-page-card>img{height:145px}}
@media(max-width:680px){.site-header .brand-logo{width:34px;height:34px;flex-basis:34px}.site-header .brand-lockup{gap:6px}.quick-pages{padding:27px 16px 22px}.quick-pages-inner{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quick-page-card>img{height:118px}.quick-page-copy{min-height:68px;padding:10px 27px 11px 11px}.quick-page-copy strong{font-size:14px}.quick-page-copy small{font-size:10px}.quick-pages-inner .quick-page-card:last-child{grid-column:auto}.quick-pages-inner .quick-page-card:last-child>img{height:118px}}
@media(max-width:380px){.site-header .brand-lockup{gap:5px}.site-header .brand-logo{width:30px;height:30px;flex-basis:30px}}/* Final requested visual tuning */


.hero{min-height:405px!important;background:#edf2f7 url('../assets/img/home-hero.webp') center right / cover no-repeat!important;}
.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(248,250,252,.98) 0%,rgba(248,250,252,.92) 32%,rgba(248,250,252,.48) 58%,rgba(248,250,252,.03) 100%);z-index:0;}
.hero:after{display:none!important}.hero-inner{padding:65px 24px!important;padding-right:24px!important}.hero h1{font-size:clamp(35px,4.4vw,57px);max-width:640px}.hero p{max-width:510px}
.page-hero{min-height:225px!important;padding:35px 0!important}.page-hero .page-heading{padding-top:0!important;padding-bottom:0!important}
.site-header .brand-logo{width:80px!important;height:67px!important;flex:0 0 80px!important;max-width:none!important}.site-header .brand-lockup{gap:8px!important}
@media(max-width:900px){.site-header .brand-logo{width:64px!important;height:54px!important;flex-basis:64px!important}}
@media(max-width:680px){.hero{min-height:350px!important;background-position:62% center!important}.hero-inner{padding:43px 22px!important}.hero h1{font-size:35px}.hero:before{background:linear-gradient(90deg,rgba(248,250,252,.98),rgba(248,250,252,.84) 66%,rgba(248,250,252,.45))}.page-hero{min-height:190px!important;padding:28px 0!important}.site-header .brand-logo{width:52px!important;height:48px!important;flex-basis:52px!important}}/* 2026-10-22: full-bleed inner-page banners and 105% logo */


.page-hero{position:relative!important;isolation:isolate;min-height:225px!important;padding:34px 0!important;display:flex!important;align-items:center!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;}
.page-hero::before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(90deg,rgba(246,249,252,.97) 0%,rgba(246,249,252,.90) 35%,rgba(246,249,252,.20) 76%);}
.page-hero .page-heading{position:relative!important;z-index:2!important;width:min(1180px,calc(100% - 48px))!important;max-width:1180px!important;margin:0 auto!important;padding:0!important;}
.hero-image-about{background-image:url('../assets/img/nav-panels/about.webp')!important;}
.hero-image-portfolio{background-image:url('../assets/img/nav-panels/portfolio.webp')!important;}
.hero-image-news{background-image:url('../assets/img/nav-panels/news.webp')!important;}
.hero-image-contact{background-image:url('../assets/img/nav-panels/contact.webp')!important;}
.site-header .brand-logo{width:84px!important;height:70px!important;flex:0 0 84px!important;max-width:none!important;}
@media(max-width:900px){.site-header .brand-logo{width:67px!important;height:57px!important;flex-basis:67px!important;}}
@media(max-width:680px){.page-hero{min-height:185px!important;padding:28px 0!important;background-position:60% center!important}.page-hero::before{background:linear-gradient(90deg,rgba(246,249,252,.97),rgba(246,249,252,.76) 75%,rgba(246,249,252,.40))}.page-hero .page-heading{width:calc(100% - 40px)!important}.site-header .brand-logo{width:55px!important;height:50px!important;flex-basis:55px!important;}}/* Color-rich editorial inner-page banners */


.page-hero{min-height:235px!important;background-position:center!important;background-size:cover!important;border-bottom:1px solid rgba(45,78,113,.10)}
.page-hero::before{background:linear-gradient(90deg,rgba(255,255,255,.42),rgba(255,255,255,.16) 36%,transparent 65%)!important}
.page-hero .page-heading h1{color:#17344e!important;text-shadow:0 2px 16px rgba(255,255,255,.4)}
.page-hero .page-heading p{color:#35526b!important}
.page-hero .eyebrow{color:#345f83!important}
.hero-image-about{background-image:url('../assets/img/inner-banners/about.webp')!important}
.hero-image-portfolio{background-image:url('../assets/img/inner-banners/portfolio.webp')!important}
.hero-image-news{background-image:url('../assets/img/inner-banners/news.webp')!important}
.hero-image-contact{background-image:url('../assets/img/inner-banners/contact.webp')!important}
@media(max-width:680px){.page-hero{min-height:195px!important;background-position:60% center!important}.page-hero::before{background:linear-gradient(90deg,rgba(255,255,255,.80),rgba(255,255,255,.38) 70%,rgba(255,255,255,.08))!important}}/* Professional image banners, embedded type in artwork; retain accessible headings */


.page-hero{height:clamp(185px,19vw,285px)!important;min-height:0!important;padding:0!important;background-size:cover!important;background-position:center!important}
.page-hero::before{display:none!important}
.page-hero .page-heading{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;padding:0!important;margin:0!important}
.hero-image-about{background-image:url('../assets/img/pro-banners/about.webp')!important}
.hero-image-portfolio{background-image:url('../assets/img/pro-banners/portfolio.webp')!important}
.hero-image-news{background-image:url('../assets/img/pro-banners/news.webp')!important}
.hero-image-contact{background-image:url('../assets/img/pro-banners/contact.webp')!important}
@media(max-width:680px){.page-hero{height:clamp(145px,31vw,210px)!important;background-position:center!important}}/* High-resolution 2400x600 banners with editable HTML headings */


.page-hero{height:clamp(190px,18vw,260px)!important;min-height:0!important;display:flex!important;align-items:center!important;padding:22px 0!important;background-size:cover!important;background-position:center!important}
.page-hero::before{display:none!important}
.page-hero .page-heading{position:relative!important;clip-path:none!important;overflow:visible!important;white-space:normal!important;width:min(1180px,calc(100% - 64px))!important;height:auto!important;margin:0 auto!important;padding:0!important;z-index:2!important}
.page-hero .page-heading h1{font-size:clamp(25px,2.7vw,39px)!important;line-height:1.2!important;color:#fff!important;text-shadow:0 2px 12px rgba(0,0,0,.16)!important;margin:7px 0 10px!important}
.page-hero .page-heading p{font-size:clamp(12px,1.05vw,15px)!important;line-height:1.65!important;color:rgba(255,255,255,.92)!important;max-width:440px!important;margin:0!important}
.page-hero .page-heading .eyebrow{font-size:clamp(10px,.9vw,12px)!important;letter-spacing:.22em!important;color:rgba(255,255,255,.78)!important}
.hero-image-about{background-image:url('../assets/img/pro-banners-hires/about.webp')!important}
.hero-image-portfolio{background-image:url('../assets/img/pro-banners-hires/portfolio.webp')!important}
.hero-image-news{background-image:url('../assets/img/pro-banners-hires/news.webp')!important}
.hero-image-contact{background-image:url('../assets/img/pro-banners-hires/contact.webp')!important}
@media(max-width:680px){.page-hero{height:190px!important;background-position:60% center!important}.page-hero .page-heading{width:calc(100% - 36px)!important}.page-hero .page-heading h1{font-size:26px!important}.page-hero .page-heading p{font-size:12px!important;max-width:245px!important}}/* Four consistent orange-reference-width diagonal blocks, individual colors, live HTML text */


.page-hero{position:relative!important;isolation:isolate!important;display:flex!important;align-items:center!important;min-height:0!important;height:clamp(190px,17vw,255px)!important;padding:20px 0!important;overflow:hidden!important;background-size:cover!important;background-position:70% center!important}
.page-hero::before{content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:0!important;clip-path:polygon(0 0,62% 0,48% 100%,0 100%)!important;background:linear-gradient(120deg,var(--banner-dark) 5%,var(--banner-mid) 73%,var(--banner-bright) 100%)!important}
.page-hero::after{content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:1!important;pointer-events:none!important;clip-path:polygon(58% 0,58.35% 0,44.35% 100%,44% 100%)!important;background:rgba(255,255,255,.6)!important}
.page-hero .page-heading{position:relative!important;display:block!important;clip-path:none!important;white-space:normal!important;overflow:visible!important;z-index:2!important;width:min(1180px,calc(100% - 64px))!important;max-width:1180px!important;height:auto!important;margin:0 auto!important;padding:0!important}
.page-hero .page-heading h1{font-size:clamp(25px,2.7vw,38px)!important;line-height:1.25!important;color:white!important;text-shadow:0 2px 8px rgba(0,0,0,.12)!important;margin:8px 0!important}
.page-hero .page-heading p{font-size:clamp(12px,1vw,15px)!important;line-height:1.65!important;color:rgba(255,255,255,.94)!important;max-width:420px!important;margin:0!important}
.page-hero .page-heading .eyebrow{font-size:clamp(10px,.85vw,12px)!important;letter-spacing:.2em!important;color:rgba(255,255,255,.85)!important}
.hero-image-about{--banner-dark:#002b64;--banner-mid:#0758ad;--banner-bright:#1eb8ff;background-image:url('../assets/img/banners-final/about.webp')!important}
.hero-image-portfolio{--banner-dark:#2c075a;--banner-mid:#7506ac;--banner-bright:#f032d9;background-image:url('../assets/img/banners-final/portfolio.webp')!important}
.hero-image-news{--banner-dark:#003d35;--banner-mid:#00785f;--banner-bright:#25d59e;background-image:url('../assets/img/banners-final/news.webp')!important}
.hero-image-contact{--banner-dark:#913200;--banner-mid:#e36b00;--banner-bright:#ffc13b;background-image:url('../assets/img/banners-final/contact.webp')!important}
@media(max-width:680px){.page-hero{height:190px!important;background-position:65% center!important}.page-hero::before{clip-path:polygon(0 0,85% 0,69% 100%,0 100%)!important}.page-hero::after{clip-path:polygon(82% 0,82.6% 0,66.6% 100%,66% 100%)!important}.page-hero .page-heading{width:calc(100% - 38px)!important}.page-hero .page-heading h1{font-size:25px!important}.page-hero .page-heading p{font-size:12px!important;max-width:235px!important}}/* APPROVED VISUAL 2026-10-22: original four-color artwork, un-stretched */


.page-hero{height:clamp(190px,17vw,255px)!important;min-height:0!important;position:relative!important;isolation:isolate!important;display:flex!important;align-items:center!important;padding:20px 0!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;}
.page-hero::before{content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:0!important;clip-path:polygon(0 0,61% 0,47% 100%,0 100%)!important;background:linear-gradient(115deg,var(--banner-dark) 0%,var(--banner-mid) 70%,var(--banner-bright) 100%)!important;}
.page-hero::after{content:""!important;display:block!important;position:absolute!important;inset:0!important;z-index:1!important;pointer-events:none!important;clip-path:polygon(59% 0,59.3% 0,45.3% 100%,45% 100%)!important;background:rgba(255,255,255,.78)!important;}
.page-hero .page-heading{position:relative!important;z-index:2!important;width:min(1180px,calc(100% - 64px))!important;max-width:1180px!important;margin:0 auto!important;padding:0!important;height:auto!important;clip-path:none!important;overflow:visible!important;}
.page-hero .page-heading h1{font-size:clamp(25px,2.7vw,38px)!important;color:white!important;line-height:1.2!important;margin:8px 0!important;text-shadow:0 2px 9px rgba(0,0,0,.14)!important}
.page-hero .page-heading p{font-size:clamp(12px,1vw,15px)!important;line-height:1.6!important;color:#fff!important;max-width:420px!important;margin:0!important}
.page-hero .page-heading .eyebrow{font-size:clamp(10px,.85vw,12px)!important;letter-spacing:.2em!important;color:rgba(255,255,255,.85)!important}
.hero-image-about{--banner-dark:#002a65;--banner-mid:#0755b0;--banner-bright:#0daaf2;background-image:url('../assets/img/approved-banners/about.webp')!important}
.hero-image-portfolio{--banner-dark:#32055f;--banner-mid:#7606ae;--banner-bright:#e026dd;background-image:url('../assets/img/approved-banners/portfolio.webp')!important}
.hero-image-news{--banner-dark:#003b32;--banner-mid:#007a5b;--banner-bright:#20d5a0;background-image:url('../assets/img/approved-banners/news.webp')!important}
.hero-image-contact{--banner-dark:#8d3000;--banner-mid:#dc6600;--banner-bright:#ffb930;background-image:url('../assets/img/approved-banners/contact.webp')!important}
@media(max-width:680px){.page-hero{height:190px!important;background-position:65% center!important}.page-hero::before{clip-path:polygon(0 0,88% 0,72% 100%,0 100%)!important}.page-hero::after{clip-path:polygon(86% 0,86.4% 0,70.4% 100%,70% 100%)!important}.page-hero .page-heading{width:calc(100% - 38px)!important}.page-hero .page-heading h1{font-size:25px!important}.page-hero .page-heading p{font-size:12px!important;max-width:220px!important}}/* APPROVED IMAGE — 4 individual crops from exact 2172×724 approved artwork.
   Live, editable HTML text on the left. No photographic stretching. */


.page-hero{height:clamp(190px,17vw,255px)!important;min-height:0!important;position:relative!important;display:flex!important;align-items:center!important;padding:18px 0!important;background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
.page-hero::before,.page-hero::after{display:none!important}
.page-hero .page-heading{position:relative!important;z-index:3!important;width:min(1180px,calc(100% - 64px))!important;max-width:1180px!important;margin:0 auto!important;padding:0!important;clip-path:none!important;height:auto!important}
.page-hero .page-heading h1{font-size:clamp(25px,2.6vw,37px)!important;line-height:1.22!important;color:#fff!important;margin:9px 0!important;text-shadow:0 1px 7px #0003!important}
.page-hero .page-heading .eyebrow{font-size:clamp(10px,.85vw,12px)!important;color:#fff!important;letter-spacing:.18em!important}
.page-hero .page-heading p{font-size:clamp(12px,1vw,15px)!important;line-height:1.65!important;max-width:330px!important;color:#fff!important;margin:0!important}
.hero-image-about{background-image:url('../assets/img/actual-approved/about.webp')!important}
.hero-image-portfolio{background-image:url('../assets/img/actual-approved/portfolio.webp')!important}
.hero-image-news{background-image:url('../assets/img/actual-approved/news.webp')!important}
.hero-image-contact{background-image:url('../assets/img/actual-approved/contact.webp')!important}
@media(max-width:680px){.page-hero{height:190px!important;background-position:60% center!important}.page-hero .page-heading{width:calc(100% - 38px)!important}.page-hero .page-heading h1{font-size:25px!important}.page-hero .page-heading p{font-size:12px!important;max-width:220px!important}}/* Clean original artwork, no CSS color rectangles or gradients */


.page-hero::before,.page-hero::after{display:none!important;content:none!important}
.page-hero{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
.hero-image-about{background-image:url('../assets/img/gradient-clean/about.webp')!important}
.hero-image-portfolio{background-image:url('../assets/img/gradient-clean/portfolio.webp')!important}
.hero-image-news{background-image:url('../assets/img/gradient-clean/news.webp')!important}
.hero-image-contact{background-image:url('../assets/img/gradient-clean/contact.webp')!important}/* Keep the original diagonal artwork visible; no CSS color block. */


.page-hero::before,.page-hero::after{display:none!important;content:none!important}/* Final banner delivery: editable CSS/HTML typography; original visual composition. */


.page-hero::before,.page-hero::after{content:none!important;display:none!important}
.page-hero .page-heading{position:relative!important;display:block!important;clip-path:none!important;overflow:visible!important;white-space:normal!important;width:min(1180px,calc(100% - 64px))!important;height:auto!important;margin:0 auto!important;padding:0!important;z-index:3!important}
.page-hero .page-heading h1{font-size:clamp(25px,2.6vw,37px)!important;color:#fff!important;line-height:1.22!important;margin:9px 0!important}
.page-hero .page-heading .eyebrow{font-size:clamp(10px,.85vw,12px)!important;color:#fff!important;letter-spacing:.18em!important}
.page-hero .page-heading p{font-size:clamp(12px,1vw,15px)!important;line-height:1.65!important;max-width:330px!important;color:#fff!important;margin:0!important}
.page-hero{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important}
.hero-image-about{background-image:url('../assets/img/gradient-optimized/about.webp')!important}
.hero-image-portfolio{background-image:url('../assets/img/gradient-optimized/portfolio.webp')!important}
.hero-image-news{background-image:url('../assets/img/gradient-optimized/news.webp')!important}
.hero-image-contact{background-image:url('../assets/img/gradient-optimized/contact.webp')!important}
@media(max-width:680px){.page-hero .page-heading{width:calc(100% - 38px)!important}.page-hero .page-heading h1{font-size:25px!important}}/* Independently generated high-detail, text-free contact banner. */


.hero-image-contact{background-image:url('../assets/img/independent/contact.webp')!important}/* Show more headroom: keep headset and eyes away from the top crop. */


.hero-image-contact{background-position:center top!important}
@media(max-width:680px){.hero-image-contact{background-position:64% top!important}}/* Individual native-size About hero image; text stays HTML/CSS */


.hero-image-about{background-image:url("../assets/img/independent/about.webp")!important}/* Contact only: pan image UP without scaling or changing the banner. */


.hero-image-contact{background-position:center 35%!important}
@media(max-width:680px){.hero-image-contact{background-position:64% 35%!important}}/* Requested fine-tuning: move the same image DOWN exactly 5px. */


.hero-image-contact{background-position:center calc(35% + 5px)!important}
@media(max-width:680px){.hero-image-contact{background-position:64% calc(35% + 5px)!important}}/* 2026-10-23: User-approved Photoshop composite banners.
   Keep all source images untouched; text remains editable HTML.
   Preserve the previously approved contact hero geometry. */


.page-hero.hero-image-about { background-image: url('../assets/img/photoshop-approved/about.webp') !important; }
.page-hero.hero-image-portfolio { background-image: url('../assets/img/photoshop-approved/portfolio.webp') !important; }
.page-hero.hero-image-news { background-image: url('../assets/img/photoshop-approved/news.webp') !important; }
.page-hero.hero-image-contact { background-image: url('../assets/img/photoshop-approved/contact.webp') !important; }
.page-hero.hero-image-about,.page-hero.hero-image-portfolio,.page-hero.hero-image-news,.page-hero.hero-image-contact{
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center 35% !important;
}
@media (max-width:680px) {
  .page-hero.hero-image-about,.page-hero.hero-image-portfolio,.page-hero.hero-image-news,.page-hero.hero-image-contact{
    background-position: 64% 35% !important;
  }}/* Portfolio dropdown rollover: darker blue-gray at 70% opacity. */


.nav-submenu a:hover,.nav-submenu a:focus-visible{
  background-color: rgba(143, 164, 186, 0.70) !important;
  color: #ffffff !important;
}/* Portfolio category view: compact color strip instead of the full-size hero. */



.page-hero.hero-image-portfolio.portfolio-category-hero {
  height: 138px !important;
  min-height: 138px !important;
  padding: 16px 0 !important;
  background-image: linear-gradient(112deg,#32115b 0%,#7135a0 58%,#ad83c6 100%) !important;
  background-position: center !important;
  overflow: hidden !important;
}
.page-hero.hero-image-portfolio.portfolio-category-hero::before {
  content: '' !important; display:block !important;
  clip-path:none !important;
  background: radial-gradient(circle at 86% 22%,rgba(255,255,255,.20),transparent 26%),linear-gradient(125deg,transparent 60%,rgba(255,255,255,.08) 60%,rgba(255,255,255,.08) 72%,transparent 72%) !important;
}
.page-hero.hero-image-portfolio.portfolio-category-hero::after { display:none !important; }
.page-hero.portfolio-category-hero .page-heading { padding-bottom: 23px !important; }
.page-hero.portfolio-category-hero .page-heading h1 {font-size:clamp(23px,2.4vw,32px)!important;margin:4px 0!important}
.page-hero.portfolio-category-hero .page-heading p {display:none!important}
.portfolio-breadcrumb {position:absolute;bottom:16px;left:max(32px,calc((100% - 1180px)/2));z-index:5;display:flex;align-items:center;gap:10px;color:rgba(255,255,255,.94);font-size:13px;line-height:1.4}
.portfolio-breadcrumb[hidden] {display:none!important}
.portfolio-breadcrumb a {color:rgba(255,255,255,.82);text-decoration:none}
.portfolio-breadcrumb a:hover {color:#fff;text-decoration:underline}
@media(max-width:680px){
 .page-hero.hero-image-portfolio.portfolio-category-hero {height:118px!important;min-height:118px!important;padding:12px 0!important}
 .page-hero.portfolio-category-hero .page-heading {padding-bottom:18px!important}
 .page-hero.portfolio-category-hero .page-heading h1 {font-size:24px!important}
 .portfolio-breadcrumb {left:19px;bottom:12px;font-size:12px;gap:7px}}/* Category strip v2: half-height, bilingual inline title and refined breadcrumb */


.page-hero.hero-image-portfolio.portfolio-category-hero{height:69px!important;min-height:69px!important;padding:0!important;}
.page-hero.portfolio-category-hero .page-heading{display:flex!important;align-items:center!important;gap:13px!important;padding:0!important;padding-right:340px!important;}
.page-hero.portfolio-category-hero .page-heading h1{font-size:clamp(20px,2vw,26px)!important;line-height:1.2!important;margin:0!important;white-space:nowrap!important;}
.page-hero.portfolio-category-hero .page-heading .eyebrow{font-size:10px!important;letter-spacing:.18em!important;white-space:nowrap!important;color:rgba(255,255,255,.68)!important;border-left:1px solid rgba(255,255,255,.45);padding-left:13px;}
.page-hero.portfolio-category-hero .portfolio-breadcrumb{position:absolute!important;left:auto!important;right:max(24px,calc((100% - 1160px)/2))!important;bottom:auto!important;top:50%!important;transform:translateY(-50%);display:flex;align-items:center;gap:7px;padding:6px 9px 6px 13px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);border-radius:999px;backdrop-filter:blur(5px);font-size:12px;white-space:nowrap;box-shadow:0 2px 10px rgba(29,8,58,.10);}
.page-hero.portfolio-category-hero .portfolio-breadcrumb a{color:rgba(255,255,255,.86)!important;transition:color .2s;}
.page-hero.portfolio-category-hero .portfolio-breadcrumb a:hover{color:#fff!important;text-decoration:none!important;}
.page-hero.portfolio-category-hero .portfolio-breadcrumb [aria-current=page]{background:rgba(255,255,255,.95);color:#62318c;padding:4px 11px;border-radius:999px;font-weight:700;}
.page-hero.portfolio-category-hero .portfolio-breadcrumb .crumb-separator{color:rgba(255,255,255,.58);font-size:15px;}
@media(max-width:680px){
 .page-hero.hero-image-portfolio.portfolio-category-hero{height:69px!important;min-height:69px!important;padding:0!important;}
 .page-hero.portfolio-category-hero .page-heading{width:calc(100% - 28px)!important;gap:7px!important;padding-right:0!important;transform:translateY(-9px);}
 .page-hero.portfolio-category-hero .page-heading h1{font-size:19px!important;}
 .page-hero.portfolio-category-hero .page-heading .eyebrow{font-size:8px!important;letter-spacing:.08em!important;padding-left:7px;}
 .page-hero.portfolio-category-hero .portfolio-breadcrumb{left:14px!important;right:auto!important;top:auto!important;bottom:3px!important;transform:none!important;font-size:10px!important;padding:2px 5px 2px 8px;gap:5px;}
 .page-hero.portfolio-category-hero .portfolio-breadcrumb [aria-current=page]{padding:2px 7px;}}/* Lightbox: fullscreen action and optional editorial story */


.gallery-top-actions{position:absolute;z-index:5;right:8px;top:8px;display:flex;align-items:center;gap:10px}
.gallery-top-actions .gallery-control{position:static;transform:none;width:42px;height:42px;font-size:24px}
.gallery-top-actions .gallery-control:hover{transform:scale(1.06)}
.gallery-top-actions .gallery-fullscreen{font-size:25px}
.gallery-more{display:inline-flex;align-items:center;gap:14px;margin-top:12px;padding:8px 17px;border:1px solid rgba(255,255,255,.5);border-radius:30px;background:rgba(255,255,255,.1);color:white;font-size:13px;letter-spacing:.06em;cursor:pointer;transition:background .2s}
.gallery-more:hover{background:rgba(255,255,255,.23)}
.gallery-more span{font-size:11px;letter-spacing:.12em;color:#dbe6f1}
.gallery-story{max-width:720px;margin:12px auto 0;padding:13px 20px;border-radius:10px;background:rgba(255,255,255,.1);font-size:14px;line-height:1.85;text-align:left;white-space:pre-line;max-height:24vh;overflow:auto}
.gallery-more[hidden],.gallery-story[hidden]{display:none!important}
.gallery-modal:fullscreen{background:rgba(20,29,39,.98);padding:28px}
.gallery-modal:fullscreen .gallery-dialog{width:min(1400px,100%);max-height:calc(100vh - 56px)}
.gallery-modal:fullscreen .gallery-image-stage img{max-height:calc(100vh - 190px)}
@media(max-width:680px){.gallery-top-actions{right:5px;top:5px;gap:7px}.gallery-top-actions .gallery-control{width:38px;height:38px;font-size:21px}.gallery-story{font-size:12px;max-height:20vh}.gallery-more{margin-top:8px}}/* X-IMAGE approved dropdown settings — restored and kept last for cascade priority. */


.nav-submenu a:hover,.nav-submenu a:focus-visible{
  background: rgba(143, 164, 186, .70) !important;
  color: #fff !important;
  padding-left: 17px;
}
body:not(.ximage-home-page) .nav-submenu {
  background-color: rgba(255,255,255,.95) !important;
}
body.ximage-home-page .nav-submenu {
  background-color: rgba(255,255,255,.70) !important;
}/* Restore approved homepage and inner-page animations *//* Homepage only: restrained entrance motion; original hero image stays unchanged. */




body:has(> main .hero) .hero .hero-inner > .eyebrow,body:has(> main .hero) .hero .hero-inner > h1,body:has(> main .hero) .hero .hero-inner > p,body:has(> main .hero) .hero .hero-inner > .button{
  animation: ximageHeroReveal .85s cubic-bezier(.2,.7,.2,1) both;
}
.hero .hero-inner > h1 {animation-delay:.12s!important}
.hero .hero-inner > p {animation-delay:.24s!important}
.hero .hero-inner > .button {animation-delay:.36s!important}
.hero .hero-inner > .button.secondary {animation-delay:.46s!important}
.hero .button {transition:transform .25s ease,box-shadow .25s ease,background-color .25s ease}
.hero .button:hover {transform:translateY(-3px);box-shadow:0 9px 24px rgba(50,75,103,.18)}
@keyframes ximageHeroReveal {from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.hero .hero-inner > *{animation:none!important}.hero .button{transition:none!important}}/* Homepage: subtle blue-white light sweep over the original, unmodified photo. */


.hero .hero-light-sweep{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden;isolation:isolate;}
.hero .hero-light-sweep::before{content:"";position:absolute;top:-65%;left:-65%;width:38%;height:230%;transform:translateX(-180%) rotate(23deg);transform-origin:center;background:linear-gradient(90deg,transparent 0%,rgba(215,235,255,.015) 16%,rgba(220,238,255,.16) 45%,rgba(255,255,255,.24) 51%,rgba(208,230,250,.11) 60%,transparent 100%);filter:blur(18px);opacity:0;animation:ximageSoftShine 7s ease-in-out 1.7s infinite;}
.hero .hero-inner{z-index:2;}
@keyframes ximageSoftShine{0%,12%{transform:translateX(-180%) rotate(23deg);opacity:0}17%{opacity:.8}39%{opacity:.8}49%,100%{transform:translateX(650%) rotate(23deg);opacity:0}}
@media(prefers-reduced-motion:reduce){.hero .hero-light-sweep::before{animation:none!important;display:none!important}}/* Four main inner-page heroes: restrained sequential text entrance.
   Background images remain untouched. Category strip excluded. */


.page-hero.hero-image-about .page-heading > *,.page-hero.hero-image-portfolio:not(.portfolio-category-hero) .page-heading > *,.page-hero.hero-image-news .page-heading > *,.page-hero.hero-image-contact .page-heading > *{
  animation: ximageInnerTextEnter .85s cubic-bezier(.2,.7,.2,1) both;
}
.page-hero .page-heading > .eyebrow {animation-delay:.12s !important;}
.page-hero .page-heading > h1 {animation-delay:.28s !important;}
.page-hero .page-heading > p {animation-delay:.45s !important;}
@keyframes ximageInnerTextEnter {
  from {opacity:0; transform:translateY(13px); filter:blur(2px);}
  to {opacity:1; transform:translateY(0); filter:blur(0);}
}/* A thin, subtle light accent on the headline, without altering the photo. */

.page-hero.hero-image-about .page-heading h1,.page-hero.hero-image-portfolio:not(.portfolio-category-hero) .page-heading h1,.page-hero.hero-image-news .page-heading h1,.page-hero.hero-image-contact .page-heading h1{text-shadow:0 0 18px rgba(255,255,255,.14);}
@media (prefers-reduced-motion:reduce) {
 .page-hero.hero-image-about .page-heading > *,.page-hero.hero-image-portfolio:not(.portfolio-category-hero) .page-heading > *,.page-hero.hero-image-news .page-heading > *,.page-hero.hero-image-contact .page-heading > *{animation:none!important;}}/* X-IMAGE main-page transition: light veil, preserves original hero imagery */


body { transition: opacity .30s ease, filter .30s ease; }
body.xi-page-leaving { opacity: .12; filter: blur(2px); pointer-events: none; }
@media (prefers-reduced-motion: reduce) { body,body.xi-page-leaving{ transition: none !important; filter: none !important; }}/* Portfolio page only: reduce top whitespace by about half. */


body:has(#portfolio-hero) .page-content{padding-top:34px;}
@media(max-width:680px){body:has(#portfolio-hero) .page-content{padding-top:23px;}}/* 最新消息：僅限 news.html 的文章樣式，其他頁面不受影響 */


.xnews-page .content-narrow{max-width:1000px}.xnews-list{display:grid;gap:16px}.xnews-card{background:#fff;border:1px solid #e0e5ec;border-radius:12px;padding:26px 30px;box-shadow:0 8px 26px rgba(25,35,60,.035);transition:border-color .2s,box-shadow .2s}.xnews-card:hover{border-color:#c4b2dd;box-shadow:0 12px 30px rgba(42,27,69,.075)}.xnews-meta{display:flex;align-items:center;gap:15px;color:#7d8795;font-size:12px}.xnews-card h2{font-size:clamp(18px,2.3vw,23px);line-height:1.5;margin:10px 0 8px;color:#293445}.xnews-card .xnews-summary{font-size:14px;color:#667282;margin:0 0 12px}.xnews-body{margin-top:12px;padding-top:15px;border-top:1px solid #e9e6ef}.xnews-body p{font-size:15px;line-height:1.95;color:#4f5b6a;margin:0 0 13px}.xnews-body p:last-child{margin-bottom:0}@media(max-width:680px){.xnews-card{padding:20px}.xnews-page .content-narrow{padding:0 18px}}/* 2026-10-26: Portfolio categories stay below the sticky site header.
   Scoped to portfolio page only; no changes to card or lightbox behavior. */


body:has(.portfolio-filters) .portfolio-filters {
  position: sticky;
  top: 94px;
  z-index: 40;
  padding: 12px 14px;
  margin: -12px -14px 22px;
  background: rgba(255,255,255,.97);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(28,43,61,.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
@media (max-width: 900px) and (min-width: 681px) {
  body:has(.portfolio-filters) .portfolio-filters { top: 84px; }}
@media (max-width: 680px) {
  body:has(.portfolio-filters) .portfolio-filters {
    top: 74px;
    padding: 9px 10px;
    margin: -9px -10px 16px;
    gap: 6px;
    border-radius: 7px;
  }
  body:has(.portfolio-filters) .filter-button { padding: 7px 10px; font-size: .82rem; }}/* 2026-10-26-002: Compact portfolio-only breadcrumb/category strip and sticky filters.
   Preserve existing navigation, work cards, filtering and lightbox behavior. */


body:has(.portfolio-filters) .page-content { padding-top: 30px; }
body:has(.portfolio-filters) .page-hero.hero-image-portfolio.portfolio-category-hero {
  height: 52px !important; min-height: 52px !important;
}
body:has(.portfolio-filters) .page-hero.portfolio-category-hero .page-heading h1 {
  font-size: 20px !important;
}
body:has(.portfolio-filters) .page-hero.portfolio-category-hero .portfolio-breadcrumb {
  padding: 3px 8px !important; font-size: 11px !important;
}
body:has(.portfolio-filters) .page-hero.portfolio-category-hero .portfolio-breadcrumb [aria-current=page] {
  padding: 2px 8px !important;
}
body:has(.portfolio-filters) .portfolio-filters {
  gap: 6px; padding: 7px 9px; margin: -7px -9px 14px;
  top: 82px; border-radius: 7px;
}
body:has(.portfolio-filters) .filter-button {
  padding: 5px 10px; font-size: 13px; line-height: 1.45;
  white-space: nowrap;
}
@media (max-width: 900px) and (min-width: 681px) {
  body:has(.portfolio-filters) .portfolio-filters { top: 82px; }}
@media (max-width: 680px) {
  body:has(.portfolio-filters) .page-content { padding-top: 18px; }
  body:has(.portfolio-filters) .page-hero.hero-image-portfolio.portfolio-category-hero {
    height: 56px !important; min-height: 56px !important;
  }
  body:has(.portfolio-filters) .page-hero.portfolio-category-hero .page-heading {
    transform: translateY(-6px);
  }
  body:has(.portfolio-filters) .page-hero.portfolio-category-hero .portfolio-breadcrumb {
    bottom: 1px !important; font-size: 9px !important;
  }
  body:has(.portfolio-filters) .portfolio-filters {
    top: 72px; padding: 6px 7px; margin: -6px -7px 12px; gap: 5px;
  }
  body:has(.portfolio-filters) .filter-button {
    padding: 4px 8px; font-size: 12px; line-height: 1.35;
  }}/* 2026-10-26-003: Correct sticky category offset to match actual header height.
   Reduce initial whitespace below hero, without altering global layout. */


body:has(.portfolio-filters) .page-content { padding-top: 12px; }
body:has(.portfolio-filters) .portfolio-filters { top: 94px; }
@media (max-width: 900px) and (min-width: 681px) {
  body:has(.portfolio-filters) .portfolio-filters { top: 84px; }}
@media (max-width: 680px) {
  body:has(.portfolio-filters) .page-content { padding-top: 10px; }
  body:has(.portfolio-filters) .portfolio-filters { top: 74px; }}/* 2026-10-26-004: portfolio only: reduce header height and whitespace above category controls. */


body:has(.portfolio-filters) .site-header {height:82px;}
body:has(.portfolio-filters) .page-content {padding-top:5px;}
body:has(.portfolio-filters) .portfolio-filters {top:82px; padding-top:5px; padding-bottom:5px; margin-bottom:10px;}
@media (max-width:900px) and (min-width:681px) {
  body:has(.portfolio-filters) .site-header {height:76px;}
  body:has(.portfolio-filters) .portfolio-filters {top:76px;}}
@media (max-width:680px) {
  body:has(.portfolio-filters) .site-header {height:68px;}
  body:has(.portfolio-filters) .nav-links {top:67px;}
  body:has(.portfolio-filters) .page-content {padding-top:5px;}
  body:has(.portfolio-filters) .portfolio-filters {top:68px; padding-top:5px; padding-bottom:5px; margin-bottom:10px;}}/* 2026-10-26-006: Fix category bar overlapping the portfolio hero.
   Never pull the content section upward with a negative margin. */


body:has(.portfolio-filters) #portfolio-hero {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
body:has(.portfolio-filters) #portfolio-hero + .page-content {
  margin-top: 0 !important;
  padding-top: 8px !important;
}
body:has(.portfolio-filters) .portfolio-filters {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}
@media (max-width:680px) {
  body:has(.portfolio-filters) #portfolio-hero + .page-content {
    padding-top: 6px !important;
  }}/* 007: 統一作品卡片圖片區高度；單圖與雙圖並排相同。 */



body.portfolio-page .work-images,body .work-grid .work-images{
  height: 290px;
  min-height: 0;
}
body .work-grid .work-images .work-image {
  height: 100%;
  min-height: 0;
}
body .work-grid .work-images .work-image img,body .work-grid .work-images.multi .work-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 900px) {
  body .work-grid .work-images { height: 240px; }}
@media (max-width: 560px) {
  body .work-grid .work-images { height: 260px; }}/* 008：首頁與關於我們右側形象情境圖，保留原有版型及文字。 */



.visual-panel.xi-studio-photo {
  background-image: url('../assets/img/site/studio-scene.webp') !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
.visual-panel.xi-studio-photo::before { content: none !important; }
.visual-panel.xi-studio-photo .visual-label { z-index: 1; }/* 009：依客戶 PDF 原始向量更換全站頁首及頁尾 LOGO。 */



.site-header .brand-lockup,.site-footer .brand-lockup{ gap:0 !important; }
.site-header .brand-logo { width:245px !important; height:auto !important; max-width:46vw !important; max-height:64px !important; flex-basis:auto !important; }
.site-footer .brand-logo { width:225px !important; height:auto !important; max-height:60px !important; flex-basis:auto !important; }
@media (max-width:600px) {
  .site-header .brand-logo { width:185px !important; max-width:52vw !important; }
  .site-footer .brand-logo { width:180px !important; }}/* 011：頁尾 LOGO 恢復使用與頁首相同的原始藍灰色向量色彩。 */


.site-footer .footer-brand .brand-logo { filter: none !important; opacity: 1 !important; }/* 013 — approved home collaboration photo; keep about-page studio photo. */



body.xi-home-page .visual-panel.xi-home-photo {
  background-image:url('../assets/img/site/home-collaboration.webp') !important;
  background-size:cover !important;
  background-position:53% center !important;
}
body.xi-home-page .visual-panel.xi-home-photo::before {content:none !important;}/* Desktop portfolio four columns; responsive on tablets and phones. */

body.portfolio-page .work-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;}
body.portfolio-page .work-grid .work-images {height:225px;}
body.portfolio-page .work-card .work-info {padding:15px;}
@media(max-width:1100px){
 body.portfolio-page .work-grid {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:800px){
 body.portfolio-page .work-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 body.portfolio-page .work-grid .work-images {height:215px;}}
@media(max-width:560px){
 body.portfolio-page .work-grid {grid-template-columns:1fr;}
 body.portfolio-page .work-grid .work-images {height:260px;}}/* 014: Homepage editorial flow — featured work, services, news. */



.xi-showcase-section{background:#fff;padding:65px 0 70px}
.xi-news-section{background:#f5f8fb;padding:60px 0 70px}
.xi-section-row{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:27px}
.xi-section-row h2{font-size:clamp(27px,3vw,38px);margin:6px 0 8px;color:#293c53}
.xi-section-row p{margin:0;color:#73849a}
.xi-section-more{color:#526b86;font-weight:700;white-space:nowrap;text-decoration:none}
.xi-section-more:hover{text-decoration:underline}
.xi-showcase-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.xi-showcase-card{display:block;overflow:hidden;border:1px solid #e1e8f0;border-radius:13px;text-decoration:none;background:#fff;color:#293c53;transition:transform .2s,box-shadow .2s}
.xi-showcase-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(39,60,80,.10)}
.xi-showcase-card img{width:100%;height:178px;display:block;object-fit:cover}
.xi-showcase-info{padding:13px 15px 16px;display:flex;flex-direction:column;gap:5px}
.xi-showcase-info small{color:#7086a0;font-size:13px}
.xi-showcase-info strong{font-size:16px;line-height:1.5}
.xi-news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.xi-news-card{display:flex;flex-direction:column;min-height:176px;padding:23px;border:1px solid #e1e8f0;border-radius:14px;background:#fff;text-decoration:none;color:#293c53}
.xi-news-card time{font-size:13px;color:#71879c}
.xi-news-card h3{font-size:18px;line-height:1.55;margin:14px 0 18px}
.xi-news-arrow{margin-top:auto;color:#526b86;font-size:14px;font-weight:700}
@media(max-width:1000px){.xi-showcase-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.xi-showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.xi-news-grid{grid-template-columns:1fr}.xi-news-card{min-height:130px}.xi-section-row{align-items:start}}
@media(max-width:480px){.xi-showcase-grid{gap:10px}.xi-showcase-card img{height:135px}.xi-showcase-info{padding:10px}.xi-showcase-info strong{font-size:14px}.xi-section-row{flex-direction:column;gap:12px}}/* 015 — 右下角重要消息輪播；不改原有主圖文字或網站功能 */


.xi-hero-news{position:absolute;right:max(26px,calc((100vw - var(--max))/2 + 24px));bottom:25px;z-index:5;width:min(390px,36vw);background:rgba(255,255,255,.95);border:1px solid rgba(120,146,170,.24);box-shadow:0 15px 40px rgba(41,64,84,.14);border-radius:12px;padding:15px 18px 12px;backdrop-filter:blur(10px)}
.xi-hero-news-top,.xi-hero-news-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}
.xi-hero-news-label{font-weight:800;color:#526b86;font-size:13px;letter-spacing:.5px}
.xi-news-dot{display:inline-block;width:7px;height:7px;background:#6f8ea7;border-radius:50%;margin-right:5px;vertical-align:middle}
.xi-hero-news-counter{font-size:12px;color:#8595a3;font-variant-numeric:tabular-nums}
.xi-hero-news-items{position:relative;min-height:80px;margin:8px 0 7px}
.xi-hero-news-item{display:none;flex-direction:column;gap:6px;text-decoration:none;color:#2e4154;line-height:1.45}
.xi-hero-news-item.active{display:flex;animation:xiNewsIn .25s ease}
.xi-hero-news-item time{font-size:12px;color:#8494a4}
.xi-hero-news-item strong{font-size:15px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.xi-hero-news-item:hover strong{color:#526b86}
.xi-hero-news-bottom{border-top:1px solid #e8edf1;padding-top:10px}
.xi-hero-news-bottom>a{font-size:12px;color:#526b86;text-decoration:none}
.xi-hero-news-dots{display:flex;gap:8px;align-items:center}
.xi-hero-news-dots button{border:0;background:#c5d1dc;width:8px;height:8px;border-radius:50%;padding:0;cursor:pointer}
.xi-hero-news-dots button.active{background:#526b86;width:19px;border-radius:8px}
@keyframes xiNewsIn{from{opacity:.4}to{opacity:1}}
@media(max-width:1050px){.xi-hero-news{right:18px;bottom:15px;width:min(345px,39vw)}.xi-hero-news-item strong{font-size:14px}}
@media(max-width:760px){.xi-hero-news{position:relative;right:auto;bottom:auto;width:auto;margin:4px 18px 15px;box-sizing:border-box;box-shadow:0 8px 22px rgba(41,64,84,.09)}.xi-hero-news-items{min-height:73px}}
@media(prefers-reduced-motion:reduce){.xi-hero-news-item.active{animation:none}}/* 017: eight selected homepage works; 4 columns desktop, 2 rows */


@media(min-width:1001px){.xi-showcase-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}/* 018 — compact important-news ticker in the hero; preserve original 3 messages. */


.xi-hero-news{display:flex!important;align-items:center!important;gap:12px!important;right:max(26px,calc((100vw - var(--max))/2 + 24px))!important;bottom:20px!important;width:min(580px,53vw)!important;min-height:44px!important;padding:5px 12px!important;border-radius:8px!important;box-sizing:border-box!important;background:rgba(255,255,255,.93)!important;box-shadow:0 5px 20px rgba(41,64,84,.12)!important}
.xi-hero-news-top{flex:none!important;gap:9px!important}
.xi-hero-news-label{white-space:nowrap;font-size:12px!important}
.xi-hero-news-counter{display:none!important}
.xi-hero-news-items{min-height:0!important;margin:0!important;flex:1!important;min-width:0!important;align-self:center!important}
.xi-hero-news-item{flex-direction:row!important;align-items:center!important;min-width:0!important;gap:0!important}
.xi-hero-news-item time{display:none!important}
.xi-hero-news-item strong{font-size:13px!important;line-height:1.5!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important;-webkit-line-clamp:unset!important}
.xi-hero-news-bottom{border:0!important;padding:0!important;flex:none!important;gap:0!important}
.xi-hero-news-bottom>a{display:none!important}
.xi-hero-news-dots{gap:5px!important}
.xi-hero-news-dots button{height:6px!important;width:6px!important}
.xi-hero-news-dots button.active{width:13px!important}
.xi-recent-section{background:#f7f9fb;padding:46px 0 58px}
.xi-recent-grid .xi-showcase-card img{height:150px;object-fit:contain;background:#fff}
.xi-recent-grid .xi-showcase-info{padding:11px 13px 13px}
@media(max-width:760px){
.xi-hero-news{position:relative!important;right:auto!important;bottom:auto!important;width:auto!important;margin:5px 18px 15px!important;min-height:44px!important}
.xi-recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){.xi-hero-news{gap:7px!important;padding:6px 9px!important}.xi-hero-news-label{font-size:11px!important}.xi-hero-news-item strong{font-size:12px!important}.xi-recent-grid .xi-showcase-card img{height:120px}}/* 019: Deep links to exact portfolio cards from homepage */



.work-card.xi-target-work {outline:3px solid #819eb9;outline-offset:5px;box-shadow:0 0 0 9px rgba(129,158,185,.15);border-radius:10px;transition:outline-color .4s,box-shadow .4s}
.work-card[id^="work-"]{scroll-margin-top:165px}/* 020 — ticker below hero: never overlays brand name or hero content. */


.xi-hero-news.xi-hero-news-below{
 position:relative!important;inset:auto!important;right:auto!important;bottom:auto!important;
 width:min(580px,calc(100% - 36px))!important;
 margin:12px max(18px,calc((100vw - var(--max))/2 + 24px)) 18px auto!important;
 min-height:44px!important;z-index:1!important;
}
@media(max-width:760px){.xi-hero-news.xi-hero-news-below{width:calc(100% - 36px)!important;margin:10px 18px 18px!important}}/* 021: align the important-news ticker to the left, below the brand-name area */


@media(min-width:761px){.xi-hero-news.xi-hero-news-below{margin-left:max(24px,calc((100vw - var(--max))/2 + 24px))!important;margin-right:auto!important;width:min(580px,calc(100vw - 48px))!important;}}/* 022: ticker anchored at the bottom-right INSIDE hero as in approved screenshot. */


.hero{position:relative}
.hero .xi-hero-news{
 position:absolute!important;left:auto!important;
 right:clamp(20px,7.2vw,110px)!important;
 bottom:6px!important;top:auto!important;
 margin:0!important;
 width:min(600px,55%)!important;
 min-height:44px!important;
 z-index:3!important;
}
@media(max-width:760px){
 .hero .xi-hero-news{
  position:relative!important;inset:auto!important;
  width:calc(100% - 36px)!important;
  margin:18px 18px 12px!important;
 }}/* 024 — Consistent header-to-banner spacing, matching the portfolio page. */


.site-header{height:74px!important;margin-bottom:0!important;padding-bottom:0!important}
.site-header + main{margin-top:0!important;padding-top:0!important}
.site-header + main > .page-hero:first-child,.site-header + main > .hero:first-child{margin-top:0!important}/* Keep existing approved homepage hero image; emphasize its existing light. */

.hero .hero-light-sweep{z-index:1!important;opacity:1!important}
.hero .hero-light-sweep::before{
 display:block!important;animation:ximageSoftShine 7s ease-in-out 1.7s infinite!important;
 background:linear-gradient(90deg,transparent 0%,rgba(225,240,255,.04) 17%,rgba(234,246,255,.22) 42%,rgba(255,255,255,.48) 51%,rgba(225,240,255,.2) 62%,transparent 100%)!important;
 filter:blur(13px)!important;
}/* Translucent white news ticker, no position or size changes. */

.hero .xi-hero-news{background:rgba(255,255,255,.80)!important;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
@media(prefers-reduced-motion:reduce){.hero .hero-light-sweep::before{animation:none!important;display:none!important}}/* 026 — Portfolio sticky category menu: opaque white, short fade only beneath it.
   Keep artwork, filters and card layout unchanged. */


body:has(.portfolio-filters) .portfolio-filters {
  background:#fff !important;
  -webkit-backdrop-filter:none !important;
  backdrop-filter:none !important;
  isolation:isolate;
}/* Fill the narrow area between sticky header and category bar with solid white. */

body:has(.portfolio-filters) .portfolio-filters::before {
  content:"";
  position:absolute;
  left:-14px;right:-14px;top:-26px;height:27px;
  background:#fff;
  pointer-events:none;
  z-index:-1;
}/* A compact 16px fade starts immediately below the category menu. */

body:has(.portfolio-filters) .portfolio-filters::after {
  content:"";
  position:absolute;
  left:0;right:0;top:100%;height:16px;
  background:linear-gradient(to bottom,#fff 0%,rgba(255,255,255,.80) 35%,rgba(255,255,255,0) 100%);
  pointer-events:none;
}
@media(max-width:680px){
  body:has(.portfolio-filters) .portfolio-filters::before{top:-18px;height:19px}
  body:has(.portfolio-filters) .portfolio-filters::after{height:12px}}/* 027: Keep the complete portfolio banner visible. The fade finishes exactly
   at the TOP of the category menu, never covering the banner with a white strip. */


body.portfolio-page .portfolio-filters::before{content:none!important;display:none!important}
body.portfolio-page .portfolio-filters::after{
 content:""!important;display:block!important;position:absolute!important;
 left:0!important;right:0!important;top:-12px!important;height:12px!important;
 background:linear-gradient(to bottom,rgba(255,255,255,0),#fff)!important;
 pointer-events:none!important;z-index:0!important;
}
body.portfolio-page .portfolio-filters{background:#fff!important;isolation:auto!important}
@media(max-width:680px){body.portfolio-page .portfolio-filters::after{top:-9px!important;height:9px!important}}/* 028 — Correct fade endpoint: exactly the BOTTOM of the nine category filters.
   No fade overlay extends into the cards; do not cover the portfolio hero. */


body.portfolio-page .portfolio-filters {
  background:#fff!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  isolation:auto!important;
}
body.portfolio-page .portfolio-filters::before,body.portfolio-page .portfolio-filters::after{
  content:none!important;
  display:none!important;
}/* The opaque category bar is the end of the fade; artwork below stays fully crisp. *//* 029 — The fade is INSIDE the nine-filter bar, ending at its BOTTOM edge.
   No pseudo-element extends above the bar into the portfolio banner, or below
   the bar into the artwork.  Keep filter controls sharp and fully opaque. */



body.portfolio-page .portfolio-filters {
  background:linear-gradient(to bottom,
    rgba(255,255,255,.18) 0%,
    rgba(255,255,255,.56) 35%,
    rgba(255,255,255,.91) 72%,
    #fff 100%) !important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  isolation:isolate!important;
}
body.portfolio-page .portfolio-filters::before,body.portfolio-page .portfolio-filters::after{
  content:none!important;
  display:none!important;
}
body.portfolio-page .portfolio-filters .filter-button {
  position:relative;
  z-index:1;
}/* 030 — Opaque category bar; ONLY BELOW the bar, fade white 100% to 0%.
   Never show underlying work images THROUGH the nine-filter bar. */


body.portfolio-page .portfolio-filters{
  position:sticky!important;
  background:#fff!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  isolation:isolate!important;
}
body.portfolio-page .portfolio-filters::before{
  content:none!important;
  display:none!important;
}
body.portfolio-page .portfolio-filters::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  top:100%!important;
  bottom:auto!important;
  left:0!important;
  right:0!important;
  height:18px!important;
  background:linear-gradient(to bottom,rgba(255,255,255,1) 0%,rgba(255,255,255,.7) 38%,rgba(255,255,255,0) 100%)!important;
  pointer-events:none!important;
  z-index:0!important;
}
@media(max-width:680px){
 body.portfolio-page .portfolio-filters::after{height:12px!important}}/* 031 — Screenshot correction: no gallery visible in the red-line gap.
   The white sticky filter bar touches the bottom of the white 74px header.
   Keep only a restrained soft shadow beneath the bar. */


body.portfolio-page .site-header {
  background:#fff!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body.portfolio-page .portfolio-filters {
  top:74px!important;
  background:#fff!important;
  border-radius:0 0 9px 9px!important;
  box-shadow:0 7px 13px rgba(35,52,73,.09)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
body.portfolio-page .portfolio-filters::before {
  content:none!important;display:none!important;
}
body.portfolio-page .portfolio-filters::after {
  content:""!important;display:block!important;
  position:absolute!important;left:0!important;right:0!important;
  top:100%!important;bottom:auto!important;height:10px!important;
  background:linear-gradient(to bottom,rgba(35,52,73,.065),rgba(35,52,73,0))!important;
  pointer-events:none!important;
}
@media(max-width:680px){
 body.portfolio-page .portfolio-filters::after{height:7px!important}}/* 034: More breathing room between sticky portfolio filters and works. */


body.portfolio-page .portfolio-filters,body:has(.portfolio-filters) .portfolio-filters{ margin-bottom:26px!important; }
@media(max-width:680px){body.portfolio-page .portfolio-filters,body:has(.portfolio-filters) .portfolio-filters{margin-bottom:20px!important}}/* Latest works thumbnails must match featured works in size and cropping. */

.xi-recent-grid .xi-showcase-card img{height:178px!important;object-fit:cover!important;background:transparent!important}
.xi-recent-grid .xi-showcase-info{padding:13px 15px 16px!important}
@media(max-width:480px){.xi-recent-grid .xi-showcase-card img{height:135px!important}.xi-recent-grid .xi-showcase-info{padding:10px!important}}/* 035: Category navigation inside portfolio lightbox */


.gallery-category-tabs{
 display:flex;align-items:center;gap:7px;flex-wrap:nowrap;
 overflow-x:auto;overscroll-behavior-x:contain;
 padding:5px 6px 9px;scrollbar-width:thin;max-width:100%;
}
.gallery-category-tab{
 flex:0 0 auto;white-space:nowrap;cursor:pointer;
 border:1px solid rgba(223,233,244,.45);border-radius:22px;
 background:rgba(255,255,255,.12);color:#f4f7fc;
 padding:7px 12px;font:inherit;font-size:13px;line-height:1.3;
}
.gallery-category-tab:hover,.gallery-category-tab:focus-visible{
 background:rgba(255,255,255,.24);outline-offset:2px;
}
.gallery-category-tab.active{
 background:#fff;color:#3f5d7a;border-color:#fff;font-weight:700;
}
.gallery-dialog{min-width:0;}
@media(max-width:680px){
 .gallery-category-tabs{padding:4px 2px 8px;gap:5px;}
 .gallery-category-tab{font-size:12px;padding:6px 10px;}
 .gallery-dialog{max-height:calc(100dvh - 14px);}
 .gallery-image-stage img{max-height:calc(100dvh - 220px);}}/* 036: lightbox category navigation — compact, centered, never clipped */


.gallery-modal{overflow-y:auto!important;overscroll-behavior:contain;align-items:center!important}
.gallery-dialog{
  grid-template-rows:auto minmax(0,1fr) auto!important;
  gap:9px!important;
  max-height:calc(100dvh - 40px)!important;
  min-height:0!important;
  margin:0 auto!important;
}
.gallery-category-tabs{
  width:100%!important;max-width:100%!important;min-height:35px!important;
  display:flex!important;justify-content:center!important;align-items:center!important;
  flex-wrap:wrap!important;overflow:visible!important;
  gap:5px 8px!important;padding:0 62px 4px!important;
  box-sizing:border-box!important;
}
.gallery-category-tab{
  border:0!important;border-radius:4px!important;
  padding:5px 8px!important;font-size:12px!important;font-weight:400!important;
  color:rgba(241,245,250,.68)!important;background:transparent!important;
  box-shadow:none!important;letter-spacing:0!important;
  transition:color .15s ease,background .15s ease!important;
}
.gallery-category-tab:hover,.gallery-category-tab:focus-visible{
  color:#fff!important;background:rgba(255,255,255,.09)!important;
}
.gallery-category-tab.active{
  color:#fff!important;background:rgba(255,255,255,.13)!important;
  font-weight:600!important;
}
.gallery-image-stage{min-height:0!important;overflow:visible!important;}
.gallery-image-stage img{max-height:calc(100dvh - 195px)!important;}
@media(max-width:680px){
 .gallery-modal{padding:10px!important;}
 .gallery-dialog{max-height:calc(100dvh - 20px)!important;gap:7px!important;}
 .gallery-category-tabs{justify-content:center!important;padding:0 2px 5px!important;gap:3px 5px!important;}
 .gallery-category-tab{font-size:11px!important;padding:4px 6px!important;}
 .gallery-image-stage img{max-height:calc(100dvh - 230px)!important;}}/* 037: thumbnail browser on category selection */


.gallery-thumbnails[hidden],.gallery-image-stage[hidden],.gallery-caption[hidden]{display:none!important}
.gallery-modal.is-thumbnail-view .gallery-dialog{grid-template-rows:auto minmax(0,1fr)!important}
.gallery-thumbnails{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;
 overflow-y:auto;align-content:start;min-height:0;width:100%;
 padding:12px 10px 24px;
}
.gallery-thumb{
 appearance:none;border:1px solid rgba(255,255,255,.13);
 border-radius:10px;background:rgba(255,255,255,.07);
 color:#f3f5f8;overflow:hidden;cursor:pointer;text-align:left;padding:0;
}
.gallery-thumb img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.gallery-thumb span{display:block;padding:10px 11px;font-size:13px;line-height:1.4}
.gallery-thumb:hover,.gallery-thumb:focus-visible{border-color:rgba(255,255,255,.65);background:rgba(255,255,255,.13)}/* Keep navigation arrows vertically centered in the viewport */

.gallery-modal:not(.is-thumbnail-view) .gallery-prev,.gallery-modal:not(.is-thumbnail-view) .gallery-next{
 position:fixed!important;top:50%!important;bottom:auto!important;
 transform:translateY(-50%)!important;z-index:12!important;
}
.gallery-modal:not(.is-thumbnail-view) .gallery-prev{left:clamp(10px,4vw,72px)!important}
.gallery-modal:not(.is-thumbnail-view) .gallery-next{right:clamp(10px,4vw,72px)!important}
@media(max-width:750px){
 .gallery-thumbnails{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:7px 3px 15px}
 .gallery-thumb span{font-size:12px;padding:7px}
 .gallery-modal:not(.is-thumbnail-view) .gallery-prev{left:5px!important}
 .gallery-modal:not(.is-thumbnail-view) .gallery-next{right:5px!important}}/* 038: Fixed gallery shell and stable thumbnail pages */


.gallery-modal.is-open{align-items:flex-start!important;justify-content:center!important;overflow:hidden!important;padding:clamp(12px,3vh,26px) 14px!important}
.gallery-modal .gallery-dialog{
 height:calc(100dvh - clamp(24px,6vh,52px))!important;
 max-height:calc(100dvh - clamp(24px,6vh,52px))!important;
 width:min(1240px,100%)!important;
 margin:0 auto!important;
 display:grid!important;grid-template-rows:48px minmax(0,1fr) auto!important;
 gap:8px!important;overflow:hidden!important;
}
.gallery-modal .gallery-category-tabs{
 grid-row:1!important;align-self:start!important;align-content:center!important;
 width:100%!important;min-height:48px!important;max-height:48px!important;
 flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;
 justify-content:center!important;padding:4px 8px!important;box-sizing:border-box!important;
}
.gallery-thumbnail-view[hidden],.gallery-image-stage[hidden],.gallery-caption[hidden]{display:none!important}
.gallery-modal.is-thumbnail-view .gallery-dialog{grid-template-rows:48px minmax(0,1fr)!important}
.gallery-thumbnail-view{
 display:flex;flex-direction:column;min-height:0;min-width:0;
 width:100%;height:100%;overflow:hidden;
}
.gallery-thumbnail-view .gallery-thumbnails{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 grid-template-rows:repeat(2,minmax(0,1fr))!important;
 flex:1 1 auto;min-height:0;overflow:hidden!important;
 gap:12px!important;padding:5px 12px 10px!important;align-content:stretch!important;
}
.gallery-thumbnail-view .gallery-thumb{
 min-height:0;min-width:0;display:flex;flex-direction:column;
 border:1px solid rgba(255,255,255,.15)!important;border-radius:9px!important;
 overflow:hidden;background:rgba(255,255,255,.045)!important;
 transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease!important;
}
.gallery-thumbnail-view .gallery-thumb-frame{
 flex:1 1 auto;display:flex;align-items:center;justify-content:center;
 min-height:0;overflow:hidden;background:rgba(0,0,0,.13);
}
.gallery-thumbnail-view .gallery-thumb-frame img{
 display:block!important;width:100%!important;height:100%!important;
 max-height:100%!important;object-fit:contain!important;aspect-ratio:auto!important;
 transition:transform .2s ease!important;
}
.gallery-thumbnail-view .gallery-thumb-title{
 flex:0 0 auto;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
 padding:9px 10px!important;font-size:13px;line-height:1.35;
}
.gallery-thumbnail-view .gallery-thumb:hover,.gallery-thumbnail-view .gallery-thumb:focus-visible{
 transform:translateY(-3px)!important;border-color:rgba(220,235,255,.75)!important;
 background:rgba(255,255,255,.12)!important;
 box-shadow:0 10px 24px rgba(0,0,0,.25)!important;
}
.gallery-thumbnail-view .gallery-thumb:hover img,.gallery-thumbnail-view .gallery-thumb:focus-visible img{transform:scale(1.035)!important}
.gallery-thumb-pagination{
 flex:0 0 43px;display:flex;align-items:center;justify-content:center;gap:7px;
 padding:5px 0 7px;
}
.gallery-page-button{
 cursor:pointer;border:1px solid rgba(255,255,255,.22);background:transparent;
 color:#e8edf4;border-radius:6px;min-width:31px;height:30px;font-size:13px;
}
.gallery-page-button.active{background:#e9f0f7;color:#344d68;font-weight:700}
.gallery-page-button:hover:not(:disabled){background:rgba(255,255,255,.18)}
.gallery-page-button:disabled{opacity:.3;cursor:default}
@media(min-width:681px) and (max-width:1050px){
 .gallery-thumbnail-view .gallery-thumbnails{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:680px){
 .gallery-modal.is-open{padding:8px!important}
 .gallery-modal .gallery-dialog{
  height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;
  grid-template-rows:43px minmax(0,1fr) auto!important;
 }
 .gallery-modal.is-thumbnail-view .gallery-dialog{grid-template-rows:43px minmax(0,1fr)!important}
 .gallery-modal .gallery-category-tabs{
  min-height:43px!important;max-height:43px!important;
  justify-content:flex-start!important;flex-wrap:nowrap!important;
 }
 .gallery-thumbnail-view .gallery-thumbnails{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:8px!important;padding:5px 3px 8px!important;
 }
 .gallery-thumbnail-view .gallery-thumb-title{font-size:11px;padding:7px!important}
 .gallery-thumb-pagination{gap:4px}}
@media(prefers-reduced-motion:reduce){
 .gallery-thumbnail-view .gallery-thumb,.gallery-thumbnail-view .gallery-thumb img{transition:none!important}}/* 039: fill thumbnail frames; keep exit control available; animate pagination */


.gallery-modal .gallery-dialog{position:relative!important}
.gallery-modal .gallery-top-actions{
 position:absolute!important;right:2px!important;top:52px!important;
 z-index:40!important;display:flex!important;pointer-events:auto!important;
}
.gallery-modal.is-thumbnail-view .gallery-top-actions{top:54px!important}
.gallery-modal .gallery-top-actions .gallery-control{
 position:static!important;display:inline-flex!important;
 align-items:center!important;justify-content:center!important;
 visibility:visible!important;opacity:1!important;
}
.gallery-thumbnail-view .gallery-thumb-frame img{
 width:100%!important;height:100%!important;
 object-fit:cover!important;object-position:center!important;
}
.gallery-thumbnail-view .gallery-thumb-frame{
 width:100%!important;overflow:hidden!important;
}
.gallery-thumbnail-view .gallery-thumb-frame img{
 transition:transform .23s ease,filter .23s ease!important;
}
.gallery-thumbnail-view .gallery-thumb:hover img{
 transform:scale(1.045)!important;filter:brightness(1.06)!important;
}
.gallery-thumbnail-view .gallery-thumbnails.gallery-page-enter .gallery-thumb{
 animation:xiGalleryPageEnter .24s ease-out both;
}
@keyframes xiGalleryPageEnter{
 from{opacity:.35;transform:translateY(9px)}
 to{opacity:1;transform:translateY(0)}
}
.gallery-page-button{transition:background .15s ease,transform .15s ease,color .15s ease}
.gallery-page-button:hover:not(:disabled){transform:translateY(-2px)}
@media(max-width:680px){
 .gallery-modal .gallery-top-actions,.gallery-modal.is-thumbnail-view .gallery-top-actions{
  top:47px!important;right:2px!important;gap:4px!important;
 }
 .gallery-modal .gallery-top-actions .gallery-control{width:34px!important;height:34px!important}}
@media(prefers-reduced-motion:reduce){
 .gallery-thumbnail-view .gallery-thumbnails.gallery-page-enter .gallery-thumb{animation:none!important}}/* 044 — clean, scoped lightbox layout rebuilt from original 039 assets */


.gallery-modal.is-open{padding:12px 16px!important;overflow:hidden!important}
.gallery-modal .gallery-dialog{width:min(1540px,100%)!important;height:calc(100dvh - 24px)!important;max-height:calc(100dvh - 24px)!important;grid-template-rows:54px minmax(0,1fr) auto!important;gap:0!important;overflow:hidden!important}
.gallery-modal .gallery-category-tabs{height:54px!important;min-height:54px!important;max-height:54px!important;padding:4px 118px 4px 70px!important;align-self:center!important;justify-content:center!important}
.gallery-modal .gallery-top-actions,.gallery-modal.is-thumbnail-view .gallery-top-actions{top:4px!important;right:4px!important;z-index:50!important;background:transparent!important}
.gallery-modal .gallery-top-actions .gallery-control{width:43px!important;height:43px!important;background:transparent!important}
.gallery-modal .gallery-image-stage{grid-row:2!important;min-height:0!important;min-width:0!important;height:100%!important;width:100%!important;overflow:hidden!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:5px 78px 12px!important;box-sizing:border-box!important}
.gallery-modal .gallery-image-stage[hidden]{display:none!important}
.gallery-modal .gallery-image-stage img,.gallery-modal:fullscreen .gallery-image-stage img{display:block!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;min-width:0!important;min-height:0!important;object-fit:contain!important;flex-shrink:1!important}
.gallery-modal .gallery-caption{grid-row:3!important;position:relative!important;display:block!important;flex-shrink:0!important;padding:16px 80px 12px!important;min-height:88px!important;box-sizing:border-box!important}
.gallery-modal .gallery-caption[hidden]{display:none!important}
.gallery-modal .gallery-caption h2{margin:0 0 9px!important;line-height:1.35!important;font-size:clamp(19px,2vw,27px)!important}
.gallery-modal .gallery-caption p{line-height:1.5!important;font-size:14px!important}
.gallery-modal.is-thumbnail-view .gallery-dialog{grid-template-rows:54px minmax(0,1fr)!important}
.gallery-modal .gallery-thumbnail-view{grid-row:2!important;min-height:0!important}
.gallery-modal .gallery-thumbnail-view .gallery-thumbnails{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:13px!important;padding:8px 10px!important}
.gallery-modal .gallery-thumbnail-view .gallery-thumb-frame img{width:100%!important;height:100%!important;object-fit:cover!important}
.gallery-modal .gallery-thumbnail-view .gallery-thumb-title{padding:11px 12px!important}
.gallery-modal:fullscreen{padding:12px 16px!important}
@media(max-width:750px){.gallery-modal .gallery-category-tabs{justify-content:flex-start!important;padding:3px 100px 3px 3px!important}.gallery-modal .gallery-image-stage{padding:6px 38px 12px!important}.gallery-modal .gallery-caption{padding:13px 35px!important;min-height:78px!important}.gallery-modal .gallery-thumbnail-view .gallery-thumbnails{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}}/* 045: portfolio thumbnail cards — edge-to-edge image fill, captions below.
   Scoped to thumbnail view only; enlarged artwork is untouched. */


.gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb{
  padding:0!important;display:flex!important;flex-direction:column!important;
  min-width:0!important;min-height:0!important;overflow:hidden!important;
}
.gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb-frame{
  display:block!important;position:relative!important;flex:1 1 0!important;
  min-height:0!important;width:100%!important;padding:0!important;
  overflow:hidden!important;line-height:0!important;
}
.gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb-frame img{
  display:block!important;width:100%!important;height:100%!important;
  min-width:100%!important;min-height:100%!important;
  max-width:none!important;max-height:none!important;
  aspect-ratio:auto!important;object-fit:cover!important;object-position:center!important;
  padding:0!important;margin:0!important;
}
.gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb-title{
  display:block!important;flex:0 0 auto!important;min-height:0!important;
  padding:10px 12px!important;line-height:1.4!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}/* 047: center a two-card category while preserving CSS grid and image heights. */


@media (min-width:751px){
 .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumbnails:has(> .gallery-thumb:nth-child(2):last-child) > .gallery-thumb:first-child{grid-column:2!important;}
}/* Contact form: successful submission confirmation (v002) */


.contact-success[hidden],#contact-php-form[hidden]{display:none!important}
.contact-success{width:100%;min-width:0;padding:clamp(20px,3vw,36px);border:1px solid #dce4eb;border-radius:14px;background:#fff;box-shadow:0 8px 30px rgba(41,66,91,.06);color:#34465b;scroll-margin-top:110px}
.contact-success:focus{outline:none}
.contact-success-heading{display:flex;align-items:center;gap:16px}
.contact-success-check{display:flex;flex:none;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#e5f2eb;color:#278258;font-size:28px;font-weight:700}
.contact-success-heading h2{font-size:clamp(20px,2vw,26px);line-height:1.4;margin:0 0 5px;color:#2c4b69}
.contact-success-heading p{margin:0;color:#66798a}
.contact-success-thanks{margin:22px 0;padding-bottom:20px;border-bottom:1px solid #e4eaf0;line-height:1.85}
.contact-success h3{font-size:17px;color:#34536e;margin:0 0 15px}
.contact-success-details{margin:0;background:#f5f8fa;border:1px solid #e9eef2;border-radius:10px;padding:8px 18px}
.contact-success-row{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;padding:13px 0;border-bottom:1px solid #e0e7ed}
.contact-success-row:last-child{border-bottom:0}
.contact-success-row dt{color:#657a8e;font-weight:600}
.contact-success-row dd{margin:0;color:#34465b;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.contact-success-note{font-size:13px;color:#718194;margin:16px 0 22px}
.contact-success-return{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
@media(max-width:520px){.contact-success-row{grid-template-columns:1fr;gap:3px}.contact-success{padding:20px}.contact-success-details{padding:6px 14px}}/* 048: mobile portfolio gallery: 95vw artwork, separate top actions, 6 thumbnails. */



@media (max-width:680px){
 .gallery-modal.is-open,
 .gallery-modal:fullscreen{padding:0!important;overflow:hidden!important}
 .gallery-modal .gallery-dialog{
  width:100vw!important;max-width:100vw!important;
  height:100dvh!important;max-height:100dvh!important;
  grid-template-rows:62px minmax(0,1fr) auto!important;
  position:relative!important;
 }
 .gallery-modal.is-thumbnail-view .gallery-dialog{
  grid-template-rows:62px minmax(0,1fr)!important;
 }
 .gallery-modal .gallery-category-tabs{
  grid-row:1!important;width:calc(100% - 104px)!important;
  height:62px!important;min-height:62px!important;max-height:62px!important;
  margin:0!important;padding:5px 5px 5px 8px!important;
  justify-content:flex-start!important;overflow-x:auto!important;
  overflow-y:hidden!important;scrollbar-width:thin;
 }
 .gallery-modal .gallery-top-actions,
 .gallery-modal.is-thumbnail-view .gallery-top-actions{
  position:absolute!important;top:8px!important;right:8px!important;
  left:auto!important;bottom:auto!important;z-index:100!important;
  display:flex!important;gap:6px!important;align-items:center!important;
  width:auto!important;transform:none!important;
 }
 .gallery-modal .gallery-top-actions .gallery-control{
  position:static!important;width:42px!important;height:42px!important;
  min-width:42px!important;min-height:42px!important;
  border-radius:50%!important;background:rgba(26,36,48,.92)!important;
  border:1px solid rgba(255,255,255,.45)!important;
  color:#fff!important;opacity:1!important;
 }
 .gallery-modal .gallery-image-stage{
  grid-row:2!important;width:100%!important;height:100%!important;
  padding:4px 2.5vw 10px!important;box-sizing:border-box!important;
  min-width:0!important;overflow:hidden!important;
 }
 .gallery-modal .gallery-image-stage img,
 .gallery-modal:fullscreen .gallery-image-stage img{
  display:block!important;width:auto!important;height:auto!important;
  max-width:95vw!important;max-height:100%!important;
  object-fit:contain!important;
 }
 .gallery-modal:not(.is-thumbnail-view) .gallery-prev,
 .gallery-modal:not(.is-thumbnail-view) .gallery-next{
  position:absolute!important;top:50%!important;z-index:8!important;
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;aspect-ratio:1 / 1!important;border-radius:50%!important;box-sizing:border-box!important;flex:0 0 44px!important;padding:0!important;
  background:rgba(24,33,44,.64)!important;
  border:1px solid rgba(255,255,255,.45)!important;
 }
 .gallery-modal:not(.is-thumbnail-view) .gallery-prev{left:1px!important}
 .gallery-modal:not(.is-thumbnail-view) .gallery-next{right:1px!important}
 .gallery-modal .gallery-caption{
  grid-row:3!important;padding:12px 3vw 16px!important;
  min-height:0!important;max-height:32dvh!important;
  overflow-y:auto!important;
 }
 .gallery-modal .gallery-caption h2{font-size:clamp(17px,4.7vw,23px)!important}
 .gallery-modal .gallery-thumbnail-view .gallery-thumbnails{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-template-rows:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;padding:5px 3vw 8px!important;
  min-height:0!important;
 }
 .gallery-modal .gallery-thumbnail-view .gallery-thumb-title{
  font-size:11px!important;padding:7px 8px!important;
 }
 .gallery-thumb-pagination{flex:0 0 46px!important;gap:6px!important}
}/* 049 / v005: mobile controls have their own row, never covering category tabs. */


@media(max-width:680px){
 .gallery-modal .gallery-dialog{grid-template-rows:54px 56px minmax(0,1fr) auto!important}
 .gallery-modal.is-thumbnail-view .gallery-dialog{grid-template-rows:54px 56px minmax(0,1fr)!important}
 .gallery-modal .gallery-top-actions,.gallery-modal.is-thumbnail-view .gallery-top-actions{
  top:5px!important;right:12px!important;height:44px!important;
 }
 .gallery-modal .gallery-category-tabs{
  grid-row:2!important;width:100%!important;height:56px!important;
  min-height:56px!important;max-height:56px!important;
  padding:5px 12px!important;box-sizing:border-box!important;
 }
 .gallery-modal .gallery-image-stage{grid-row:3!important;position:relative!important}
 .gallery-modal .gallery-thumbnail-view{grid-row:3!important}
 .gallery-modal .gallery-caption{grid-row:4!important}
}
.gallery-modal .gallery-image-stage{position:relative!important}
.gallery-modal .gallery-image-stage .gallery-slide-outgoing{max-width:95vw!important;max-height:100%!important;object-fit:contain!important}
.gallery-modal .gallery-thumbnail-view{position:relative!important;overflow:hidden!important}
.gallery-modal .gallery-thumbs-outgoing{position:absolute!important;inset:0!important;pointer-events:none!important;z-index:2!important;display:grid!important}
@media(max-width:680px){.gallery-modal .gallery-thumbs-outgoing{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:8px!important;padding:5px 3vw 8px!important}}
@media(prefers-reduced-motion:reduce){.gallery-modal .gallery-slide-outgoing,.gallery-modal .gallery-thumbs-outgoing{display:none!important}}/* v006: Mobile portfolio category banner — prevent title clipping and give breadcrumb breathing room. */


@media (max-width: 680px) {
  body:has(.portfolio-filters) #portfolio-hero.portfolio-category-hero {
    height: 104px !important;
    min-height: 104px !important;
    padding: 0 !important;
    overflow: hidden;
  }
  body:has(.portfolio-filters) #portfolio-hero.portfolio-category-hero .page-heading {
    position: absolute !important;
    top: 13px !important;
    left: 16px !important;
    right: 12px !important;
    width: auto !important;
    margin: 0 !important;
    transform: none !important;
    align-items: center !important;
  }
  body:has(.portfolio-filters) #portfolio-hero.portfolio-category-hero .page-heading h1 {
    margin: 0 !important;
    line-height: 1.35 !important;
    font-size: 20px !important;
  }
  body:has(.portfolio-filters) #portfolio-hero.portfolio-category-hero .portfolio-breadcrumb {
    left: 16px !important;
    bottom: 11px !important;
    top: auto !important;
    transform: none !important;
    padding: 5px 9px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
  }
}/* v007: category tab horizontal scrolling */


@media(max-width:750px){.gallery-modal .gallery-category-tabs{scroll-behavior:smooth!important;overscroll-behavior-x:contain!important}}/* v008: Mobile navigation slides down; clear portfolio selected/open state. */


@media (max-width:680px) {
  .site-header .nav-links {
    display:flex; flex-direction:column; max-height:0; padding-top:0; padding-bottom:0;
    overflow:hidden; opacity:0; visibility:hidden; pointer-events:none;
    transform:translateY(-12px);
    transition:max-height .42s cubic-bezier(.22,.7,.25,1), opacity .28s ease, transform .38s cubic-bezier(.22,.7,.25,1), padding .35s ease, visibility 0s linear .42s;
  }
  .site-header .nav-links.open {
    max-height:min(82dvh,740px); overflow-y:auto; padding-top:12px; padding-bottom:20px;
    opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0);
    transition:max-height .42s cubic-bezier(.22,.7,.25,1), opacity .28s ease, transform .38s cubic-bezier(.22,.7,.25,1), padding .35s ease, visibility 0s;
  }
  .nav-links .nav-dropdown {display:block;width:100%;}
  .nav-links .nav-dropdown-trigger {width:100%;justify-content:space-between;padding:12px 14px!important;border-radius:8px;transition:background-color .25s ease,color .25s ease;}
  .nav-links .nav-dropdown.open>.nav-dropdown-trigger,
  .nav-links .nav-dropdown-trigger.active {background:rgba(82,107,134,.13)!important;color:#354b63!important;font-weight:800!important;box-shadow:inset 3px 0 #526b86;}
  .nav-links .nav-dropdown-trigger::after {display:none!important;}
  .nav-links .nav-submenu a.is-current-category {background:rgba(82,107,134,.14)!important;color:#354b63!important;font-weight:700;border-radius:7px;}
}
@media (prefers-reduced-motion:reduce){.site-header .nav-links,.site-header .nav-links.open{transition:none!important;}}/* v011 — Mobile header touch geometry and fixed 4x2 lightbox categories.
   This section supersedes the scattered v009/v010 hamburger overrides. */


@media (max-width:680px) {
  .site-header, body.portfolio-page .site-header {
    position:sticky!important;top:0!important;z-index:1100!important;
    transform:none!important;overflow:visible!important;
  }
  .site-header .nav-wrap, body.portfolio-page .site-header .nav-wrap {
    position:relative!important;display:flex!important;align-items:center!important;
    justify-content:space-between!important;transform:none!important;
    height:100%!important;overflow:visible!important;
  }
  .site-header .menu-toggle, body.portfolio-page .site-header .menu-toggle {
    position:relative!important;inset:auto!important;top:auto!important;left:auto!important;
    right:auto!important;bottom:auto!important;transform:none!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;
    flex:0 0 52px!important;margin:0!important;padding:0!important;
    z-index:1102!important;isolation:isolate!important;pointer-events:auto!important;
    border:0!important;background:transparent!important;
    font-size:30px!important;line-height:1!important;
    -webkit-user-select:none!important;user-select:none!important;
    -webkit-touch-callout:none!important;touch-action:manipulation!important;
  }
  .site-header .menu-toggle::before {
    content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;
  }
  .site-header .brand {position:relative!important;z-index:1!important;min-width:0!important;max-width:calc(100% - 64px)!important;}
  .site-header .nav-links {z-index:1101!important;}
  .gallery-modal .gallery-dialog,
  .gallery-modal.is-thumbnail-view .gallery-dialog {
    grid-template-rows:54px 100px minmax(0,1fr) auto!important;
  }
  .gallery-modal.is-thumbnail-view .gallery-dialog {
    grid-template-rows:54px 100px minmax(0,1fr)!important;
  }
  .gallery-modal .gallery-top-actions,
  .gallery-modal.is-thumbnail-view .gallery-top-actions {
    top:5px!important;right:12px!important;z-index:150!important;
  }
  .gallery-modal .gallery-category-tabs {
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,42px)!important;
    grid-row:2!important;gap:6px 4px!important;
    width:100%!important;height:100px!important;min-height:100px!important;max-height:100px!important;
    padding:5px 8px 6px!important;margin:0!important;
    overflow:hidden!important;scroll-behavior:auto!important;
    justify-content:stretch!important;align-content:center!important;
  }
  .gallery-modal .gallery-category-tabs .gallery-category-tab {
    display:flex!important;align-items:center!important;justify-content:center!important;
    min-width:0!important;width:100%!important;height:42px!important;
    margin:0!important;padding:4px 2px!important;
    font-size:clamp(10px,2.7vw,13px)!important;line-height:1.25!important;
    white-space:normal!important;text-align:center!important;
  }
  .gallery-modal .gallery-image-stage,
  .gallery-modal .gallery-thumbnail-view {grid-row:3!important;}
  .gallery-modal .gallery-caption {grid-row:4!important;}
  .gallery-modal .gallery-top-actions .gallery-control {
    touch-action:manipulation!important;-webkit-user-select:none!important;
    user-select:none!important;-webkit-touch-callout:none!important;
  }
}/* v012 — Mobile lightbox category tabs: outlined pill style, 4 columns x 2 rows.
   Retain existing dark-lightbox palette and selected-state colors. */



@media (max-width:680px) {
  .gallery-modal .gallery-category-tabs {
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,40px)!important;
    gap:7px 5px!important;
    height:100px!important;min-height:100px!important;max-height:100px!important;
    padding:7px 5px!important;
    overflow:hidden!important;
    align-content:center!important;
  }
  .gallery-modal .gallery-category-tabs .gallery-category-tab {
    box-sizing:border-box!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    width:100%!important;min-width:0!important;height:40px!important;
    padding:4px 2px!important;margin:0!important;
    border:1px solid rgba(223,233,244,.45)!important;
    border-radius:999px!important;
    background:transparent!important;
    color:rgba(241,245,250,.78)!important;
    font-size:clamp(10px,2.65vw,12px)!important;
    font-weight:400!important;line-height:1.15!important;
    white-space:nowrap!important;text-align:center!important;
    box-shadow:none!important;
    transition:background-color .2s ease,color .2s ease,border-color .2s ease!important;
  }
  .gallery-modal .gallery-category-tabs .gallery-category-tab.active {
    background:rgba(255,255,255,.13)!important;
    color:#fff!important;
    border-color:rgba(223,233,244,.65)!important;
    font-weight:600!important;
  }
  .gallery-modal .gallery-category-tabs .gallery-category-tab:focus-visible {
    outline:2px solid #fff!important;outline-offset:2px!important;
  }
}/* v013 — tighter pill labels, side breathing room, mobile touch consistency. */


@media(max-width:680px){
 .gallery-modal .gallery-category-tabs{
   width:calc(100% - 24px)!important;max-width:calc(100% - 24px)!important;
   margin:0 12px!important;padding:7px 2px!important;gap:7px 5px!important;
 }
 .gallery-modal .gallery-category-tabs .gallery-category-tab{
   padding:2px 1px!important;letter-spacing:-.025em!important;
   font-size:clamp(9px,2.5vw,12px)!important;
 }
 .site-header .menu-toggle,body.portfolio-page .site-header .menu-toggle{
   box-sizing:border-box!important;position:relative!important;
   transform:none!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
   width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;
   margin:0!important;padding:0!important;line-height:1!important;
   touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important;
   -webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;
 }
 .gallery-modal .gallery-caption{min-height:62px!important;padding:10px 22px 12px!important;}
 .gallery-modal .gallery-caption h2{margin:0 0 2px!important;}
 .gallery-modal .gallery-caption p{font-size:12px!important;}
}/* v014 — Use the actual button box as the hamburger artwork and click target.
   No font glyph offset; native click handles touch, pointer and keyboard. */



@media (max-width:680px) {
  .site-header .menu-toggle, body.portfolio-page .site-header .menu-toggle {
    -webkit-appearance:none!important;appearance:none!important;
    position:relative!important;display:block!important;
    flex:0 0 52px!important;width:52px!important;height:52px!important;
    padding:0!important;margin:0!important;
    border:0!important;border-radius:12px!important;
    background:transparent!important;color:#526b86!important;
    cursor:pointer!important;overflow:hidden!important;
    font-size:0!important;line-height:0!important;
    -webkit-tap-highlight-color:transparent!important;
    -webkit-user-select:none!important;user-select:none!important;
    touch-action:manipulation!important;
    z-index:1102!important;
  }
  .site-header .menu-toggle::before, .site-header .menu-toggle::after {
    content:''!important;position:absolute!important;pointer-events:none!important;
    left:12px!important;top:25px!important;width:28px!important;height:3px!important;
    border-radius:3px!important;background:#526b86!important;
    z-index:1!important;transform:none!important;
    transition:transform .22s ease,box-shadow .22s ease!important;
  }
  .site-header .menu-toggle::before {
    left:12px!important;top:17px!important;
    box-shadow:0 8px 0 #526b86,0 16px 0 #526b86!important;
  }
  .site-header .menu-toggle::after {display:none!important;}
  .site-header .menu-toggle.is-open::before {
    top:25px!important;transform:rotate(45deg)!important;box-shadow:none!important;
  }
  .site-header .menu-toggle.is-open::after {
    display:block!important;left:12px!important;top:25px!important;
    transform:rotate(-45deg)!important;
  }
  .site-header .menu-toggle:focus-visible {outline:2px solid #526b86!important;outline-offset:2px!important;}
  .site-header .menu-toggle:focus:not(:focus-visible) {outline:none!important;}
  .gallery-modal .gallery-category-tabs .gallery-category-tab {
    border-radius:999px!important;
    -webkit-appearance:none!important;appearance:none!important;
    -webkit-tap-highlight-color:transparent!important;
    outline:none!important;
    overflow:hidden!important;
  }
  .gallery-modal .gallery-category-tabs .gallery-category-tab:active,
  .gallery-modal .gallery-category-tabs .gallery-category-tab.active {
    border-radius:999px!important;
  }
  .gallery-modal .gallery-category-tabs .gallery-category-tab:focus-visible {
    outline:2px solid #fff!important;outline-offset:1px!important;
  }
}/* v015 — Mobile tap targets: suppress rectangular native tap flash on outer filters
   and keep header button glyph and hit target in the same untransformed box. */


@media (max-width:680px) {
  body.portfolio-page .portfolio-filters .filter-button {
    -webkit-tap-highlight-color:transparent!important;
    -webkit-appearance:none!important;appearance:none!important;
    border-radius:999px!important;
    touch-action:manipulation!important;
    -webkit-user-select:none!important;user-select:none!important;
    -webkit-touch-callout:none!important;
  }
  body.portfolio-page .portfolio-filters .filter-button:focus:not(:focus-visible) {outline:none!important;}
  body.portfolio-page .portfolio-filters .filter-button:focus-visible {outline:2px solid #526b86!important;outline-offset:2px!important;}
  .site-header .nav-wrap {transform:none!important;filter:none!important;perspective:none!important;}
  .site-header .menu-toggle,body.portfolio-page .site-header .menu-toggle {
    -webkit-tap-highlight-color:rgba(0,0,0,0)!important;
    -webkit-touch-callout:none!important;
    -webkit-user-select:none!important;user-select:none!important;
    touch-action:manipulation!important;
    outline:none;
    transform:none!important;
    isolation:isolate!important;
  }
  .site-header .menu-toggle:focus:not(:focus-visible) {outline:none!important;}
  .site-header .menu-toggle:focus-visible {outline:2px solid #526b86!important;outline-offset:2px!important;}
  .site-header .menu-toggle::before,.site-header .menu-toggle::after {pointer-events:none!important;}
}/* v016: mobile header native button with inline SVG. The visible glyph is inside
   the real hitbox, not an independently positioned pseudo-element. */



@media(max-width:680px){
  .site-header .menu-toggle,body.portfolio-page .site-header .menu-toggle{
    position:relative!important;inset:auto!important;transform:none!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    flex:0 0 52px!important;width:52px!important;height:52px!important;
    padding:0!important;margin:0!important;border:0!important;
    border-radius:12px!important;background:transparent!important;
    overflow:visible!important;isolation:auto!important;
    -webkit-tap-highlight-color:transparent!important;touch-action:manipulation!important;
    -webkit-user-select:none!important;user-select:none!important;
  }
  .site-header .menu-toggle::before,.site-header .menu-toggle::after{
    content:none!important;display:none!important;box-shadow:none!important;
  }
  .site-header .menu-toggle .xi-menu-icon{
    display:block!important;position:static!important;width:32px!important;height:32px!important;
    flex:0 0 32px!important;overflow:visible!important;pointer-events:none!important;
    stroke:#526b86;stroke-width:2.6;stroke-linecap:round;fill:none;
  }
  .site-header .menu-toggle .xi-menu-cross{display:none;}
  .site-header .menu-toggle.is-open .xi-menu-bars{display:none;}
  .site-header .menu-toggle.is-open .xi-menu-cross{display:block;}
  .site-header .nav-links .nav-dropdown .nav-submenu{
    visibility:hidden!important;opacity:0!important;max-height:0!important;
    padding-top:0!important;padding-bottom:0!important;
    transform:none!important;overflow:hidden!important;
    pointer-events:none!important;
    transition:max-height .32s ease,padding .32s ease,opacity .2s ease!important;
  }
  .site-header .nav-links .nav-dropdown.open>.nav-submenu{
    visibility:visible!important;opacity:1!important;max-height:420px!important;
    padding:8px 0 12px 12px!important;pointer-events:auto!important;
  }
  .site-header .nav-links .nav-dropdown .nav-submenu::before{display:none!important;}
  .site-header .nav-links .nav-dropdown .nav-submenu a{
    -webkit-tap-highlight-color:transparent!important;
  }
  .site-header .nav-dropdown-trigger,.site-header .menu-toggle{
    -webkit-touch-callout:none!important;
  }
}/* v017: ensure lightbox prev/next controls remain perfectly circular across mobile layouts. */


.gallery-modal:not(.is-thumbnail-view) .gallery-image-stage > .gallery-prev,.gallery-modal:not(.is-thumbnail-view) .gallery-image-stage > .gallery-next{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;aspect-ratio:1/1!important;border-radius:50%!important;box-sizing:border-box!important;padding:0!important;flex-shrink:0!important;}/* v018 — gentle selection feedback, retaining existing pill shapes and colors. */


.gallery-modal .gallery-category-tabs .gallery-category-tab,body.portfolio-page .portfolio-filters .filter-button{
  transition: background-color .38s cubic-bezier(.22,.61,.36,1),
              border-color .38s cubic-bezier(.22,.61,.36,1),
              color .38s cubic-bezier(.22,.61,.36,1),
              box-shadow .38s cubic-bezier(.22,.61,.36,1),
              opacity .38s ease!important;
}
.gallery-modal .gallery-category-tabs .gallery-category-tab {
  -webkit-tap-highlight-color:transparent!important;
}
@media (prefers-reduced-motion: reduce) {
 .gallery-modal .gallery-category-tabs .gallery-category-tab,body.portfolio-page .portfolio-filters .filter-button{transition:none!important;}}/* v018 — slower crossfade of the outer portfolio cards. */


body.portfolio-page .work-card {transition:opacity .32s ease,transform .32s cubic-bezier(.22,.61,.36,1)!important;}
body.portfolio-page .work-card.is-filtering-in {animation-duration:.48s!important;}
@media (prefers-reduced-motion:reduce){body.portfolio-page .work-card{transition:none!important}}/* v020: suppress browser-native tap flash on interactive elements site-wide.
   Does not change click handlers, hitboxes, layout, or keyboard focus. */


@media (hover: none) and (pointer: coarse) {
  a, button, input, select, textarea, summary, label,
  [role="button"], [role="link"], [tabindex],
  a *, button *, [role="button"] * {
    -webkit-tap-highlight-color: transparent !important;
  }
}/* v021 — mobile landscape layout only. Keep portrait and desktop intact. */



@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px),(orientation:landscape) and (min-width:540px) and (max-width:649.98px) and (max-height:500px){
  .site-header{height:58px!important;min-height:58px!important}
  .site-header .nav-wrap{padding:0 15px!important}
  .site-header .brand-logo{max-height:39px!important;width:160px!important}
  .site-header .nav-links{gap:12px!important;font-size:12px!important}
  .site-header .nav-links a{padding-top:5px!important;padding-bottom:5px!important}
  }
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero{min-height:310px!important;align-items:flex-start!important}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero-inner{padding:24px 20px 24px!important}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero h1{font-size:clamp(25px,3.2vw,36px)!important;line-height:1.13!important;max-width:680px!important;margin:7px 0 9px!important}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero p{font-size:13px!important;line-height:1.45!important;max-width:520px!important;margin-bottom:10px!important}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero .eyebrow{font-size:10px!important}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero .button{min-height:36px!important;padding:7px 13px!important;font-size:12px!important;margin:0!important}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero .button.secondary{margin-left:8px!important}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px),(orientation:landscape) and (min-width:540px) and (max-width:649.98px) and (max-height:500px){
  .section{padding:28px 0!important}
  .section-head{margin-bottom:16px!important}
  .services{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
  .service-card{padding:13px!important}
  .service-icon{width:32px!important;height:32px!important;margin-bottom:7px!important}
  .service-card h3{font-size:15px!important;margin-bottom:4px!important}
  .service-card p{font-size:11px!important;line-height:1.45!important}
  .xi-showcase-grid,.xi-showcase-grid.xi-recent-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important}
  .xi-showcase-card img{height:94px!important;object-fit:cover!important}
  .xi-showcase-info{padding:6px!important}
  .xi-showcase-info strong{font-size:11px!important;line-height:1.3!important}
  .xi-showcase-info small{font-size:10px!important}
  .xi-section-row{margin-bottom:12px!important}
  .quick-pages-inner{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:8px!important}
  .quick-page-card img{height:95px!important;object-fit:cover!important}
  .quick-page-card{min-width:0!important}
  .quick-page-card h3{font-size:12px!important}
  .quick-page-card p{font-size:10px!important}
  .page-hero{height:155px!important;min-height:155px!important;padding:0!important;display:flex!important;align-items:center!important;background-position:center!important}
  .page-hero .page-heading{width:100%!important;padding:10px 20px!important}
  .page-hero .page-heading h1{font-size:clamp(20px,3vw,29px)!important;margin:4px 0!important}
  .page-hero .page-heading p{font-size:12px!important}
  .page-hero.portfolio-category-hero{height:56px!important;min-height:56px!important}
  .page-hero.portfolio-category-hero .page-heading{padding:0 15px!important}
  .page-content{padding:18px 0 30px!important}
  body.portfolio-page .portfolio-filters{position:relative!important;top:auto!important;gap:5px!important;padding:8px 10px!important;margin-bottom:12px!important;border-radius:12px!important;box-shadow:0 4px 14px rgba(35,55,75,.08)!important}
  body.portfolio-page .portfolio-filters .filter-button{font-size:11px!important;padding:5px 9px!important}
  body.portfolio-page .work-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important}
  body.portfolio-page .work-card{border-radius:8px!important}
  body.portfolio-page .work-image img,body.portfolio-page .work-images.multi .work-image img{height:105px!important;object-fit:cover!important}
  body.portfolio-page .work-card h3{font-size:11px!important}
  .gallery-modal{padding:4px!important}
  .gallery-modal .gallery-dialog{width:100%!important;max-height:calc(100dvh - 8px)!important;gap:3px!important;grid-template-rows:42px minmax(0,1fr) 29px!important}
  .gallery-modal .gallery-category-tabs{min-height:0!important;padding:2px 115px 2px 5px!important;gap:3px!important}
  .gallery-modal .gallery-category-tab{font-size:10px!important;padding:4px 6px!important}
  .gallery-modal .gallery-top-actions{top:1px!important;right:4px!important}
  .gallery-modal .gallery-top-actions .gallery-control{width:35px!important;height:35px!important;min-width:35px!important;min-height:35px!important}
  .gallery-modal .gallery-image-stage{grid-row:2!important;min-height:0!important}
  .gallery-modal .gallery-image-stage img{max-height:100%!important;max-width:calc(100% - 75px)!important;object-fit:contain!important}
  .gallery-modal .gallery-caption{grid-row:3!important;min-height:0!important;padding:0 8px 3px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important}
  .gallery-modal .gallery-caption h2{font-size:14px!important;margin:0!important}
  .gallery-modal .gallery-caption p{font-size:11px!important;margin:0!important}
  .gallery-modal.is-thumbnail-view .gallery-dialog{grid-template-rows:42px minmax(0,1fr)!important}
  .gallery-modal .gallery-thumbnail-view{grid-row:2!important;min-height:0!important}
  .gallery-modal .gallery-thumbnail-view .gallery-thumbnails{grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:repeat(1,minmax(0,1fr))!important;gap:6px!important;padding:4px!important;overflow:auto!important;align-content:start!important}
  .gallery-modal .gallery-thumbnail-view .gallery-thumb img{height:105px!important;aspect-ratio:auto!important;object-fit:cover!important}
  .gallery-modal .gallery-thumbnail-view .gallery-thumb span{padding:4px 5px!important;font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .xnews-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
  .xnews-card{padding:12px!important;min-width:0!important}
  .xnews-card h2{font-size:14px!important;line-height:1.35!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
  .xnews-card .xnews-summary{font-size:11px!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important}
  .contact-layout{grid-template-columns:35fr 65fr!important;gap:20px!important}
  .contact-info h2{font-size:23px!important;line-height:1.25!important;margin:4px 0 8px!important}
  .contact-info p{font-size:12px!important;line-height:1.5!important}
  .contact-info .info-row{padding:6px 0!important;font-size:11px!important}
  .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
  .field{gap:3px!important}
  .field label{font-size:11px!important}
  .field input,.field select{min-height:39px!important;padding:7px 9px!important;font-size:12px!important}
  .field textarea{min-height:65px!important;font-size:12px!important}
  .field.full{grid-column:1/-1!important}}/* v021 — active page in the mobile navigation; all five top-level links align. */

@media(max-width:680px){
  .site-header .nav-links > a.xi-current-page,
  .site-header .nav-links > .nav-dropdown.xi-current-page > .nav-dropdown-trigger{
    background:rgba(82,107,134,.13)!important;color:#354b63!important;
    box-shadow:inset 3px 0 #526b86!important;border-radius:8px!important;font-weight:800!important;
  }
  .site-header .nav-links > .nav-dropdown > .nav-dropdown-trigger{padding-left:3px!important}
  .site-header .nav-links > .nav-dropdown.xi-current-page > .nav-dropdown-trigger{padding-left:12px!important}
  body.portfolio-page .portfolio-filters{box-shadow:0 4px 14px rgba(35,55,75,.08)!important;border-radius:14px!important}
}/* v022: verified selectors against the actual v021 HTML/JS; landscape only.
   The v021 media query previously required pointer:coarse and <=1000px, so
   landscape simulators and several real mobile viewport sizes skipped it. */


@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px),(orientation:landscape) and (min-width:540px) and (max-width:649.98px) and (max-height:500px){
  html { scroll-padding-top:60px; }
  .site-header {height:58px!important;min-height:58px!important;}
  .site-header .nav-wrap {height:58px!important;min-height:58px!important;align-items:center!important;}
  .site-header .brand-logo {height:44px!important;max-height:44px!important;width:65px!important;flex-basis:65px!important;}
  .site-header .nav-links {gap:clamp(8px,1.2vw,16px)!important;}
  .site-header .nav-links > a, .site-header .nav-dropdown-trigger {font-size:clamp(11px,1.4vw,15px)!important;}
  /* Keep existing homepage photograph and content; prevent header/text collision. */
  }
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.site-header + main > .hero:first-child {margin-top:0!important;}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero {min-height:290px!important;height:auto!important;display:block!important;padding:0!important;}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero-inner {position:relative!important;padding:22px 22px 65px!important;max-width:100%!important;}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero h1 {font-size:clamp(24px,3.2vw,34px)!important;line-height:1.15!important;margin:6px 0 9px!important;max-width:640px!important;}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero h1 em {font-size:inherit!important;}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero p {max-width:570px!important;margin:0 0 11px!important;line-height:1.45!important;font-size:13px!important;}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero .button {display:inline-flex!important;vertical-align:middle!important;min-height:36px!important;}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero .xi-hero-news {width:min(420px,43%)!important;right:14px!important;bottom:8px!important;min-height:36px!important;}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero .xi-hero-news .xi-hero-news-top,.hero .xi-hero-news .xi-hero-news-bottom{padding:3px!important;}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px),(orientation:landscape) and (min-width:540px) and (max-width:649.98px) and (max-height:500px){
  .quick-pages {padding:18px 16px!important;}
  .quick-pages-inner {grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:7px!important;}
  .quick-page-card > img {height:82px!important;}
  .quick-page-copy {padding:7px 15px 8px 7px!important;min-height:42px!important;}
  .quick-page-copy strong {font-size:11px!important;}
  .quick-page-copy small {font-size:9px!important;}
  .quick-page-copy i {right:5px!important;font-size:12px!important;}
  .page-hero {height:150px!important;min-height:150px!important;}
  body.portfolio-page .portfolio-filters {margin-top:8px!important;margin-bottom:12px!important;}
  body.portfolio-page .work-grid {grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important;}
  body.portfolio-page .work-image {min-height:0!important;}
  body.portfolio-page .work-image img,body.portfolio-page .work-images.multi .work-image img{height:100px!important;object-fit:cover!important;}
  body.portfolio-page .work-info {padding:6px 7px 8px!important;min-height:38px!important;}
  body.portfolio-page .work-info > span {display:none!important;}
  body.portfolio-page .work-info h3 {font-size:11px!important;line-height:1.3!important;margin:0!important;}
  body.portfolio-page .work-count {position:static!important;font-size:10px!important;margin-top:2px!important;}
  .gallery-modal .gallery-image-stage {padding:2px 40px!important;}
  .gallery-modal .gallery-image-stage img {max-width:100%!important;max-height:100%!important;}
  .gallery-modal .gallery-thumbnail-view .gallery-thumbnails {grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px!important;}
  .gallery-modal .gallery-thumbnail-view .gallery-thumb img {height:100px!important;}
  .gallery-modal .gallery-thumbnail-view .gallery-thumb span {padding:4px!important;font-size:10px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
  .gallery-modal .gallery-caption {display:flex!important;flex-direction:row!important;justify-content:center!important;align-items:center!important;gap:12px!important;min-height:0!important;padding:2px 6px!important;}
  .gallery-modal .gallery-caption h2,.gallery-modal .gallery-caption p{margin:0!important;}
  .xnews-list {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important;}
  .xnews-card {padding:12px!important;}
  .contact-layout {grid-template-columns:minmax(0,35fr) minmax(0,65fr)!important;gap:18px!important;}
  .contact-info h2 {font-size:22px!important;overflow-wrap:normal!important;}
  .form-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}}/* v023: targeted mobile landscape refinements, based on actual site selectors. */



@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px),(orientation:landscape) and (min-width:540px) and (max-width:649.98px) and (max-height:500px){
  .site-header,.site-header .nav-wrap{height:49px!important;min-height:49px!important;}
  .site-header .nav-wrap{padding:0 17px!important;}
  .site-header .brand-logo{width:205px!important;height:42px!important;max-width:none!important;max-height:42px!important;flex:0 0 205px!important;object-fit:contain!important;}
  .site-header .brand-lockup{width:205px!important;}
  .site-header .nav-links{gap:clamp(8px,1.1vw,14px)!important;}
  }
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero{min-height:270px!important;}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero-inner{padding-top:14px!important;padding-bottom:42px!important;}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px) and (pointer:coarse) and (min-width:100000px){.hero .xi-hero-news{bottom:20px!important;}}
@media (orientation:landscape) and (min-width:650px) and (max-height:650px) and (max-width:1400px),(orientation:landscape) and (min-width:540px) and (max-width:649.98px) and (max-height:500px){
  .xi-showcase-section,.xi-recent-section{padding:13px 0 18px!important;}
  .xi-showcase-section .xi-section-row,.xi-recent-section .xi-section-row{margin-bottom:9px!important;align-items:end!important;gap:12px!important;}
  .xi-showcase-section .xi-section-row>div,.xi-recent-section .xi-section-row>div{min-width:0!important;}
  .xi-showcase-section .xi-section-row .eyebrow,.xi-recent-section .xi-section-row .eyebrow{display:inline-block!important;vertical-align:baseline!important;margin:0 0 0 12px!important;font-size:10px!important;letter-spacing:.12em!important;}
  .xi-showcase-section .xi-section-row h2,.xi-recent-section .xi-section-row h2{display:inline-block!important;vertical-align:baseline!important;margin:0!important;font-size:23px!important;line-height:1.15!important;}
  .xi-showcase-section .xi-section-row p,.xi-recent-section .xi-section-row p{margin:5px 0 0!important;font-size:12px!important;line-height:1.35!important;}
  .xi-showcase-section .xi-section-more,.xi-recent-section .xi-section-more{font-size:12px!important;}
  .xi-showcase-grid,.xi-showcase-grid.xi-recent-grid,.xi-recent-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:9px!important;}
  .xi-showcase-grid .xi-showcase-card,.xi-recent-grid .xi-showcase-card{display:flex!important;flex-direction:column!important;min-width:0!important;height:auto!important;}
  .xi-showcase-grid .xi-showcase-card>img,.xi-recent-grid .xi-showcase-card>img{width:100%!important;height:94px!important;min-height:0!important;max-height:94px!important;object-fit:cover!important;flex:none!important;}
  .xi-showcase-grid .xi-showcase-info,.xi-recent-grid .xi-showcase-info{padding:6px 7px 8px!important;gap:2px!important;flex:1 1 auto!important;}
  .xi-showcase-grid .xi-showcase-info strong,.xi-recent-grid .xi-showcase-info strong{font-size:11px!important;line-height:1.3!important;}
  .xi-showcase-grid .xi-showcase-info small,.xi-recent-grid .xi-showcase-info small{font-size:10px!important;}
  body.portfolio-page .portfolio-filters{box-shadow:0 2px 8px rgba(35,55,75,.055)!important;border-radius:13px!important;margin-bottom:8px!important;}
  body.portfolio-page .portfolio-filters::before,body.portfolio-page .portfolio-filters::after{box-shadow:none!important;}
  .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumbnails{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important;gap:5px!important;padding:3px 6px!important;overflow:hidden!important;align-content:stretch!important;}
  .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb{min-height:0!important;}
  .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb-frame{min-height:0!important;flex:1 1 auto!important;}
  .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb img{height:100%!important;min-height:0!important;object-fit:cover!important;}
  .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb span{padding:3px 5px!important;font-size:10px!important;line-height:1.2!important;}}/* v023: portrait hamburger menu items share consistent inset, including active state. */

@media (orientation:portrait) and (max-width:680px){
 .site-header .nav-links> a,.site-header .nav-links>.nav-dropdown>.nav-dropdown-trigger,
 .site-header .nav-links> a.xi-current-page,
 .site-header .nav-links>.nav-dropdown.xi-current-page>.nav-dropdown-trigger{
   box-sizing:border-box!important;padding-left:16px!important;padding-right:16px!important;text-indent:0!important;
 }
}/* v025: mobile navigation — current PAGE only; dropdown-open is not page-active. */


@media (max-width:680px) and (orientation:portrait){
 .site-header .nav-links > a:not(.login-link)::after,
 .site-header .nav-links .nav-dropdown-trigger::after{display:none!important;content:none!important;}
 .site-header .nav-links > a,
 .site-header .nav-links > .nav-dropdown > .nav-dropdown-trigger{
   box-sizing:border-box!important;margin:2px 0!important;padding:12px 16px!important;
   border:0!important;border-radius:10px!important;text-indent:0!important;
   background:#fff!important;box-shadow:none!important;color:#465363!important;
 }
 .site-header .nav-links > a.xi-current-page,
 .site-header .nav-links > .nav-dropdown.xi-current-page > .nav-dropdown-trigger{
   background:#e6edf3!important;color:#354b63!important;font-weight:800!important;
   box-shadow:inset 4px 0 0 #526b86!important;
 }
 .site-header .nav-links > .nav-dropdown.open:not(.xi-current-page) > .nav-dropdown-trigger,
 .site-header .nav-links > .nav-dropdown:not(.xi-current-page) > .nav-dropdown-trigger.active{
   background:#fff!important;color:#465363!important;box-shadow:none!important;
 }
}/* v025: single authoritative five-column layout for real landscape phones.
   Avoid legacy 650px minimum-width / 650px maximum-height constraints. */

@media (orientation:landscape) and (max-height:800px) and (max-width:1600px){
 .quick-pages{height:auto!important;min-height:0!important;max-height:none!important;
   padding:12px 16px 14px!important;display:block!important;}
 .quick-pages-heading{margin:0 auto 10px!important;padding:0!important;}
 .quick-pages-inner{width:100%!important;max-width:1160px!important;
   display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;
   grid-auto-rows:auto!important;gap:10px!important;align-items:stretch!important;}
 .quick-pages-inner > .quick-page-card{grid-column:auto!important;min-width:0!important;
   height:auto!important;min-height:0!important;align-self:stretch!important;}
 .quick-pages-inner > .quick-page-card > img{height:92px!important;min-height:0!important;object-fit:cover!important;}
 .quick-pages-inner .quick-page-copy{min-height:44px!important;height:auto!important;
   padding:6px 19px 7px 8px!important;gap:2px!important;}
 .quick-pages-inner .quick-page-copy strong{font-size:11px!important;line-height:1.3!important;}
 .quick-pages-inner .quick-page-copy small{font-size:9px!important;line-height:1.3!important;}
}/* v026: navigation title is a real link; adjacent caret is a separate toggle. */


.site-header .nav-dropdown .xi-portfolio-nav-pair{display:flex;align-items:center;gap:0;min-width:0;}
.site-header .nav-dropdown .xi-portfolio-main-link{color:inherit;text-decoration:none;white-space:nowrap;display:inline-flex;align-items:center;min-height:35px;}
.site-header .nav-dropdown .xi-portfolio-main-link.active{color:#526b86;font-weight:700;}
.site-header .nav-dropdown .nav-dropdown-trigger{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:24px;min-width:24px;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:inherit;}
.site-header .nav-dropdown .nav-dropdown-trigger .nav-chevron{display:inline-block;transition:transform .2s ease;}
.site-header .nav-dropdown.open .nav-dropdown-trigger .nav-chevron{transform:rotate(180deg);}
@media (orientation:portrait) and (max-width:680px){
 .site-header .nav-links>.nav-dropdown>.xi-portfolio-nav-pair{box-sizing:border-box!important;margin:2px 0!important;padding:0 12px 0 16px!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;min-height:48px!important;}
 .site-header .nav-links>.nav-dropdown.xi-current-page>.xi-portfolio-nav-pair{background:#e6edf3!important;box-shadow:inset 4px 0 0 #526b86!important;}
 .site-header .nav-dropdown .xi-portfolio-main-link{flex:1!important;min-height:48px!important;color:#465363!important;}
 .site-header .nav-dropdown.xi-current-page .xi-portfolio-main-link{color:#354b63!important;font-weight:800!important;}
 .site-header .nav-dropdown .nav-dropdown-trigger{width:42px!important;min-width:42px!important;min-height:44px!important;}}/* v026: fullscreen button icon is centered independent of device font metrics. */

.gallery-modal .gallery-fullscreen{display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;line-height:1!important;}
.gallery-modal .gallery-fullscreen .xi-fullscreen-icon{width:18px!important;height:18px!important;display:block!important;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none;}
.gallery-modal .gallery-fullscreen.xi-fullscreen-active .xi-fullscreen-icon{transform:rotate(180deg);}
@media (orientation:landscape) and (max-height:800px) and (max-width:1600px){/* Keep the original work entirely visible in single-image view. */
 
 .gallery-modal .gallery-image-stage img{object-fit:contain!important;}/* Compact listing cards: one line of title and no artificial bottom whitespace. */
 
 body.portfolio-page .work-grid>.work-card{display:flex!important;flex-direction:column!important;min-height:0!important;height:auto!important;overflow:hidden!important;}
 body.portfolio-page .work-card .work-images{height:auto!important;min-height:0!important;flex:0 0 auto!important;}
 body.portfolio-page .work-card .work-image{height:auto!important;min-height:0!important;}
 body.portfolio-page .work-card .work-info{height:auto!important;min-height:0!important;flex:0 0 auto!important;padding:5px 7px 6px!important;}
 body.portfolio-page .work-card .work-info h3{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;min-width:0!important;max-width:100%!important;line-height:1.4!important;}
 .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb-frame{overflow:hidden!important;}
 .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb-frame img{width:100%!important;height:100%!important;object-fit:cover!important;}/* Portrait-like category chip treatment, with enough space for the right-side actions. */
 
 .gallery-modal .gallery-category-tabs{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex-wrap:wrap!important;align-content:center!important;overflow:visible!important;padding:3px 94px 3px 8px!important;gap:3px 5px!important;height:auto!important;max-height:none!important;}
 .gallery-modal .gallery-category-tabs .gallery-category-tab{border-radius:999px!important;white-space:nowrap!important;font-size:10px!important;padding:4px 8px!important;line-height:1.25!important;}
 .gallery-modal .gallery-dialog{grid-template-rows:minmax(42px,auto) minmax(0,1fr) 29px!important;}
 .gallery-modal.is-thumbnail-view .gallery-dialog{grid-template-rows:minmax(42px,auto) minmax(0,1fr)!important;}
 /* News block follows the hero CTA left inset on narrow landscape phones. */
 }
@media (orientation:landscape) and (max-height:800px) and (max-width:1600px) and (pointer:coarse) and (min-width:100000px){.hero .xi-hero-news{left:22px!important;right:auto!important;max-width:calc(100% - 44px)!important;}}/* v027: fix actual mobile landscape navigation, category filtering, gallery thumbnails. *//* HTML hidden must override the previous landscape card display:flex!important. */



body.portfolio-page .work-grid > .work-card[hidden],body.portfolio-page .work-card[hidden]{display:none!important;visibility:hidden!important;}/* Header submenu: compact two columns, all nine destinations reachable. */

@media (orientation:landscape) and (max-height:800px) and (max-width:1600px){
 .site-header .nav-dropdown{position:relative!important;}
 .site-header .nav-dropdown .nav-submenu{
  position:absolute!important;top:calc(100% + 12px)!important;right:0!important;left:auto!important;
  width:min(440px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:4px 8px!important;padding:12px!important;max-height:calc(100dvh - 112px)!important;
  overflow-y:auto!important;overscroll-behavior:contain!important;
  background:rgba(255,255,255,.97)!important;border:1px solid #dfe6ed!important;
  border-radius:14px!important;box-shadow:0 12px 30px rgba(28,48,67,.18)!important;
  visibility:hidden!important;opacity:0!important;pointer-events:none!important;
 }
 .site-header .nav-dropdown.open .nav-submenu{visibility:visible!important;opacity:1!important;pointer-events:auto!important;}
 .site-header .nav-dropdown .nav-submenu a{
  display:flex!important;align-items:center!important;min-height:38px!important;
  padding:7px 11px!important;margin:0!important;border:0!important;
  border-radius:8px!important;white-space:nowrap!important;font-size:13px!important;
 }
 .site-header .nav-dropdown .nav-submenu a:hover,
 .site-header .nav-dropdown .nav-submenu a.is-current-category{background:#e7edf3!important;color:#354b63!important;}
 /* Align important news left with the hero CTA, and lift it off the bottom edge. */
 }
@media (orientation:landscape) and (max-height:800px) and (max-width:1600px) and (pointer:coarse) and (min-width:100000px){body.xi-home-page .hero .xi-hero-news{
  left:max(24px,calc((100vw - var(--max))/2 + 24px))!important;
  right:auto!important;bottom:24px!important;top:auto!important;margin:0!important;
  max-width:calc(100% - 48px)!important;
 }}
@media (orientation:landscape) and (max-height:800px) and (max-width:1600px){/* Gallery category selector: same outlined rounded chips as outer portfolio filters. */
 
 .gallery-modal .gallery-category-tabs{
  display:flex!important;flex-wrap:wrap!important;align-items:center!important;
  justify-content:flex-start!important;align-content:center!important;
  gap:5px 7px!important;padding:5px 108px 5px 10px!important;
  overflow:visible!important;height:auto!important;max-height:none!important;
 }
 .gallery-modal .gallery-category-tabs .gallery-category-tab{
  border:1px solid rgba(210,220,231,.65)!important;
  border-radius:999px!important;background:rgba(255,255,255,.055)!important;
  color:#e0e8f1!important;padding:5px 11px!important;
  font-size:12px!important;line-height:1.2!important;white-space:nowrap!important;
 }
 .gallery-modal .gallery-category-tabs .gallery-category-tab.active{
  background:#526b86!important;border-color:#526b86!important;color:#fff!important;
 }
 .gallery-modal.is-thumbnail-view .gallery-dialog{grid-template-rows:auto minmax(0,1fr)!important;}
 .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumbnails{
  display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;min-height:0!important;
 }
 .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb{
  display:flex!important;flex-direction:column!important;min-height:0!important;height:100%!important;
 }
 .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb-frame{
  display:block!important;position:relative!important;flex:1 1 0!important;min-height:0!important;
  width:100%!important;overflow:hidden!important;
 }
 .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb-frame img{
  display:block!important;width:100%!important;height:100%!important;
  min-width:100%!important;min-height:100%!important;max-width:none!important;max-height:none!important;
  object-fit:cover!important;object-position:center!important;aspect-ratio:auto!important;
 }}/* v028 / actual phone landscape: precise CTA alignment, compact menu, image fill. */


@media (orientation:landscape) and (max-height:800px) and (max-width:1600px){
 /* Hero inner starts 24px from the left at this breakpoint. */
 }
@media (orientation:landscape) and (max-height:800px) and (max-width:1600px) and (pointer:coarse) and (min-width:100000px){body.xi-home-page .hero > .xi-hero-news{
   left:24px!important;right:auto!important;bottom:24px!important;
   margin:0!important;transform:none!important;
 }}
@media (orientation:landscape) and (max-height:800px) and (max-width:1600px){/* All nine destinations fit in a 3x3 panel without scrolling. */
 
 .site-header .nav-dropdown.open > .nav-submenu,.site-header .nav-dropdown > .nav-submenu{
   width:min(525px,calc(100vw - 36px))!important;
   max-width:calc(100vw - 36px)!important;
   grid-template-columns:repeat(3,minmax(0,1fr))!important;
   grid-template-rows:repeat(3,auto)!important;
   gap:2px 6px!important;
   padding:9px 10px!important;
   max-height:none!important;height:auto!important;
   overflow:hidden!important;
   background:rgba(255,255,255,.89)!important;
   -webkit-backdrop-filter:blur(12px)!important;backdrop-filter:blur(12px)!important;
   border:1px solid rgba(216,226,235,.75)!important;
 }
 .site-header .nav-dropdown .nav-submenu a{
   min-height:35px!important;padding:5px 9px!important;
   line-height:1.35!important;font-size:13px!important;
 }/* Make image occupy every pixel of its preview frame, regardless of source ratio. */
 
 .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb{
   position:relative!important;min-height:0!important;overflow:hidden!important;
 }
 .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb-frame{
   position:relative!important;display:block!important;flex:1 1 auto!important;
   width:100%!important;min-height:0!important;overflow:hidden!important;
   padding:0!important;margin:0!important;
 }
 .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb-frame > img{
   position:absolute!important;inset:0!important;
   display:block!important;width:100%!important;height:100%!important;
   min-width:0!important;min-height:0!important;
   max-width:none!important;max-height:none!important;
   object-fit:cover!important;object-position:center center!important;
   aspect-ratio:auto!important;margin:0!important;padding:0!important;
 }
 .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumb-title{
   flex:0 0 auto!important;margin:0!important;
 }}/* v029: phone landscape dropdown and thumbnail frame layout; preserve full-size artwork. */


@media (orientation:landscape) and (max-height:800px) and (max-width:1600px){
  /* Nine options in a compact three-column panel. No oversized empty columns. */
  .site-header .nav-links .nav-dropdown > .nav-submenu{
    box-sizing:border-box!important;
    left:auto!important;right:0!important;top:calc(100% + 7px)!important;
    width:390px!important;max-width:min(390px,calc(100vw - 30px))!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    grid-template-rows:repeat(3,minmax(0,auto))!important;
    grid-auto-flow:row!important;
    align-content:start!important;align-items:stretch!important;
    column-gap:3px!important;row-gap:1px!important;
    padding:7px!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    overflow:visible!important;
    background:rgba(250,252,255,.91)!important;
    -webkit-backdrop-filter:blur(10px)!important;backdrop-filter:blur(10px)!important;
    border:1px solid rgba(205,217,230,.85)!important;
    border-radius:12px!important;
  }
  .site-header .nav-links .nav-dropdown > .nav-submenu > a{
    box-sizing:border-box!important;
    display:flex!important;align-items:center!important;
    min-width:0!important;min-height:34px!important;height:34px!important;
    margin:0!important;padding:4px 8px!important;
    font-size:12px!important;line-height:1.25!important;
    white-space:nowrap!important;
  }
  /* Fix grid track sizing and reserve all remaining height for the picture. */
  .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumbnails > .gallery-thumb{
    box-sizing:border-box!important;display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr) auto!important;
    align-items:stretch!important;justify-items:stretch!important;
    padding:0!important;min-width:0!important;min-height:0!important;
    height:100%!important;overflow:hidden!important;
  }
  .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumbnails > .gallery-thumb > .gallery-thumb-frame{
    box-sizing:border-box!important;display:block!important;position:relative!important;
    grid-row:1!important;grid-column:1!important;
    width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
    margin:0!important;padding:0!important;overflow:hidden!important;
    background:transparent!important;
  }
  .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumbnails > .gallery-thumb > .gallery-thumb-frame > img{
    position:absolute!important;top:0!important;left:0!important;
    width:100%!important;height:100%!important;
    min-width:100%!important;min-height:100%!important;
    max-width:none!important;max-height:none!important;
    display:block!important;object-fit:cover!important;object-position:center!important;
    margin:0!important;padding:0!important;border:0!important;
  }
  .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumbnails > .gallery-thumb > .gallery-thumb-title{
    box-sizing:border-box!important;grid-row:2!important;grid-column:1!important;
    display:block!important;height:auto!important;min-height:0!important;
    margin:0!important;padding:4px 6px!important;
    white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  }
}/* v030: precise mobile layout refinements */


@media (orientation:landscape) and (max-height:800px) and (max-width:1600px){
  /* Nine compact links without large unused grid tracks. */
  .site-header .nav-links .nav-dropdown > .nav-submenu{
    width:315px!important;max-width:min(315px,calc(100vw - 24px))!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:0 2px!important;padding:5px 6px!important;
    background:rgba(250,252,255,.88)!important;
  }
  .site-header .nav-links .nav-dropdown > .nav-submenu > a{
    min-height:31px!important;height:31px!important;padding:3px 5px!important;
    font-size:12px!important;justify-content:flex-start!important;
  }
  /* Center only the final gallery page with exactly two thumbnails. */
  .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumbnails:has(> .gallery-thumb:nth-child(2):last-child){
    grid-template-columns:repeat(2,minmax(0,235px))!important;
    justify-content:center!important;align-content:start!important;
    grid-template-rows:minmax(0,1fr)!important;
  }
  .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumbnails:has(> .gallery-thumb:nth-child(2):last-child) > .gallery-thumb:first-child{grid-column:auto!important;}
}/* Keep the last character of the mobile portrait hero headline on its second line. */

@media (orientation:portrait) and (max-width:680px){
  body.xi-home-page .hero h1{font-size:clamp(25px,6.8vw,34px)!important;line-height:1.16!important;letter-spacing:-.035em!important;max-width:100%!important;}
  body.xi-home-page .hero h1 em{font-size:inherit!important;letter-spacing:-.04em!important;}
}/* v031: targeted real-phone refinements; preserve the six-column thumbnail size. */


@media (orientation:landscape) and (max-height:800px) and (max-width:1600px){
  /* Compact dropdown; nearly opaque so the hero copy never shows through its links. */
  .site-header .nav-links .nav-dropdown > .nav-submenu{
    width:292px!important;max-width:min(292px,calc(100vw - 20px))!important;
    padding:4px 5px!important;column-gap:0!important;row-gap:0!important;
    background:rgba(250,252,255,.97)!important;backdrop-filter:blur(14px)!important;
    -webkit-backdrop-filter:blur(14px)!important;
    right:-24px!important;top:calc(100% + 6px)!important;
    box-shadow:0 12px 26px rgba(28,48,67,.15)!important;
  }
  .site-header .nav-links .nav-dropdown > .nav-submenu > a{
    height:29px!important;min-height:29px!important;padding:2px 4px!important;
    font-size:11.5px!important;
  }
  /* Keep 2-item pages at the same tile dimensions as 12-item pages, centered. */
  .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumbnails:has(> .gallery-thumb:nth-child(2):last-child){
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    grid-template-rows:repeat(2,minmax(0,1fr))!important;
    justify-content:stretch!important;align-content:stretch!important;
  }
  .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumbnails:has(> .gallery-thumb:nth-child(2):last-child) > .gallery-thumb:first-child{grid-column:3!important;grid-row:1!important;}
  .gallery-modal.is-thumbnail-view .gallery-thumbnail-view .gallery-thumbnails:has(> .gallery-thumb:nth-child(2):last-child) > .gallery-thumb:nth-child(2){grid-column:4!important;grid-row:1!important;}
}/* Restore readable tracking while keeping the full phrase on two lines. */

@media (orientation:portrait) and (max-width:680px){
  body.xi-home-page .hero h1{font-size:clamp(24px,6.25vw,32px)!important;letter-spacing:.015em!important;line-height:1.22!important;}
  body.xi-home-page .hero h1 em{font-size:inherit!important;letter-spacing:.015em!important;}
}/* v032 — Portrait home hero headline: readable Chinese tracking without orphaning final glyph. */


@media (orientation:portrait) and (max-width:680px){
  body.xi-home-page .hero .hero-inner > h1{
    font-size:clamp(22px,5.55vw,29px)!important;
    letter-spacing:.055em!important;
    line-height:1.30!important;
    max-width:100%!important;
  }
  body.xi-home-page .hero .hero-inner > h1 em{
    font-size:inherit!important;
    letter-spacing:.055em!important;
    font-style:normal;
  }
}/* ===== X-IMAGE v034: unified responsive adjustments ===== */



.xi-work-modes{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 12px}
.xi-work-mode,.xi-work-shuffle{border:1px solid #d1dbe4;background:#fff;color:#526b86;border-radius:999px;padding:8px 16px;line-height:1.4;font:inherit;font-size:14px;cursor:pointer}
.xi-work-mode.active{background:#526b86;color:#fff;border-color:#526b86}
.xi-work-shuffle{margin-left:auto}
.xi-work-shuffle[hidden]{display:none!important}
.xi-page-loader{position:fixed;inset:0;z-index:99999;background:#f2f5f8;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;pointer-events:none;opacity:1;transition:opacity .32s ease}
.xi-page-loader.xi-loaded{opacity:0}
.xi-loading-ring{width:104px;height:104px;border-radius:50%;border:3px solid #d8e2ea;border-top-color:#526b86;display:grid;place-items:center;animation:xi-spin 1.5s linear infinite}
.xi-loading-ring img{width:68px;max-height:52px;object-fit:contain;filter:grayscale(1) sepia(.18) saturate(1.1);animation:xi-unspin 1.5s linear infinite}
.xi-loading-caption{font-size:12px;letter-spacing:.16em;color:#526b86}
@keyframes xi-spin{to{transform:rotate(360deg)}}@keyframes xi-unspin{to{transform:rotate(-360deg)}}
@media(prefers-reduced-motion:reduce){.xi-loading-ring,.xi-loading-ring img{animation:none}.xi-page-loader{transition:none}}/* Apply to actual landscape viewport, not portrait width alone. */

@media (orientation:landscape) and (max-height:800px) and (max-width:1600px){
 body .site-header .nav-links .nav-dropdown > .nav-submenu{width:318px!important;min-width:0!important;max-width:calc(100vw - 24px)!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:repeat(3,35px)!important;column-gap:0!important;row-gap:0!important;padding:5px!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;background:rgba(250,252,254,.97)!important;backdrop-filter:blur(9px)!important;border:1px solid #d7e0e8!important;border-radius:12px!important;box-shadow:0 12px 30px rgba(34,51,68,.16)!important}
 body .site-header .nav-links .nav-dropdown > .nav-submenu > a{min-height:0!important;height:35px!important;padding:5px 3px!important;line-height:25px!important;font-size:12px!important}
 }
@media (orientation:landscape) and (max-height:800px) and (max-width:1600px) and (pointer:coarse) and (min-width:100000px){body.xi-home-page .hero .hero-inner h1,body .hero .hero-inner h1{letter-spacing:.045em!important}}
@media (orientation:landscape) and (max-height:800px) and (max-width:1600px) and (pointer:coarse) and (min-width:100000px){body.xi-home-page .hero .hero-inner h1 em,body .hero .hero-inner h1 em{letter-spacing:.055em!important}}
@media (orientation:landscape) and (max-height:800px) and (max-width:1600px){
 body .page-hero:not(.portfolio-category-hero){height:clamp(125px,15vw,185px)!important;min-height:0!important}
 body .page-hero.portfolio-category-hero{height:47px!important;min-height:47px!important;padding:0!important}
 body .page-hero + .page-content,body.portfolio-page #portfolio-hero + .page-content{padding-top:9px!important}
 body .portfolio-filters{margin-bottom:8px!important}}
@media(orientation:portrait) and (max-width:680px){
 body .hero .hero-inner h1{font-size:clamp(26px,6.6vw,36px)!important;letter-spacing:.035em!important}
 body .hero .hero-inner h1 em{font-size:inherit!important;letter-spacing:.035em!important;white-space:normal!important}
 body .page-hero:not(.portfolio-category-hero){height:170px!important;min-height:0!important}
 .xi-work-modes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
 .xi-work-mode{padding:9px 2px;font-size:12px;white-space:nowrap}
 .xi-work-shuffle{grid-column:1/-1;justify-self:end}}/* v035: compact 3x3 desktop/mobile-landscape navigation grid.
   Nine links are retained; only outer corners are rounded. */


@media (orientation:landscape) and (max-height:800px) and (max-width:1600px){
  body .site-header .nav-links .nav-dropdown > .nav-submenu {
    right:0!important;left:auto!important;
    transform:translateY(6px);
  }
  body .site-header .nav-links .nav-dropdown.open > .nav-submenu {
    transform:translateY(0);
  }
  body .site-header .nav-links .nav-dropdown > .nav-submenu > a {
    justify-content:center!important;
    text-align:center!important;
    border-radius:0!important;
    margin:0!important;
    white-space:nowrap!important;
    border-right:1px solid #e2e9ef!important;
    border-bottom:1px solid #e2e9ef!important;
  }
  body .site-header .nav-links .nav-dropdown > .nav-submenu > a:nth-child(3n) {
    border-right:0!important;
  }
  body .site-header .nav-links .nav-dropdown > .nav-submenu > a:nth-last-child(-n+3) {
    border-bottom:0!important;
  }
  body .site-header .nav-links .nav-dropdown > .nav-submenu > a:hover,
  body .site-header .nav-links .nav-dropdown > .nav-submenu > a:focus-visible {
    padding-left:3px!important;
    background:#eaf1f7!important;
  }
}/* Match the about-page heading to news/contact on actual mobile landscape. */

@media (orientation:landscape) and (max-height:800px) and (max-width:1600px){
  body .page-content .split h2 {
    font-size:22px!important;
    line-height:1.3!important;
    letter-spacing:0!important;
  }
}/* v041: one primary sticky category bar, one independent gallery panel. */


body.portfolio-page .page-content .container {overflow:visible!important;}
body.portfolio-page .portfolio-filters {
 position:sticky!important;top:var(--xi-sticky-header-height,74px)!important;
 z-index:1001!important;background:rgba(255,255,255,.98)!important;
 margin:0 0 12px!important;padding:9px 12px!important;
 border:1px solid #edf1f5!important;border-radius:13px!important;
 box-shadow:0 2px 9px rgba(40,64,86,.045)!important;
 transform:none!important;
}
body.portfolio-page .portfolio-filters::before,body.portfolio-page .portfolio-filters::after{content:none!important;display:none!important;}
body.portfolio-page .xi-gallery-panel {
 padding:16px 15px 18px;
 background:linear-gradient(180deg,#f6f9fc 0%,#fff 190px);
 border:1px solid #e4ebf2;border-radius:16px;
 box-shadow:0 5px 20px rgba(47,72,94,.045);
}
body.portfolio-page .xi-gallery-panel .xi-work-modes {
 position:static!important;display:flex!important;align-items:center!important;
 justify-content:center!important;flex-wrap:wrap!important;
 gap:3px!important;width:max-content!important;max-width:100%!important;
 margin:0 auto 14px!important;padding:4px!important;
 border:1px solid #dce5ee!important;border-radius:11px!important;
 background:#edf3f8!important;box-shadow:none!important;
 max-height:none!important;overflow:visible!important;opacity:1!important;
 visibility:visible!important;transform:none!important;
}
body.portfolio-page .xi-work-mode {
 flex:0 0 auto!important;position:relative;overflow:hidden;
 border:0!important;border-radius:7px!important;background:transparent!important;
 color:#526b86!important;font-size:13px!important;font-weight:500!important;
 line-height:1.3!important;padding:7px 13px!important;
 white-space:nowrap!important;box-shadow:none!important;
 transition:background-color .24s ease,color .24s ease,box-shadow .24s ease,transform .24s ease!important;
}
body.portfolio-page .xi-work-mode.active,body.portfolio-page .xi-work-mode[aria-selected="true"]{
 background:#506f8b!important;color:#fff!important;
 box-shadow:0 2px 5px rgba(35,55,75,.13)!important;
}
body.portfolio-page .xi-work-mode.xi-mode-pending {
 background:#e4edf5!important;color:#385773!important;
 box-shadow:inset 0 0 0 1px #b9cad9!important;
}
body.portfolio-page .xi-work-mode.xi-mode-pressing {transform:scale(.96)!important;}
body.portfolio-page .xi-work-shuffle {
 margin-left:4px!important;font-size:11px!important;line-height:1.2!important;
 padding:5px 7px!important;min-height:0!important;border-radius:7px!important;
 white-space:nowrap!important;background:#fff!important;box-shadow:none!important;
}
body.portfolio-page .work-grid.xi-mode-leave {
 opacity:.28;transform:translateY(5px);
 transition:opacity .14s ease,transform .14s ease;
}
body.portfolio-page .work-grid.xi-mode-enter {animation:xi-mode-in .34s cubic-bezier(.2,.75,.2,1) both;}
@keyframes xi-mode-in {from{opacity:.3;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media (orientation:landscape) and (max-height:800px) and (max-width:1023px){
 body.portfolio-page {--xi-sticky-header-height:58px;}
 body.portfolio-page .xi-gallery-panel {padding:10px 10px 13px;border-radius:12px;}
 body.portfolio-page .xi-gallery-panel .xi-work-modes {margin-bottom:10px!important;}
 body.portfolio-page .xi-work-mode {font-size:12px!important;padding:6px 10px!important;}}
@media (max-width:900px) and (min-width:681px) {body.portfolio-page{--xi-sticky-header-height:84px;}}
@media (max-width:680px) and (orientation:portrait) {
 body.portfolio-page {--xi-sticky-header-height:74px;}
 body.portfolio-page .xi-gallery-panel {padding:10px 8px 13px;border-radius:12px;}
 body.portfolio-page .xi-gallery-panel .xi-work-modes {
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  width:100%!important;gap:2px!important;
 }
 body.portfolio-page .xi-work-mode {font-size:11px!important;padding:8px 2px!important;}
 body.portfolio-page .xi-work-shuffle {grid-column:1/-1;justify-self:end;}}
@media(prefers-reduced-motion:reduce) {
 body.portfolio-page .work-grid.xi-mode-enter {animation:none!important;}
 body.portfolio-page .xi-work-mode {transition:none!important;}
 body.portfolio-page .xi-work-mode.xi-mode-pressing {transform:none!important;}}/* v042: one opaque sticky shell; gallery thumbnails never show above tabs. */


body.portfolio-page .xi-sticky-gallery-nav {
 position:sticky!important;top:var(--xi-sticky-header-height,74px)!important;
 z-index:1100!important;background:#fff!important;isolation:isolate;
 padding:0 0 8px!important;margin:0!important;
 box-shadow:0 5px 12px rgba(38,58,78,.055);
}
body.portfolio-page .xi-sticky-gallery-nav::before,body.portfolio-page .xi-sticky-gallery-nav::after{content:none!important;display:none!important;}
body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters {
 position:relative!important;top:auto!important;z-index:auto!important;
 margin:0 0 7px!important;box-shadow:none!important;
}/* 050: legacy centered shell applies only to mobile; desktop/compact use 138. */

@media screen and (max-width:767px) {
body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes {
 position:relative!important;top:auto!important;z-index:auto!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex-wrap:wrap!important;gap:3px!important;width:max-content!important;max-width:100%!important;
 margin:0 auto!important;padding:4px!important;
 border:1px solid #dce5ee!important;border-radius:11px!important;
 background:#edf3f8!important;box-shadow:none!important;
 max-height:none!important;overflow:visible!important;opacity:1!important;
 visibility:visible!important;transform:none!important;
}
}
body.portfolio-page .xi-gallery-panel {
 position:relative;z-index:0;margin-top:0!important;
 border-top-left-radius:0!important;border-top-right-radius:0!important;
 padding-top:12px!important;
}
@media(max-width:680px) and (orientation:portrait){
 body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes{
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  width:100%!important;gap:2px!important;
 }}
@media (orientation:landscape) and (max-height:800px) and (max-width:1023px){
 body.portfolio-page .xi-sticky-gallery-nav{padding-bottom:5px!important;}
 body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters{margin-bottom:4px!important;}}/* v043: limit occlusion strictly to the two navigation rows. */


body.portfolio-page .site-header {z-index:3000!important;}
body.portfolio-page .xi-sticky-gallery-nav {
 z-index:1200!important;
 background:#fff!important;
 border:1px solid #e4ebf2!important;
 border-bottom:0!important;
 border-radius:15px 15px 0 0!important;
 box-shadow:none!important;
 overflow:visible!important;
}
body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters {
 border:0!important;
 border-radius:12px!important;
 background:#fff!important;
}
body.portfolio-page .xi-gallery-panel {
 border-top:1px solid #e4ebf2!important;
 border-top-left-radius:0!important;
 border-top-right-radius:0!important;
}/* v044: sticky bar must meet the ACTUAL rendered header, not a guessed breakpoint height. */


body.portfolio-page .xi-sticky-gallery-nav {
 top:var(--xi-measured-header-height, var(--xi-sticky-header-height,74px))!important;
 background:#fff!important;
 isolation:isolate!important;
 z-index:2100!important;
}
body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters,body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes{background-color:#fff!important;}
body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes {background-color:#edf3f8!important;}
body.portfolio-page .site-header {z-index:3000!important;background:#fff!important;}
body.portfolio-page .xi-gallery-panel {z-index:0!important;}/* v045: category navigation and gallery controls are distinct UI layers. */


body.portfolio-page .xi-sticky-gallery-nav{position:sticky!important;top:var(--xi-measured-header-height,var(--xi-sticky-header-height,74px))!important;z-index:1200!important;background:#fff!important;padding:0!important;margin:0!important;border:1px solid #e4ebf2!important;border-radius:13px!important;box-shadow:0 3px 9px rgba(40,60,80,.045)!important;isolation:isolate!important;}
body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters{margin:0!important;padding:9px 10px!important;background:#fff!important;border-radius:13px!important;}
body.portfolio-page .xi-gallery-panel{margin-top:14px!important;border:1px solid #dce5ed!important;border-radius:15px!important;background:#f8fafc!important;padding:13px!important;overflow:visible!important;}
body.portfolio-page .xi-gallery-section-title{font-size:15px;font-weight:650;letter-spacing:.05em;color:#4c657d;margin:0 0 9px 3px;}
body.portfolio-page .xi-gallery-panel .xi-work-modes{position:relative!important;top:auto!important;z-index:auto!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:4px!important;width:max-content!important;max-width:100%!important;margin:0 auto 12px!important;padding:4px!important;background:#eaf1f7!important;border:1px solid #d9e3ed!important;border-radius:12px!important;opacity:1!important;visibility:visible!important;transform:none!important;max-height:none!important;overflow:visible!important;}
body.portfolio-page.xi-category-view .xi-gallery-panel .xi-work-modes{display:none!important;}
body.portfolio-page.xi-category-view .xi-gallery-panel{background:#fff!important;border-color:#e1e7ee!important;}
body.portfolio-page.xi-category-view .xi-gallery-section-title{font-size:17px;}
body.portfolio-page .xi-gallery-panel .work-grid{position:relative;z-index:0;}
@media (orientation:landscape) and (max-height:800px) and (max-width:1023px){body.portfolio-page .xi-gallery-panel{margin-top:9px!important;padding:9px!important;}body.portfolio-page .xi-gallery-section-title{font-size:12px;margin-bottom:5px;}body.portfolio-page .xi-gallery-panel .xi-work-modes{margin-bottom:9px!important;}}
@media(max-width:680px) and (orientation:portrait){body.portfolio-page .xi-gallery-panel .xi-work-modes{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%!important;}}/* v046: category navigation is separate; the gallery's blue mode strip stays
   pinned below it while thumbnails scroll behind its opaque background. */


body.portfolio-page .xi-gallery-section-title{display:none!important;}
body.portfolio-page.xi-category-view .xi-gallery-section-title{display:block!important;margin:0 0 9px 2px!important;}
body.portfolio-page .xi-gallery-panel{position:relative!important;z-index:auto!important;overflow:visible!important;padding-top:0!important;}
body.portfolio-page .xi-gallery-panel .xi-work-modes{
 position:sticky!important;
 top:calc(var(--xi-measured-header-height,var(--xi-sticky-header-height,74px)) + var(--xi-category-nav-height,60px))!important;
 z-index:1150!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 width:100%!important;max-width:100%!important;
 margin:0 0 9px!important;padding:6px 8px!important;
 border:1px solid #d9e3ed!important;border-radius:12px 12px 0 0!important;
 background:#eaf1f7!important;box-shadow:0 2px 5px rgba(50,72,94,.07)!important;
 isolation:isolate!important;
}
body.portfolio-page .xi-gallery-panel .work-grid{position:relative!important;z-index:0!important;}
body.portfolio-page.xi-category-view .xi-gallery-panel .xi-work-modes{display:none!important;}
@media(max-width:680px) and (orientation:portrait){body.portfolio-page .xi-gallery-panel .xi-work-modes{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;}}
body.portfolio-page .xi-gallery-panel {
  position:relative!important;z-index:0!important;
  margin-top:0!important;padding:9px!important;
  border:1px solid #dce6ef!important;border-top:0!important;
  border-radius:0 0 14px 14px!important;background:#f8fafc!important;
  overflow:visible!important;
}
body.portfolio-page .xi-gallery-panel .work-grid{position:relative!important;z-index:0!important;}
body.portfolio-page.xi-category-view .xi-gallery-panel{margin-top:9px!important;border-top:1px solid #dce6ef!important;border-radius:14px!important;}/* v048: category pages do not repeat the selected category above the grid. */


body.portfolio-page.xi-category-view .xi-gallery-panel{padding-top:12px;}
body.portfolio-page.xi-category-view .xi-gallery-section-title{display:none!important;}/* v049: minimal gallery, connected tabs, category and gallery remain distinct. */


body.portfolio-page .xi-v049-sticky{background:#fff!important;border:0!important;box-shadow:none!important;isolation:isolate!important;z-index:2100!important;padding:0!important;}
body.portfolio-page .xi-v049-sticky .portfolio-filters{border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;padding:7px 4px!important;margin:0 0 6px!important;}
body.portfolio-page .xi-v049-sticky .xi-work-modes{background:#fff!important;border:0!important;border-bottom:2px solid #58758f!important;border-radius:0!important;padding:0 6px!important;margin:0!important;display:flex!important;gap:0!important;justify-content:center!important;align-items:flex-end!important;overflow:visible!important;}
body.portfolio-page .xi-v049-sticky .xi-work-mode{border:1px solid #a9bdcf!important;border-bottom:0!important;border-radius:11px 11px 0 0!important;background:#fff!important;color:#526e86!important;box-shadow:none!important;margin:0 -1px 0 0!important;padding:7px 13px!important;transform:none!important;}
body.portfolio-page .xi-v049-sticky .xi-work-mode.active{background:#526f89!important;color:#fff!important;border-color:#526f89!important;}
body.portfolio-page .xi-v049-sticky::after{display:none!important;content:none!important;}
body.portfolio-page .xi-gallery-panel,body.portfolio-page.xi-category-view .xi-gallery-panel{border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;margin:0!important;padding:8px 0 0!important;}
body.portfolio-page .work-card{border:0!important;box-shadow:none!important;border-radius:6px!important;background:transparent!important;overflow:hidden;}
body.portfolio-page .work-card .work-info{padding:9px 4px 11px!important;}
body.portfolio-page .work-card .work-images{border-radius:6px!important;}
body.portfolio-page .work-card .work-image{border-radius:0!important;}
body.portfolio-page.xi-category-view .xi-v049-sticky .xi-work-modes{display:none!important;}
body.portfolio-page.xi-category-view .xi-v049-sticky .portfolio-filters{margin-bottom:0!important;}
body.portfolio-page.xi-featured-mode:not(.xi-category-view) .work-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
body.portfolio-page.xi-featured-mode:not(.xi-category-view) .work-grid .work-images{height:auto!important;aspect-ratio:1.45!important;}
body.portfolio-page.xi-featured-mode:not(.xi-category-view) .work-grid .work-images .work-image img{height:100%!important;object-fit:contain!important;background:#f5f7f9!important;}
body.portfolio-page.xi-featured-mode:not(.xi-category-view) .work-grid .work-images .work-image{min-height:0!important;}
@media (max-width:680px) and (orientation:portrait){
 body.portfolio-page.xi-featured-mode:not(.xi-category-view) .work-grid{grid-template-columns:1fr!important;}
 body.portfolio-page .xi-v049-sticky .xi-work-modes{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;padding:0!important;}
 body.portfolio-page .xi-v049-sticky .xi-work-mode{font-size:12px!important;padding:8px 2px!important;white-space:nowrap!important;}}
@media (orientation:landscape) and (max-height:800px){
 body.portfolio-page.xi-featured-mode:not(.xi-category-view) .work-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
 body.portfolio-page .xi-v049-sticky .xi-work-mode{padding:5px 13px!important;}}/* compact category hero: title and breadcrumb share one line on portrait phones */

@media (max-width:680px) and (orientation:portrait){
 body.portfolio-page #portfolio-hero.portfolio-category-hero{min-height:92px!important;height:92px!important;}
 body.portfolio-page #portfolio-hero.portfolio-category-hero .page-heading{top:50%!important;transform:translateY(-50%)!important;left:14px!important;right:128px!important;width:auto!important;}
 body.portfolio-page #portfolio-hero.portfolio-category-hero .page-heading h1{font-size:17px!important;white-space:nowrap!important;}
 body.portfolio-page #portfolio-hero.portfolio-category-hero .eyebrow{font-size:8px!important;white-space:nowrap!important;}
 body.portfolio-page #portfolio-hero.portfolio-category-hero .portfolio-breadcrumb{top:50%!important;bottom:auto!important;left:auto!important;right:9px!important;transform:translateY(-50%)!important;font-size:10px!important;padding:4px 6px!important;}
}
body.portfolio-page:not(.xi-category-view) #portfolio-breadcrumb{display:none!important;}
.xi-top-row{display:flex;justify-content:center;align-items:center;padding:16px 12px 22px;background:#fff;}
.xi-top-button{border:1px solid #b6c8d8;border-radius:999px;background:#f2f6f9;color:#526f89;font:600 13px 'Microsoft JhengHei',sans-serif;letter-spacing:.06em;padding:8px 19px;cursor:pointer;transition:background .2s,color .2s;}
.xi-top-button:hover{background:#526f89;color:#fff;}/* Quiet monochrome visual motifs; keep original copy and logo unchanged. */

.xi-soft-illustrations .service-card{position:relative;isolation:isolate;overflow:hidden;border:0!important;box-shadow:none!important;background:linear-gradient(115deg,#fff 55%,#f3f7fa 100%)!important;}
.xi-soft-illustrations .service-card::after{content:'';position:absolute;z-index:-1;right:-8px;bottom:-12px;width:47%;height:90%;background:var(--xi-motif) center / contain no-repeat;opacity:.15;pointer-events:none;}
.xi-soft-illustrations .service-card .service-icon{color:#5a7c99!important;}
.xi-soft-illustrations .service-card h3,.xi-soft-illustrations .service-card p{position:relative;z-index:1;}
.xi-soft-illustrations .service-card:nth-child(1){--xi-motif:url('../assets/img/decor/motif-identity.svg')}
.xi-soft-illustrations .service-card:nth-child(2){--xi-motif:url('../assets/img/decor/motif-layout.svg')}
.xi-soft-illustrations .service-card:nth-child(3){--xi-motif:url('../assets/img/decor/motif-print.svg')}
.xi-principle-illustrations .service-card{background:transparent!important;border:0!important;border-right:1px solid #d9e4ee!important;border-radius:0!important;}
.xi-principle-illustrations .service-card:last-child{border-right:0!important;}
.xi-principle-illustrations .service-icon{background:transparent!important;color:#b8cddd!important;font-size:44px!important;line-height:1.1!important;width:auto!important;height:auto!important;}
.xi-principle-illustrations .service-card:nth-child(1){--xi-motif:url('../assets/img/decor/motif-talk.svg')}
.xi-principle-illustrations .service-card:nth-child(2){--xi-motif:url('../assets/img/decor/motif-detail.svg')}
.xi-principle-illustrations .service-card:nth-child(3){--xi-motif:url('../assets/img/decor/motif-unity.svg')}
@media(max-width:680px){.xi-principle-illustrations .service-card{border-right:0!important;border-bottom:1px solid #d9e4ee!important;}.xi-principle-illustrations .service-card:last-child{border-bottom:0!important;}}/* v050: explicit visual reset after legacy v044-v049 rules. */


html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky{background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important}
html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .portfolio-filters{background:#fff!important;border:0!important;outline:0!important;border-radius:0!important;box-shadow:none!important;margin:0 0 6px!important;padding:7px 0!important}
html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .xi-work-modes{background:#fff!important;border:0!important;border-bottom:2px solid #526f89!important;border-radius:0!important;box-shadow:none!important;margin:0!important;padding:0 4px!important;gap:0!important;min-height:0!important;display:flex!important;align-items:flex-end!important;justify-content:center!important}
html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .xi-work-modes > .xi-work-mode{border:1px solid #a9bdcf!important;border-bottom:0!important;border-radius:9px 9px 0 0!important;background:#fff!important;color:#526f89!important;box-shadow:none!important;margin:0 -1px 0 0!important;transform:none!important}
html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .xi-work-modes > .xi-work-mode.active{background:#526f89!important;color:#fff!important;border-color:#526f89!important}
html body.portfolio-page .xi-gallery-panel{background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important;padding:10px 0 0!important}
html body.portfolio-page .xi-gallery-panel .work-card{border:0!important;outline:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
html body.portfolio-page .xi-gallery-panel .work-card .work-images{border:0!important;box-shadow:none!important;border-radius:6px!important;overflow:hidden!important}
html body.portfolio-page .xi-gallery-panel .work-card .work-info{background:transparent!important;border:0!important;box-shadow:none!important}
html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav.xi-v049-sticky > .xi-work-modes{display:none!important}
@media(max-width:680px) and (orientation:portrait){html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav.xi-v049-sticky > .xi-work-modes{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}}/* v051: restore original understated thumbnail cards; preserve artwork. */


html body.portfolio-page .xi-gallery-panel .work-card{background:#fff!important;border:1px solid #e1e8ee!important;border-radius:12px!important;box-shadow:0 3px 12px rgba(48,76,99,.09)!important;overflow:hidden!important}
html body.portfolio-page .xi-gallery-panel .work-card .work-images{border-radius:9px 9px 0 0!important}
html body.portfolio-page .xi-gallery-panel .work-card .work-info{padding:9px 11px 12px!important}/* Keep four connected tabs centered and underline across the entire tab group. */

@media(max-width:1023px){html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes{display:flex!important;justify-content:center!important;align-items:flex-end!important;width:max-content!important;max-width:100%!important;margin:0 auto!important;padding:0!important;border-bottom:2px solid #526f89!important;overflow:visible!important}}
html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-mode{flex:0 1 auto!important;min-width:0!important}
@media(max-width:680px) and (orientation:portrait){html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes{display:flex!important;width:100%!important}html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-mode{flex:1 1 25%!important}}/* Ensure the filtered gallery remains visible and can scroll normally. */

html body.portfolio-page .xi-gallery-panel .work-grid{min-height:0!important}
html body.portfolio-page .xi-gallery-panel .work-card[hidden]{display:none!important}/* Fullscreen gallery thumbnail selection must reveal the single-image stage. */

html body .gallery-modal .gallery-thumbnail-view[hidden],html body .gallery-modal .gallery-image-stage[hidden],html body .gallery-modal .gallery-caption[hidden]{display:none!important}
html body .gallery-modal:not(.is-thumbnail-view) .gallery-image-stage{display:flex!important}/* Refined airy line-art motifs, legible copy, and subtle white cards. */

.xi-soft-illustrations .service-card{background:#fff!important;border:1px solid #e7edf2!important;border-radius:14px!important;box-shadow:0 4px 18px rgba(59,84,103,.045)!important;padding:24px!important}
.xi-soft-illustrations .service-card::after{width:48%!important;height:75%!important;right:3%!important;bottom:0!important;opacity:.20!important;background-position:right bottom!important;z-index:0!important}
.xi-soft-illustrations .service-card h3,.xi-soft-illustrations .service-card p,.xi-soft-illustrations .service-card .service-icon{position:relative!important;z-index:1!important}
.xi-principle-illustrations .service-card{border:1px solid #e7edf2!important;border-radius:14px!important;background:#fff!important}
.xi-principle-illustrations .service-icon{font-size:40px!important;font-weight:300!important;color:#9bb5ca!important}/* Server-side image captcha, compact on phones. */

.xi-captcha-field{margin:14px 0 18px}.xi-captcha-field>label{display:block;margin-bottom:8px;font-weight:600;color:#405a70}
.xi-captcha-row{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.xi-captcha-image{border-radius:8px;border:1px solid #cbd8e3;background:#edf3f8}
.xi-captcha-refresh{border:1px solid #cbd8e3;border-radius:8px;background:#f7fafc;color:#506f89;padding:10px;cursor:pointer}
.xi-captcha-row input{max-width:170px;min-width:130px;flex:1 1 130px;padding:12px;border:1px solid #b9cbd9;border-radius:8px;text-transform:uppercase}
.xi-captcha-help{font-size:12px;color:#6d8294;margin-top:5px}/* v051 category breadcrumb visibly follows active category. */


body.portfolio-page #portfolio-current-category:empty{display:none!important}
body.portfolio-page #portfolio-current-category:not(:empty)::before{content:' › ';padding:0 5px;color:#e0e8f0}
body.portfolio-page #portfolio-current-category:not(:empty){white-space:nowrap;color:#fff;font-weight:600}
@media(max-width:680px) and (orientation:portrait){body.portfolio-page #portfolio-current-category{font-size:9px}}/* v052 breadcrumb: plain white text without a pill. */


html body.portfolio-page #portfolio-hero.portfolio-category-hero #portfolio-breadcrumb [aria-current="page"]{background:transparent!important;color:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;font-weight:600!important}
html body.portfolio-page #portfolio-hero.portfolio-category-hero #portfolio-breadcrumb{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}/* v052 mobile tabs and thumbnail card overrides. */

@media(max-width:900px){
html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav.xi-v049-sticky > .xi-work-modes{display:flex!important;justify-content:center!important;align-items:stretch!important;width:100%!important;max-width:100%!important;overflow:visible!important;border-bottom:2px solid #526f89!important;background:#fff!important}
html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav.xi-v049-sticky > .xi-work-modes > .xi-work-mode{flex:1 1 25%!important;min-width:0!important;padding:8px 2px!important;font-size:clamp(10px,2.6vw,13px)!important;white-space:nowrap!important;text-align:center!important}
html body.portfolio-page .xi-gallery-panel .work-card{border:1px solid #e1e8ee!important;border-radius:12px!important;background:#fff!important;box-shadow:0 3px 12px rgba(48,76,99,.09)!important}
}
@media (orientation:landscape) and (max-height:550px){html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav.xi-v049-sticky > .xi-work-modes > .xi-work-mode{padding:5px 3px!important;font-size:12px!important}}
html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon{
 display:inline-block;margin-left:3px;font-size:1.16em;line-height:1;vertical-align:-.04em;
 transform-origin:center center;
}
html body.portfolio-page .xi-random-icon.xi-spinning{animation:xi-random-spin .55s ease-in-out both}
@keyframes xi-random-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){html body.portfolio-page .xi-random-icon.xi-spinning{animation:none}}/* v053: requested portfolio grid columns for mobile portrait/landscape.
   Only portfolio home modes are affected, not category-specific views. */

@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel .work-grid{
   display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }
 html body.portfolio-page:not(.xi-category-view)[data-work-mode="featured"] .xi-gallery-panel .work-grid{
   grid-template-columns:minmax(0,1fr)!important;
 }
 html body.portfolio-page:not(.xi-category-view)[data-work-mode="latest"] .xi-gallery-panel .work-grid{
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
}
@media (max-width:900px) and (orientation:landscape){
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel .work-grid{
   display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
 }
 html body.portfolio-page:not(.xi-category-view)[data-work-mode="featured"] .xi-gallery-panel .work-grid{
   grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
 html body.portfolio-page:not(.xi-category-view)[data-work-mode="latest"] .xi-gallery-panel .work-grid{
   grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }}/* v054: mobile density switcher placed between mode tabs and portfolio grid. */


html body.portfolio-page .xi-grid-density{display:none;}
@media(max-width:900px){
 html body.portfolio-page:not(.xi-category-view) .xi-grid-density{
  display:flex!important;justify-content:flex-end;align-items:center;
  padding:5px 1px 8px;gap:4px;
 }
 html body.portfolio-page .xi-grid-density-portrait,html body.portfolio-page .xi-grid-density-landscape{display:flex;gap:5px;align-items:center}
 html body.portfolio-page .xi-grid-density-btn{
  display:flex;align-items:center;justify-content:center;width:35px;height:30px;
  border:1px solid #c4d2df;border-radius:6px;background:#fff;color:#647f98;
  padding:5px;cursor:pointer;touch-action:manipulation;
 }
 html body.portfolio-page .xi-grid-density-btn.active{
  border-color:#526f89;background:#e9eff5;box-shadow:inset 0 0 0 1px #526f89;
 }}
@media(max-width:900px) and (orientation:portrait){
 html body.portfolio-page .xi-grid-density-landscape{display:none!important}
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(1,minmax(0,1fr))!important}
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="2"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="3"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:900px) and (orientation:landscape){
 html body.portfolio-page .xi-grid-density-portrait{display:none!important}
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="3"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="6"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}}/* v055: tabs and density controls share one horizontal row on mobile. */


@media(max-width:900px){
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row{display:flex!important;align-items:flex-end!important;gap:8px!important;width:100%!important;min-width:0!important}
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes{display:flex!important;flex:1 1 auto!important;width:auto!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0!important;justify-content:stretch!important;align-items:stretch!important;border-bottom:2px solid #526f89!important;gap:0!important}
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes > .xi-work-mode{flex:1 1 25%!important;min-width:0!important;padding:8px 1px!important;font-size:clamp(10px,2.5vw,13px)!important;white-space:nowrap!important}
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density{display:flex!important;flex:0 0 auto!important;align-self:flex-end!important;align-items:center!important;justify-content:flex-end!important;padding:0 0 2px!important;margin:0!important;gap:4px!important}
 html body.portfolio-page .xi-grid-density-btn{width:30px!important;height:31px!important;padding:4px!important}
 html body.portfolio-page .xi-grid-density-icon{width:21px!important;height:20px!important}
}
@media(max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row{gap:5px!important}
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes > .xi-work-mode{font-size:clamp(9px,2.5vw,12px)!important;letter-spacing:-.3px!important}
 html body.portfolio-page .xi-grid-density-portrait{gap:3px!important}
 html body.portfolio-page .xi-grid-density-btn{width:27px!important;height:29px!important;padding:4px!important}}
@media(max-width:900px) and (orientation:landscape){
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes > .xi-work-mode{font-size:12px!important}}/* Preserve artwork proportions in every mobile density setting. Do not crop or stretch. */

@media(max-width:900px){
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-images,
 html body.portfolio-page.xi-featured-mode:not(.xi-category-view) .xi-gallery-panel .work-grid .work-images{height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;display:block!important;overflow:hidden!important}
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-image{height:auto!important;min-height:0!important;aspect-ratio:auto!important;display:block!important}
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-image img,
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-images.multi .work-image img{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;position:static!important;transform:none!important}
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card{height:auto!important;align-self:start!important}
}/* Keep random refresh symbol animation visible on every tap. */

html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon{display:inline-block!important;transform-origin:50% 50%!important}
html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon.xi-spinning{animation:xi-random-spin .6s ease-in-out!important}
@media(prefers-reduced-motion:reduce){html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon.xi-spinning{animation:none!important}}/* v056: random icon spins continuously ONLY while the random mode is active. */


html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon,html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon.xi-spinning{
 animation:none!important;
}
html body.portfolio-page .xi-work-mode[data-mode="random"].active .xi-random-icon{
 animation:xi-random-spin 1.9s linear infinite!important;
}
@media(prefers-reduced-motion:reduce){
 html body.portfolio-page .xi-work-mode[data-mode="random"].active .xi-random-icon{animation:none!important}}/* v056: density controls are frameless, with a uniform thin line drawing. */

@media(max-width:900px){
 html body.portfolio-page .xi-grid-density-btn,
 html body.portfolio-page .xi-grid-density-btn.active{
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:transparent!important;padding:3px!important;
  outline-offset:1px!important;
 }
 html body.portfolio-page .xi-grid-density-btn.active{color:#345a7c!important}
 html body.portfolio-page .xi-grid-density-icon{
  border:1px solid currentColor!important;
  background:none!important;position:relative!important;
 }
 html body.portfolio-page .xi-grid-density-icon::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to right,
   transparent 0,transparent calc(100% / var(--xi-icon-columns) - .5px),
   currentColor calc(100% / var(--xi-icon-columns) - .5px),
   currentColor calc(100% / var(--xi-icon-columns) + .5px),
   transparent calc(100% / var(--xi-icon-columns) + .5px));
 }
 html body.portfolio-page .xi-grid-density-btn:focus-visible{outline:2px solid #526f89!important}
}/* v056: restore equal-height thumbnail frames (no uneven masonry).
   Artwork retains its aspect ratio, cropping only within the thumbnail frame. */

html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-images,html body.portfolio-page.xi-featured-mode:not(.xi-category-view) .xi-gallery-panel .work-grid .work-images{
 display:block!important;position:relative!important;width:100%!important;
 aspect-ratio:4 / 3!important;height:auto!important;min-height:0!important;
 max-height:none!important;overflow:hidden!important;
}
html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-image{
 display:block!important;width:100%!important;height:100%!important;
 min-height:0!important;position:absolute!important;inset:0!important;
}
html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-image[hidden]{
 display:none!important;
}
html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-image img,html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-images.multi .work-image img{
 width:100%!important;height:100%!important;max-height:none!important;
 object-fit:cover!important;object-position:center!important;
 position:static!important;transform:none!important;
}
html body.portfolio-page .xi-gallery-panel .work-grid .work-card{align-self:stretch!important}/* v056: multi-image works display one frame at a time, never side by side. */

html body.portfolio-page .xi-gallery-panel .work-images.multi{
 display:block!important;grid-template-columns:none!important;
}/* v057: mobile card metadata stays on a single compact line. */


@media (max-width:900px){
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-info{
  display:flex!important;align-items:center!important;gap:4px!important;
  min-height:0!important;height:auto!important;padding:5px 5px 6px!important;
  line-height:1.15!important;overflow:hidden!important;
 }
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-info > span:not(.work-count){
  display:block!important;flex:0 0 auto!important;max-width:43%!important;
  font-size:9px!important;line-height:1.2!important;letter-spacing:0!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
 }
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-info h3{
  display:block!important;flex:1 1 0!important;min-width:0!important;
  font-size:10px!important;font-weight:600!important;line-height:1.2!important;
  margin:0!important;padding:0!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;overflow-wrap:normal!important;
 }
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-info .work-count{display:none!important}
 html body.portfolio-page .xi-grid-density-btn{
  cursor:pointer!important;touch-action:manipulation!important;opacity:.65!important;
  transition:opacity .15s,color .15s,transform .15s!important;
 }
 html body.portfolio-page .xi-grid-density-btn.active{
  opacity:1!important;color:#315b7e!important;transform:translateY(-1px)!important;
 }
 html body.portfolio-page .xi-grid-density-btn.active .xi-grid-density-icon{
  background-color:rgba(72,113,148,.16)!important;
 }
}/* v057: explicit user-selected columns override every earlier mode default. */

@media(max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(1,minmax(0,1fr))!important}
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="2"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="3"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:900px) and (orientation:landscape){
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="3"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="6"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}}/* v058 — mobile portfolio two-line labels, full underline, subtle density controls */


@media(max-width:900px){
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-info{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  justify-content:center!important;gap:3px!important;
  padding:7px 8px 9px!important;min-height:0!important;height:auto!important;
  overflow:hidden!important;
 }
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-info > span:not(.work-count){
  display:block!important;width:100%!important;max-width:100%!important;
  font-size:10px!important;line-height:1.25!important;font-weight:400!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  margin:0!important;
 }
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-info h3{
  display:block!important;width:100%!important;max-width:100%!important;
  font-size:12px!important;line-height:1.35!important;font-weight:650!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
  margin:0!important;padding:0!important;flex:none!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row{
  position:relative!important;padding-bottom:2px!important;
  border-bottom:2px solid #526f89!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes{
  border-bottom:0!important;
 }
 html body.portfolio-page .xi-grid-density-btn,
 html body.portfolio-page .xi-grid-density-btn.active{
  border:1px solid rgba(104,132,155,.24)!important;border-radius:4px!important;
  background:#fff!important;box-shadow:0 1px 3px rgba(33,61,83,.13)!important;
  transform:scale(1)!important;transform-origin:center!important;
  transition:transform .14s ease,box-shadow .14s ease,background .14s ease!important;
  opacity:1!important;
 }
 html body.portfolio-page .xi-grid-density-btn.active{
  background:#edf3f8!important;box-shadow:0 1px 4px rgba(33,61,83,.2)!important;
 }
 html body.portfolio-page .xi-grid-density-btn:active{
  transform:scale(1.09)!important;
 }
 html body.portfolio-page .xi-grid-density-btn.active .xi-grid-density-icon{
  background-color:transparent!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel{
  padding-top:12px!important;
 }
}/* v059: visible breathing room between sticky mode bar and first portfolio row. */


@media(max-width:900px){
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel{
  padding-top:18px!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel > .work-grid,
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel .work-grid{
  margin-top:8px!important;
 }
 /* The control is the rounded/shadowed surface itself, without an outline border. */
 html body.portfolio-page .xi-grid-density-btn,
 html body.portfolio-page .xi-grid-density-btn.active{
  border:0!important;outline:0!important;border-radius:5px!important;
  background:#fff!important;box-shadow:0 1px 5px rgba(37,66,90,.20)!important;
  padding:4px!important;transform:scale(1)!important;
  transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease!important;
 }
 html body.portfolio-page .xi-grid-density-btn.active{
  background:#e9f0f6!important;box-shadow:0 1px 6px rgba(37,66,90,.26)!important;
 }
 html body.portfolio-page .xi-grid-density-btn:active{
  transform:scale(1.08)!important;
 }
 html body.portfolio-page .xi-grid-density-btn:focus-visible{
  outline:2px solid #526f89!important;outline-offset:2px!important;
 }
}/* v060: normal portfolio home remains compact. The extra 14px clearance
   is applied by JS only when switching a mode and scrolling to the grid. */


@media(max-width:900px){
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel{
  padding-top:6px!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel > .work-grid,
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel .work-grid{
  margin-top:0!important;
 }
 /* Three independent frameless buttons: rounded surfaces with soft shadow.
    The thin internal lines depict the number of columns, not button borders. */
 html body.portfolio-page .xi-grid-density-btn,
 html body.portfolio-page .xi-grid-density-btn.active{
  -webkit-appearance:none!important;appearance:none!important;
  border:none!important;outline:none!important;border-radius:5px!important;
  background:#fff!important;box-shadow:0 1px 5px rgba(38,68,91,.19)!important;
  padding:4px!important;transform:scale(1)!important;
  transition:transform .15s ease,background-color .15s ease,box-shadow .15s ease!important;
 }
 html body.portfolio-page .xi-grid-density-btn.active{
  background:#e9f0f6!important;box-shadow:0 1px 6px rgba(38,68,91,.23)!important;
 }
 html body.portfolio-page .xi-grid-density-btn:active{
  transform:scale(1.08)!important;
 }
 html body.portfolio-page .xi-grid-density-btn:focus-visible{
  outline:2px solid #526f89!important;outline-offset:2px!important;
 }
}/* v061: mode switching gives a visible gap, but initial home stays compact. */


@media(max-width:900px){
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel{padding-top:6px!important}
 html body.portfolio-page.xi-mode-has-switched:not(.xi-category-view) .xi-gallery-panel{padding-top:16px!important}
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel .work-grid{margin-top:0!important}
 /* No background or shadow on the outer clickable button: only the inner
    column pictogram gets rounded corners and a soft shadow. */
 html body.portfolio-page .xi-grid-density-btn,
 html body.portfolio-page .xi-grid-density-btn.active{
  -webkit-appearance:none!important;appearance:none!important;
  border:0!important;border-radius:0!important;background:transparent!important;
  box-shadow:none!important;outline:0!important;padding:3px!important;
  transform:scale(1)!important;
 }
 html body.portfolio-page .xi-grid-density-btn .xi-grid-density-icon,
 html body.portfolio-page .xi-grid-density-btn.active .xi-grid-density-icon{
  border:1px solid currentColor!important;border-radius:3px!important;
  box-shadow:0 1px 4px rgba(36,64,89,.23)!important;
  background-color:transparent!important;
  transition:transform .15s ease,box-shadow .15s ease!important;
 }
 html body.portfolio-page .xi-grid-density-btn.active .xi-grid-density-icon{
  box-shadow:0 1px 5px rgba(36,64,89,.32)!important;
 }
 html body.portfolio-page .xi-grid-density-btn:active{transform:none!important}
 html body.portfolio-page .xi-grid-density-btn:active .xi-grid-density-icon{
  transform:scale(1.1)!important;
 }
 html body.portfolio-page .xi-grid-density-btn:focus-visible{outline:2px solid #526f89!important;outline-offset:1px!important}
}/* v062: finer column pictogram lines; selected pictogram stays slightly larger. */


@media(max-width:900px){
 html body.portfolio-page .xi-grid-density-btn .xi-grid-density-icon,
 html body.portfolio-page .xi-grid-density-btn.active .xi-grid-density-icon{
   border-width:.65px!important;
   transform:scale(1)!important;
   transform-origin:center center!important;
   transition:transform .16s ease-out,box-shadow .16s ease-out!important;
 }
 html body.portfolio-page .xi-grid-density-btn.active .xi-grid-density-icon{
   transform:scale(1.12)!important;
 }
 html body.portfolio-page .xi-grid-density-btn:active .xi-grid-density-icon{
   transform:scale(1.16)!important;
 }
}/* v063: 0.7px vector strokes instead of overlapping CSS borders/gradients. */


@media(max-width:900px){
 html body.portfolio-page .xi-grid-density-btn .xi-grid-density-icon,
 html body.portfolio-page .xi-grid-density-btn.active .xi-grid-density-icon{
  border:0!important;background:none!important;box-shadow:none!important;
  border-radius:2px!important;display:flex!important;align-items:center!important;
  justify-content:center!important;width:100%!important;height:100%!important;
  transform:scale(1)!important;
 }
 html body.portfolio-page .xi-grid-density-icon::before,
 html body.portfolio-page .xi-grid-density-icon::after{content:none!important;display:none!important;background:none!important}
 html body.portfolio-page .xi-grid-density-icon svg{
  display:block;width:100%;height:100%;fill:none;stroke:currentColor;
  stroke-width:.7px;stroke-linecap:round;stroke-linejoin:round;
  overflow:visible;filter:drop-shadow(0 1px 1px rgba(45,68,89,.22));
  transition:transform .17s ease,stroke .17s ease;
 }
 html body.portfolio-page .xi-grid-density-btn.active .xi-grid-density-icon{transform:scale(1.12)!important}
 html body.portfolio-page .xi-grid-density-btn:active .xi-grid-density-icon{transform:scale(1.17)!important}
 html body.portfolio-page .xi-grid-density-btn,
 html body.portfolio-page .xi-grid-density-btn.active{
  background:transparent!important;box-shadow:none!important;border:0!important;
  outline:none!important;cursor:pointer!important;
 }
 html body.portfolio-page .xi-grid-density-btn.active{color:#285e87!important}
 /* Categories are light neutral, modes remain deeper brand blue. */
 html body.portfolio-page .portfolio-filters .filter-button{
  background:#fff!important;color:#657483!important;border-color:#d8e0e8!important;
 }
 html body.portfolio-page .portfolio-filters .filter-button.active{
  background:#7d8b99!important;color:#fff!important;border-color:#7d8b99!important;
 }
 html body.portfolio-page .xi-work-mode.active{
  background:#526f89!important;color:#fff!important;
 }
}
@media(max-width:900px) and (orientation:landscape){
 html body.portfolio-page .xi-grid-density-landscape{gap:9px!important}
 html body.portfolio-page .xi-grid-density-landscape .xi-grid-density-btn{
  width:39px!important;height:30px!important;padding:2px!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density{gap:9px!important}}
@media(max-width:900px) and (orientation:portrait){
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn{
  width:27px!important;height:29px!important;padding:3px!important;
 }}/* v064: soft monochrome photographic backdrop + three tasteful 3D illustrations */


.xi-soft-illustrations .service-card.xi-service-3d{
 position:relative!important;isolation:isolate!important;overflow:hidden!important;
 background:#fff!important;border:1px solid #e3ebf2!important;
 border-radius:17px!important;box-shadow:0 8px 25px rgba(59,84,103,.055)!important;
 padding:24px 26px 27px!important;min-height:220px!important;
}
.xi-soft-illustrations .service-card.xi-service-3d::before{
 content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;
 background:linear-gradient(90deg,#fff 2%,rgba(255,255,255,.94) 34%,rgba(255,255,255,.79) 100%),var(--xi-service-photo) right center/auto 100% no-repeat;
 filter:grayscale(1);opacity:.54;
}
.xi-soft-illustrations .service-card.xi-service-3d::after{display:none!important}
.xi-soft-illustrations .service-card.xi-service-3d:nth-child(1){--xi-service-photo:url('../assets/img/services/brand.webp')}
.xi-soft-illustrations .service-card.xi-service-3d:nth-child(2){--xi-service-photo:url('../assets/img/services/editorial.webp')}
.xi-soft-illustrations .service-card.xi-service-3d:nth-child(3){--xi-service-photo:url('../assets/img/services/press.webp')}
.xi-soft-illustrations .service-card.xi-service-3d .xi-3d-service-icon{
 display:block!important;width:82px!important;height:82px!important;
 background:none!important;border:0!important;box-shadow:none!important;
 margin:0 0 8px!important;padding:0!important;
}
.xi-soft-illustrations .service-card.xi-service-3d .xi-3d-service-icon img{
 display:block;width:100%;height:100%;object-fit:contain;
}
.xi-soft-illustrations .service-card.xi-service-3d h3{font-size:21px!important;margin:0 0 11px!important;color:#25394e!important}
.xi-soft-illustrations .service-card.xi-service-3d p{font-size:15px!important;line-height:1.7!important;max-width:33em!important;color:#607386!important;margin:0!important}
@media(max-width:900px){
 .xi-soft-illustrations .service-card.xi-service-3d{min-height:190px!important;padding:19px 20px!important}
 .xi-soft-illustrations .service-card.xi-service-3d .xi-3d-service-icon{width:64px!important;height:64px!important}
 .xi-soft-illustrations .service-card.xi-service-3d h3{font-size:17px!important}
 .xi-soft-illustrations .service-card.xi-service-3d p{font-size:13px!important}}/* v065: restore visible but discreet single-tone imagery behind service copy.
   Previous white overlay + 54% layer opacity washed the images out twice. */


.xi-soft-illustrations .service-card.xi-service-3d::before{
 z-index:0!important;
 background-image:linear-gradient(90deg,rgba(255,255,255,.96) 0%,rgba(255,255,255,.84) 30%,rgba(255,255,255,.28) 100%),var(--xi-service-photo)!important;
 background-position:center,right center!important;
 background-size:100% 100%,auto 100%!important;
 background-repeat:no-repeat!important;
 filter:grayscale(1)!important;
 opacity:1!important;
}
.xi-soft-illustrations .service-card.xi-service-3d > *{
 position:relative!important;z-index:1!important;
}
@media(max-width:650px){
 .xi-soft-illustrations .service-card.xi-service-3d::before{
  background-image:linear-gradient(90deg,rgba(255,255,255,.97) 0%,rgba(255,255,255,.88) 43%,rgba(255,255,255,.43) 100%),var(--xi-service-photo)!important;
 }}/* v066: text-free, softly diffused service backgrounds */


.xi-soft-illustrations .service-card.xi-service-3d:nth-child(1){--xi-service-photo:url('../assets/img/services/brand-soft.webp')!important}
.xi-soft-illustrations .service-card.xi-service-3d:nth-child(2){--xi-service-photo:url('../assets/img/services/editorial-soft.webp')!important}
.xi-soft-illustrations .service-card.xi-service-3d:nth-child(3){--xi-service-photo:url('../assets/img/services/press-soft.webp')!important}
.xi-soft-illustrations .service-card.xi-service-3d::before{
 background-image:linear-gradient(90deg,rgba(255,255,255,.97),rgba(255,255,255,.63)),var(--xi-service-photo)!important;
 background-size:100% 100%,cover!important;
 background-position:center,right center!important;
}/* v066: tighter mobile latest-news cards; maintain readable text and tap areas */

@media(max-width:700px){
 html body .xi-news-section{padding:28px 0 34px!important}
 html body .xi-news-section .container{padding-left:18px!important;padding-right:18px!important}
 html body .xi-news-section .xi-section-row{margin-bottom:14px!important;gap:7px!important}
 html body .xi-news-section .xi-section-row h2{margin:3px 0 4px!important;font-size:24px!important;line-height:1.3!important}
 html body .xi-news-section .xi-section-row p{font-size:13px!important;line-height:1.5!important;margin:0!important}
 html body .xi-news-section .xi-section-more{margin:5px 0 0!important;font-size:13px!important}
 html body .xi-news-section .xi-news-grid{gap:10px!important}
 html body .xi-news-section .xi-news-card{
  min-height:0!important;padding:13px 15px 12px!important;
  border-radius:12px!important;gap:0!important;
 }
 html body .xi-news-section .xi-news-card time{font-size:11px!important;line-height:1.35!important}
 html body .xi-news-section .xi-news-card h3{
  font-size:15px!important;line-height:1.45!important;
  margin:6px 0 8px!important;font-weight:650!important;
 }
 html body .xi-news-section .xi-news-arrow{font-size:12px!important;margin-top:0!important}
}/* v067: clean text-free image assets; gentle but visible tonal backgrounds */


.xi-soft-illustrations .service-card.xi-service-3d:nth-child(1){--xi-service-photo:url('../assets/img/services/brand-clean.webp')!important}
.xi-soft-illustrations .service-card.xi-service-3d:nth-child(2){--xi-service-photo:url('../assets/img/services/editorial-clean.webp')!important}
.xi-soft-illustrations .service-card.xi-service-3d:nth-child(3){--xi-service-photo:url('../assets/img/services/press-clean.webp')!important}
.xi-soft-illustrations .service-card.xi-service-3d::before{
 background-image:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.86) 37%,rgba(255,255,255,.35) 100%),var(--xi-service-photo)!important;
 background-position:center,right center!important;
 background-size:100% 100%,cover!important;
 filter:none!important;opacity:1!important;
}
@media(max-width:700px){
 .xi-soft-illustrations .service-card.xi-service-3d::before{
  background-image:linear-gradient(90deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.84) 44%,rgba(255,255,255,.30) 100%),var(--xi-service-photo)!important;
 }/* Three news rows in a single compact bordered panel */
 
 html body .xi-news-section .xi-news-grid{
  display:flex!important;flex-direction:column!important;gap:0!important;
  border:1px solid #dce6ee!important;border-radius:13px!important;
  overflow:hidden!important;background:#fff!important;
 }
 html body .xi-news-section .xi-news-card{
  display:flex!important;flex-direction:row!important;align-items:center!important;
  gap:9px!important;padding:13px 12px!important;min-height:0!important;
  margin:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
 }
 html body .xi-news-section .xi-news-card + .xi-news-card{
  border-top:1px solid #e3eaf0!important;
 }
 html body .xi-news-section .xi-news-card time{
  flex:0 0 auto!important;white-space:nowrap!important;
  font-size:10px!important;line-height:1.3!important;color:#7b8da0!important;
 }
 html body .xi-news-section .xi-news-card h3{
  flex:1 1 0!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:0!important;white-space:nowrap!important;
  overflow:hidden!important;text-overflow:ellipsis!important;
  font-size:13px!important;line-height:1.5!important;font-weight:600!important;
 }
 html body .xi-news-section .xi-news-card .xi-news-arrow{
  flex:0 0 auto!important;font-size:0!important;margin:0!important;line-height:1!important;
 }
 html body .xi-news-section .xi-news-card .xi-news-arrow::after{
  content:'›';font-size:18px;color:#6b859d;
 }}/* v068 — restore the exact earlier photographic background assets, not generated anew. */


.xi-soft-illustrations .service-card.xi-service-3d:nth-child(1){--xi-service-photo:url('../assets/img/services/brand.webp')!important}
.xi-soft-illustrations .service-card.xi-service-3d:nth-child(2){--xi-service-photo:url('../assets/img/services/editorial.webp')!important}
.xi-soft-illustrations .service-card.xi-service-3d:nth-child(3){--xi-service-photo:url('../assets/img/services/press.webp')!important}
.xi-soft-illustrations .service-card.xi-service-3d::before{
 background-image:linear-gradient(90deg,rgba(255,255,255,.95) 0%,rgba(255,255,255,.82) 30%,rgba(255,255,255,.40) 100%),var(--xi-service-photo)!important;
 background-position:center,right center!important;
 background-size:100% 100%,auto 100%!important;
 background-repeat:no-repeat!important;
 opacity:1!important;
 filter:grayscale(1)!important;
}/* v069: verified text-removed ORIGINAL background photos; no image regeneration.
   Use PNG so the user's Photoshop-compatible files are the website assets. */


.xi-soft-illustrations .service-card.xi-service-3d:nth-child(2){
 --xi-service-photo:url('../assets/img/services/editorial.png')!important;
}
.xi-soft-illustrations .service-card.xi-service-3d:nth-child(3){
 --xi-service-photo:url('../assets/img/services/press.png')!important;
}/* v070: 1 / 2 / ... indicators synchronized with auto-changing thumbnails */


body.portfolio-page .xi-gallery-panel .work-images.multi{
 position:relative!important;
}
body.portfolio-page .xi-gallery-panel .xi-carousel-indicators{
 position:absolute!important;right:6px!important;bottom:6px!important;
 z-index:5!important;display:flex!important;gap:4px!important;
 align-items:center!important;pointer-events:none!important;
 background:transparent!important;
}
body.portfolio-page .xi-gallery-panel .xi-carousel-number{
 display:grid!important;place-items:center!important;
 min-width:19px!important;height:21px!important;padding:0 4px!important;
 border-radius:4px!important;
 color:#3c5269!important;background:rgba(255,255,255,.72)!important;
 font-size:12px!important;font-weight:500!important;line-height:1!important;
 box-shadow:0 1px 3px rgba(0,0,0,.12)!important;
 transition:background-color .2s ease,color .2s ease,box-shadow .2s ease!important;
}
body.portfolio-page .xi-gallery-panel .xi-carousel-number.is-active{
 color:#fff!important;background:#526f89!important;
 box-shadow:0 1px 4px rgba(0,0,0,.2)!important;
}/* v071: smooth crossfade on automatic multi-image portfolio thumbnails */


html body.portfolio-page .xi-gallery-panel .work-images.multi > img.xi-carousel-fade-out{
 position:absolute!important;inset:0!important;display:block!important;
 width:100%!important;height:100%!important;object-fit:cover!important;
 object-position:center!important;z-index:3!important;
 pointer-events:none!important;max-width:none!important;max-height:none!important;
 border:0!important;margin:0!important;transform:none!important;
}/* v074: color only the blank gutters of single-column portrait cards.
   4:3 frame stays fixed; the image fills its HEIGHT, preserving proportions. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"] .xi-gallery-panel .work-grid .work-card .work-images,
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"] .xi-gallery-panel .work-grid .work-card .work-image{
  background-color:var(--xi-side-fill,#535f68)!important;
 }
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"] .xi-gallery-panel .work-grid .work-card .work-image img,
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"] .xi-gallery-panel .work-grid .work-card .work-images.multi .work-image img{
  object-fit:contain!important;
  object-position:center center!important;
  background:transparent!important;
 }
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"] .xi-gallery-panel .work-images.multi > img.xi-carousel-fade-out{
  object-fit:contain!important;
 }
}/* v075: single-column mobile: wide landscape source fills the entire
   4:3 image frame, cropping left/right when necessary.
   Portrait/square sources still use contain + individually sampled side color. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"]
 .xi-gallery-panel .work-grid .work-card .work-image.xi-landscape-cover img{
  object-fit:cover!important;
  object-position:center center!important;
 }
}/* v076: subtle shadows on the artwork's own left/right edges only when
   a one-column portrait thumbnail has side color gutters. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"]
 .xi-gallery-panel .work-grid .work-card .work-image.xi-side-gutters img{
  display:block!important;
  width:auto!important;height:100%!important;
  max-width:100%!important;margin-left:auto!important;margin-right:auto!important;
  object-fit:contain!important;
  box-shadow:-9px 0 12px -8px rgba(0,0,0,.35),9px 0 12px -8px rgba(0,0,0,.35)!important;
 }
}/* v076: compact fixed TOP button, unobtrusive and always reachable on scroll. */

html body .xi-top-row{
 position:fixed!important;right:18px!important;
 bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;
 z-index:900!important;display:block!important;width:auto!important;
 padding:0!important;background:transparent!important;
 opacity:0!important;visibility:hidden!important;pointer-events:none!important;
 transform:translateY(7px)!important;
 transition:opacity .2s ease,transform .2s ease,visibility .2s ease!important;
}
html body .xi-top-row.xi-top-visible{
 opacity:1!important;visibility:visible!important;pointer-events:auto!important;
 transform:translateY(0)!important;
}
html body .xi-top-row .xi-top-button{
 border-radius:999px!important;padding:11px 15px!important;
 background:rgba(82,111,137,.94)!important;color:#fff!important;
 border:1px solid rgba(255,255,255,.6)!important;
 box-shadow:0 3px 14px rgba(35,56,74,.22)!important;
 backdrop-filter:blur(6px);
}
@media(max-width:650px){html body .xi-top-row{right:12px!important;bottom:calc(12px + env(safe-area-inset-bottom,0px))!important}}/* v077: subtle continuous diagonal textile-like stripes in the single-column
   side gutters, over each image's own dominant-color fill. The same pattern
   coordinates are used on both sides; the image itself is never altered. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"]
 .xi-gallery-panel .work-grid .work-card .work-images,
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"]
 .xi-gallery-panel .work-grid .work-card .work-image.xi-side-gutters{
  background-color:var(--xi-side-fill,#535f68)!important;
  background-image:repeating-linear-gradient(
   135deg,
   rgba(255,255,255,.075) 0px,
   rgba(255,255,255,.075) 1px,
   transparent 1px,
   transparent 9px
  )!important;
  background-size:auto!important;
  background-position:center center!important;
 }
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"]
 .xi-gallery-panel .work-grid .work-card .work-image.xi-landscape-cover{
  background-image:none!important;
 }
}/* v078: apply the same full-height, per-image muted-color + fine diagonal
   side-gutter treatment to 1, 2 and 3 columns on mobile portrait. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel
 .work-grid .work-card .work-images,
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel
 .work-grid .work-card .work-image.xi-side-gutters{
  background-color:var(--xi-side-fill,#535f68)!important;
  background-image:repeating-linear-gradient(
   135deg,rgba(255,255,255,.075) 0px,rgba(255,255,255,.075) 1px,
   transparent 1px,transparent 9px
  )!important;
  background-position:center!important;
 }
 /* Images use full frame height, preserve original proportions and center.
    Narrow images expose colored striped gutters; wide ones crop left/right. */
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel
 .work-grid .work-card .work-image.xi-side-gutters img{
  display:block!important;
  width:auto!important;height:100%!important;max-width:100%!important;
  margin-inline:auto!important;
  object-fit:contain!important;object-position:center!important;
  background:transparent!important;
  box-shadow:-9px 0 12px -8px rgba(0,0,0,.35),
              9px 0 12px -8px rgba(0,0,0,.35)!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel
 .work-grid .work-card .work-image.xi-landscape-cover{
  background-image:none!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel
 .work-grid .work-card .work-image.xi-landscape-cover img{
  width:100%!important;height:100%!important;max-width:none!important;
  margin:0!important;object-fit:cover!important;
  object-position:center!important;background:transparent!important;
  box-shadow:none!important;
 }
}/* v079: proportional diagonal hatch in the colored side gutters.
   1 column 9px, 2 columns 5px, 3 columns 3.5px.
   Keep the same color, 1px hairline, image fit and edge shadows. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view){--xi-gutter-stripe-step:9px;}
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="2"]{--xi-gutter-stripe-step:5px;}
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="3"]{--xi-gutter-stripe-step:3.5px;}
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel .work-grid .work-card .work-images,
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel .work-grid .work-card .work-image.xi-side-gutters{
  background-image:repeating-linear-gradient(135deg,
   rgba(255,255,255,.075) 0px,rgba(255,255,255,.075) .7px,
   transparent .7px,transparent var(--xi-gutter-stripe-step,9px))!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel .work-grid .work-card .work-image.xi-landscape-cover{
  background-image:none!important;
 }
}/* v082: 2/3-column portrait grid thumbnails fill the entire 4:3 frame.
   Cropping is allowed, original image aspect ratio is preserved.
   Keep the existing image-dependent gutter background, fine diagonal hatch,
   and shadow behavior for other modes. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-card .work-image img,
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-card .work-images.multi .work-image img,
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="3"] .xi-gallery-panel .work-grid .work-card .work-image img,
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="3"] .xi-gallery-panel .work-grid .work-card .work-images.multi .work-image img{
  width:100%!important;height:100%!important;max-width:none!important;
  margin:0!important;object-fit:cover!important;object-position:center!important;
  background:transparent!important;box-shadow:none!important;
 }
}/* v083: denser, quieter diagonal stripes in the auto-color side gutters.
   Only the stripe pitch changes; image cropping, colors and shadows stay. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view){--xi-gutter-stripe-step:6px;}
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="2"]{--xi-gutter-stripe-step:3.5px;}
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="3"]{--xi-gutter-stripe-step:2.5px;}
}/* v084: one-column stripe spacing refined to 3.5px; 2/3 columns unchanged. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"]{--xi-gutter-stripe-step:3.5px;}
}/* v085: 1-column fine hatch 2.6px. Image-specific gradient under the hatch;
   gradient is shared across the image container and each side-gutter layer. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"]{
  --xi-gutter-stripe-step:2.6px;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel .work-grid .work-card .work-images,
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel .work-grid .work-card .work-image.xi-side-gutters{
  background-color:var(--xi-side-fill,#535f68)!important;
  background-image:
   repeating-linear-gradient(135deg,rgba(255,255,255,.07) 0px,rgba(255,255,255,.07) .55px,transparent .55px,transparent var(--xi-gutter-stripe-step,2.6px)),
   linear-gradient(150deg,var(--xi-side-fill-light,#687581) 0%,var(--xi-side-fill,#535f68) 49%,var(--xi-side-fill-dark,#37424c) 100%)!important;
  background-position:center center!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel .work-grid .work-card .work-image.xi-landscape-cover{
  background-image:none!important;
 }
}/* v086: Preserve the original 0.7px hatch line thickness.
   Reduce only the blank gap between lines in 1-column mode: pitch 2.6px,
   transparent gap 1.9px. Other grid modes remain unchanged. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"] .xi-gallery-panel .work-grid .work-card .work-images,
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"] .xi-gallery-panel .work-grid .work-card .work-image.xi-side-gutters{
  background-image:
   repeating-linear-gradient(135deg,rgba(255,255,255,.07) 0px,rgba(255,255,255,.07) .7px,transparent .7px,transparent 2.6px),
   linear-gradient(150deg,var(--xi-side-fill-light,#687581) 0%,var(--xi-side-fill,#535f68) 49%,var(--xi-side-fill-dark,#37424c) 100%)!important;
 }
}/* v087: 1-column hatch = 1px visible line + 3px transparent gap (4px pitch). */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"] .xi-gallery-panel .work-grid .work-card .work-images,
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"] .xi-gallery-panel .work-grid .work-card .work-image.xi-side-gutters{
  --xi-gutter-stripe-step:4px;
  background-image:
   repeating-linear-gradient(135deg,rgba(255,255,255,.07) 0px,rgba(255,255,255,.07) 1px,transparent 1px,transparent 4px),
   linear-gradient(150deg,var(--xi-side-fill-light,#687581) 0%,var(--xi-side-fill,#535f68) 49%,var(--xi-side-fill-dark,#37424c) 100%)!important;
 }
}/* v090: Preserve per-artwork colors on both parent and child frame.
   The JS sets --xi-side-fill* on .work-images; children inherit them.
   Never define those properties on .work-image, which would override inheritance.
   Keep v087 1px line + 3px clear gap and same-hue gradient. *//* v091: circular, slightly translucent floating TOP button. */








html body .xi-top-row .xi-top-button{
 box-sizing:border-box!important;
 width:58px!important;height:58px!important;
 min-width:58px!important;min-height:58px!important;
 padding:0!important;border-radius:50%!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 background:rgba(82,111,137,.78)!important;
 color:#fff!important;
 border:1px solid rgba(255,255,255,.55)!important;
 box-shadow:0 3px 14px rgba(35,56,74,.19)!important;
 font-size:12px!important;letter-spacing:.01em!important;
 line-height:1!important;white-space:nowrap!important;
 -webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);
}
html body .xi-top-row .xi-top-button:hover{background:rgba(82,111,137,.9)!important;}
@media(max-width:650px){html body .xi-top-row .xi-top-button{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;}}/* v092: TOP arrow stacked above TOP label, centered inside circular button. */


html body .xi-top-row .xi-top-button{flex-direction:column!important;gap:1px!important;}
html body .xi-top-row .xi-top-button .xi-top-arrow{display:block;font-size:21px;line-height:1;font-weight:500;}
html body .xi-top-row .xi-top-button .xi-top-label{display:block;font-size:10px;line-height:1.1;font-weight:600;letter-spacing:.05em;}/* v093: brighten only the TOP arrow; preserve label, button and layout. */


html body .xi-top-row .xi-top-button .xi-top-arrow{color:#fff!important;opacity:1!important;font-weight:700!important;text-shadow:0 0 5px rgba(255,255,255,.9),0 0 11px rgba(255,255,255,.45)!important;}/* v094: category selection stays stationary; selected chip has a soft glow pulse. */


html body.portfolio-page .portfolio-filters .filter-button,html body.portfolio-page .portfolio-filters .filter-button:hover,html body.portfolio-page .portfolio-filters .filter-button:active,html body.portfolio-page .portfolio-filters .filter-button.active{
 transform:none!important;
}
html body.portfolio-page .portfolio-filters .filter-button.active{
 animation:xi-category-glow-v094 1.85s ease-in-out infinite!important;
}
@keyframes xi-category-glow-v094{
 0%,100%{box-shadow:0 0 0 0 rgba(115,152,193,.12),0 0 5px rgba(143,184,230,.18)}
 50%{box-shadow:0 0 0 3px rgba(115,152,193,.17),0 0 16px 3px rgba(143,184,230,.60)}
}
@media(prefers-reduced-motion:reduce){
 html body.portfolio-page .portfolio-filters .filter-button.active{animation:none!important;box-shadow:0 0 0 2px rgba(115,152,193,.24),0 0 10px rgba(143,184,230,.42)!important}}/* v095: restore compact portfolio category strip and breadcrumb capsule.
   Override the legacy v006 104px and v049 92px mobile hero rules. */



html body.portfolio-page #portfolio-hero.portfolio-category-hero{
 height:60px!important;min-height:60px!important;max-height:60px!important;
 padding:0!important;box-sizing:border-box!important;overflow:hidden!important;
}
html body.portfolio-page #portfolio-hero.portfolio-category-hero .page-heading{
 position:absolute!important;top:50%!important;left:clamp(14px,5vw,32px)!important;
 right:auto!important;width:auto!important;max-width:55%!important;
 transform:translateY(-50%)!important;margin:0!important;padding:0!important;
 display:flex!important;align-items:center!important;gap:9px!important;
}
html body.portfolio-page #portfolio-hero.portfolio-category-hero .page-heading h1{
 font-size:20px!important;line-height:1.2!important;margin:0!important;
}
html body.portfolio-page #portfolio-hero.portfolio-category-hero #portfolio-breadcrumb{
 position:absolute!important;display:flex!important;align-items:center!important;
 left:auto!important;right:clamp(9px,3vw,24px)!important;
 top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;
 padding:5px 9px!important;border-radius:999px!important;
 background:rgba(255,255,255,.13)!important;
 border:1px solid rgba(255,255,255,.24)!important;
 box-shadow:0 2px 9px rgba(29,8,58,.12)!important;
 -webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);
 white-space:nowrap!important;
}
@media(max-width:680px) and (orientation:portrait){
 html body.portfolio-page #portfolio-hero.portfolio-category-hero{
  height:56px!important;min-height:56px!important;max-height:56px!important;
 }
 html body.portfolio-page #portfolio-hero.portfolio-category-hero .page-heading{
  left:14px!important;right:auto!important;max-width:53%!important;
  top:50%!important;transform:translateY(-50%)!important;gap:7px!important;
 }
 html body.portfolio-page #portfolio-hero.portfolio-category-hero .page-heading h1{font-size:17px!important;}
 html body.portfolio-page #portfolio-hero.portfolio-category-hero #portfolio-breadcrumb{
  top:50%!important;bottom:auto!important;right:9px!important;left:auto!important;
  transform:translateY(-50%)!important;padding:4px 7px!important;
  font-size:10px!important;gap:5px!important;
 }}/* v096: frameless minimalist 1/2/3-column icons; subtle selected glow, no movement. */


@media(max-width:900px){
 html body.portfolio-page .xi-grid-density-btn,
 html body.portfolio-page .xi-grid-density-btn.active,
 html body.portfolio-page .xi-grid-density-btn:hover,
 html body.portfolio-page .xi-grid-density-btn:active{
  border:0!important;outline:0!important;border-radius:5px!important;
  background:transparent!important;box-shadow:none!important;
  transform:none!important;filter:none!important;
  transition:background-color .22s ease,color .22s ease!important;
 }
 html body.portfolio-page .xi-grid-density-btn{color:#8a9fb2!important}
 html body.portfolio-page .xi-grid-density-btn.active{
  color:#547999!important;background:rgba(108,139,169,.12)!important;
 }
 html body.portfolio-page .xi-grid-density-btn .xi-grid-density-icon,
 html body.portfolio-page .xi-grid-density-btn.active .xi-grid-density-icon,
 html body.portfolio-page .xi-grid-density-btn:active .xi-grid-density-icon{
  transform:none!important;box-shadow:none!important;filter:none!important;
 }
 html body.portfolio-page .xi-grid-density-icon svg{
  stroke-width:1.35px!important;filter:none!important;
  transition:stroke .2s ease,filter .2s ease!important;
 }
 html body.portfolio-page .xi-grid-density-btn.active .xi-grid-density-icon svg{
  stroke-width:1.8px!important;
  filter:drop-shadow(0 0 2.2px rgba(98,151,197,.62))!important;
  animation:xi-density-glow 2.5s ease-in-out infinite;
 }
 html body.portfolio-page .xi-grid-density-btn:focus-visible{
  outline:2px solid #7896b2!important;outline-offset:1px!important;
 }
}
@keyframes xi-density-glow{
  0%,100%{filter:drop-shadow(0 0 1px rgba(98,151,197,.3))}
  50%{filter:drop-shadow(0 0 3px rgba(98,151,197,.8))}
}/* Increase only the random-refresh glyph 15%, not the button. */

html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon{
 font-size:1.15em!important;line-height:1!important;vertical-align:baseline;
}/* v097: numbered column icons: thick pale outlines and dark digits, glowing selection. */


@media(max-width:900px){
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn,
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active{
  background:transparent!important;border:0!important;box-shadow:none!important;
  transform:none!important;filter:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-icon,
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active .xi-grid-density-icon,
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn:active .xi-grid-density-icon{
  transform:none!important;filter:none!important;box-shadow:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-icon svg.xi-density-numbered{
  width:100%!important;height:100%!important;overflow:visible!important;
  stroke:none!important;filter:none!important;animation:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait svg.xi-density-numbered .xi-density-outline rect{
  fill:none!important;stroke:#cdd7df!important;stroke-width:2.8px!important;
  vector-effect:non-scaling-stroke;stroke-linejoin:round!important;
 }
 html body.portfolio-page .xi-grid-density-portrait svg.xi-density-numbered .xi-density-numeral{
  fill:#506b82!important;stroke:none!important;font-size:31px!important;
  font-weight:500!important;font-family:Arial,'Noto Sans TC',sans-serif!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered{
  animation:xi-numbered-glow 2s ease-in-out infinite!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered .xi-density-outline rect{
  stroke:#a8c8e0!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered .xi-density-numeral{
  fill:#345a78!important;
 }
}
@keyframes xi-numbered-glow{
  0%,100%{filter:drop-shadow(0 0 1px rgba(101,170,226,.32))}
  50%{filter:drop-shadow(0 0 5px rgba(101,170,226,.95))}
}
@media(prefers-reduced-motion:reduce){
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered{animation:none!important}}/* v098: legible numbered density controls, larger glyphs and visible selected pulse. */



@media(max-width:900px){
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn,
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active{
  width:35px!important;height:35px!important;min-width:35px!important;
  padding:2px!important;position:relative!important;overflow:visible!important;
  border:0!important;transform:none!important;
  background:transparent!important;box-shadow:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-icon,
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active .xi-grid-density-icon{
  width:100%!important;height:100%!important;transform:none!important;
  overflow:visible!important;filter:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait svg.xi-density-numbered{
  width:100%!important;height:100%!important;filter:none!important;animation:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait svg.xi-density-numbered .xi-density-outline rect{
  stroke:#c5d1db!important;stroke-width:1.35px!important;fill:none!important;
  vector-effect:non-scaling-stroke;
 }
 html body.portfolio-page .xi-grid-density-portrait svg.xi-density-numbered .xi-density-numeral{
  fill:#48647d!important;font-size:30px!important;font-weight:500!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active::after{
  content:""!important;display:block!important;pointer-events:none!important;
  position:absolute!important;inset:2px!important;border-radius:6px!important;
  border:1px solid rgba(115,177,228,.58)!important;
  background:rgba(129,189,235,.075)!important;
  animation:xi-density-pulse-v098 1.85s ease-in-out infinite!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered .xi-density-outline rect{
  stroke:#91b9d6!important;
 }
}
@keyframes xi-density-pulse-v098{
  0%,100%{box-shadow:0 0 2px 1px rgba(90,161,224,.22),inset 0 0 2px rgba(90,161,224,.1);opacity:.68}
  50%{box-shadow:0 0 9px 3px rgba(90,161,224,.76),inset 0 0 6px rgba(90,161,224,.25);opacity:1}
}
@media(prefers-reduced-motion:reduce){
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active::after{animation:none!important}}/* v099: glow only from the existing icon strokes and digits; no extra outer box. */


@media(max-width:900px){
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active::after,
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn::after{
  content:none!important;display:none!important;border:0!important;
  background:none!important;box-shadow:none!important;animation:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn,
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active{
  background:transparent!important;border:0!important;box-shadow:none!important;filter:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered{
  animation:xi-density-self-light-v099 1.85s ease-in-out infinite!important;
  transform:none!important;
 }
}
@keyframes xi-density-self-light-v099{
  0%,100%{filter:drop-shadow(0 0 0px rgba(81,170,241,0));}
  50%{filter:drop-shadow(0 0 2.5px rgba(66,166,244,.95)) drop-shadow(0 0 5px rgba(66,166,244,.55));}
}
@media(prefers-reduced-motion:reduce){
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered{animation:none!important;filter:drop-shadow(0 0 2px rgba(66,166,244,.5))!important}}/* v100: finer original icon outlines; ONLY the selected numeral pulses blue. */


@media(max-width:900px){
 html body.portfolio-page .xi-grid-density-portrait svg.xi-density-numbered .xi-density-outline rect,
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered .xi-density-outline rect{
  stroke-width:1px!important;stroke:#c7d3dd!important;filter:none!important;animation:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered{
  animation:none!important;filter:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered .xi-density-numeral{
  fill:#377eae!important;
  animation:xi-numeral-blue-pulse-v100 1.85s ease-in-out infinite!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn:not(.active) svg.xi-density-numbered .xi-density-numeral{
  animation:none!important;filter:none!important;fill:#48647d!important;
 }
}
@keyframes xi-numeral-blue-pulse-v100{
  0%,100%{fill:#486c8b;filter:drop-shadow(0 0 0px rgba(39,151,246,0));}
  50%{fill:#208be3;filter:drop-shadow(0 0 2px rgba(43,151,251,.98)) drop-shadow(0 0 3px rgba(43,151,251,.68));}
}/* v101: subdued selected-number glow; tighter spacing; vertically centered controls. */



@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row{
  align-items:center!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density{
  align-self:center!important;align-items:center!important;padding:0!important;
 }
 html body.portfolio-page .xi-grid-density-portrait{
  gap:1px!important;align-items:center!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn{
  align-self:center!important;margin:0!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered .xi-density-numeral{
  animation:xi-numeral-blue-pulse-v101 2.15s ease-in-out infinite!important;
 }
}
@keyframes xi-numeral-blue-pulse-v101{
  0%,100%{fill:#506d85;filter:drop-shadow(0 0 0 rgba(98,145,179,0));}
  50%{fill:#547f9f;filter:drop-shadow(0 0 1.25px rgba(91,146,186,.48));}
}/* v104: tighter portfolio thumbnail spacing and compact text inset. */



html body.portfolio-page .xi-gallery-panel .work-grid{
  column-gap:16px!important;
  row-gap:16px!important;
}
html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-info{
  padding:7px 8px 9px!important;
}
@media(max-width:900px){
  html body.portfolio-page .xi-gallery-panel .work-grid{
    column-gap:6px!important;
    row-gap:8px!important;
  }
  html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-info{
    padding:5px 6px 7px!important;
  }}/* v105 — compact, full-site search without changing header height */


.site-header .nav-wrap{position:relative}
.xi-search-trigger{border:0;background:transparent;color:#617d99;cursor:pointer;width:36px;height:36px;display:flex;align-items:center;justify-content:center;padding:0;flex:0 0 36px;order:2;border-radius:50%;transition:background .2s,color .2s}
.xi-search-trigger:hover,.xi-search-trigger[aria-expanded="true"]{background:rgba(91,120,150,.1);color:#345a7c}
.site-header .menu-toggle{order:3}
.site-header .nav-links{margin-left:auto}
.xi-search-overlay[hidden]{display:none!important}
.xi-search-overlay{position:fixed;z-index:1005;top:var(--xi-search-top,76px);left:0;right:0;padding:8px 15px;pointer-events:none}
.xi-search-box{pointer-events:auto;max-width:540px;margin:0 20px 0 auto;border:1px solid #dbe4ec;border-radius:12px;background:rgba(255,255,255,.98);box-shadow:0 12px 34px rgba(32,52,72,.18);overflow:hidden}
.xi-search-inputrow{height:48px;display:flex;align-items:center;gap:10px;padding:0 13px;color:#7890a5}
.xi-search-input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#334c63;font:inherit;font-size:14px}
.xi-search-input::-webkit-search-cancel-button{display:none}
.xi-search-close{border:0;background:transparent;color:#8093a4;font-size:25px;cursor:pointer;padding:0 4px}
.xi-search-results{max-height:min(58vh,420px);overflow:auto;border-top:1px solid #edf1f5}
.xi-search-hint,.xi-search-empty{padding:18px;margin:0;color:#81909e;font-size:13px}
.xi-search-section{font-size:11px;color:#8295a6;background:#f4f7fa;padding:7px 14px;letter-spacing:.05em}
.xi-search-result{display:flex;align-items:center;gap:11px;padding:9px 14px;border-bottom:1px solid #f1f3f6;color:#40556b;text-decoration:none}
.xi-search-result:hover,.xi-search-result:focus{background:#f1f6fa}
.xi-search-thumb{width:39px;height:39px;object-fit:cover;border-radius:5px;background:#eef2f6;flex:none}
.xi-search-result strong{font-size:13px;display:block;font-weight:600;line-height:1.45}
.xi-search-result small{display:block;color:#8a99a7;font-size:11px}
@media(max-width:900px){.xi-search-trigger{margin-left:auto}.site-header .nav-links{margin-left:0}}
@media(max-width:680px){.xi-search-overlay{padding:7px 12px}.xi-search-box{margin:0;max-width:none}.xi-search-trigger{width:34px;flex-basis:34px}.xi-search-results{max-height:55vh}}/* v106: Search panel stays attached to the header on repeated openings and after scrolling. */


html body .xi-search-overlay{position:fixed!important;top:var(--xi-search-top,74px)!important;bottom:auto!important;transform:none!important;z-index:5000!important;}
html body .xi-search-overlay .xi-search-box{position:relative;max-height:calc(100dvh - var(--xi-search-top,74px) - 16px);}
html body .xi-search-overlay .xi-search-results{max-height:min(55dvh,420px);}/* v107: full-page search results, without altering the original portfolio layout. */


.xi-search-viewall{display:block;text-align:center;padding:13px;color:#4b7294;font-size:13px;font-weight:700;text-decoration:none;background:#f4f8fb;border-top:1px solid #e3ebf1}
.xi-search-viewall:hover{background:#eaf2f8}
.xi-results-main{width:min(1100px,calc(100% - 32px));margin:0 auto;padding:35px 0 70px;min-height:55vh}
.xi-results-heading h1{font-size:clamp(22px,3vw,30px);color:#405e78;margin:0 0 8px}
.xi-results-heading p{color:#7c8e9f;margin:0 0 22px}
.xi-results-form{display:flex;gap:9px;margin-bottom:24px}
.xi-results-form input{flex:1;min-width:0;border:1px solid #d3dfe9;border-radius:9px;padding:12px 14px;font:inherit;outline-color:#7599b8}
.xi-results-form button{border:0;border-radius:9px;background:#617f9b;color:#fff;padding:0 22px;cursor:pointer}
.xi-results-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.xi-results-card{display:block;overflow:hidden;border-radius:10px;border:1px solid #e1e8ef;text-decoration:none;background:white;box-shadow:0 2px 9px rgba(36,60,82,.05)}
.xi-results-card img,.xi-results-placeholder{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:#eef3f7}
.xi-results-placeholder{display:grid;place-items:center;color:#8a9dad}
.xi-results-card-info{display:block;padding:10px 12px 12px;color:#40576b}
.xi-results-card-info small{display:block;color:#8b9ba9;font-size:11px;margin-bottom:3px}
.xi-results-card-info strong{display:block;font-size:14px;line-height:1.45}
.xi-results-empty{color:#7b8c9a;grid-column:1/-1}
@media(max-width:760px){.xi-results-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.xi-results-main{padding-top:20px}.xi-results-card-info{padding:8px}}/* v108: in-field magnifier submits to full results page; no added layout height. */


.xi-search-inputrow .xi-search-submit{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:32px;padding:0;border:0;background:transparent;color:inherit;cursor:pointer;border-radius:6px;box-shadow:none;transform:none}
.xi-search-inputrow .xi-search-submit:hover,.xi-search-inputrow .xi-search-submit:focus-visible{color:#547b9f;background:rgba(100,135,166,.08);transform:none}/* v109: slightly smaller header search icon, positioned closer to menu */


.site-header .xi-search-trigger{transform:translateX(5px)!important;}
.site-header .xi-search-trigger svg{width:18px!important;height:18px!important;}/* v110: shift the header magnifier slightly right, and raise the floating TOP control. */


.site-header .xi-search-trigger{transform:translateX(10px)!important;}
html body .xi-top-row{bottom:calc(30px + env(safe-area-inset-bottom,0px))!important;}
@media(max-width:650px){html body .xi-top-row{bottom:calc(24px + env(safe-area-inset-bottom,0px))!important;}}/* v111: move the visible header magnifier to the right using positional offset.
   Earlier translateX adjustments were not visibly effective in the mobile flex header. */


@media(max-width:900px){
  html body .site-header .nav-wrap > .xi-search-trigger{
    position:relative!important;left:12px!important;right:auto!important;
    transform:none!important;z-index:2!important;
  }
}/* v112: move the actual search control closer to the hamburger by reducing
   the mobile header flex gap, instead of offsetting its painted position. */


@media(max-width:680px){
 html body .site-header .nav-wrap{column-gap:4px!important;}
 html body .site-header .nav-wrap > .xi-search-trigger{
   position:relative!important;left:auto!important;right:auto!important;
   transform:none!important;margin-left:auto!important;margin-right:0!important;
 }
}/* v113: real mobile search/menu spacing fix. Older .nav-wrap gap:16px
   survived the previous column-gap-only adjustment. Keep menu hitbox fixed. */



@media (max-width:680px){
 html body .site-header .nav-wrap{gap:0!important;column-gap:0!important;}
 html body .site-header .nav-wrap > .xi-search-trigger{
  position:relative!important;left:auto!important;right:auto!important;
  transform:none!important;margin-left:auto!important;
  margin-right:-10px!important;z-index:1103!important;
 }
 html body .site-header .nav-wrap > .menu-toggle{margin-left:0!important;}
}/* v114: keep the printing icon fully visible above the photographic card backdrop. */


.xi-soft-illustrations .service-card.xi-service-3d:nth-child(3)::before{
  z-index:0!important;
  -webkit-mask-image:linear-gradient(to right,transparent 0%,transparent 29%,rgba(0,0,0,.30) 44%,#000 65%)!important;
  mask-image:linear-gradient(to right,transparent 0%,transparent 29%,rgba(0,0,0,.30) 44%,#000 65%)!important;
}
.xi-soft-illustrations .service-card.xi-service-3d:nth-child(3) .xi-3d-service-icon{
  position:relative!important;z-index:3!important;isolation:isolate!important;
}
.xi-soft-illustrations .service-card.xi-service-3d:nth-child(3) .xi-3d-service-icon img{
  position:relative!important;z-index:3!important;opacity:1!important;filter:none!important;
}/* v115: printer artwork has complete output sheet; no background clipping. */


.xi-soft-illustrations .service-card.xi-service-3d:nth-child(3) .xi-3d-service-icon img{object-fit:contain!important;object-position:center!important}/* v116: About principles use same 3D icon language as home service cards. */


.xi-principle-illustrations .service-card.xi-service-3d{position:relative!important;overflow:hidden!important;isolation:isolate!important;border:1px solid #e3ebf2!important;border-radius:17px!important;background:#fff!important;padding:24px 26px 27px!important;box-shadow:0 8px 25px rgba(59,84,103,.055)!important}
.xi-principle-illustrations .service-card.xi-service-3d::before{content:""!important;position:absolute!important;inset:0!important;z-index:-1!important;pointer-events:none!important;background:linear-gradient(90deg,#fff 2%,rgba(255,255,255,.94) 34%,rgba(255,255,255,.79) 100%),var(--xi-service-photo) right center/auto 100% no-repeat!important;opacity:.54!important;filter:grayscale(1)!important}
.xi-principle-illustrations .service-card.xi-service-3d::after{display:none!important}
.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon{display:block!important;width:82px!important;height:82px!important;max-width:82px!important;min-height:0!important;margin:0 0 8px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
@media(max-width:900px){.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon{width:64px!important;height:64px!important;max-width:64px!important}}/* v117: bespoke principle icons and subtle matching thematic backdrops. */


.xi-principle-illustrations .service-card.xi-service-3d:nth-child(1){--xi-principle-bg:url('../assets/img/principles/communication-bg.svg')}
.xi-principle-illustrations .service-card.xi-service-3d:nth-child(2){--xi-principle-bg:url('../assets/img/principles/quality-bg.svg')}
.xi-principle-illustrations .service-card.xi-service-3d:nth-child(3){--xi-principle-bg:url('../assets/img/principles/consistency-bg.svg')}
.xi-principle-illustrations .service-card.xi-service-3d::before{background:linear-gradient(90deg,#fff 4%,rgba(255,255,255,.96) 36%,rgba(255,255,255,.70) 100%),var(--xi-principle-bg) right center/auto 100% no-repeat!important;opacity:.75!important;filter:none!important}
.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon{position:relative!important;z-index:2!important}/* v118: distinct colorful dimensional principle icons and soft contextual background imagery */


.xi-principle-illustrations .service-card.xi-service-3d::before{background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.95) 30%,rgba(255,255,255,.47) 100%),var(--xi-principle-bg) right center/auto 100% no-repeat!important;opacity:.75!important}
.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon{width:96px!important;height:96px!important;max-width:96px!important}
@media(max-width:900px){.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon{width:80px!important;height:80px!important;max-width:80px!important}}/* v119: 3D color foreground icons; pale monochrome contextual photography (not icons). */


.xi-principle-illustrations .service-card.xi-service-3d:nth-child(1){--xi-principle-bg:url('../assets/img/principles/communication-scene.webp')}
.xi-principle-illustrations .service-card.xi-service-3d:nth-child(2){--xi-principle-bg:url('../assets/img/principles/quality-scene.webp')}
.xi-principle-illustrations .service-card.xi-service-3d:nth-child(3){--xi-principle-bg:url('../assets/img/principles/consistency-scene.webp')}
.xi-principle-illustrations .service-card.xi-service-3d::before{background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.96) 34%,rgba(255,255,255,.68) 70%,rgba(255,255,255,.34) 100%),var(--xi-principle-bg) right center/auto 100% no-repeat!important;opacity:.72!important;filter:none!important}
.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon img{filter:drop-shadow(0 4px 4px rgba(48,79,111,.16))!important}/* v120: photographic dimensional illustration assets; keep approved monochrome scene backgrounds. */


.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon{width:128px!important;max-width:128px!important;height:94px!important;min-height:94px!important;margin-bottom:8px!important}
.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon img{width:100%!important;height:100%!important;object-fit:contain!important;filter:none!important}
@media(max-width:900px){.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon{width:112px!important;max-width:112px!important;height:80px!important;min-height:80px!important}}/* v121: stronger but still soft monochrome photographic context on right.
   Keep the approved vivid 3D foreground artwork and all card geometry. */


.xi-principle-illustrations .service-card.xi-service-3d::before{
 background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.95) 24%,rgba(255,255,255,.49) 49%,rgba(255,255,255,.08) 100%),var(--xi-principle-bg) right center/auto 100% no-repeat!important;
 opacity:1!important;filter:grayscale(1) contrast(1.16)!important;
}/* v122: remove baked-in lettering from contextual backdrops, make actual
   grayscale photography visible, and keep text/3D foreground above it. */


.xi-principle-illustrations .service-card.xi-service-3d:nth-child(1){--xi-principle-bg:url('../assets/img/principles/communication-scene-clean.webp')}
.xi-principle-illustrations .service-card.xi-service-3d:nth-child(2){--xi-principle-bg:url('../assets/img/principles/quality-scene-clean.webp')}
.xi-principle-illustrations .service-card.xi-service-3d:nth-child(3){--xi-principle-bg:url('../assets/img/principles/consistency-scene-clean.webp')}
.xi-principle-illustrations .service-card.xi-service-3d::before{
 z-index:0!important;opacity:1!important;filter:none!important;
 background-image:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.93) 28%,rgba(255,255,255,.48) 55%,rgba(255,255,255,.13) 100%),var(--xi-principle-bg)!important;
 background-position:center,right center!important;
 background-size:100% 100%,auto 100%!important;
 background-repeat:no-repeat!important;
}
.xi-principle-illustrations .service-card.xi-service-3d > *{position:relative!important;z-index:2!important}/* v123: approved principles - colorful transparent 3D foreground and gently faded gray contextual scenes. */


.xi-principle-illustrations .service-card.xi-service-3d::before{
 background-image:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.95) 28%,rgba(255,255,255,.57) 55%,rgba(255,255,255,.24) 100%),var(--xi-principle-bg)!important;
 filter:grayscale(1)!important;
}
.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon img{
 object-fit:contain!important;object-position:center!important;
 background:transparent!important;
}/* v124: safe transparent icon margins and slightly clearer grayscale context. */


.xi-principle-illustrations .service-card.xi-service-3d::before{
 background-image:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.93) 28%,rgba(255,255,255,.48) 55%,rgba(255,255,255,.16) 100%),var(--xi-principle-bg)!important;
 filter:grayscale(1) contrast(1.08)!important;
}
.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon{overflow:visible!important}
.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon img{object-fit:contain!important;object-position:center!important;overflow:visible!important}/* v125 final: complete icon artwork from approved composition; no cropped source PNG.
   Three independent transparent assets and readable grayscale context scenes. */


.xi-principle-illustrations .service-card.xi-service-3d:nth-child(1){--xi-principle-bg:url('../assets/img/principles/communication-scene-v125.webp')}
.xi-principle-illustrations .service-card.xi-service-3d:nth-child(2){--xi-principle-bg:url('../assets/img/principles/quality-scene-v125.webp')}
.xi-principle-illustrations .service-card.xi-service-3d:nth-child(3){--xi-principle-bg:url('../assets/img/principles/consistency-scene-v125.webp')}
.xi-principle-illustrations .service-card.xi-service-3d::before{
 opacity:1!important;filter:none!important;
 background-image:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.97) 23%,rgba(255,255,255,.62) 49%,rgba(255,255,255,.35) 100%),var(--xi-principle-bg)!important;
 background-position:center,right center!important;background-size:100% 100%,auto 100%!important;
}
.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon{
 width:156px!important;max-width:156px!important;height:116px!important;min-height:116px!important;
 overflow:visible!important;margin-bottom:8px!important;
}
.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon img{
 display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;
 object-position:center!important;overflow:visible!important;
}
@media(max-width:900px){.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon{
 width:132px!important;max-width:132px!important;height:102px!important;min-height:102px!important;
}}/* v126: restore intact 3D imagery; quality scene only shifted right. */


.xi-principle-illustrations .service-card.xi-service-3d:nth-child(2)::before{
 background-position:center,calc(100% + 72px) center!important;
}
.xi-principle-illustrations .service-card.xi-service-3d .service-icon.xi-3d-service-icon img{
 object-fit:contain!important;object-position:center!important;
}/* v128: portrait column-selector icons follow the approved 1/2/3 sketch.
   Only the numeral pulses; frame strokes stay still. */


@media(max-width:900px){
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn,
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active{
  background:transparent!important;border:0!important;outline:0!important;
  box-shadow:none!important;filter:none!important;transform:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-icon svg.xi-density-numbered,
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active .xi-grid-density-icon svg.xi-density-numbered{
  overflow:visible!important;animation:none!important;filter:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait svg.xi-density-numbered .xi-density-outline rect,
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered .xi-density-outline rect{
  stroke:#cdd9e3!important;stroke-width:1.25px!important;fill:none!important;
  vector-effect:non-scaling-stroke;
 }
 html body.portfolio-page .xi-grid-density-portrait svg.xi-density-numbered .xi-density-numeral,
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn:not(.active) svg.xi-density-numbered .xi-density-numeral{
  fill:#a5b6c7!important;stroke:none!important;
  font-size:36px!important;font-weight:400!important;
  font-family:Arial,'Noto Sans TC',sans-serif!important;
  animation:none!important;filter:none!important;text-shadow:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered .xi-density-numeral{
  fill:#3f5d73!important;animation:xi-v128-number-glow 2.2s ease-in-out infinite!important;
 }
}
@keyframes xi-v128-number-glow{
  0%,100%{fill:#405d73;filter:drop-shadow(0 0 1px rgba(71,131,181,.28));}
  50%{fill:#254b69;filter:drop-shadow(0 0 2.5px rgba(81,157,215,.85)) drop-shadow(0 0 4px rgba(81,157,215,.48));}
}/* v129: smaller numerals; visibly pulsing selected numeral only. */


@media(max-width:900px){
 html body.portfolio-page .xi-grid-density-portrait svg.xi-density-numbered .xi-density-numeral,
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn:not(.active) svg.xi-density-numbered .xi-density-numeral{font-size:29px!important;}
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered .xi-density-numeral{font-size:29px!important;animation:xi-v129-selected-flash 1.65s ease-in-out infinite!important;}
}
@keyframes xi-v129-selected-flash{
 0%,100%{opacity:1;fill:#274d69;filter:drop-shadow(0 0 3px rgba(76,152,210,.8));}
 50%{opacity:.42;fill:#8caac2;filter:drop-shadow(0 0 1px rgba(76,152,210,.15));}
}/* v130: finer, lighter idle pictogram outlines; selected outlines darker. */


@media(max-width:900px){
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn:not(.active) svg.xi-density-numbered .xi-density-outline rect{
  stroke:#dce5ec!important;stroke-width:.75px!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered .xi-density-outline rect{
  stroke:#69859d!important;stroke-width:.85px!important;
 }
}/* v131: thinner selected outline; white luminous pulse on selected numeral. */


@media(max-width:900px){
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered .xi-density-outline rect{stroke-width:.65px!important;stroke:#69859d!important;}
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered .xi-density-numeral{animation:xi-v131-white-glow 1.65s ease-in-out infinite!important;}
}
@keyframes xi-v131-white-glow{
 0%,100%{opacity:1;fill:#36546c;filter:drop-shadow(0 0 1px rgba(255,255,255,.65)) drop-shadow(0 0 2px rgba(255,255,255,.45));}
 50%{opacity:1;fill:#f9fdff;filter:drop-shadow(0 0 2px rgba(255,255,255,1)) drop-shadow(0 0 5px rgba(255,255,255,1)) drop-shadow(0 0 8px rgba(143,192,233,.9));}
}/* v132: selected number flashes between dark and pale, with a white glow; selected column pictogram also pulses. */


@media(max-width:900px){
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered .xi-density-numeral{
  animation:xi-v132-number-pulse 1.7s ease-in-out infinite!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi-grid-density-btn.active svg.xi-density-numbered .xi-density-outline rect{
  stroke-width:.65px!important;animation:xi-v132-outline-pulse 1.7s ease-in-out infinite!important;
 }
}
@keyframes xi-v132-number-pulse{
 0%,100%{opacity:1;fill:#2f506d;filter:drop-shadow(0 0 1px rgba(255,255,255,.65)) drop-shadow(0 0 3px rgba(255,255,255,.8));}
 48%,55%{opacity:.58;fill:#c7d8e7;filter:drop-shadow(0 0 3px rgba(255,255,255,1)) drop-shadow(0 0 7px rgba(255,255,255,1)) drop-shadow(0 0 10px rgba(140,190,235,.85));}
}
@keyframes xi-v132-outline-pulse{
 0%,100%{stroke:#66849e;opacity:1;filter:drop-shadow(0 0 0 rgba(120,168,207,0));}
 48%,55%{stroke:#b2c9de;opacity:.68;filter:drop-shadow(0 0 2px rgba(155,196,227,.65));}
}/* v134: four portfolio mode tabs fade between states, never jump or scale. */


html body.portfolio-page .xi-work-mode,html body.portfolio-page .xi-work-mode.active,html body.portfolio-page .xi-work-mode.xi-mode-pending{
 transition:background-color .32s ease,color .32s ease,border-color .32s ease,box-shadow .32s ease!important;
 transform:none!important;
}
html body.portfolio-page .xi-work-mode.xi-mode-pressing{transform:none!important;}
html body.portfolio-page .work-grid.xi-mode-leave,html body.portfolio-page .work-grid.xi-mode-enter{
 animation:none!important;transform:none!important;opacity:1!important;
}
@media(prefers-reduced-motion:reduce){html body.portfolio-page .xi-work-mode{transition:none!important}}/* v135: unmistakable sliding tab marker and aligned random arrow. */


html body.portfolio-page .xi-v049-sticky .xi-work-modes{position:relative!important;isolation:isolate;}
html body.portfolio-page .xi-v049-sticky .xi-work-modes::after{
 content:"";position:absolute;left:0;bottom:-2px;
 width:var(--xi-mode-indicator-w,0px);height:4px;border-radius:4px;
 background:#8fc4ed;box-shadow:0 0 8px rgba(84,151,207,.7);
 transform:translateX(var(--xi-mode-indicator-x,0px));
 transition:transform .43s cubic-bezier(.2,.8,.2,1),width .43s cubic-bezier(.2,.8,.2,1);
 pointer-events:none;z-index:3;
}
html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon{
 display:inline-block!important;font-size:1.27em!important;
 line-height:1!important;vertical-align:middle!important;
 position:relative;top:2px;transform-origin:center;
 animation:xi-v135-random-wiggle 3.2s ease-in-out infinite;
}
@keyframes xi-v135-random-wiggle{
 0%,72%,100%{transform:rotate(0deg)}
 80%{transform:rotate(55deg)}
 92%{transform:rotate(360deg)}
}
@media(prefers-reduced-motion:reduce){
 html body.portfolio-page .xi-v049-sticky .xi-work-modes::after{transition:none!important}
 html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon{animation:none!important}}/* v136: vertically center the random refresh glyph without changing its size or rotation. */


html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon{top:0!important;vertical-align:-.03em!important;}/* v137: add a little breathing room to the left of the random-work tab only. *//* v138: keep all four tabs on the same line; add spacing inside the random tab only. */



html body.portfolio-page .xi-work-modes .xi-work-mode[data-mode="random"]{margin-left:0!important;}
html body.portfolio-page .xi-work-modes .xi-work-mode[data-mode="random"] .xi-random-icon{margin-left:2px!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes{flex-wrap:nowrap!important;}
html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes > .xi-work-mode{min-width:0!important;}/* v140: swap the nine category chips' and four browsing tabs' color palettes only.
   Keep geometry, spacing, indicator motion and random-arrow animation unchanged. */


html body.portfolio-page .portfolio-filters .filter-button{
 background:#fff!important;color:#526f89!important;border-color:#a9bdcf!important;
}
html body.portfolio-page .portfolio-filters .filter-button.active{
 background:#526f89!important;color:#fff!important;border-color:#526f89!important;
}
html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes .xi-work-mode{
 background:#fff!important;color:#657483!important;border-color:#d8e0e8!important;
}
html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes .xi-work-mode.active{
 background:#7d8b99!important;color:#fff!important;border-color:#7d8b99!important;
}/* v141: balance the random-tab content and make 1/2/3 density-button gaps uniform.
   Do not change tab widths, tab ordering, or the sliding indicator. */



html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes .xi-work-mode[data-mode="random"]{
 display:flex!important;
 align-items:center!important;
 justify-content:center!important;
 gap:2px!important;
 padding-left:2px!important;
 padding-right:2px!important;
}
html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes .xi-work-mode[data-mode="random"] .xi-random-icon{
 margin-left:0!important;
 flex:0 0 auto!important;
}/* v144: restore native density button dimensions; only adjust the container gap. */

@media(max-width:900px) and (orientation:portrait){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait{
  gap:1px!important;column-gap:1px!important;
 }
}/* v145: normalize all three density controls' actual box spacing.
   Earlier -2px side margins made the 1-2 and 2-3 gaps unequal.
   Preserve original 35px controls and SVG sizes. */


@media (max-width:900px) and (orientation:portrait) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {
   display:flex!important;
   gap:2px!important;
   column-gap:2px!important;
   align-items:center!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > .xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > .xi-grid-density-btn:first-child,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > .xi-grid-density-btn:last-child {
   margin:0!important;
   margin-left:0!important;
   margin-right:0!important;
   width:35px!important;
   min-width:35px!important;
   flex:0 0 35px!important;
   box-sizing:border-box!important;
 }
}/* v146: three column controls: identical geometry in all active states.
   The prior selected button was 35x35 while unselected buttons were 27x29,
   making the two gaps appear unequal. Preserve the 35px full-size artwork. */


@media (max-width:900px) and (orientation:portrait) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {
  display:flex!important; flex-flow:row nowrap!important;
  justify-content:flex-start!important; align-items:center!important;
  gap:0!important; column-gap:0!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active {
  display:flex!important; align-items:center!important; justify-content:center!important;
  box-sizing:border-box!important; flex:0 0 35px!important;
  width:35px!important; min-width:35px!important; max-width:35px!important;
  height:35px!important; min-height:35px!important; max-height:35px!important;
  padding:2px!important; margin:0!important; transform:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn .xi-grid-density-icon {
  display:flex!important; align-items:center!important; justify-content:center!important;
  width:100%!important; height:100%!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn svg.xi-density-numbered {
  display:block!important; width:100%!important; height:100%!important;
 }
}/* v147: equalize VISIBLE gaps between the three SVG drawings.
   The SVGs have unequal intrinsic side whitespace (1: 9/9, 2: 8/7, 3: 4/3
   of a 60-unit viewBox). Keep each button and its drawing unchanged;
   compensate using measured visual whitespace instead of flex gap alone. */


@media(max-width:900px) and (orientation:portrait){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait{
  display:flex!important; flex-wrap:nowrap!important; gap:0!important; column-gap:0!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn{
  margin:0!important; flex:0 0 35px!important; width:35px!important;
  min-width:35px!important; max-width:35px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2){
  margin-left:-6px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3){
  margin-left:-3px!important;
 }
}/* v148: keep v147 icon positions and gaps; enlarge only the visible numerals
   2 and 3 to match the apparent height of numeral 1. */


@media(max-width:900px) and (orientation:portrait){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2) svg.xi-density-numbered .xi-density-numeral,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3) svg.xi-density-numbered .xi-density-numeral{
  font-size:35px!important;
 }
}/* v149: keep the v147 spacing and equal-sized 35px button frames;
   restore the 2 and 3 SVG numeral font size to match numeral 1 (29px). */


@media(max-width:900px) and (orientation:portrait){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2) svg.xi-density-numbered .xi-density-numeral,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3) svg.xi-density-numbered .xi-density-numeral{
  font-size:29px!important;
 }
}/* v150: larger thumbnail-to-thumbnail spacing for portrait 1/2-column views only.
   3-column view and the density control itself are unchanged. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="1"] .xi-gallery-panel .work-grid{
  column-gap:14px!important;row-gap:16px!important;
 }
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="2"] .xi-gallery-panel .work-grid{
  column-gap:10px!important;row-gap:12px!important;
 }
}/* v151: smaller image 1/2 carousel counters inside thumbnails, only for
   portrait 2- and 3-column gallery layouts. One-column counters unchanged. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .xi-carousel-number,
 html body.portfolio-page[data-grid-columns="3"] .xi-gallery-panel .xi-carousel-number{
   min-width:15px!important;
   height:16px!important;
   padding:0 2px!important;
   font-size:10px!important;
   line-height:1!important;
   border-radius:3px!important;
 }
}/* v152: category galleries share the 1/2/3-column controls.
   The four work-mode tabs stay hidden in category view. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row{
  display:flex!important;justify-content:flex-end!important;align-items:center!important;
  min-height:42px!important;padding:3px 0 5px!important;margin:0!important;
  border-bottom:2px solid #526f89!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes{
  display:none!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density{
  display:flex!important;visibility:visible!important;opacity:1!important;
  align-items:center!important;justify-content:flex-end!important;
  width:auto!important;margin:0!important;padding:0!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-portrait{
  display:flex!important;align-items:center!important;
 }
 html body.portfolio-page.xi-category-view[data-grid-columns="1"] .xi-gallery-panel .work-grid{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  column-gap:14px!important;row-gap:16px!important;
 }
 html body.portfolio-page.xi-category-view[data-grid-columns="2"] .xi-gallery-panel .work-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  column-gap:10px!important;row-gap:12px!important;
 }
 html body.portfolio-page.xi-category-view[data-grid-columns="3"] .xi-gallery-panel .work-grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  column-gap:7px!important;row-gap:10px!important;
 }
}/* v154: compact category navigation vertical whitespace on portrait phones.
   Preserve full-size density buttons and their hit targets. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav.xi-v049-sticky > .portfolio-filters{
   margin-bottom:0!important;
   padding-bottom:2px!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row{
   min-height:35px!important;
   height:35px!important;
   padding:0 0 2px!important;
   margin:0!important;
   align-items:center!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density{
   align-self:center!important;
   padding:0!important;
 }
}/* v155: Option C for category views: subtle 1px gradient divider instead of solid dark rule.
   Main four-tab navigation keeps its original sliding underline. */


@media(max-width:900px) and (orientation:portrait){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row{
  border-bottom:0!important;
  background-image:linear-gradient(90deg,transparent 0%,#e1e8ee 16%,#d5e0e9 50%,#e1e8ee 84%,transparent 100%)!important;
  background-size:100% 1px!important;
  background-position:center bottom!important;
  background-repeat:no-repeat!important;
 }
}/* v157: extend the subtle category divider fade points toward both edges. */


@media(max-width:900px) and (orientation:portrait){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row{
  background-image:linear-gradient(90deg,transparent 0%,#e1e8ee 2%,#d5e0e9 50%,#e1e8ee 98%,transparent 100%)!important;
 }
}/* v159: soft 3px category divider, consistent on iOS and Android.
   Keep the horizontal fade at 2%/98%, add a vertical soft edge. */


@media(max-width:900px) and (orientation:portrait){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row{
  border-bottom:0!important;
  background-image:
    linear-gradient(90deg,transparent 0%,rgba(176,195,210,.20) 2%,rgba(176,195,210,.26) 50%,rgba(176,195,210,.20) 98%,transparent 100%),
    linear-gradient(90deg,transparent 0%,rgba(176,195,210,.55) 2%,rgba(176,195,210,.70) 50%,rgba(176,195,210,.55) 98%,transparent 100%),
    linear-gradient(90deg,transparent 0%,rgba(176,195,210,.14) 2%,rgba(176,195,210,.20) 50%,rgba(176,195,210,.14) 98%,transparent 100%)!important;
  background-size:100% 1px,100% 1px,100% 1px!important;
  background-position:center bottom 2px,center bottom 1px,center bottom!important;
  background-repeat:no-repeat!important;
 }
}/* v160: restore the approved v157 subtle category divider only. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row{
  border-bottom:0!important;
  background-image:linear-gradient(90deg,transparent 0%,#e1e8ee 5%,#d5e0e9 50%,#e1e8ee 95%,transparent 100%)!important;
  background-size:100% 1px!important;
  background-position:center bottom!important;
  background-repeat:no-repeat!important;
 }
}/* v161: restore a visible yet soft divider without changing navigation row height. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row{
  border-bottom:0!important;
  background-image:linear-gradient(90deg,transparent 0%,rgba(169,190,206,.42) 5%,rgba(169,190,206,.65) 50%,rgba(169,190,206,.42) 95%,transparent 100%)!important;
  background-size:100% 2px!important;
  background-position:center bottom!important;
  background-repeat:no-repeat!important;
 }
}/* v162: restore longer, natural left/right fade while retaining 2px divider. */


@media (max-width:900px) and (orientation:portrait) {
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row {
  border-bottom:0!important;
  background-image:linear-gradient(90deg,transparent 0%,rgba(169,190,206,.24) 16%,rgba(169,190,206,.65) 50%,rgba(169,190,206,.24) 84%,transparent 100%)!important;
  background-size:100% 2px!important;
  background-position:center bottom!important;
  background-repeat:no-repeat!important;
 }
}/* v163: extend visible divider width, retaining v162 2px soft fade. */


@media (max-width:900px) and (orientation:portrait) {
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row {
  background-image:linear-gradient(90deg,transparent 0%,rgba(169,190,206,.24) 10%,rgba(169,190,206,.65) 50%,rgba(169,190,206,.24) 90%,transparent 100%)!important;
  background-size:100% 2px!important;
 }
}/* v164: hide redundant breadcrumb on portfolio hero, including category titles. */


html body.portfolio-page #portfolio-breadcrumb,html body.portfolio-page #portfolio-hero.portfolio-category-hero #portfolio-breadcrumb{
 display:none!important;
}/* v164: center the density controls only on the eight category pages. */

@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row{
  justify-content:center!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density{
  justify-content:center!important;
  margin-left:auto!important;
  margin-right:auto!important;
 }
}/* v165: category thumbnails use the same sampled-color background treatment
   as the four main portfolio modes, without duplicating artworks. */


@media(max-width:900px) and (orientation:portrait){
 html body.portfolio-page.xi-category-view{--xi-gutter-stripe-step:6px;}
 html body.portfolio-page.xi-category-view[data-grid-columns="2"]{--xi-gutter-stripe-step:4px;}
 html body.portfolio-page.xi-category-view[data-grid-columns="3"]{--xi-gutter-stripe-step:3px;}
 html body.portfolio-page.xi-category-view .xi-gallery-panel .work-grid .work-card .work-images,
 html body.portfolio-page.xi-category-view .xi-gallery-panel .work-grid .work-card .work-image.xi-side-gutters{
  background-color:var(--xi-side-fill,#535f68)!important;
  background-image:repeating-linear-gradient(135deg,rgba(255,255,255,.075) 0,rgba(255,255,255,.075) .7px,transparent .7px,transparent var(--xi-gutter-stripe-step,6px))!important;
 }
 html body.portfolio-page.xi-category-view[data-grid-columns="1"] .xi-gallery-panel .work-grid .work-card .work-image.xi-side-gutters img{
  display:block!important;width:auto!important;height:100%!important;max-width:100%!important;margin-inline:auto!important;
  object-fit:contain!important;object-position:center!important;background:transparent!important;
  box-shadow:-9px 0 12px -8px rgba(0,0,0,.35),9px 0 12px -8px rgba(0,0,0,.35)!important;
 }
 html body.portfolio-page.xi-category-view .xi-gallery-panel .work-grid .work-card .work-image.xi-landscape-cover{
  background-image:none!important;
 }
 html body.portfolio-page.xi-category-view[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-card .work-image img,
 html body.portfolio-page.xi-category-view[data-grid-columns="2"] .xi-gallery-panel .work-grid .work-card .work-images.multi .work-image img,
 html body.portfolio-page.xi-category-view[data-grid-columns="3"] .xi-gallery-panel .work-grid .work-card .work-image img,
 html body.portfolio-page.xi-category-view[data-grid-columns="3"] .xi-gallery-panel .work-grid .work-card .work-images.multi .work-image img{
  width:100%!important;height:100%!important;max-width:none!important;margin:0!important;
  object-fit:cover!important;object-position:center!important;background:transparent!important;box-shadow:none!important;
 }
}/* v166: thinner baseline beneath the four portfolio browsing tabs on portrait phones. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row{
  border-bottom-width:1px!important;
 }
}/* v167: slightly lighten the thin baseline below the four main browsing tabs. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row{
  border-bottom-color:#8198ab!important;
 }
}/* v168: subtle pale blue-gray background only on the portfolio landing page.
   Category pages retain white; tabs and density buttons retain their own styling. */


html body.portfolio-page:not(.xi-category-view) main > section.page-content {
 background-color:#f3f7fa;
}/* v169: continuous pale-blue background on portfolio landing, no white blocks.
   Keep individual mode/density button colors and thumbnail fill unchanged. */


html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav,html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav.xi-v049-sticky,html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .portfolio-filters,html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes,html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row,html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel{
 background-color:#f3f7fa!important;
}
html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .portfolio-filters {
 background-image:none!important;
}
html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel {
 background-image:none!important;
}/* v170: orderly 3 x 3 category buttons on portrait phones only.
   Landscape and tablet/desktop keep their existing flexible layout. */



@media (max-width:600px) and (orientation:portrait){
 html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .portfolio-filters{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
  justify-items:stretch!important;
  align-items:stretch!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .portfolio-filters > .filter-button{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  box-sizing:border-box!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  white-space:nowrap!important;
  padding:7px 2px!important;
  font-size:clamp(11px,3.1vw,14px)!important;
  line-height:1.25!important;
 }
}/* v171: compact portrait-only 2-row category matrix, home spans both rows. */


@media (max-width:600px) and (orientation:portrait){
 html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .portfolio-filters{
  grid-template-columns:minmax(0,1.13fr) repeat(4,minmax(0,1fr))!important;
  grid-template-rows:repeat(2,minmax(0,1fr))!important;
  gap:5px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .portfolio-filters > .filter-button{
  padding:7px 1px!important;
  font-size:clamp(9px,2.55vw,12px)!important;
  letter-spacing:-.025em!important;
  border-radius:18px!important;
  min-height:32px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .portfolio-filters > .filter-button:first-child{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  height:100%!important;
  border-radius:19px!important;
  padding:6px 2px!important;
  font-size:clamp(10px,2.8vw,13px)!important;
 }
}/* v172: portrait category matrix, two-line home button, extensible rows. */


@media (max-width:600px) and (orientation:portrait){
 html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .portfolio-filters{
  grid-template-rows:none!important;
  grid-auto-rows:minmax(32px,auto)!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .portfolio-filters > .filter-button:first-child{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  white-space:normal!important;line-height:1.35!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .portfolio-filters > .filter-button:first-child .xi-home-line{display:block!important;white-space:nowrap!important;}
}/* v172: stronger legibility for portfolio hero caption without changing artwork. */

@media (max-width:680px){
 html body.portfolio-page .page-hero.hero-image-portfolio:not(.portfolio-category-hero) .page-heading p{
  position:relative!important;
  z-index:2!important;
  color:#fff!important;
  text-shadow:0 1px 3px rgba(14,5,35,.95),0 2px 9px rgba(14,5,35,.85),0 0 18px rgba(14,5,35,.7)!important;
 }
}/* v173: portrait category home button same size as peers, one-line centered. */


@media (max-width:600px) and (orientation:portrait){
 html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .portfolio-filters{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-template-rows:none!important;
  grid-auto-rows:minmax(32px,auto)!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .portfolio-filters > .filter-button:first-child{
  grid-column:auto!important;grid-row:auto!important;
  height:auto!important;min-height:32px!important;
  padding:7px 1px!important;border-radius:18px!important;
  font-size:clamp(9px,2.55vw,12px)!important;
  flex-direction:row!important;white-space:nowrap!important;
  align-items:center!important;justify-content:center!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .portfolio-filters > .filter-button:first-child .xi-home-line{
  display:inline!important;white-space:nowrap!important;
 }
}/* v174: home is a normal-sized, vertically centered pill at left of a 4x2 matrix. */


@media (max-width:600px) and (orientation:portrait){
 html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .portfolio-filters{
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-template-rows:none!important;
  grid-auto-rows:minmax(32px,auto)!important;
  gap:5px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .portfolio-filters > .filter-button:first-child{
  grid-column:1!important;
  grid-row:1 / span 2!important;
  align-self:center!important;
  justify-self:stretch!important;
  height:32px!important;
  min-height:32px!important;
  max-height:32px!important;
  padding:7px 1px!important;
  border-radius:18px!important;
  font-size:clamp(9px,2.55vw,12px)!important;
  flex-direction:row!important;
  white-space:nowrap!important;
  align-items:center!important;
  justify-content:center!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .portfolio-filters > .filter-button:first-child .xi-home-line{
  display:inline!important;
  white-space:nowrap!important;
 }
}/* v175: consistent readable subtitle shadow on all four inner-page hero banners. */


html body .page-hero.hero-image-about .page-heading > p,html body .page-hero.hero-image-portfolio:not(.portfolio-category-hero) .page-heading > p,html body .page-hero.hero-image-news .page-heading > p,html body .page-hero.hero-image-contact .page-heading > p{
  color:#fff!important;
  text-shadow:0 1px 3px rgba(12,20,32,.92),0 2px 8px rgba(12,20,32,.76),0 0 14px rgba(12,20,32,.48)!important;
}/* v176: restrained purple shimmer on the homepage portfolio CTA; CSS only. */


body.xi-home-page .hero .hero-inner > a.button[href="portfolio.html"]{
 position:relative;isolation:isolate;overflow:visible;
 animation:xiPortfolioPurpleGlow 5.6s ease-in-out infinite!important;
}
@keyframes xiPortfolioPurpleGlow{
 0%,14%,63%,100%{box-shadow:0 2px 7px rgba(37,60,87,.14),0 0 0 rgba(161,91,239,0)}
 30%,42%{box-shadow:0 2px 8px rgba(37,60,87,.16),0 0 12px 3px rgba(173,98,255,.57),0 0 24px 5px rgba(141,75,232,.24)}
}
@media(prefers-reduced-motion:reduce){
 body.xi-home-page .hero .hero-inner > a.button[href="portfolio.html"]{animation:none!important}}/* v177: muted dark-purple glow, never fully off (15% baseline). */


@keyframes xiPortfolioPurpleGlow{
 0%,14%,63%,100%{box-shadow:0 2px 7px rgba(37,60,87,.14),0 0 12px 3px rgba(103,79,129,.09),0 0 24px 5px rgba(88,70,117,.04)}
 30%,42%{box-shadow:0 2px 8px rgba(37,60,87,.16),0 0 12px 3px rgba(103,79,129,.58),0 0 24px 5px rgba(88,70,117,.25)}
}/* v178: replace purple CTA glow with the portfolio nine-category blue glow; widen CTA gap. */


body.xi-home-page .hero .hero-inner > a.button[href="portfolio.html"]{
 animation:xi-category-glow-v094 1.85s ease-in-out infinite!important;
}
body.xi-home-page .hero .hero-inner > a.button.secondary[href="contact.html"]{
 margin-left:16px!important;
}
@media (max-width:390px){
 body.xi-home-page .hero .hero-inner > a.button.secondary[href="contact.html"]{margin-left:13px!important;}}
@media (prefers-reduced-motion:reduce){
 body.xi-home-page .hero .hero-inner > a.button[href="portfolio.html"]{
  animation:none!important;box-shadow:0 0 0 2px rgba(115,152,193,.24),0 0 10px rgba(143,184,230,.42)!important;
 }}/* v179: match the homepage About CTA glow to the portfolio CTA. */


body.xi-home-page .section.soft .split a.button[href="about.html"]{
 animation:xi-category-glow-v094 1.85s ease-in-out infinite!important;
}
@media(prefers-reduced-motion:reduce){
 body.xi-home-page .section.soft .split a.button[href="about.html"]{
  animation:none!important;box-shadow:0 0 0 2px rgba(115,152,193,.24),0 0 10px rgba(143,184,230,.42)!important;
 }}/* v180: contact form submit CTA, compact and centered, with the same soft blue glow. */


body .contact-layout .form-grid .field.full > button.button[type="submit"]{
 width:180px!important;max-width:calc(100% - 24px)!important;
 min-height:48px!important;height:auto!important;
 align-self:center!important;justify-self:center!important;
 margin:12px auto 4px!important;padding:11px 22px!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 animation:xi-category-glow-v094 1.85s ease-in-out infinite!important;
}
@media(prefers-reduced-motion:reduce){
 body .contact-layout .form-grid .field.full > button.button[type="submit"]{
  animation:none!important;
  box-shadow:0 0 0 2px rgba(115,152,193,.24),0 0 10px rgba(143,184,230,.42)!important;
 }}/* v182: homepage closing contact CTA matches the nine-category soft blue glow. */


body.xi-home-page section.cta .cta-inner > a.button[href="contact.html"] {animation:xi-category-glow-v094 1.85s ease-in-out infinite!important;}
@media(prefers-reduced-motion:reduce){body.xi-home-page section.cta .cta-inner > a.button[href="contact.html"]{animation:none!important;box-shadow:0 0 0 2px rgba(115,152,193,.24),0 0 10px rgba(143,184,230,.42)!important;}}/* v183: narrower centered contact submit button, preserving the existing glow. */


body .contact-layout .form-grid .field.full > button.button[type="submit"]{width:100px!important;min-width:0!important;padding-left:12px!important;padding-right:12px!important;}/* v184: enforce compact submit width against legacy flex/grid/button rules. */


body .contact-layout #contact-php-form .form-grid .field.full > button.button[type="submit"]{
  box-sizing:border-box!important;
  width:100px!important;min-width:100px!important;max-width:100px!important;
  height:48px!important;min-height:48px!important;max-height:48px!important;
  flex:0 0 100px!important;
  margin:12px auto 4px!important;
  padding:0 10px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  justify-self:center!important;align-self:center!important;
}/* v187: four portfolio mode selected tabs use #00447e. */


html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes .xi-work-mode.active,html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes .xi-work-mode[aria-selected="true"]{
 background-color:#00447e!important;
 border-color:#00447e!important;
 color:#fff!important;
}/* v188: news journal card layout, scoped to news page only */


.xnews-page .xnews-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important;align-items:start!important}
.xnews-page .xnews-card{min-width:0!important;padding:23px 24px!important;border-radius:14px!important}
.xnews-page .xnews-card[hidden]{display:none!important}
.xnews-page .xnews-card h2{font-size:clamp(17px,1.7vw,21px)!important;line-height:1.5!important;display:block!important;overflow:visible!important;-webkit-line-clamp:unset!important;margin:11px 0 8px!important}
.xnews-page .xnews-card .xnews-summary{font-size:14px!important;line-height:1.75!important;display:block!important;overflow:visible!important;-webkit-line-clamp:unset!important;margin-bottom:12px!important}
@media(max-width:680px){.xnews-page .xnews-list{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}.xnews-page .xnews-card{padding:17px 18px!important}.xnews-page .xnews-card h2{font-size:18px!important;line-height:1.45!important;margin:8px 0 6px!important}.xnews-page .xnews-card .xnews-summary{font-size:13px!important;line-height:1.65!important;margin-bottom:8px!important}}/* v189: featured first news article and optional inline list thumbnails. */


.xnews-page .xnews-card.xnews-featured{grid-column:1/-1!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);column-gap:24px;align-content:start}
.xnews-page .xnews-image{overflow:hidden;border-radius:10px;background:#f3f7fa;margin:-5px -5px 14px}
.xnews-page .xnews-image img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.xnews-page .xnews-card:not(.xnews-featured) .xnews-image{float:left;width:112px;margin:2px 14px 9px 0}
.xnews-page .xnews-card:not(.xnews-featured) .xnews-image img{aspect-ratio:1/1;object-fit:cover}
@media(max-width:680px){
 .xnews-page .xnews-card.xnews-featured{display:block!important}
 .xnews-page .xnews-card:not(.xnews-featured) .xnews-image{width:94px;margin:2px 12px 8px 0}}/* v190: cleaner unframed news illustrations and restrained text previews. */


.xnews-page .xnews-card .xnews-image{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;overflow:visible!important}
.xnews-page .xnews-card .xnews-image img{border:0!important;box-shadow:none!important;border-radius:0!important;background:transparent!important}
.xnews-page .xnews-card .xnews-summary{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;line-clamp:3!important;overflow:hidden!important;text-overflow:ellipsis!important;max-height:none!important}
.xnews-page .xnews-card.xnews-featured .xnews-summary{-webkit-line-clamp:6!important;line-clamp:6!important}
@media(max-width:680px){.xnews-page .xnews-card.xnews-featured .xnews-summary{-webkit-line-clamp:5!important;line-clamp:5!important}}/* v191: news entries separated by the same softly fading gray-blue line as portfolio. */


.xnews-page .xnews-list{gap:0!important;column-gap:26px!important;row-gap:0!important}
.xnews-page .xnews-list > .xnews-card{
 position:relative!important;background:transparent!important;border:0!important;
 border-radius:0!important;box-shadow:none!important;
 padding:22px 12px 28px!important;margin:0!important;
 transition:none!important;
}
.xnews-page .xnews-list > .xnews-card:hover{border:0!important;box-shadow:none!important}
.xnews-page .xnews-list > .xnews-card::after{
 content:"";position:absolute;left:0;right:0;bottom:0;height:2px;
 background:linear-gradient(90deg,transparent 0%,rgba(169,190,206,.24) 10%,rgba(169,190,206,.65) 50%,rgba(169,190,206,.24) 90%,transparent 100%);
 pointer-events:none;
}
.xnews-page .xnews-card .xnews-image{margin-top:0!important}
@media(max-width:680px){
 .xnews-page .xnews-list > .xnews-card{padding:20px 4px 25px!important}
 .xnews-page .xnews-list{column-gap:0!important}}/* v192: clean news magazine with category and display controls. */


.xnews-page .content-narrow{max-width:1120px}
.xnews-page .xnews-controls{margin:0 0 18px;scroll-margin-top:92px}
.xnews-page .xnews-categories{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-bottom:18px}
.xnews-page .xnews-categories button,.xnews-page .xnews-view button{font:inherit;cursor:pointer;border:1px solid #c7d4df;background:transparent;color:#526b86;border-radius:22px;padding:9px 14px;transition:background .2s,color .2s}
.xnews-page .xnews-categories button[aria-pressed=true],.xnews-page .xnews-view button[aria-pressed=true]{background:#00447e;color:#fff;border-color:#00447e}
.xnews-page .xnews-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 4px 14px;border-bottom:1px solid #e4ebf1}
.xnews-page .xnews-count{font-size:13px;color:#6a7d8d}
.xnews-page .xnews-view{display:flex;gap:5px}
.xnews-page .xnews-view button{border-radius:9px;padding:7px 12px;font-size:13px}
.xnews-page .xnews-list{display:block!important}
.xnews-page .xnews-card[hidden]{display:none!important}
.xnews-page .xnews-list>.xnews-card{display:block!important;min-height:0!important;cursor:pointer;padding:21px 5px 28px!important;clear:both}
.xnews-page .xnews-list>.xnews-card:hover{background:rgba(201,219,232,.12)!important}
.xnews-page .xnews-list>.xnews-card:focus-visible{outline:2px solid #00447e;outline-offset:2px}
.xnews-page .xnews-list>.xnews-card::after{height:2px}
.xnews-page .xnews-card .xnews-image{float:left!important;width:106px!important;margin:1px 17px 10px 0!important}
.xnews-page .xnews-card .xnews-image img{aspect-ratio:1/1!important;object-fit:cover}
.xnews-page .xnews-card h2{font-size:18px!important;line-height:1.5!important}
.xnews-page .xnews-card .xnews-summary{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;line-clamp:3!important;overflow:hidden!important}
.xnews-page .xnews-large-image{margin:12px auto 20px;max-width:800px}
.xnews-page .xnews-large-image img{display:block;width:100%;height:auto}
.xnews-page .xnews-pagination{text-align:center;padding:22px 0 10px}
.xnews-page .xnews-page-info{display:block;color:#6a7d8d;font-size:13px;margin-bottom:12px}
.xnews-page .xnews-page-buttons{display:flex;justify-content:center;gap:7px;flex-wrap:wrap}
.xnews-page .xnews-page-buttons button{border:1px solid #c6d5e0;background:#fff;color:#526b86;border-radius:9px;min-width:36px;height:36px;cursor:pointer;font:inherit}
.xnews-page .xnews-page-buttons button[aria-current=page]{background:#00447e;color:#fff;border-color:#00447e}
.xnews-page .xnews-page-buttons button:disabled{opacity:.3;cursor:default}
.xnews-page[data-news-view=list] .xnews-image,.xnews-page[data-news-view=list] .xnews-summary{display:none!important}
.xnews-page[data-news-view=list] .xnews-list>.xnews-card{padding:15px 5px 19px!important}
.xnews-page[data-news-view=list] .xnews-card h2{font-size:16px!important}
.xnews-page[data-news-view=grid] .xnews-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px!important}
.xnews-page[data-news-view=grid] .xnews-list>.xnews-card{padding:0 0 15px!important;min-width:0}
.xnews-page[data-news-view=grid] .xnews-list>.xnews-card::after{display:none}
.xnews-page[data-news-view=grid] .xnews-card .xnews-image{float:none!important;width:100%!important;margin:0 0 9px!important}
.xnews-page[data-news-view=grid] .xnews-card .xnews-image img{aspect-ratio:1/1!important}
.xnews-page[data-news-view=grid] .xnews-card:not(:has(.xnews-image))::before{content:"";display:block;aspect-ratio:1/1;background:#e8f0f6 url("../assets/img/brand/x-image-new-logo.svg") center/55% no-repeat;margin-bottom:9px}
.xnews-page[data-news-view=grid] .xnews-card h2{font-size:14px!important;line-height:1.5!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.xnews-page[data-news-view=grid] .xnews-card .xnews-summary,.xnews-page[data-news-view=grid] .xnews-card .xnews-meta{display:none!important}
@media(max-width:680px){
 .xnews-page .xnews-categories{gap:6px}
 .xnews-page .xnews-categories button{padding:7px 11px;font-size:13px}
 .xnews-page .xnews-card .xnews-image{width:88px!important;margin-right:12px!important}
 .xnews-page .xnews-card h2{font-size:16px!important}
 .xnews-page .xnews-toolbar{flex-wrap:wrap}
 .xnews-page[data-news-view=grid] .xnews-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px!important}}
@media(prefers-reduced-motion:reduce){.xnews-page .xnews-categories button,.xnews-page .xnews-view button{transition:none}}/* v193: mobile categories, proper grid layout and understated article category. */


.xnews-page .xnews-categories{
 display:flex!important;flex-wrap:nowrap!important;justify-content:flex-start!important;
 gap:7px!important;overflow-x:auto;overscroll-behavior-x:contain;
 scrollbar-width:thin;padding:3px 2px 10px;scroll-snap-type:x proximity;
 -webkit-overflow-scrolling:touch;
}
.xnews-page .xnews-categories button{flex:0 0 auto!important;white-space:nowrap;scroll-snap-align:start}
.xnews-page .xnews-card .xnews-meta{
 display:flex!important;align-items:center;gap:10px!important;flex-wrap:wrap;
}
.xnews-page .xnews-list>.xnews-card[hidden]{display:none!important}
.xnews-page[data-news-view=grid] .xnews-list{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:18px!important;align-items:start!important;
}
.xnews-page[data-news-view=grid] .xnews-list>.xnews-card:not([hidden]){
 display:block!important;width:auto!important;min-width:0!important;
 grid-column:auto!important;
}
.xnews-page[data-news-view=grid] .xnews-list>.xnews-card:has(.xnews-details[open]){
 grid-column:1/-1!important;
}
.xnews-page[data-news-view=grid] .xnews-card .xnews-image{
 display:block!important;float:none!important;width:100%!important;
 max-width:none!important;margin:0 0 10px!important;
}
.xnews-page[data-news-view=grid] .xnews-card .xnews-image img{
 display:block!important;width:100%!important;height:auto!important;aspect-ratio:1/1!important;object-fit:cover!important;
}
.xnews-page[data-news-view=grid] .xnews-card .xnews-meta{display:none!important}
.xnews-page[data-news-view=grid] .xnews-card .xnews-summary{display:none!important}
@media(max-width:680px){
 .xnews-page .xnews-categories{margin-left:-4px;margin-right:-4px}
 .xnews-page .xnews-categories button{font-size:13px!important;padding:8px 12px!important}
 .xnews-page[data-news-view=grid] .xnews-list{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important;
 }
 .xnews-page .xnews-card .xnews-meta{gap:6px!important}}/* v194: three category tabs and readable full-text previews */


.xnews-page .xnews-controls{margin-bottom:20px!important}
.xnews-page .xnews-categories{display:flex!important;overflow:visible!important;flex-wrap:nowrap!important;justify-content:flex-start!important;gap:0!important;padding:0!important;margin:0!important;scroll-snap-type:none!important;border-bottom:2px solid #e5edf4}
.xnews-page .xnews-categories button{border:1px solid #cbd8e4!important;border-bottom:0!important;border-radius:17px 17px 0 0!important;background:#fff!important;color:#174776!important;font-size:18px!important;font-weight:600!important;padding:14px 22px!important;white-space:nowrap!important;box-shadow:none!important}
.xnews-page .xnews-categories button[aria-pressed=true]{background:#164a7c!important;color:#fff!important;border-color:#164a7c!important}
.xnews-page .xnews-toolbar{display:flex!important;justify-content:flex-end!important;border-bottom:0!important;padding:10px 0 0!important;gap:12px!important}
.xnews-page .xnews-count{margin-right:auto}
.xnews-page .xnews-view{flex-wrap:nowrap!important}
.xnews-page .xnews-view button{font-size:13px!important;padding:8px 12px!important;border-radius:9px!important}
.xnews-page .xnews-list{display:block!important}
.xnews-page .xnews-list>.xnews-card{display:block!important;position:relative!important;cursor:default!important;padding:22px 6px 30px!important}
.xnews-page .xnews-list>.xnews-card[hidden]{display:none!important}
.xnews-page .xnews-card .xnews-image{display:none!important}
.xnews-page .xnews-card .xnews-meta{display:flex!important;margin-bottom:9px!important}
.xnews-page .xnews-card .xnews-pin-marker{color:#b26c28;font-size:12px;font-weight:600;margin-right:8px}
.xnews-page .xnews-card .xnews-pin-marker[hidden]{display:none!important}
.xnews-page .xnews-title-button{display:block;width:100%;text-align:left;border:0;padding:0;margin:0;background:transparent;color:inherit;font:inherit;cursor:pointer}
.xnews-page .xnews-title-button h2{margin:0 0 13px!important;font-size:21px!important;line-height:1.55!important}
.xnews-page .xnews-title-button:hover h2{color:#164a7c}
.xnews-page .xnews-full-content{position:relative;overflow:visible;font-size:15px;line-height:1.85;color:#455363;clear:both}
.xnews-page .xnews-full-content .xnews-summary{display:block!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;overflow:visible!important;margin:0 0 12px!important}
.xnews-page .xnews-full-content .xnews-body{display:block!important}
.xnews-page .xnews-full-content.xnews-clamped{max-height:370px;overflow:hidden!important;mask-image:linear-gradient(to bottom,#000 0%,#000 79%,transparent 100%)}
.xnews-page .xnews-expand{display:block;margin:9px 0 0;padding:5px 0;border:0;background:none;color:#164a7c;font-size:14px;font-weight:600;cursor:pointer}
.xnews-page .xnews-expand[hidden]{display:none!important}
.xnews-page .xnews-list>.xnews-card:hover{background:transparent!important}
.xnews-page[data-news-view=image] .xnews-list>.xnews-card,.xnews-page[data-news-view=list] .xnews-list>.xnews-card{cursor:pointer!important}
.xnews-page[data-news-view=image] .xnews-list>.xnews-card:hover,.xnews-page[data-news-view=list] .xnews-list>.xnews-card:hover{background:rgba(201,219,232,.12)!important}
.xnews-page[data-news-view=image] .xnews-card .xnews-image{display:block!important;float:left!important;width:106px!important;margin:0 17px 10px 0!important;cursor:pointer}
.xnews-page[data-news-view=image] .xnews-card .xnews-full-content{clear:none!important}
.xnews-page[data-news-view=image] .xnews-card .xnews-summary{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;line-clamp:3!important;overflow:hidden!important}
.xnews-page[data-news-view=image] .xnews-card .xnews-body,.xnews-page[data-news-view=image] .xnews-expand{display:none!important}
.xnews-page[data-news-view=image] .xnews-list>.xnews-card{min-height:140px!important}
.xnews-page[data-news-view=list] .xnews-card .xnews-image,.xnews-page[data-news-view=list] .xnews-card .xnews-full-content,.xnews-page[data-news-view=list] .xnews-card .xnews-expand{display:none!important}
.xnews-page[data-news-view=list] .xnews-list>.xnews-card{padding:15px 6px 18px!important}
.xnews-page[data-news-view=list] .xnews-title-button h2{font-size:16px!important;margin:0!important}
.xnews-page[data-news-view=image] .xnews-title-button h2{font-size:18px!important}
.xnews-page .xnews-large-image{max-width:780px;margin:16px auto 22px}
@media(min-width:760px){.xnews-page .xnews-categories{flex:1}.xnews-page .xnews-toolbar{margin-top:-61px;position:relative;pointer-events:none}.xnews-page .xnews-toolbar>*{pointer-events:auto}.xnews-page .xnews-count{display:none}}
@media(max-width:680px){
 .xnews-page .xnews-categories button{font-size:14px!important;padding:11px 12px!important;flex:1 1 0!important;min-width:0!important;text-align:center!important}
 .xnews-page .xnews-toolbar{justify-content:space-between!important;flex-wrap:nowrap!important}
 .xnews-page .xnews-count{font-size:12px!important}
 .xnews-page .xnews-view button{font-size:12px!important;padding:7px 9px!important}
 .xnews-page .xnews-title-button h2{font-size:18px!important}
 .xnews-page[data-news-view=image] .xnews-card .xnews-image{width:88px!important;margin-right:12px!important}}/* v195: compact mobile news controls and quiet taxonomy near pagination. */


.xnews-page .xnews-categories button{font-size:15px!important;padding:9px 14px!important;border-radius:11px 11px 0 0!important;font-weight:600!important}
.xnews-page .xnews-toolbar{gap:8px!important;padding-top:7px!important}
.xnews-page .xnews-view{gap:4px!important}
.xnews-page .xnews-view button{font-size:12px!important;padding:5px 9px!important;border-radius:7px!important;line-height:1.5!important}
.xnews-page .xnews-footer-taxonomy{text-align:center;font-size:12px;line-height:1.9;color:#8393a3;margin:0 auto 13px;max-width:95%;}
.xnews-page .xnews-footer-taxonomy span{white-space:nowrap}
.xnews-page .xnews-pagination{padding-top:15px!important}
.xnews-page .xnews-page-buttons button{height:32px!important;min-width:32px!important;font-size:13px!important}
@media(min-width:760px){.xnews-page .xnews-toolbar{margin-top:-43px!important}}
@media(max-width:680px){
 .xnews-page .xnews-categories button{font-size:12px!important;padding:9px 4px!important;line-height:1.4!important;flex:1 1 0!important}
 .xnews-page .xnews-categories{gap:0!important}
 .xnews-page .xnews-view button{font-size:11px!important;padding:5px 8px!important}
 .xnews-page .xnews-toolbar{padding-top:6px!important;gap:5px!important}
 .xnews-page .xnews-count{font-size:11px!important}
 .xnews-page .xnews-footer-taxonomy{font-size:11px}}/* v196: compact unified news tabs and borderless icon+label view choices */


.xnews-page .xnews-controls{margin-bottom:16px!important}
.xnews-page .xnews-categories{border-bottom:0!important;gap:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;overflow:visible!important}
.xnews-page .xnews-categories button{width:100%!important;min-width:0!important;max-width:none!important;border-radius:15px 15px 0 0!important;font-size:15px!important;padding:9px 5px!important;line-height:1.4!important;text-align:center!important}
.xnews-page .xnews-toolbar{margin:0!important;position:static!important;pointer-events:auto!important;background:#e4ebf5!important;min-height:43px!important;padding:5px 12px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:9px!important;border:0!important;box-shadow:0 3px 7px rgba(30,61,95,.09)!important}
.xnews-page .xnews-count{display:inline!important;font-size:13px!important;color:#657c92!important;margin:0 auto 0 0!important;white-space:nowrap!important}
.xnews-page .xnews-view{display:flex!important;gap:9px!important;flex-wrap:nowrap!important}
.xnews-page .xnews-view button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:4px!important;background:transparent!important;border:0!important;border-radius:5px!important;box-shadow:none!important;color:#647b92!important;font-size:12px!important;font-weight:500!important;padding:6px 3px!important;line-height:1.35!important;white-space:nowrap!important;cursor:pointer!important;position:relative}
.xnews-page .xnews-view button svg{display:block;flex-shrink:0}
.xnews-page .xnews-view button[aria-pressed=true]{background:transparent!important;color:#00447e!important;font-weight:700!important}
.xnews-page .xnews-view button[aria-pressed=true]::after{content:"";position:absolute;bottom:1px;left:3px;right:3px;height:2px;background:#00447e;border-radius:2px}
.xnews-page .xnews-view button:hover{background:rgba(255,255,255,.55)!important}
.xnews-page .xnews-view button:focus-visible{outline:2px solid #00447e!important;outline-offset:1px}
.xnews-page .xnews-notice-draft{font-size:12px!important;color:#8a6c4c!important;margin-top:12px!important}
@media(max-width:680px){
 .xnews-page .xnews-categories button{font-size:13px!important;padding:10px 3px!important}
 .xnews-page .xnews-toolbar{padding:5px 9px!important;min-height:42px!important;gap:5px!important}
 .xnews-page .xnews-count{font-size:12px!important}
 .xnews-page .xnews-view{gap:6px!important}
 .xnews-page .xnews-view button{font-size:11px!important;padding:6px 2px!important;gap:3px!important}
 .xnews-page .xnews-view button svg{width:13px;height:13px}}/* v197: tighter news banner spacing, readable mode names and interactive feedback. */


body:has(.xnews-page) .page-hero + .page-content.xnews-page{padding-top:30px!important}
.xnews-page .xnews-controls{margin-top:0!important}
.xnews-page .xnews-categories button,.xnews-page .xnews-view button,.xnews-page .xnews-page-buttons button,.xnews-page .xnews-jump button{transition:background-color .18s ease,color .18s ease,transform .16s ease,box-shadow .18s ease!important}
.xnews-page .xnews-categories button:hover,.xnews-page .xnews-page-buttons button:not(:disabled):hover{background:#dceaf4!important;color:#00447e!important}
.xnews-page .xnews-categories button[aria-pressed=true]:hover{background:#164a7c!important;color:white!important}
.xnews-page .xnews-categories button:active,.xnews-page .xnews-view button:active,.xnews-page .xnews-page-buttons button:not(:disabled):active,.xnews-page .xnews-jump button:active{transform:scale(.96)}
.xnews-page .xnews-view button{min-height:34px!important;min-width:45px!important;cursor:pointer!important}
.xnews-page .xnews-view button:hover{background:rgba(255,255,255,.7)!important}
.xnews-page .xnews-jump{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:13px;color:#667b90;font-size:12px}
.xnews-page .xnews-jump[hidden]{display:none!important}
.xnews-page .xnews-jump input{width:58px;height:32px;border:1px solid #c8d6e2;border-radius:6px;text-align:center;background:#fff;color:#304960;font-size:13px}
.xnews-page .xnews-jump button{height:32px;padding:0 12px;background:#fff;border:1px solid #b9cddd;border-radius:6px;color:#00447e;font:inherit;cursor:pointer}
.xnews-page .xnews-jump button:hover{background:#e4eff8}
@media(max-width:680px){body:has(.xnews-page) .page-hero + .page-content.xnews-page{padding-top:20px!important}}
@media(min-width:681px) and (max-width:900px){body:has(.xnews-page) .page-hero + .page-content.xnews-page{padding-top:24px!important}}
@media(prefers-reduced-motion:reduce){.xnews-page .xnews-categories button,.xnews-page .xnews-view button,.xnews-page .xnews-page-buttons button,.xnews-page .xnews-jump button{transition:none!important}}/* v198: separate article thumbnails from full-text imagery. */


.xnews-page[data-news-view=image] .xnews-card .xnews-image{display:block!important}
.xnews-page[data-news-view=image] .xnews-card .xnews-image img{
 display:block!important;width:100%!important;aspect-ratio:4/3!important;
 object-fit:cover!important;border-radius:6px!important;
}
.xnews-page[data-news-view=image] .xnews-card .xnews-full-content{
 display:block!important;overflow:hidden!important;
}
.xnews-page[data-news-view=image] .xnews-card .xnews-full-content>:not(.xnews-summary){display:none!important}
.xnews-page[data-news-view=image] .xnews-card .xnews-summary{
 display:-webkit-box!important;-webkit-box-orient:vertical!important;
 -webkit-line-clamp:3!important;line-clamp:3!important;overflow:hidden!important;
}
.xnews-page[data-news-view=full] .xnews-card>.xnews-image,.xnews-page[data-news-view=list] .xnews-card>.xnews-image{display:none!important}
.xnews-page .xnews-default-thumbnail img{background:#eaf2f8}/* v199 homepage: 3 news entries as thumbnail + headline + excerpt. */


html body .xi-news-section .xi-news-grid{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:16px!important;border:0!important;border-radius:0!important;
 background:transparent!important;overflow:visible!important;
}
html body .xi-news-section .xi-news-card{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;
 gap:0!important;padding:0 0 13px!important;border:1px solid #e1e9ef!important;
 border-radius:12px!important;overflow:hidden!important;min-width:0!important;
 background:#fff!important;text-decoration:none!important;
 transition:transform .2s ease,box-shadow .2s ease!important;
}
html body .xi-news-section .xi-news-card:hover{
 transform:translateY(-3px);box-shadow:0 6px 18px rgba(29,68,99,.1)!important;
}
html body .xi-news-section .xi-news-card + .xi-news-card{border:1px solid #e1e9ef!important}
html body .xi-news-section .xi-news-thumb{
 display:block!important;width:100%!important;height:auto!important;aspect-ratio:16/9!important;
 object-fit:cover!important;background:#e8f1f7!important;
}
html body .xi-news-section .xi-news-card-content{display:flex;flex-direction:column;flex:1;gap:6px;padding:13px 14px 0}
html body .xi-news-section .xi-news-card time{display:block!important;font-size:11px!important}
html body .xi-news-section .xi-news-card h3{
 display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
 overflow:hidden!important;white-space:normal!important;text-overflow:clip!important;
 flex:none!important;font-size:16px!important;line-height:1.5!important;margin:0!important;
}
html body .xi-news-section .xi-news-excerpt{
 display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3!important;
 overflow:hidden!important;color:#63778b;font-size:13px;line-height:1.65;margin:0;
}
html body .xi-news-section .xi-news-card .xi-news-arrow{
 display:block!important;font-size:12px!important;margin-top:auto!important;padding-top:8px;
 color:#00447e!important;
}
html body .xi-news-section .xi-news-card .xi-news-arrow::after{content:"  ›"!important;font-size:15px}
@media(max-width:700px){
 html body .xi-news-section .xi-news-grid{grid-template-columns:1fr!important;gap:12px!important}
 html body .xi-news-section .xi-news-card{
  flex-direction:row!important;align-items:stretch!important;padding:0!important;min-height:108px!important;
 }
 html body .xi-news-section .xi-news-thumb{
  width:112px!important;min-width:112px!important;aspect-ratio:auto!important;height:auto!important;
  object-fit:cover!important;
 }
 html body .xi-news-section .xi-news-card-content{padding:10px 11px!important;min-width:0;gap:3px}
 html body .xi-news-section .xi-news-card h3{font-size:14px!important}
 html body .xi-news-section .xi-news-excerpt{-webkit-line-clamp:2!important;font-size:12px}
 html body .xi-news-section .xi-news-card .xi-news-arrow{padding-top:3px}}
@media(prefers-reduced-motion:reduce){
 html body .xi-news-section .xi-news-card{transition:none!important}}
@media(max-width:767px){
  .hero-image-news.page-hero{position:relative!important}}
@keyframes news-swipe-hint{
  0%,100%{transform:translateX(0);opacity:.65}
  50%{transform:translateX(3px);opacity:1}
}/* v201: real inline expansion in summary and list, independent of reading mode. */


.xnews-page[data-news-view=image] .xnews-card[data-expanded=true] .xnews-full-content,.xnews-page[data-news-view=list] .xnews-card[data-expanded=true] .xnews-full-content{
 display:block!important;clear:both!important;overflow:visible!important;
 margin-top:14px!important;padding-top:12px!important;border-top:1px solid #e2eaf0!important;
}
.xnews-page[data-news-view=image] .xnews-card[data-expanded=true] .xnews-full-content>:not(.xnews-summary),.xnews-page[data-news-view=image] .xnews-card[data-expanded=true] .xnews-full-content .xnews-body,.xnews-page[data-news-view=list] .xnews-card[data-expanded=true] .xnews-full-content,.xnews-page[data-news-view=list] .xnews-card[data-expanded=true] .xnews-full-content .xnews-body{
 display:block!important;
}
.xnews-page[data-news-view=image] .xnews-card[data-expanded=true] .xnews-summary{
 display:block!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;overflow:visible!important;
}
.xnews-page[data-news-view=image] .xnews-card[data-expanded=true] .xnews-expand,.xnews-page[data-news-view=list] .xnews-card[data-expanded=true] .xnews-expand{
 display:inline-flex!important;align-items:center!important;
}
.xnews-page[data-news-view=image] .xnews-card[data-expanded=true] .xnews-image{float:none!important;display:none!important}
.xnews-page .xnews-card[data-expanded=true] .xnews-large-image{display:block!important}
@media(max-width:767px){
 body .hero-image-news.page-hero{position:relative!important;isolation:isolate}}/* v202 final overrides: actual inline expansion in Android Chrome. */


.xnews-page[data-news-view=image] .xnews-card[data-expanded="false"] .xnews-full-content > :not(.xnews-summary),.xnews-page[data-news-view=image] .xnews-card[data-expanded="false"] .xnews-large-image,.xnews-page[data-news-view=list] .xnews-card[data-expanded="false"] .xnews-full-content{
 display:none!important;
}
.xnews-page[data-news-view=image] .xnews-card[data-expanded="true"] .xnews-full-content,.xnews-page[data-news-view=list] .xnews-card[data-expanded="true"] .xnews-full-content{
 display:block!important;visibility:visible!important;height:auto!important;max-height:none!important;
 overflow:visible!important;opacity:1!important;clear:both!important;
 margin-top:14px!important;padding-top:14px!important;border-top:1px solid #dce6ee!important;
}
.xnews-page[data-news-view=image] .xnews-card[data-expanded="true"] .xnews-full-content > *,.xnews-page[data-news-view=list] .xnews-card[data-expanded="true"] .xnews-full-content > *{
 display:block!important;visibility:visible!important;opacity:1!important;
 max-height:none!important;overflow:visible!important;
}
.xnews-page[data-news-view=image] .xnews-card[data-expanded="true"] .xnews-full-content .xnews-summary,.xnews-page[data-news-view=list] .xnews-card[data-expanded="true"] .xnews-full-content .xnews-summary{
 -webkit-line-clamp:unset!important;line-clamp:unset!important;display:block!important;
}
.xnews-page[data-news-view=image] .xnews-card[data-expanded="true"] .xnews-expand,.xnews-page[data-news-view=list] .xnews-card[data-expanded="true"] .xnews-expand{
 display:inline-flex!important;visibility:visible!important;
}
.xnews-page[data-news-view=image] .xnews-card[data-expanded="true"] > .xnews-image{
 display:none!important;
}
.xnews-page[data-news-view=list] .xnews-card[data-expanded="true"] .xnews-full-content img,.xnews-page[data-news-view=image] .xnews-card[data-expanded="true"] .xnews-full-content img{
 display:block!important;max-width:100%!important;height:auto!important;
}/* Ensure banner cue sits above the hero's decorative layers. */

@media(max-width:767px){
 html body main .page-hero.hero-image-news{position:relative!important;isolation:isolate!important}
 html body main .page-hero.hero-image-news > .news-hero-swipe-cue{
  position:absolute!important;display:flex!important;visibility:visible!important;opacity:1!important;
  z-index:2147483640!important;right:12px!important;bottom:12px!important;
  width:80px!important;height:42px!important;align-items:center!important;justify-content:center!important;
  background:rgba(8,40,70,.55)!important;border:1px solid rgba(255,255,255,.3)!important;
  border-radius:24px!important;pointer-events:none!important;
 }
 html body main .page-hero.hero-image-news > .news-hero-swipe-cue svg{
  display:block!important;visibility:visible!important;opacity:1!important;
  width:72px!important;height:32px!important;animation:xi-news-arrow-slide 1.9s ease-in-out infinite!important;
 }
}
@keyframes xi-news-arrow-slide{
 0%,100%{transform:translateX(-4px);opacity:.65}
 50%{transform:translateX(4px);opacity:1}
}/* v203: elegant non-interactive mobile banner swipe indicator */


.xi-hero-swipe-hint{display:none!important}
@media(max-width:767px){
 html body .page-hero.hero-image-about,html body .page-hero.hero-image-portfolio,html body .page-hero.hero-image-news,html body .page-hero.hero-image-contact{position:relative!important;isolation:isolate}
 html body .page-hero .xi-hero-swipe-hint{
  display:block!important;position:absolute!important;right:15px!important;bottom:12px!important;
  width:96px!important;height:30px!important;z-index:200!important;opacity:.92!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  pointer-events:none!important;touch-action:pan-x pan-y!important;
 }
 html body .page-hero .xi-hero-swipe-hint svg{
  display:block!important;width:100%!important;height:100%!important;
  overflow:visible!important;filter:drop-shadow(0 1px 2px rgba(0,0,0,.35));
  animation:xi-hint-sway 2.2s ease-in-out infinite;
 }}
@keyframes xi-hint-sway{0%,100%{transform:translateX(-4px);opacity:.72}50%{transform:translateX(4px);opacity:1}}
@media(prefers-reduced-motion:reduce){html body .page-hero .xi-hero-swipe-hint svg{animation:none!important}}/* v204: mobile hero hint: long slim arrows, no buttons */


@media screen and (max-width:1023px){
 body .page-hero .xi-hero-swipe-hint{
  display:block!important;visibility:visible!important;position:absolute!important;
  z-index:2147483000!important;right:14px!important;bottom:10px!important;
  width:160px!important;height:28px!important;opacity:1!important;
  background:none!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;pointer-events:none!important;
 }
 body .page-hero .xi-hero-swipe-hint svg{
  display:block!important;width:160px!important;height:28px!important;
  max-width:none!important;visibility:visible!important;opacity:1!important;
  animation:xi-hero-swipe-204 2.4s ease-in-out infinite!important;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.4));
 }
 body .page-hero .news-hero-swipe-cue{display:none!important}
}
@media screen and (min-width:1024px){
 body .page-hero .xi-hero-swipe-hint{display:none!important}}
@keyframes xi-hero-swipe-204{
 0%,100%{transform:translateX(-5px);opacity:.68}
 50%{transform:translateX(5px);opacity:1}
}
@media(prefers-reduced-motion:reduce){
 body .page-hero .xi-hero-swipe-hint svg{animation:none!important}}/* v205 mobile hero cue */


@media(max-width:1023px){html body .page-hero .xi-hero-swipe-hint{display:block!important;visibility:visible!important;opacity:1!important;position:absolute!important;z-index:9999!important;right:12px!important;bottom:12px!important;width:160px!important;height:28px!important;pointer-events:none!important}html body .page-hero .xi-hero-swipe-hint svg{display:block!important;visibility:visible!important;width:160px!important;height:28px!important;animation:xi-hint-205 2.2s ease-in-out infinite!important}}@media(min-width:1024px){html body .page-hero .xi-hero-swipe-hint{display:none!important}}@keyframes xi-hint-205{0%,100%{transform:translateX(-4px);opacity:.7}50%{transform:translateX(4px);opacity:1}}@media(prefers-reduced-motion:reduce){html body .page-hero .xi-hero-swipe-hint svg{animation:none!important}}/* v206: user-supplied arrow artwork and truly compact single-line news list. */

@media(max-width:1023px){
 html body .page-hero .xi-hero-swipe-hint{
  display:block!important;position:absolute!important;right:12px!important;bottom:10px!important;
  z-index:100000!important;width:150px!important;height:35px!important;
  opacity:1!important;visibility:visible!important;background:transparent!important;
  border:0!important;pointer-events:none!important;
 }
 html body .page-hero .xi-hero-swipe-hint img{
  display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;
  animation:xi-hint-user-206 2.2s ease-in-out infinite!important;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.32));
 }
 html body .page-hero .xi-hero-swipe-hint svg{display:none!important}
}
@media(min-width:1024px){html body .page-hero .xi-hero-swipe-hint{display:none!important}}
@keyframes xi-hint-user-206{0%,100%{transform:translateX(-4px);opacity:.7}50%{transform:translateX(4px);opacity:1}}
@media(prefers-reduced-motion:reduce){html body .page-hero .xi-hero-swipe-hint img{animation:none!important}}/* Collapsed list: date and title on one line; expanded item grows naturally below. */

html body .xnews-page[data-news-view=list] .xnews-list>.xnews-card:not([hidden]){
 display:flex!important;flex-flow:row wrap!important;align-items:center!important;
 gap:0 10px!important;min-height:0!important;height:auto!important;
 padding:7px 5px!important;margin:0!important;
}
html body .xnews-page[data-news-view=list] .xnews-card .xnews-image{display:none!important}
html body .xnews-page[data-news-view=list] .xnews-card .xnews-meta{
 display:block!important;flex:0 0 84px!important;width:84px!important;min-width:0!important;
 margin:0!important;padding:0!important;font-size:11px!important;line-height:1.4!important;
}
html body .xnews-page[data-news-view=list] .xnews-card .xnews-meta time{
 font-size:11px!important;white-space:nowrap!important;
}
html body .xnews-page[data-news-view=list] .xnews-card .xnews-title-button{
 display:block!important;flex:1 1 0!important;min-width:0!important;width:auto!important;
 margin:0!important;padding:0!important;text-align:left!important;
}
html body .xnews-page[data-news-view=list] .xnews-card .xnews-title-button h2{
 display:block!important;white-space:nowrap!important;overflow:hidden!important;
 text-overflow:ellipsis!important;-webkit-line-clamp:unset!important;
 font-size:14px!important;line-height:1.5!important;margin:0!important;
}
html body .xnews-page[data-news-view=list] .xnews-card .xnews-full-content{
 flex:0 0 100%!important;width:100%!important;
}
html body .xnews-page[data-news-view=list] .xnews-card[data-expanded="false"] .xnews-full-content{
 display:none!important;
}
html body .xnews-page[data-news-view=list] .xnews-card[data-expanded="true"] .xnews-full-content{
 display:block!important;max-height:none!important;overflow:visible!important;
 margin-top:10px!important;padding:12px 0!important;
}
html body .xnews-page[data-news-view=list] .xnews-card .xnews-expand{flex:0 0 100%!important}
html body .xnews-page[data-news-view=list] .xnews-card[data-expanded="false"] .xnews-expand{display:none!important}
html body .xnews-page[data-news-view=list] .xnews-card[data-expanded="true"] .xnews-expand{display:inline-flex!important}
@media(max-width:480px){
 html body .xnews-page[data-news-view=list] .xnews-card .xnews-meta{flex-basis:76px!important;width:76px!important}
 html body .xnews-page[data-news-view=list] .xnews-card .xnews-title-button h2{font-size:13px!important}}/* v207: force user-provided arrow visible above every internal hero on Android */


@media screen and (max-width:1023px){
 html body section.page-hero{position:relative!important;isolation:isolate!important;overflow:visible!important}
 html body section.page-hero > .xi-hero-swipe-hint{
  display:block!important;position:absolute!important;right:12px!important;bottom:12px!important;
  width:150px!important;height:35px!important;z-index:2147483647!important;
  visibility:visible!important;opacity:1!important;transform:none!important;
  clip-path:none!important;overflow:visible!important;pointer-events:none!important;
  background:transparent!important;border:none!important;box-shadow:none!important
 }
 html body section.page-hero > .xi-hero-swipe-hint img{
  display:block!important;width:150px!important;height:35px!important;
  max-width:none!important;object-fit:contain!important;opacity:1!important;
  visibility:visible!important;filter:drop-shadow(0 1px 3px rgba(0,0,0,.7))!important;
  animation:xi-hint-207 2.4s ease-in-out infinite!important
 }
}
@keyframes xi-hint-207{0%,100%{transform:translateX(-3px)}50%{transform:translateX(3px)}}
@media(prefers-reduced-motion:reduce){html body section.page-hero > .xi-hero-swipe-hint img{animation:none!important}}/* v208 targeted news layouts */


html body .xnews-page[data-news-view=list] .xnews-list>.xnews-card:not([hidden]){border-bottom:1px solid #e5edf3!important}
html body .xnews-page[data-news-view=list] .xnews-card .xnews-title-button h2{font-weight:400!important;letter-spacing:0!important}
html body .xnews-page[data-news-view=list] .xnews-card[data-expanded="true"]{background:#eef4f9!important;border-left:3px solid #527a9a!important;padding-left:10px!important;margin:5px 0!important;border-radius:3px!important}
html body .xnews-page[data-news-view=list] .xnews-card[data-expanded="true"] .xnews-title-button h2{font-weight:500!important;color:#174b70!important}
html body .xnews-page[data-news-view=list] .xnews-card[data-expanded="true"] .xnews-full-content{background:#fff!important;border:1px solid #d5e1eb!important;border-radius:4px!important;margin:10px 0 5px!important;padding:16px!important;box-sizing:border-box!important}
html body .xnews-page[data-news-view=list] .xnews-card[data-expanded="true"] .xnews-full-content p{line-height:1.85!important}/* Summary thumbnail stays at left, text stays to right when collapsed. */

html body .xnews-page[data-news-view=image] .xnews-list>.xnews-card:not([hidden]){display:grid!important;grid-template-columns:clamp(84px,25%,145px) minmax(0,1fr)!important;column-gap:14px!important;align-items:start!important;min-height:0!important;padding:14px 6px!important}
html body .xnews-page[data-news-view=image] .xnews-card>.xnews-image{display:block!important;float:none!important;grid-column:1!important;grid-row:1 / span 3!important;width:100%!important;max-width:none!important;height:auto!important;aspect-ratio:4/3!important;margin:0!important;overflow:hidden!important}
html body .xnews-page[data-news-view=image] .xnews-card>.xnews-image img{width:100%!important;height:100%!important;object-fit:cover!important}
html body .xnews-page[data-news-view=image] .xnews-card>.xnews-meta{grid-column:2!important;grid-row:1!important;min-width:0!important}
html body .xnews-page[data-news-view=image] .xnews-card>.xnews-title-button{grid-column:2!important;grid-row:2!important;min-width:0!important;width:100%!important}
html body .xnews-page[data-news-view=image] .xnews-card>.xnews-full-content{grid-column:2!important;grid-row:3!important;min-width:0!important;width:100%!important}
html body .xnews-page[data-news-view=image] .xnews-card>.xnews-expand{grid-column:2!important;grid-row:4!important}
html body .xnews-page[data-news-view=image] .xnews-card[data-expanded="true"]>.xnews-image{display:none!important}
html body .xnews-page[data-news-view=image] .xnews-card[data-expanded="true"]>.xnews-meta,html body .xnews-page[data-news-view=image] .xnews-card[data-expanded="true"]>.xnews-title-button,html body .xnews-page[data-news-view=image] .xnews-card[data-expanded="true"]>.xnews-full-content,html body .xnews-page[data-news-view=image] .xnews-card[data-expanded="true"]>.xnews-expand{grid-column:1 / -1!important}
html body .xnews-page[data-news-view=image] .xnews-card[data-expanded="true"]{background:#f5f8fb!important;border-left:3px solid #7191ab!important;padding-left:12px!important}/* Reading mode: wider, more generous article rows and touch area. */

html body .xnews-page[data-news-view=full] .xnews-list>.xnews-card:not([hidden]){width:100%!important;max-width:none!important;box-sizing:border-box!important;padding:24px 14px 32px!important;margin:0 0 10px!important}
html body .xnews-page[data-news-view=full] .xnews-card>.xnews-title-button{display:block!important;width:100%!important;text-align:left!important}
@media(max-width:600px){html body .xnews-page[data-news-view=full] .xnews-list>.xnews-card:not([hidden]){padding:20px 10px 28px!important}}/* v209: user feedback - no inner frame, compact summaries, clear list separators */


@media(max-width:1023px){
 html body .page-hero .xi-hero-swipe-hint img,
 html body section.page-hero > .xi-hero-swipe-hint img{
 filter:drop-shadow(0px 2px 3px rgba(0,0,0,.78))!important;
 opacity:1!important;
 }
}/* List: thin separators, regular-weight single-line titles. */

html body .xnews-page[data-news-view="list"] .xnews-list>.xnews-card:not([hidden]){
 border:0!important;border-bottom:1px solid #dce5ec!important;
 border-radius:0!important;box-shadow:none!important;
 margin:0!important;padding:8px 6px!important;
 background:transparent!important;
}
html body .xnews-page[data-news-view="list"] .xnews-card .xnews-title-button,html body .xnews-page[data-news-view="list"] .xnews-card .xnews-title-button h2{
 font-weight:400!important;text-shadow:none!important;
}
html body .xnews-page[data-news-view="list"] .xnews-card .xnews-title-button h2{
 white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
html body .xnews-page[data-news-view="list"] .xnews-card[data-expanded="true"]{
 background:#eef4f9!important;border:1px solid #c9d8e4!important;
 border-left:3px solid #537f9f!important;border-radius:3px!important;
 padding:9px 9px!important;margin:5px 0!important;
}
html body .xnews-page[data-news-view="list"] .xnews-card[data-expanded="true"] .xnews-title-button h2{
 font-weight:400!important;color:#164b70!important;
}
html body .xnews-page[data-news-view="list"] .xnews-card[data-expanded="true"] .xnews-full-content{
 border:0!important;border-top:1px solid #c9d8e4!important;
 border-radius:0!important;box-shadow:none!important;
 background:transparent!important;margin:9px 0 0!important;
 padding:12px 0 2px!important;width:100%!important;
}/* Summary: compact left thumbnail / right copy, avoid oversized row and line breaks. */

html body .xnews-page[data-news-view="image"] .xnews-list>.xnews-card:not([hidden]){
 display:grid!important;
 grid-template-columns:96px minmax(0,1fr)!important;
 grid-template-rows:auto auto auto!important;
 column-gap:12px!important;row-gap:3px!important;
 padding:12px 8px!important;margin:0!important;
 min-height:0!important;height:auto!important;
 align-content:start!important;align-items:start!important;
 border:0!important;border-bottom:1px solid #dfe7ee!important;
 border-radius:0!important;box-shadow:none!important;
 background:transparent!important;
}
html body .xnews-page[data-news-view="image"] .xnews-card>.xnews-image{
 grid-column:1!important;grid-row:1 / 4!important;
 width:96px!important;height:76px!important;aspect-ratio:auto!important;
 margin:0!important;padding:0!important;border-radius:5px!important;
 overflow:hidden!important;
}
html body .xnews-page[data-news-view="image"] .xnews-card>.xnews-image img{
 width:100%!important;height:100%!important;object-fit:cover!important;
}
html body .xnews-page[data-news-view="image"] .xnews-card>.xnews-meta{
 grid-column:2!important;grid-row:1!important;margin:0!important;padding:0!important;
 font-size:11px!important;line-height:1.4!important;
}
html body .xnews-page[data-news-view="image"] .xnews-card>.xnews-title-button{
 grid-column:2!important;grid-row:2!important;margin:0!important;padding:0!important;
 width:100%!important;min-width:0!important;text-align:left!important;
}
html body .xnews-page[data-news-view="image"] .xnews-card>.xnews-title-button h2{
 font-size:15px!important;line-height:1.5!important;margin:0!important;
 font-weight:600!important;
}
html body .xnews-page[data-news-view="image"] .xnews-card>.xnews-full-content{
 grid-column:2!important;grid-row:3!important;margin:0!important;padding:0!important;
 min-width:0!important;max-height:3.2em!important;overflow:hidden!important;
 border:0!important;background:transparent!important;box-shadow:none!important;
 font-size:12px!important;line-height:1.6!important;
}
html body .xnews-page[data-news-view="image"] .xnews-card>.xnews-full-content>*:not(.xnews-summary){display:none!important}
html body .xnews-page[data-news-view="image"] .xnews-card>.xnews-full-content .xnews-summary{
 margin:0!important;padding:0!important;line-height:1.6!important;
 display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;
 overflow:hidden!important;
}
html body .xnews-page[data-news-view="image"] .xnews-card>.xnews-expand{display:none!important}/* Expanded summary becomes a clean, full-width article; no nested box. */

html body .xnews-page[data-news-view="image"] .xnews-card[data-expanded="true"]{
 border:1px solid #cbdbe6!important;border-left:3px solid #6087a3!important;
 background:#f3f7fa!important;border-radius:3px!important;
 margin:5px 0!important;padding:14px 12px!important;
}
html body .xnews-page[data-news-view="image"] .xnews-card[data-expanded="true"]>.xnews-image{display:none!important}
html body .xnews-page[data-news-view="image"] .xnews-card[data-expanded="true"]>.xnews-meta,html body .xnews-page[data-news-view="image"] .xnews-card[data-expanded="true"]>.xnews-title-button,html body .xnews-page[data-news-view="image"] .xnews-card[data-expanded="true"]>.xnews-full-content,html body .xnews-page[data-news-view="image"] .xnews-card[data-expanded="true"]>.xnews-expand{
 grid-column:1 / -1!important;
}
html body .xnews-page[data-news-view="image"] .xnews-card[data-expanded="true"]>.xnews-full-content{
 grid-row:3!important;max-height:none!important;overflow:visible!important;
 padding:12px 0 0!important;margin:8px 0 0!important;
 border-top:1px solid #d4e0e9!important;
}
html body .xnews-page[data-news-view="image"] .xnews-card[data-expanded="true"]>.xnews-full-content>*{
 display:block!important;
}
html body .xnews-page[data-news-view="image"] .xnews-card[data-expanded="true"]>.xnews-full-content .xnews-summary{
 display:block!important;overflow:visible!important;-webkit-line-clamp:unset!important;
 margin-bottom:12px!important;
}
html body .xnews-page[data-news-view="image"] .xnews-card[data-expanded="true"]>.xnews-expand{
 display:inline-flex!important;grid-row:4!important;
}
@media(max-width:390px){
 html body .xnews-page[data-news-view="image"] .xnews-list>.xnews-card:not([hidden]){
 grid-template-columns:80px minmax(0,1fr)!important;column-gap:10px!important;
 }
 html body .xnews-page[data-news-view="image"] .xnews-card>.xnews-image{
 width:80px!important;height:68px!important;
 }
 html body .xnews-page[data-news-view="image"] .xnews-card>.xnews-title-button h2{font-size:14px!important}}/* Reading: larger, breathable article area without inner frame. */

html body .xnews-page[data-news-view="full"] .xnews-list>.xnews-card:not([hidden]){
 padding:26px 16px 34px!important;margin:0 0 12px!important;
 width:100%!important;max-width:none!important;
}
@media(max-width:600px){
 html body .xnews-page[data-news-view="full"] .xnews-list>.xnews-card:not([hidden]){
 padding:23px 12px 32px!important;
 }}/* v210: list opens as full article, without duplicate compact row */


html body .xnews-page[data-news-view="list"] .xnews-list>.xnews-card:not([hidden]){border:0!important;border-bottom:1px solid #dbe4ec!important;}
html body .xnews-page[data-news-view="list"] .xnews-card[data-expanded="false"]{background:transparent!important;border-radius:0!important;box-shadow:none!important;}
html body .xnews-page[data-news-view="list"] .xnews-card[data-expanded="true"]{display:block!important;background:#f8fafc!important;border:1px solid #d6e0e9!important;border-radius:12px!important;box-shadow:0 3px 12px rgba(30,60,90,.07)!important;margin:10px 0!important;padding:20px 18px!important;height:auto!important;}
html body .xnews-page[data-news-view="list"] .xnews-card[data-expanded="true"]>.xnews-meta,html body .xnews-page[data-news-view="list"] .xnews-card[data-expanded="true"]>.xnews-title-button,html body .xnews-page[data-news-view="list"] .xnews-card[data-expanded="true"]>.xnews-image{display:none!important;}
html body .xnews-page[data-news-view="list"] .xnews-card[data-expanded="true"]>.xnews-full-content{display:block!important;width:100%!important;max-height:none!important;overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;padding:0!important;margin:0!important;}
html body .xnews-page .xnews-expanded-header{display:none!important;}
html body .xnews-page[data-news-view="list"] .xnews-card[data-expanded="true"] .xnews-expanded-header{display:block!important;margin:0 0 18px!important;padding:0 0 13px!important;border-bottom:1px solid #dce5ed!important;}
html body .xnews-page[data-news-view="list"] .xnews-card[data-expanded="true"] .xnews-expanded-header time{display:block!important;font-size:12px!important;font-weight:400!important;color:#75879a!important;margin:0 0 9px!important;}
html body .xnews-page[data-news-view="list"] .xnews-card[data-expanded="true"] .xnews-expanded-header h2{display:block!important;font-size:clamp(20px,4.5vw,27px)!important;line-height:1.45!important;font-weight:700!important;color:#17466d!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;margin:0!important;}
html body .xnews-page[data-news-view="list"] .xnews-card[data-expanded="true"]>.xnews-expand{display:inline-flex!important;margin-top:15px!important;}/* Arrow: slightly smaller and moved left 50px from the right edge */

@media(max-width:1023px){html body section.page-hero>.xi-hero-swipe-hint{right:50px!important;width:118px!important;height:28px!important;}html body section.page-hero>.xi-hero-swipe-hint img{width:118px!important;height:28px!important;}}/* v211: enforce article view and list styles on actual xnews markup */


.xnews-page[data-news-view="list"] #xnews-articles > .xnews-card[data-expanded="false"] {
 border:0!important;border-bottom:1px solid #dbe4ec!important;
 border-radius:0!important;box-shadow:none!important;background:transparent!important;
}
.xnews-page[data-news-view="list"] #xnews-articles > .xnews-card[data-expanded="false"] .xnews-title-button h2 {
 font-weight:400!important;
}
.xnews-page[data-news-view="list"] #xnews-articles > .xnews-card[data-expanded="true"] {
 display:block!important;box-sizing:border-box!important;
 padding:18px 16px!important;margin:10px 0!important;
 border:1px solid #d4e0e9!important;border-radius:12px!important;
 background:#f8fafc!important;box-shadow:0 3px 12px rgba(25,58,86,.07)!important;
}
.xnews-page[data-news-view="list"] #xnews-articles > .xnews-card[data-expanded="true"] > .xnews-image,.xnews-page[data-news-view="list"] #xnews-articles > .xnews-card[data-expanded="true"] > .xnews-meta,.xnews-page[data-news-view="list"] #xnews-articles > .xnews-card[data-expanded="true"] > .xnews-title-button{
 display:none!important;
}
.xnews-page[data-news-view="list"] #xnews-articles > .xnews-card[data-expanded="true"] > .xnews-full-content {
 display:block!important;max-height:none!important;overflow:visible!important;
 width:100%!important;flex:0 0 100%!important;margin:0!important;padding:0!important;
 background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
}
.xnews-page[data-news-view="list"] #xnews-articles > .xnews-card[data-expanded="true"] .xnews-expanded-header {
 display:block!important;margin-bottom:14px!important;padding-bottom:12px!important;
 border-bottom:1px solid #dce5ed!important;
}
.xnews-page[data-news-view="list"] #xnews-articles > .xnews-card[data-expanded="true"] .xnews-expanded-header h2 {
 font-size:clamp(20px,4.5vw,27px)!important;font-weight:700!important;
 line-height:1.45!important;white-space:normal!important;overflow:visible!important;
 color:#17466d!important;
}
.xnews-page[data-news-view="list"] #xnews-articles > .xnews-card[data-expanded="true"] .xnews-expanded-header time {
 display:block!important;font-size:12px!important;font-weight:400!important;margin-bottom:8px!important;
}/* v212: list separators are simple hairlines, no gradient/fade. */


html body .xnews-page[data-news-view="list"] .xnews-list > .xnews-card::after{content:none!important;display:none!important;background:none!important;}
html body .xnews-page[data-news-view="list"] .xnews-list > .xnews-card[data-expanded="false"]{border:0!important;border-bottom:1px solid #dce4eb!important;box-shadow:none!important;}
html body .xnews-page[data-news-view="list"] .xnews-list > .xnews-card[data-expanded="false"]:hover{border-bottom:1px solid #dce4eb!important;box-shadow:none!important;}/* v213: softly glowing outline around expanded list article only */


html body .xnews-page[data-news-view="list"] #xnews-articles > .xnews-card[data-expanded="true"]{
 border:2px solid #dceaf4!important;
 border-radius:12px!important;
 box-shadow:0 0 0 2px rgba(219,235,248,.42),0 0 18px 5px rgba(124,170,204,.20)!important;
 background:#f9fbfd!important;
}
html body .xnews-page[data-news-view="list"] #xnews-articles > .xnews-card[data-expanded="false"]{
 border:0!important;border-bottom:1px solid #dce4eb!important;
 box-shadow:none!important;
}/* v214: summary-mode expanded articles share the same soft rounded outline as list mode. */


html body .xnews-page[data-news-view="image"] #xnews-articles > .xnews-card[data-expanded="true"]{
 border:2px solid #dceaf4!important;
 border-radius:12px!important;
 box-shadow:0 0 0 2px rgba(219,235,248,.42),0 0 18px 5px rgba(124,170,204,.20)!important;
 background:#f9fbfd!important;
 padding:16px!important;
 margin:12px 0!important;
 box-sizing:border-box!important;
}
html body .xnews-page[data-news-view="image"] #xnews-articles > .xnews-card[data-expanded="true"] > .xnews-full-content{
 border:0!important;box-shadow:none!important;border-radius:0!important;
 background:transparent!important;
}/* v216: prevent duplicated heading on reopening article. */


html body .xnews-page[data-news-view="full"] .xnews-expanded-header,html body .xnews-page[data-news-view="image"] .xnews-expanded-header{display:none!important;visibility:hidden!important;height:0!important;margin:0!important;padding:0!important;border:0!important;}
html body .xnews-page[data-news-view="image"] .xnews-card[data-expanded="true"] > .xnews-title-button,html body .xnews-page[data-news-view="image"] .xnews-card[data-expanded="true"] > .xnews-meta{display:none!important;}
html body .xnews-page[data-news-view="image"] .xnews-card[data-expanded="true"] .xnews-full-content > .xnews-expanded-header{display:block!important;visibility:visible!important;height:auto!important;margin:0 0 14px!important;padding:0 0 12px!important;border-bottom:1px solid #dce5ed!important;}
html body .xnews-page[data-news-view="image"] .xnews-card[data-expanded="true"] .xnews-expanded-header h2{font-size:clamp(20px,4.5vw,27px)!important;font-weight:700!important;line-height:1.45!important;color:#17466d!important;}
html body .xnews-page[data-news-view="image"] .xnews-card[data-expanded="true"] .xnews-expanded-header time{display:block!important;font-size:12px!important;margin-bottom:8px!important;}/* v218: sticky three-category navigation, animated active tab and swipe transition */


html body .xnews-page .xnews-controls{
 position:sticky!important;top:var(--xi-news-sticky-top,74px)!important;
 z-index:45!important;background:#fff!important;
 margin-bottom:12px!important;isolation:isolate!important;
 box-shadow:0 4px 12px rgba(25,56,84,.08)!important;
}
html body .xnews-page .xnews-categories{
 position:relative!important;isolation:isolate!important;overflow:hidden!important;
 background:#f1f5fa!important;
}
html body .xnews-page .xnews-categories::before{
 content:"";position:absolute;left:0;top:0;bottom:0;width:33.333333%;
 background:#194d7d;border-radius:4px 4px 0 0;
 transform:translateX(calc(var(--xi-category-index,0) * 100%));
 transition:transform .32s cubic-bezier(.22,.75,.25,1);
 z-index:0;pointer-events:none;
}
html body .xnews-page .xnews-categories button{
 position:relative!important;z-index:1!important;
 background:transparent!important;color:#17466d!important;
 border-radius:0!important;box-shadow:none!important;
 transition:color .28s ease!important;
}
html body .xnews-page .xnews-categories button[aria-pressed="true"],html body .xnews-page .xnews-categories button[aria-pressed="true"]:hover{
 background:transparent!important;color:#fff!important;
}
html body .xnews-page .xnews-categories button:not([aria-pressed="true"]):hover{
 background:rgba(25,77,125,.08)!important;
}
html body .xnews-page .xnews-list.xi-swipe-next{
 animation:xi-news-swipe-next .34s ease both;
}
html body .xnews-page .xnews-list.xi-swipe-prev{
 animation:xi-news-swipe-prev .34s ease both;
}
@keyframes xi-news-swipe-next{
 from{transform:translateX(20px);opacity:.35}
 to{transform:translateX(0);opacity:1}
}
@keyframes xi-news-swipe-prev{
 from{transform:translateX(-20px);opacity:.35}
 to{transform:translateX(0);opacity:1}
}/* Expanded summary: remove leftover grid row space above the heading. */

html body .xnews-page[data-news-view="image"] #xnews-articles > .xnews-card[data-expanded="true"]{
 display:block!important;min-height:0!important;align-content:start!important;
}
html body .xnews-page[data-news-view="image"] #xnews-articles > .xnews-card[data-expanded="true"] > .xnews-full-content{
 display:block!important;grid-row:auto!important;grid-column:auto!important;
 margin:0!important;padding:0!important;border-top:0!important;
 min-height:0!important;
}
html body .xnews-page[data-news-view="image"] #xnews-articles > .xnews-card[data-expanded="true"] .xnews-expanded-header{
 margin:0 0 10px!important;padding:0 0 10px!important;
}
html body .xnews-page[data-news-view="image"] #xnews-articles > .xnews-card[data-expanded="true"] .xnews-expanded-header time{
 margin:0 0 5px!important;
}
@media(min-width:681px){
 html body .xnews-page .xnews-controls{top:var(--xi-news-sticky-top,82px)!important}}
@media(prefers-reduced-motion:reduce){
 html body .xnews-page .xnews-categories::before{transition:none!important}
 html body .xnews-page .xnews-list.xi-swipe-next,html body .xnews-page .xnews-list.xi-swipe-prev{animation:none!important}}/* v219: restore rounded category toolbar, reduce view-row height */


html body .xnews-page .xnews-controls{
 border-radius:13px!important;overflow:visible!important;
 background:transparent!important;
 box-shadow:0 4px 12px rgba(25,56,84,.08)!important;
}
html body .xnews-page .xnews-categories{
 border-radius:13px 13px 0 0!important;
 overflow:hidden!important;
}
html body .xnews-page .xnews-categories::before{
 border-radius:12px 12px 0 0!important;
}
html body .xnews-page .xnews-toolbar{
 min-height:0!important;padding:5px 10px!important;
 border-radius:0 0 13px 13px!important;
}
html body .xnews-page .xnews-toolbar .xnews-view,html body .xnews-page .xnews-toolbar .xnews-view button{
 min-height:0!important;height:26px!important;
 padding-top:2px!important;padding-bottom:2px!important;
 line-height:20px!important;
}
html body .xnews-page .xnews-toolbar .xnews-count{line-height:22px!important;}
html body .xnews-page .xnews-list>.xnews-card{
 scroll-margin-top:var(--xi-news-anchor-offset,160px);
}/* v222: news categories follow the actual portfolio tab treatment. */



html body .xnews-page .xnews-controls{border-radius:10px!important;box-shadow:0 4px 12px rgba(25,56,84,.08)!important;overflow:visible!important;background:transparent!important}
html body .xnews-page .xnews-categories{display:flex!important;grid-template-columns:none!important;align-items:flex-end!important;justify-content:flex-start!important;gap:0!important;padding:5px 6px 0!important;margin:0!important;overflow-x:auto!important;overflow-y:hidden!important;scrollbar-width:none!important;border-radius:10px 10px 0 0!important;background:#fff!important;border-bottom:2px solid #526f89!important;isolation:isolate!important}
html body .xnews-page .xnews-categories::-webkit-scrollbar{display:none!important}
html body .xnews-page .xnews-categories::before{content:none!important;display:none!important}
html body .xnews-page .xnews-categories button,html body .xnews-page .xnews-categories button:not([aria-pressed="true"]):hover{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;height:33px!important;min-height:33px!important;padding:0 12px!important;margin:0 -1px 0 0!important;border:1px solid #a9bdcf!important;border-bottom:0!important;border-radius:9px 9px 0 0!important;box-shadow:none!important;background:#fff!important;color:#526f89!important;font-size:12px!important;font-weight:500!important;line-height:1!important;white-space:nowrap!important;transform:none!important;transition:background-color .25s ease,color .25s ease,border-color .25s ease!important}
html body .xnews-page .xnews-categories button[aria-pressed="true"],html body .xnews-page .xnews-categories button[aria-pressed="true"]:hover{background:#00447e!important;color:#fff!important;border-color:#00447e!important;border-bottom:0!important;font-weight:700!important;box-shadow:none!important;border-radius:9px 9px 0 0!important}
html body .xnews-page .xnews-toolbar{margin:0!important;border-radius:0 0 10px 10px!important;background:#e4edf7!important}
@media(max-width:390px){html body .xnews-page .xnews-categories button{padding:0 9px!important;font-size:11px!important}}/* v231: compact, square-corner active news tab */


html body .xnews-page .xnews-categories{
 padding-top:1px!important;
 border-radius:0!important;
}
html body .xnews-page .xnews-categories button,html body .xnews-page .xnews-categories button:not([aria-pressed="true"]):hover{
 height:28px!important;min-height:28px!important;
 border-radius:0!important;
}
html body .xnews-page .xnews-categories button[aria-pressed="true"],html body .xnews-page .xnews-categories button[aria-pressed="true"]:hover{
 border-radius:0!important;
}
html body .xnews-page .xnews-toolbar{
 border-radius:0!important;
}/* v232: restore ONLY the portfolio-style upper corners of news tabs. */


html body .xnews-page .xnews-categories button,html body .xnews-page .xnews-categories button:not([aria-pressed="true"]):hover,html body .xnews-page .xnews-categories button[aria-pressed="true"],html body .xnews-page .xnews-categories button[aria-pressed="true"]:hover{
 border-radius:9px 9px 0 0!important;
}/* v233: show more of long articles in Reading mode before expanding. */


.xnews-page[data-news-view="full"] .xnews-full-content.xnews-clamped{max-height:540px!important;}/* v013: news-20 image aligns with article text width */


#news-20 .xnews-body-figure{margin:22px 0;width:100%;max-width:100%;}
#news-20 .xnews-body-figure img{display:block;width:100%;max-width:100%;height:auto;object-fit:contain;}/* v020: mobile-first typography and portfolio tab containment.
   Desktop intentionally unchanged; keep existing imagery and JS intact. */



@media (max-width: 900px) {
 html { -webkit-text-size-adjust:100%; text-size-adjust:100%; }
 body { font-size:14px; }
 body .page-heading h1 { font-size:clamp(23px,5.6vw,28px)!important;line-height:1.32!important; }
 body .split h2 { font-size:clamp(22px,5.4vw,27px)!important;line-height:1.35!important; }
 body .page-content .split p,
 body .page-content .content-narrow p,
 body .page-content .contact-info p,
 body .page-content .page-heading p { font-size:14px!important;line-height:1.7!important; }
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-info > span:not(.work-count){font-size:10px!important;font-weight:400!important;line-height:1.25!important;}
 html body.portfolio-page .xi-gallery-panel .work-grid .work-card .work-info h3{font-size:11px!important;font-weight:500!important;line-height:1.35!important;}
}
@media (max-width:600px) and (orientation:portrait) {
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row{display:flex!important;flex-wrap:nowrap!important;align-items:flex-end!important;gap:3px!important;min-width:0!important;max-width:100%!important;}
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes{display:flex!important;flex:1 1 0!important;min-width:0!important;width:0!important;max-width:none!important;overflow:hidden!important;}
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes > .xi-work-mode{box-sizing:border-box!important;flex:1 1 0!important;min-width:0!important;padding:7px 0!important;font-size:clamp(9px,2.4vw,11px)!important;letter-spacing:-.35px!important;white-space:nowrap!important;overflow:hidden!important;}
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density{flex:0 0 auto!important;min-width:0!important;gap:0!important;}
 html body.portfolio-page .xi-grid-density-portrait{gap:1px!important;}
 html body.portfolio-page .xi-grid-density-portrait > .xi-grid-density-btn{flex:0 0 24px!important;width:24px!important;min-width:24px!important;height:27px!important;padding:2px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes .xi-work-mode[data-mode="random"]{gap:1px!important;padding-left:0!important;padding-right:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes .xi-work-mode[data-mode="random"] .xi-random-icon{margin-left:0!important;font-size:.9em!important;}}/* v024: mobile portfolio alignment and news feedback */


@media(max-width:600px) and (orientation:portrait){
html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row{align-items:center!important;gap:4px!important}
html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row>.xi-work-modes{overflow:visible!important;align-items:center!important}
html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes>.xi-work-mode{overflow:visible!important;min-height:34px!important;line-height:1.2!important;letter-spacing:-.45px!important}
html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density{align-self:center!important;display:flex!important;align-items:center!important}
html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes .xi-work-mode[data-mode="random"] .xi-random-icon{display:inline-block!important;font-size:16px!important;line-height:1!important;flex-shrink:0!important;transform-origin:center}
html body .xi-showcase-grid:not(.xi-recent-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body .xi-showcase-grid.xi-recent-grid{grid-template-columns:minmax(0,1fr)!important}
html body .xi-showcase-grid:not(.xi-recent-grid)>.xi-showcase-card:nth-child(n+5){display:none!important}
html body .xi-showcase-grid.xi-recent-grid>.xi-showcase-card:nth-child(n+2){display:none!important}
html body .xnews-page .xnews-controls{margin-top:0!important}
}
.xnews-list.xi-view-changing .xnews-card:not([hidden]){animation:xi-v024-view-in .27s ease both}
@keyframes xi-v024-view-in{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}
.xnews-card.xi-view-focus>.xnews-title-button{animation:xi-v024-focus .65s ease}
@keyframes xi-v024-focus{0%,85%{background:rgba(93,151,194,.16)}100%{background:transparent}}
@media(prefers-reduced-motion:reduce){.xnews-list.xi-view-changing .xnews-card:not([hidden]),.xnews-card.xi-view-focus>.xnews-title-button{animation:none!important}}/* v025 — home showcase cards share portfolio mobile typography and inset. */


@media (max-width:600px) and (orientation:portrait){
 html body.xi-home-page .xi-showcase-grid:not(.xi-recent-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html body.xi-home-page .xi-showcase-grid.xi-recent-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
 html body.xi-home-page .xi-showcase-grid.xi-recent-grid>.xi-showcase-card:nth-child(n+4){display:none!important}
 html body.xi-home-page .xi-showcase-grid .xi-showcase-info{padding:5px 6px 7px!important;gap:2px!important;min-width:0!important}
 html body.xi-home-page .xi-showcase-grid .xi-showcase-info small{font-size:10px!important;font-weight:400!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 html body.xi-home-page .xi-showcase-grid .xi-showcase-info strong{font-size:11px!important;font-weight:500!important;line-height:1.35!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;display:block!important;min-width:0!important}
 html body.xi-home-page .xi-showcase-grid .xi-showcase-card{min-width:0!important}
 html body.xi-home-page .xi-showcase-grid.xi-recent-grid .xi-showcase-card>img{height:94px!important;max-height:94px!important;min-height:0!important;object-fit:cover!important}
}/* v026: mobile news view toolbar — smaller top inset and blue-to-white vertical fade. */


@media (max-width:680px){
  html body .xnews-page .xnews-toolbar{
    background:linear-gradient(to bottom,#dce9f6 0%,#edf4fb 52%,#ffffff 100%)!important;
    padding-top:2px!important;
    padding-bottom:5px!important;
    margin-top:0!important;
  }
}/* v027 — lighter news toolbar fade and sliding category indicator */


@media(max-width:680px){
 html body .xnews-page .xnews-toolbar{background:linear-gradient(to bottom,#f0f6fc 0%,#f7fafd 54%,#fff 100%)!important;}
}
html body .xnews-page .xnews-categories{position:relative!important;isolation:isolate;}
html body .xnews-page .xnews-categories::after{content:"";position:absolute;left:0;bottom:0;width:var(--xi-news-tab-width,0px);height:4px;border-radius:3px 3px 0 0;background:#72b9e9;transform:translateX(var(--xi-news-tab-left,0px));transition:transform .28s cubic-bezier(.2,.7,.2,1),width .28s cubic-bezier(.2,.7,.2,1);pointer-events:none;z-index:5;opacity:var(--xi-news-tab-ready,0);box-shadow:0 2px 3px rgba(34,99,145,.16)}
@media(prefers-reduced-motion:reduce){html body .xnews-page .xnews-categories::after{transition:none}}/* v028: mobile news controls, article metadata and horizontal gallery density. */


@media(max-width:680px){
 html body .xnews-page .xnews-controls{margin-top:6px!important;margin-bottom:7px!important;}
 html body .xnews-page .xnews-categories{padding-top:0!important;}
 html body .xnews-page .xnews-toolbar{min-height:34px!important;padding:1px 11px!important;align-items:center!important;}
 html body .xnews-page .xnews-toolbar .xnews-count{display:flex!important;align-items:center!important;align-self:center!important;line-height:1.25!important;margin:0!important;}
 html body .xnews-page .xnews-toolbar .xnews-view{align-items:center!important;align-self:center!important;}
 html body .xnews-page[data-news-view=full] .xnews-list>.xnews-card:not([hidden]){padding-top:12px!important;}
 html body .xnews-page .xnews-list{margin-top:0!important;padding-top:0!important;}
}
html body .xnews-page .xnews-meta .xi-news-category-label{display:inline-block!important;margin-left:9px!important;color:#8295a7!important;font-size:11px!important;font-weight:400!important;letter-spacing:.02em!important;white-space:nowrap!important;}
html body .xnews-page .xnews-meta{justify-content:flex-start!important;align-items:center!important;}
@media(max-width:900px) and (orientation:landscape){
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="3"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
 html body.portfolio-page:not(.xi-category-view)[data-grid-columns="6"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape{display:flex!important;align-items:center!important;gap:5px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape>.xi-grid-density-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:32px!important;height:31px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait{display:none!important;}}
@media(max-width:600px) and (orientation:portrait){
 html body.xi-home-page .xi-showcase-grid.xi-recent-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;}
 html body.xi-home-page .xi-showcase-grid.xi-recent-grid>.xi-showcase-card:nth-child(n+2){display:flex!important;}
 html body.xi-home-page .xi-showcase-grid.xi-recent-grid>.xi-showcase-card:nth-child(n+4){display:none!important;}}/* v029 — X-IMAGE mobile color icons, nav polish and landscape numeric density buttons. */.xi-nav-color-icon{display:none}
@media(max-width:680px){
 .site-header .nav-links .xi-nav-color-icon{display:inline-flex!important;width:38px;height:38px;min-width:38px;align-items:center;justify-content:center;border-radius:12px;background:var(--xi-nav-icon-bg);color:var(--xi-nav-icon-color);box-shadow:inset 0 0 0 1px rgba(255,255,255,.65)}
 .site-header .nav-links .xi-nav-color-icon svg{width:21px;height:21px;display:block;stroke:currentColor}
 .site-header .nav-links>a,.site-header .nav-links .xi-portfolio-main-link{display:flex!important;align-items:center!important;gap:12px!important}
 .site-header .nav-links>a{min-height:53px!important;padding-top:6px!important;padding-bottom:6px!important}
 .site-header .nav-links>a.active,.site-header .nav-links .xi-portfolio-main-link.active{border-radius:11px!important}
 .site-header .nav-links .xi-portfolio-nav-pair{align-items:center!important}
 .site-header .nav-links .nav-submenu a{font-size:13px!important}}/* v030: mobile home section compact spacing, consistent headings and cards. */


@media (max-width:680px){
 html body.xi-home-page .xi-showcase-section{padding-top:5px!important;padding-bottom:18px!important;}
 html body.xi-home-page .xi-recent-section,html body.xi-home-page .xi-news-section{padding-top:18px!important;padding-bottom:22px!important;}
 html body.xi-home-page .xi-showcase-section .xi-section-row,html body.xi-home-page .xi-recent-section .xi-section-row,html body.xi-home-page .xi-news-section .xi-section-row{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:0!important;margin-bottom:12px!important;}
 html body.xi-home-page .xi-showcase-section .xi-section-row .eyebrow,html body.xi-home-page .xi-recent-section .xi-section-row .eyebrow,html body.xi-home-page .xi-news-section .xi-section-row .eyebrow{display:block!important;margin:0 0 4px!important;line-height:1.2!important;font-size:10px!important;}
 html body.xi-home-page .xi-showcase-section .xi-section-row h2,html body.xi-home-page .xi-recent-section .xi-section-row h2,html body.xi-home-page .xi-news-section .xi-section-row h2{display:block!important;margin:0 0 5px!important;font-size:23px!important;line-height:1.25!important;}
 html body.xi-home-page .xi-showcase-section .xi-section-row p,html body.xi-home-page .xi-recent-section .xi-section-row p,html body.xi-home-page .xi-news-section .xi-section-row p{margin:0 0 7px!important;font-size:12px!important;line-height:1.45!important;}
 html body.xi-home-page .xi-showcase-section .xi-section-more,html body.xi-home-page .xi-recent-section .xi-section-more,html body.xi-home-page .xi-news-section .xi-section-more{display:inline-block!important;margin:0!important;font-size:12px!important;line-height:1.4!important;}
 html body.xi-home-page .xi-showcase-grid{row-gap:9px!important;}
}/* v031: consistent home headings and readable recent-work captions. */


@media(max-width:680px){
 html body.xi-home-page .xi-inline-section-title{display:flex!important;align-items:baseline!important;flex-wrap:nowrap!important;gap:9px!important;margin-bottom:5px!important;}
 html body.xi-home-page .xi-inline-section-title h2{margin:0!important;flex:none!important;}
 html body.xi-home-page .xi-inline-section-title .eyebrow{margin:0!important;white-space:nowrap!important;font-size:9px!important;letter-spacing:.12em!important;}
 html body.xi-home-page .xi-about-one-line{white-space:nowrap!important;font-size:clamp(12px,3.3vw,17px)!important;letter-spacing:-.035em!important;line-height:1.5!important;}
 html body.xi-home-page .xi-recent-grid .xi-showcase-info{display:flex!important;flex-direction:column!important;visibility:visible!important;opacity:1!important;min-height:43px!important;}
 html body.xi-home-page .xi-recent-grid .xi-showcase-info small,html body.xi-home-page .xi-recent-grid .xi-showcase-info strong{display:block!important;visibility:visible!important;opacity:1!important;color:#344b62!important;}
 html body.xi-home-page .xi-recent-grid .xi-showcase-info small{color:#71879e!important;}
}/* v043: removed obsolete mobile density experiment; original SVG controls own outlines. */


@media (orientation:landscape) and (max-height:650px) and (max-width:1400px){
 html body.portfolio-page .xi-grid-density-landscape{display:flex!important;gap:6px!important;align-items:center!important;}
 html body.portfolio-page .xi-grid-density-landscape>.xi-grid-density-btn{flex:0 0 36px!important;width:36px!important;min-width:36px!important;height:30px!important;padding:2px!important;}
 html body.portfolio-page .xi-grid-density-landscape .xi-grid-density-icon{width:29px!important;height:26px!important;}
 html body.portfolio-page .xi-grid-density-landscape svg.xi-density-numbered{width:29px!important;height:26px!important;}
}
html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon{display:inline-flex!important;width:20px!important;height:20px!important;align-items:center!important;justify-content:center!important;transform-origin:50% 50%!important;vertical-align:middle!important;}
html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon svg{display:block!important;width:20px!important;height:20px!important;overflow:visible!important;}
@media(max-width:680px){
 .site-header .nav-links .xi-nav-color-icon{background:transparent!important;box-shadow:none!important;border:0!important;width:29px!important;min-width:29px!important;height:33px!important;border-radius:0!important;}
 .site-header .nav-links .xi-nav-color-icon svg{width:25px!important;height:25px!important;stroke-width:1.65!important;}
 .site-header .nav-links>a,.site-header .nav-links .xi-portfolio-nav-pair{border-bottom:1px solid #e5edf3!important;box-shadow:0 2px 2px -2px rgba(52,82,112,.2)!important;}
 .site-header .nav-links>a{min-height:51px!important;padding:6px 8px!important;}
 .site-header .nav-links .xi-portfolio-nav-pair{min-height:51px!important;}
 .site-header .nav-links>a.active,.site-header .nav-links .xi-portfolio-main-link.active,.site-header .nav-links .nav-dropdown:has(.xi-portfolio-main-link.active) .xi-portfolio-nav-pair{border-left:0!important;box-shadow:none!important;position:relative!important;}
 .site-header .nav-links>a.active::before,.site-header .nav-links .xi-portfolio-nav-pair:has(.xi-portfolio-main-link.active)::before{content:""!important;position:absolute!important;left:-20px!important;top:50%!important;width:65px!important;height:4px!important;transform:translateY(-50%)!important;background:linear-gradient(90deg,#245e93,rgba(79,147,204,.45),transparent)!important;border-radius:0 5px 5px 0!important;pointer-events:none!important;}
 .site-header .xi-search-trigger{transform:translateX(-8px)!important;}
 .site-header .xi-search-trigger svg{width:23px!important;height:23px!important;}
 .xi-hero-news-items{position:relative!important;overflow:hidden!important;}}
@media(prefers-reduced-motion:reduce){html body.portfolio-page .xi-grid-density-btn.active svg.xi-density-numbered text{animation:none!important}}/* v036: mobile menu full-width rows, fine dividers, contextual 10% color selection */


@media(max-width:680px){
 .site-header .nav-links.open{padding-left:0!important;padding-right:0!important;gap:0!important;}
 .site-header .nav-links>a,.site-header .nav-links .nav-dropdown{margin-left:0!important;margin-right:0!important;width:100%!important;max-width:none!important;border-radius:0!important;}
 .site-header .nav-links>a,.site-header .nav-links .xi-portfolio-nav-pair{border-radius:0!important;box-shadow:none!important;border-bottom:1px solid #e1e8ee!important;}
 .site-header .nav-links>a.active,.site-header .nav-links .xi-portfolio-main-link.active,.site-header .nav-links .nav-dropdown:has(.xi-portfolio-main-link.active) .xi-portfolio-nav-pair{border-radius:0!important;box-shadow:none!important;border-left:0!important;}
 .site-header .nav-links>a.active::before,.site-header .nav-links .xi-portfolio-nav-pair:has(.xi-portfolio-main-link.active)::before{content:none!important;display:none!important;}
 .site-header .nav-links>a[href="index.html"].active{background:rgba(62,131,182,.10)!important;}
 .site-header .nav-links>a[href="about.html"].active{background:rgba(41,150,124,.10)!important;}
 .site-header .nav-links .nav-dropdown:has(.xi-portfolio-main-link.active) .xi-portfolio-nav-pair{background:rgba(139,98,201,.10)!important;}
 .site-header .nav-links>a[href="news.html"].active{background:rgba(221,132,50,.10)!important;}
 .site-header .nav-links>a[href="contact.html"].active{background:rgba(212,91,125,.10)!important;}
 .site-header .nav-links .xi-nav-color-icon{background:transparent!important;border:0!important;}
}/* v043: removed obsolete CSS button frames; retain SVG artwork. */

@media (orientation:landscape) and (max-height:650px) and (max-width:1400px){
 html body.portfolio-page .xi-grid-density-landscape .xi-grid-density-btn{border:1px solid #b8cbdc!important;background:#fff!important;}
 html body.portfolio-page .xi-grid-density-landscape .xi-grid-density-btn.active{border-color:transparent!important;background:#dcecf8!important;}
 html body.portfolio-page .xi-grid-density-landscape .xi-density-numbered rect{display:none!important;}
}/* v036: compact inline home headings with action link at far right */

@media(max-width:680px){
 html body.xi-home-page .xi-showcase-section .xi-section-row,html body.xi-home-page .xi-recent-section .xi-section-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;column-gap:6px!important;}
 html body.xi-home-page .xi-showcase-section .xi-section-row>div,html body.xi-home-page .xi-recent-section .xi-section-row>div{display:contents!important;}
 html body.xi-home-page .xi-showcase-section .xi-inline-section-title,html body.xi-home-page .xi-recent-section .xi-inline-section-title{grid-column:1!important;grid-row:1!important;min-width:0!important;gap:5px!important;}
 html body.xi-home-page .xi-showcase-section .xi-section-more,html body.xi-home-page .xi-recent-section .xi-section-more{grid-column:2!important;grid-row:1!important;white-space:nowrap!important;font-size:10px!important;}
 html body.xi-home-page .xi-showcase-section .xi-section-row p,html body.xi-home-page .xi-recent-section .xi-section-row p{grid-column:1/-1!important;grid-row:2!important;margin:4px 0 0!important;}
 html body.xi-home-page .xi-showcase-section .xi-inline-section-title .eyebrow,html body.xi-home-page .xi-recent-section .xi-inline-section-title .eyebrow{font-size:8px!important;letter-spacing:.08em!important;}
}/* v036: inline home portfolio gallery */


.xi-home-gallery[hidden]{display:none!important}
.xi-home-gallery{margin:12px 0 10px;border:1px solid #dce6ef;border-radius:15px;background:#fff;padding:10px;overflow:hidden;opacity:1;transition:opacity .3s ease,transform .3s ease}
.xi-home-gallery-opening:not(.xi-home-gallery-open){opacity:0;transform:translateY(12px)}
.xi-home-gallery-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:0 2px 9px}
.xi-home-gallery-heading{display:flex;flex-direction:column;gap:2px;min-width:0}
.xi-home-gallery-title{font-size:15px;color:#294660;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xi-home-gallery-category,.xi-home-gallery-count{font-size:12px;color:#738ba0}
.xi-home-gallery-close{border:0;background:#edf4fa;color:#426784;border-radius:50%;width:32px;height:32px;font-size:23px;cursor:pointer;flex:none}
.xi-home-gallery-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:140px;background:#f3f6f9;border-radius:10px;overflow:hidden}
.xi-home-gallery-image{display:block;width:100%;height:auto;max-height:min(75vh,820px);object-fit:contain}
.xi-home-gallery-prev,.xi-home-gallery-next{position:absolute;z-index:2;top:50%;transform:translateY(-50%);border:0;border-radius:50%;background:#4b6f8dbb;color:#fff;width:34px;height:42px;font-size:29px;cursor:pointer;animation:xi-gallery-arrow-pulse 2.4s ease-in-out infinite}
.xi-home-gallery-prev{left:6px}.xi-home-gallery-next{right:6px}
@keyframes xi-gallery-arrow-pulse{0%,100%{opacity:.65}50%{opacity:1}}
.xi-home-gallery-count{text-align:center;margin:8px 0 2px}
.xi-showcase-grid.xi-home-gallery-thumbs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin-top:8px}
.xi-showcase-grid.xi-recent-grid.xi-home-gallery-thumbs{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.xi-home-gallery-thumbs .xi-showcase-card{min-width:0!important}
.xi-home-gallery-thumbs .xi-showcase-card img{aspect-ratio:1.4!important;height:auto!important;max-height:105px!important;object-fit:cover!important}
.xi-home-gallery-thumbs .xi-showcase-card .xi-showcase-info{padding:5px!important;min-height:0!important}
.xi-home-gallery-thumbs .xi-showcase-card strong{font-size:10px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xi-home-gallery-thumbs .xi-showcase-card small{font-size:9px!important}
.xi-home-gallery-thumbs .xi-showcase-card.xi-home-gallery-selected{outline:2px solid #477ca7;outline-offset:-2px}
@media(max-width:600px){.xi-home-gallery{padding:7px}.xi-home-gallery-title{font-size:13px}.xi-home-gallery-thumbs .xi-showcase-card img{max-height:80px!important}}
@media(prefers-reduced-motion:reduce){.xi-home-gallery,.xi-home-gallery-prev,.xi-home-gallery-next{transition:none!important;animation:none!important}}/* v037: fixed-height, full-proportion gallery with moving three-thumbnail rail */


.xi-home-gallery-stage{height:clamp(260px,53vw,510px);min-height:0!important;isolation:isolate;background:#e6edf3;}
.xi-home-gallery-stage::before{content:"";position:absolute;inset:-25px;background-image:var(--xi-gallery-bg);background-size:cover;background-position:center;filter:blur(22px) brightness(.82) saturate(.8);opacity:.55;z-index:-1;pointer-events:none}
.xi-home-gallery-image{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;position:relative;z-index:1;filter:drop-shadow(0 3px 8px rgba(0,0,0,.12));}
.xi-home-gallery-prev,.xi-home-gallery-next{z-index:4}
.xi-home-gallery-thumbs .xi-showcase-card[hidden]{display:none!important}
.xi-showcase-grid.xi-home-gallery-thumbs{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:start;}
.xi-showcase-grid.xi-recent-grid.xi-home-gallery-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.xi-home-gallery-thumbs .xi-showcase-card{transform-origin:top left;will-change:transform}
.xi-home-gallery-thumbs .xi-showcase-card img{width:100%;}
@media(max-width:680px){.xi-home-gallery-stage{height:clamp(280px,85vw,380px)}.xi-home-gallery-thumbs .xi-showcase-card .xi-showcase-info{padding:5px!important}}
@media (orientation:landscape) and (max-height:650px){.xi-home-gallery-stage{height:clamp(220px,68vh,440px)}}
@media(prefers-reduced-motion:reduce){.xi-home-gallery-stage *{animation:none!important;transition:none!important}}/* v040: consistent portrait/landscape artwork viewer and synchronized backdrop fade */


.xi-home-gallery-stage{height:clamp(300px,51vw,540px)!important;min-height:0!important;position:relative;isolation:isolate;background:#e5edf4!important}
.xi-home-gallery-stage::before{content:none!important}
.xi-home-gallery-backdrop{position:absolute;inset:-28px;background-position:center;background-size:cover;filter:blur(24px) brightness(.76) saturate(.83);opacity:0;transition:opacity 650ms cubic-bezier(.22,1,.36,1);pointer-events:none;z-index:0}
.xi-home-gallery-backdrop.is-visible{opacity:.76}
.xi-home-gallery-image{position:relative;z-index:1;display:block;width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;object-position:center;filter:drop-shadow(0 4px 10px rgba(0,0,0,.17))}
.xi-showcase-grid.xi-home-gallery-thumbs{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch!important;gap:8px!important}
.xi-showcase-grid.xi-recent-grid.xi-home-gallery-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.xi-home-gallery-thumbs .xi-showcase-card{height:100%;min-width:0;overflow:hidden;border-radius:12px}
.xi-home-gallery-thumbs .xi-showcase-card img{width:100%!important;height:clamp(70px,17vw,132px)!important;max-height:none!important;aspect-ratio:auto!important;object-fit:cover}
.xi-home-gallery-thumbs .xi-showcase-info{min-height:43px!important}
@media(max-width:680px){.xi-home-gallery-stage{height:clamp(280px,82vw,390px)!important}.xi-home-gallery-thumbs .xi-showcase-card img{height:clamp(64px,20vw,100px)!important}.xi-home-gallery-thumbs .xi-showcase-info{min-height:40px!important}}
@media (orientation:landscape) and (max-height:650px){.xi-home-gallery-stage{height:clamp(210px,68vh,440px)!important}}
@media(prefers-reduced-motion:reduce){.xi-home-gallery-backdrop{transition:none!important}}/* v041: borderless main artwork and strict single-row thumbnails */


html body.xi-home-page .xi-home-gallery{border:0!important;box-shadow:none!important;background:transparent!important;border-radius:0!important;padding:0!important;margin:12px 0 8px!important;overflow:visible!important}
html body.xi-home-page .xi-home-gallery-stage{border:0!important;box-shadow:none!important;border-radius:10px!important}
html body.xi-home-page .xi-showcase-grid.xi-home-gallery-thumbs{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-auto-flow:row!important;gap:8px!important;align-items:stretch!important}
html body.xi-home-page .xi-showcase-grid.xi-recent-grid.xi-home-gallery-thumbs{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body.xi-home-page .xi-showcase-grid.xi-home-gallery-thumbs > .xi-showcase-card[hidden],html body.xi-home-page .xi-showcase-grid.xi-home-gallery-thumbs > .xi-showcase-card.xi-home-gallery-selected{display:none!important}
html body.xi-home-page .xi-showcase-grid.xi-home-gallery-thumbs > .xi-showcase-card:not([hidden]):not(.xi-home-gallery-selected){display:flex!important;min-width:0!important;width:100%!important}
html body.xi-home-page .xi-showcase-grid.xi-home-gallery-thumbs > .xi-showcase-card:nth-child(n+5){display:none!important}
html body.xi-home-page .xi-showcase-grid.xi-recent-grid.xi-home-gallery-thumbs > .xi-showcase-card:nth-child(n+4){display:none!important}
html body.xi-home-page .xi-showcase-grid.xi-home-gallery-thumbs > .xi-showcase-card > img{width:100%!important;min-width:0!important}/* v041: featured expanded thumbnail cards exactly match the three-card recent works row. */


html body.xi-home-page .xi-showcase-grid[data-home-gallery].xi-home-gallery-thumbs {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  grid-auto-flow:row!important;
  gap:7px!important;
  width:100%!important;
  align-items:stretch!important;
}
html body.xi-home-page .xi-showcase-grid[data-home-gallery].xi-home-gallery-thumbs > .xi-showcase-card:not([hidden]):not(.xi-home-gallery-selected) {
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  min-width:0!important;
  height:auto!important;
  margin:0!important;
  overflow:hidden!important;
  border-radius:12px!important;
}
html body.xi-home-page .xi-showcase-grid[data-home-gallery].xi-home-gallery-thumbs > .xi-showcase-card[hidden],html body.xi-home-page .xi-showcase-grid[data-home-gallery].xi-home-gallery-thumbs > .xi-showcase-card.xi-home-gallery-selected{
  display:none!important;
}
html body.xi-home-page .xi-showcase-grid[data-home-gallery].xi-home-gallery-thumbs > .xi-showcase-card > img {
  display:block!important;
  width:100%!important;
  height:94px!important;
  min-height:94px!important;
  max-height:94px!important;
  aspect-ratio:auto!important;
  object-fit:cover!important;
  flex:none!important;
}
html body.xi-home-page .xi-showcase-grid[data-home-gallery].xi-home-gallery-thumbs .xi-showcase-info {
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-height:42px!important;
  padding:5px 6px 7px!important;
  gap:2px!important;
}
html body.xi-home-page .xi-showcase-grid[data-home-gallery].xi-home-gallery-thumbs .xi-showcase-info small {
  font-size:10px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
html body.xi-home-page .xi-showcase-grid[data-home-gallery].xi-home-gallery-thumbs .xi-showcase-info strong {
  display:block!important;
  font-size:11px!important;
  font-weight:500!important;
  line-height:1.35!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}/* v044: supplied round blue-grey directional controls; no red screenshot marker. */


.xi-home-gallery-prev,.xi-home-gallery-next{
 width:43px!important;height:43px!important;border-radius:50%!important;
 background-color:rgba(115,143,164,.84)!important;
 background-repeat:no-repeat!important;background-size:68% 68%!important;
 background-position:center!important;color:transparent!important;
 font-size:0!important;line-height:0!important;
 border:0!important;box-shadow:0 2px 10px rgba(24,47,68,.14)!important;
}
.xi-home-gallery-prev{background-image:url('../assets/img/ui/arrow-left.svg')!important}
.xi-home-gallery-next{background-image:url('../assets/img/ui/arrow-right.svg')!important}
.xi-home-gallery-prev:hover,.xi-home-gallery-next:hover{background-color:rgba(115,143,164,.94)!important}/* TOP: preserve original translucent circle; replace glyph with supplied upward geometry. */

html body .xi-top-row .xi-top-button{
 background:rgba(115,143,164,.84)!important;border:0!important;
 gap:0!important;
}
html body .xi-top-row .xi-top-button .xi-top-arrow{
 display:block!important;width:34px!important;height:34px!important;
 font-size:0!important;line-height:0!important;
 background:url('../assets/img/ui/arrow-up.svg') center / contain no-repeat!important;
 filter:drop-shadow(0 0 2px rgba(255,255,255,.6));
 animation:xi-top-white-glow 2.5s ease-in-out infinite!important;
}
html body .xi-top-row .xi-top-button .xi-top-label{
 color:#fff!important;font-size:11px!important;font-weight:800!important;
 letter-spacing:0!important;line-height:1!important;
 animation:xi-top-text-glow 2.5s ease-in-out infinite!important;
}
@keyframes xi-top-white-glow{0%,100%{filter:drop-shadow(0 0 1px rgba(255,255,255,.35))}50%{filter:drop-shadow(0 0 5px rgba(255,255,255,1)) drop-shadow(0 0 9px rgba(255,255,255,.7))}}
@keyframes xi-top-text-glow{0%,100%{text-shadow:0 0 2px rgba(255,255,255,.3)}50%{text-shadow:0 0 7px #fff,0 0 12px rgba(255,255,255,.85)}}
@media(prefers-reduced-motion:reduce){html body .xi-top-row .xi-top-button .xi-top-arrow,html body .xi-top-row .xi-top-button .xi-top-label{animation:none!important}}/* v017: TOP inner arrow and label reduced; circle and glow unchanged. */


html body .xi-top-row .xi-top-button .xi-top-arrow{width:27px!important;height:27px!important;}
html body .xi-top-row .xi-top-button .xi-top-label{font-size:9px!important;}/* v018: TOP icon breathing room and slightly clearer translucent circle. */


html body .xi-top-row .xi-top-button{
  background-color:rgba(115,143,164,.72)!important;
  gap:4px!important;
}
html body .xi-top-row .xi-top-button .xi-top-arrow{flex-shrink:0!important;}
html body .xi-top-row .xi-top-button .xi-top-label{flex-shrink:0!important;}/* v019: new supplied chevron artwork; match TOP translucency and white breathing glow. */


.xi-home-gallery-prev,.xi-home-gallery-next{
  background-color:rgba(115,143,164,.72)!important;
  background-image:none!important;
  width:43px!important;height:43px!important;
  position:absolute!important;overflow:visible!important;
  animation:none!important;opacity:1!important;
}
.xi-home-gallery-prev::after,.xi-home-gallery-next::after{
  content:""!important;position:absolute!important;inset:7px!important;
  background-position:center!important;background-repeat:no-repeat!important;
  background-size:contain!important;pointer-events:none!important;
  animation:xi-top-white-glow 2.5s ease-in-out infinite!important;
}
.xi-home-gallery-prev::after{background-image:url('../assets/img/ui/arrow-left.svg')!important}
.xi-home-gallery-next::after{background-image:url('../assets/img/ui/arrow-right.svg')!important}
.xi-home-gallery-prev:hover,.xi-home-gallery-next:hover{background-color:rgba(115,143,164,.82)!important}
@media(prefers-reduced-motion:reduce){.xi-home-gallery-prev::after,.xi-home-gallery-next::after{animation:none!important}}/* v020: move gallery arrows outside the image edges without altering the stage height. */


html body.xi-home-page .xi-home-gallery-stage{overflow:visible!important;}
html body.xi-home-page .xi-home-gallery-backdrop{inset:0!important;border-radius:10px!important;clip-path:inset(0 round 10px);}
html body.xi-home-page .xi-home-gallery-prev{left:-18px!important;}
html body.xi-home-page .xi-home-gallery-next{right:-18px!important;}
html body.xi-home-page .xi-home-gallery-prev,html body.xi-home-page .xi-home-gallery-next{z-index:8!important;}
@media(max-width:420px){html body.xi-home-page .xi-home-gallery-prev{left:-14px!important;}html body.xi-home-page .xi-home-gallery-next{right:-14px!important;}}/* v021: swipeable 8-work featured strip, fixed three visible cards */


html body.xi-home-page .xi-showcase-grid[data-home-gallery].xi-home-gallery-thumbs.xi-home-gallery-scroll{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;scrollbar-width:none!important;gap:8px!important;overscroll-behavior-x:contain!important;-webkit-overflow-scrolling:touch!important;padding-bottom:3px!important;}
html body.xi-home-page .xi-showcase-grid[data-home-gallery].xi-home-gallery-thumbs.xi-home-gallery-scroll::-webkit-scrollbar{display:none!important;}
html body.xi-home-page .xi-showcase-grid[data-home-gallery].xi-home-gallery-thumbs.xi-home-gallery-scroll>.xi-showcase-card:not([hidden]):not(.xi-home-gallery-selected){flex:0 0 calc((100% - 16px)/3)!important;width:calc((100% - 16px)/3)!important;min-width:0!important;scroll-snap-align:start!important;}
html body.xi-home-page .xi-showcase-grid[data-home-gallery].xi-home-gallery-thumbs.xi-home-gallery-scroll>.xi-showcase-card:nth-child(n+5){display:flex!important;}
html body.xi-home-page .xi-showcase-grid[data-home-gallery].xi-home-gallery-thumbs.xi-home-gallery-scroll>.xi-showcase-card[hidden]{display:none!important;}
.xi-showcase-card{position:relative;}
.xi-home-thumb-count{position:absolute;top:6px;right:6px;z-index:2;background:rgba(50,76,96,.74);color:#fff;border-radius:20px;padding:2px 6px;font-size:10px;line-height:1.5;pointer-events:none;}
.xi-home-thumb-next{position:absolute;right:4px;top:37%;z-index:3;width:25px;height:25px;border:0;border-radius:50%;background:rgba(115,143,164,.72);color:white;font-size:22px;line-height:22px;cursor:pointer;}/* v042: real sliding artwork transition; keep controls outside stage */


.xi-home-gallery-slide-layer{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;z-index:2;pointer-events:none;filter:drop-shadow(0 4px 10px rgba(0,0,0,.17));}
.xi-home-gallery-stage{touch-action:pan-y;}
@media(prefers-reduced-motion:reduce){.xi-home-gallery-slide-layer{display:none!important;}}/* v043: true cyclic three-card thumbnail rail, shared by featured (20) and recent (10) */


html body.xi-home-page .xi-showcase-grid.xi-home-gallery-thumbs{display:none!important;}
html body.xi-home-page .xi-home-infinite-rail:not([hidden]){display:flex!important;gap:8px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:2px 0 4px;touch-action:pan-x pan-y;}
html body.xi-home-page .xi-home-infinite-rail::-webkit-scrollbar{display:none}
html body.xi-home-page .xi-home-infinite-rail>.xi-home-rail-card{box-sizing:border-box;display:flex!important;flex:0 0 calc((100% - 16px)/3)!important;width:calc((100% - 16px)/3)!important;min-width:0!important;scroll-snap-align:start;overflow:hidden;}
html body.xi-home-page .xi-home-infinite-rail>.xi-home-rail-card img{width:100%!important;height:clamp(64px,20vw,100px)!important;object-fit:cover;}
html body.xi-home-page .xi-home-infinite-rail .xi-showcase-info{min-height:40px!important;}
html body.xi-home-page .xi-home-infinite-rail .xi-showcase-info strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}/* v044: expanded view has exactly one thumbnail row; prevent legacy grid showing below rail. */


html body.xi-home-page .xi-showcase-grid.xi-home-gallery-thumbs,html body.xi-home-page .xi-showcase-grid.xi-home-gallery-thumbs.xi-home-gallery-scroll{display:none!important;}
html body.xi-home-page .xi-home-infinite-rail:not([hidden]){scroll-snap-type:none!important;touch-action:pan-y!important;}/* v025: continuous kinetic carousel without mandatory one-card snap */


html body.xi-home-page .xi-home-infinite-rail:not([hidden]){scroll-behavior:auto!important;scroll-snap-type:none!important;overscroll-behavior-x:contain!important;}
html body.xi-home-page .xi-home-infinite-rail>.xi-home-rail-card{scroll-snap-align:none!important;}/* 026: keep infinite rail cards identical to homepage latest-work tiles. */


html body.xi-home-page .xi-home-infinite-rail:not([hidden])>.xi-home-rail-card{
 display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
 height:auto!important;min-height:0!important;position:relative!important;overflow:hidden!important;
 border-radius:12px!important;background:#fff!important;
}
html body.xi-home-page .xi-home-infinite-rail:not([hidden])>.xi-home-rail-card>img{
 display:block!important;flex:none!important;width:100%!important;max-width:100%!important;min-width:0!important;
 height:clamp(64px,20vw,100px)!important;max-height:none!important;aspect-ratio:auto!important;object-fit:cover!important;
}
html body.xi-home-page .xi-home-infinite-rail:not([hidden])>.xi-home-rail-card>.xi-showcase-info{
 display:flex!important;flex-direction:column!important;flex:none!important;min-width:0!important;width:100%!important;
 box-sizing:border-box!important;padding:5px 6px 7px!important;gap:2px!important;
}
html body.xi-home-page .xi-home-infinite-rail:not([hidden])>.xi-home-rail-card>.xi-showcase-info small,html body.xi-home-page .xi-home-infinite-rail:not([hidden])>.xi-home-rail-card>.xi-showcase-info strong{
 display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;width:100%!important;
}/* v027: continuous thumbnail carousel, no CSS snap or smooth-scroll conflict */


html body.xi-home-page .xi-home-infinite-rail:not([hidden]){scroll-behavior:auto!important;scroll-snap-type:none!important;-webkit-overflow-scrolling:auto!important;}/* v029: infinite thumbnail rail typography mirrors the homepage Latest Works cards. */


html body.xi-home-page .xi-home-infinite-rail:not([hidden]) > .xi-home-rail-card > .xi-showcase-info {
  padding:6px 7px 8px!important;gap:2px!important;min-height:0!important;
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
}
html body.xi-home-page .xi-home-infinite-rail:not([hidden]) > .xi-home-rail-card > .xi-showcase-info small {
  font-size:10px!important;font-weight:400!important;line-height:1.3!important;
  color:#7086a0!important;letter-spacing:normal!important;
}
html body.xi-home-page .xi-home-infinite-rail:not([hidden]) > .xi-home-rail-card > .xi-showcase-info strong {
  font-size:11px!important;font-weight:500!important;line-height:1.3!important;
  color:inherit!important;letter-spacing:normal!important;
}
html body.xi-home-page .xi-home-infinite-rail:not([hidden]) > .xi-home-rail-card > img {
  height:94px!important;max-height:94px!important;min-height:0!important;object-fit:cover!important;
}/* v030: clip sliding artwork, not the protruding arrow controls */


html body.xi-home-page .xi-home-gallery-stage{overflow:visible!important;position:relative;}
html body.xi-home-page .xi-home-art-clip{position:absolute;inset:0;overflow:hidden;border-radius:10px;isolation:isolate;}
html body.xi-home-page .xi-home-art-clip>.xi-home-gallery-image{position:absolute;inset:0;width:100%;height:100%;} 
html body.xi-home-page .xi-home-art-clip>.xi-home-gallery-backdrop{position:absolute;inset:0;}/* Homepage featured section stays in the one-main / three-small layout. */

html body.xi-home-page .xi-home-gallery:has(+ [data-home-gallery]) .xi-home-gallery-close{display:none!important;}/* v033: Adaptive 12% smart-fill for near-matching image aspect ratios. */


html body.xi-home-page .xi-home-art-clip img.xi-smart-fill,html body.xi-home-page .xi-home-gallery-slide-layer.xi-smart-fill,html body.xi-home-page .xi-home-infinite-rail img.xi-smart-fill,html body.xi-home-page [data-home-gallery-item] img.xi-smart-fill{object-fit:cover!important;}/* v035: clearer portfolio links; gentle text-only glow */


html body.xi-home-page .xi-showcase-section .xi-section-more,html body.xi-home-page .xi-recent-section .xi-section-more{
 font-size:clamp(12px,2.9vw,15px)!important; font-weight:700!important;
 color:#526f8b!important; animation:xiPortfolioLinkGlow 2.5s ease-in-out infinite;
 text-decoration:none!important;
}
@keyframes xiPortfolioLinkGlow{
 0%,100%{text-shadow:0 0 0 rgba(166,207,255,0)}
 50%{text-shadow:0 0 5px rgba(150,198,255,.75),0 0 11px rgba(179,217,255,.48)}
}
@media(prefers-reduced-motion:reduce){
 html body.xi-home-page .xi-showcase-section .xi-section-more,html body.xi-home-page .xi-recent-section .xi-section-more{animation:none!important}}/* v236: exact supplied circular double-arrow, centered rotation */


html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon svg{display:block;width:20px;height:20px;overflow:visible;fill:currentColor;}
html body.portfolio-page .xi-work-mode[data-mode="random"] .xi-random-icon{transform-origin:center center!important;}/* v042: restore exact supplied 1/2/3 column pictograms. One SVG per control,
   with one/two/three rounded rectangles INSIDE that SVG; never a CSS button frame. */



@media (max-width:900px) and (orientation:portrait) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row {
   border-bottom:1px solid #8198ab!important;box-shadow:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {
   display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
   gap:2px!important;column-gap:2px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active {
   display:flex!important;align-items:center!important;justify-content:center!important;
   flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;
   height:29px!important;min-height:29px!important;max-height:29px!important;
   margin:0!important;padding:0!important;box-sizing:border-box!important;
   border:0!important;outline:0!important;border-radius:0!important;
   background:transparent!important;box-shadow:none!important;overflow:visible!important;
   transform:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn .xi-grid-density-icon {
   display:block!important;width:32px!important;height:27px!important;min-width:32px!important;
   background:none!important;border:0!important;box-shadow:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn svg.xi-density-numbered {
   display:block!important;width:32px!important;height:27px!important;overflow:visible!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn svg.xi-density-numbered .xi-density-outline rect {
   display:block!important;fill:none!important;stroke:#8baac5!important;
   stroke-width:1.35px!important;opacity:1!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active svg.xi-density-numbered .xi-density-outline rect {
   stroke:#658fac!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn svg.xi-density-numbered .xi-density-numeral {
   display:block!important;fill:#6b8ca5!important;stroke:none!important;
   font-size:29px!important;font-weight:400!important;opacity:1!important;
 }
}/* v043: exact reference artwork for mobile portfolio density selector.
   The SVG defines 1/2/3 narrow rounded columns, and the numeral overlays them. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn svg.xi-density-numbered .xi-density-numeral,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active svg.xi-density-numbered .xi-density-numeral{
   animation:none;font-weight:400!important;fill:#6b8ca5!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn svg.xi-density-numbered .xi-density-outline rect{
   stroke:#8baac5!important;stroke-width:1.15px!important;
 }
}/* v044: reference-shaped mobile density icons, evenly spaced, delicate blue lines.
   Only SVG rectangles draw the frames; selected state is a soft animated blue fill. */


@keyframes xi044-density-selected-glow {
  0%,100% { fill:#638baa; opacity:1; filter:drop-shadow(0 0 0 rgba(75,156,224,0)); }
  50% { fill:#2677b8; opacity:.72; filter:drop-shadow(0 0 2px rgba(80,164,238,.65)); }
}
@keyframes xi044-density-selected-bg {
  0%,100% { background-color:rgba(142,200,245,.30); box-shadow:inset 0 0 0 rgba(87,169,235,0); }
  50% { background-color:rgba(115,185,239,.53); box-shadow:inset 0 0 9px rgba(87,169,235,.30); }
}
@media (max-width:900px) and (orientation:portrait) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait { gap:4px!important;column-gap:4px!important; }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active{
   flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;
   height:29px!important;padding:0!important;border:0!important;border-radius:5px!important;
   background:transparent!important;box-shadow:none!important;outline:0!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active {
   animation:xi044-density-selected-bg 2.4s ease-in-out infinite!important;
 }}
@media (prefers-reduced-motion:reduce) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active{animation:none;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active {background:#d5eaf9!important;}}/* v046: equal fixed spacing and right anchoring for portrait density controls ONLY — restore values from 修正中2.rar.
   No other page, menu, gallery or animation is changed. */


@media (max-width:600px) and (orientation:portrait) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {display:flex!important;flex-wrap:nowrap!important;gap:6px!important;column-gap:6px!important;align-items:center!important;justify-content:flex-end!important;flex:0 0 auto!important;width:90px!important;min-width:90px!important;max-width:90px!important;margin-left:auto!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active {flex:0 0 26px!important;width:26px!important;min-width:26px!important;max-width:26px!important;height:30px!important;min-height:30px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;animation:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3) {margin-left:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait .xi-grid-density-icon {display:flex!important;align-items:center!important;justify-content:center!important;width:26px!important;min-width:26px!important;height:26px!important;background:none!important;border:0!important;box-shadow:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered {display:block!important;width:26px!important;height:26px!important;overflow:visible!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered .xi-density-outline rect {display:block!important;fill:none!important;stroke:#dce5ec!important;stroke-width:.75px!important;opacity:1!important;filter:none!important;animation:none!important;vector-effect:non-scaling-stroke!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active svg.xi-density-numbered .xi-density-outline rect {fill:none!important;stroke:#66849e!important;stroke-width:.65px!important;opacity:1!important;animation:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered .xi-density-numeral {display:block!important;fill:#a5b6c7!important;stroke:none!important;font-size:29px!important;font-weight:400!important;font-family:Arial,'Noto Sans TC',sans-serif!important;opacity:1;filter:none;animation:none;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active svg.xi-density-numbered .xi-density-numeral {fill:#36566f!important;opacity:1;filter:none;animation:none;}
}/* v053 — Mobile portrait density controls: single authoritative fixed three-cell layout.
   Previous v047-v052 conflicting absolute/grid positioning rules removed.
   Only this widget is affected; active animation is isolated to numeral <g>. */


@keyframes xi-density-halo-053 {
  0%,100% { opacity:1; filter:drop-shadow(0 0 1px rgba(255,255,255,.85)) drop-shadow(0 0 2px rgba(30,116,205,.35)); }
  50% { opacity:.38; filter:drop-shadow(0 0 3px rgba(255,255,255,1)) drop-shadow(0 0 7px rgba(16,116,230,1)); }
}
@media (max-width:600px) and (orientation:portrait) {
  html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density,html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait{
    box-sizing:border-box!important; flex:0 0 102px!important;
    width:102px!important;min-width:102px!important;max-width:102px!important;
    height:32px!important;min-height:32px!important;max-height:32px!important;
    padding:0!important;margin:0 0 0 auto!important;
    transform:none!important;transition:none!important;
  }
  html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {
    display:grid!important;position:relative!important;
    grid-template-columns:30px 30px 30px!important;grid-template-rows:32px!important;
    gap:0 6px!important;justify-content:start!important;align-content:center!important;
  }
  html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active{
    display:flex!important;position:relative!important;inset:auto!important;
    box-sizing:border-box!important;flex:none!important;
    width:30px!important;min-width:30px!important;max-width:30px!important;
    height:32px!important;min-height:32px!important;max-height:32px!important;
    margin:0!important;padding:0!important;
    align-items:center!important;justify-content:center!important;
    border:0!important;border-radius:0!important;background:transparent!important;
    box-shadow:none!important;transform:none!important;transition:none!important;
    animation:none!important;overflow:visible!important;
  }
  html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(1) {grid-column:1!important;grid-row:1!important;}
  html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2) {grid-column:2!important;grid-row:1!important;}
  html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3) {grid-column:3!important;grid-row:1!important;}
  html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered {
    display:block!important;box-sizing:border-box!important;position:static!important;
    width:30px!important;min-width:30px!important;max-width:30px!important;
    height:30px!important;min-height:30px!important;max-height:30px!important;
    padding:0!important;margin:0!important;
    transform:none!important;transition:none!important;animation:none!important;
  }}/* v054: density selector coordinates are invariant across active states.
   Absolute positioning prevents active-state reflow and changing gaps.
   Do not animate the button or the SVG geometry: only numeral <g> pulses. */


@media (max-width:600px) and (orientation:portrait) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {
   display:block!important;position:relative!important;box-sizing:border-box!important;
   width:102px!important;min-width:102px!important;max-width:102px!important;
   height:32px!important;min-height:32px!important;max-height:32px!important;
   flex:0 0 102px!important;gap:0!important;padding:0!important;
   margin:0 0 0 auto!important;transform:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active {
   position:absolute!important;top:0!important;right:auto!important;bottom:auto!important;
   display:flex!important;box-sizing:border-box!important;
   width:30px!important;min-width:30px!important;max-width:30px!important;
   height:32px!important;min-height:32px!important;max-height:32px!important;
   flex:none!important;margin:0!important;padding:0!important;
   border:0!important;background:transparent!important;
   transform:none!important;translate:none!important;scale:none!important;
   transition:none!important;animation:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(1),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(1).active {left:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2).active {left:36px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3).active {left:72px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered {
   width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;
   transform:none!important;translate:none!important;scale:none!important;
   transition:none!important;animation:none!important;
 }
}/* v055: the selector track is a non-flexing 102px island.
   Numeral glow remains isolated on the SVG text group. */


@media(max-width:600px) and (orientation:portrait){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density {box-sizing:border-box!important;flex:0 0 102px!important;width:102px!important;min-width:102px!important;max-width:102px!important;gap:0!important;padding:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {display:block!important;position:relative!important;box-sizing:border-box!important;width:102px!important;min-width:102px!important;max-width:102px!important;gap:0!important;}
}/* v056: small mobile portrait spacing adjustment only.
   Selector positions match the JS pinning routine (0/34/68px). */


@media (max-width:600px) and (orientation:portrait) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {
   flex:0 0 98px!important;width:98px!important;min-width:98px!important;max-width:98px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2).active {left:34px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3).active {left:68px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode="random"] .xi-random-icon {margin-left:4px!important;}
}/* v057: final mobile portrait spacing lock — 30px controls, 4px gaps, fixed coordinates. */


@media (max-width:600px) and (orientation:portrait) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(1) {left:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2) {left:34px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3) {left:68px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode="random"] .xi-random-icon {margin-left:4px!important;}
}/* v058: mobile portrait controls: three equal 2px gaps, breathing room around random control. */


@media (max-width:600px) and (orientation:portrait) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {flex:0 0 94px!important;width:94px!important;min-width:94px!important;max-width:94px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(1) {left:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2) {left:32px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3) {left:64px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row {gap:10px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode="random"] {padding-left:6px!important;padding-right:6px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode="random"] .xi-random-icon {margin-left:6px!important;}
}/* v059: portrait density controls visually closer; random button balanced side padding. */


@media (max-width:600px) and (orientation:portrait) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {flex:0 0 88px!important;width:88px!important;min-width:88px!important;max-width:88px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(1),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(1).active {left:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2).active {left:29px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3).active {left:58px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row {gap:8px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode="random"] {padding-left:12px!important;padding-right:12px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode="random"] .xi-random-icon {margin-left:6px!important;}
}/* v060: mobile portrait balanced gallery toolbar; non-overlapping 1/2/3 controls. */


@media (max-width:600px) and (orientation:portrait) {
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row {gap:5px!important;width:100%!important;}
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes {flex:1 1 auto!important;width:auto!important;min-width:0!important;overflow:visible!important;}
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes > .xi-work-mode:not([data-mode="random"]) {flex:0.9 1 0!important;min-width:0!important;}
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes > .xi-work-mode[data-mode="random"] {flex:1.25 1 0!important;min-width:0!important;padding-left:8px!important;padding-right:8px!important;gap:3px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode="random"] .xi-random-icon {margin-left:4px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {flex:0 0 94px!important;width:94px!important;min-width:94px!important;max-width:94px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(1) {left:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2) {left:32px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3) {left:64px!important;}
}/* v061 / 017: equal 1-2-3 spacing, compact random tab; one grid owns all positions. */


@media (max-width:600px) and (orientation:portrait) {
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row {gap:5px!important;}
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes > .xi-work-mode:not([data-mode="random"]) {flex:1 1 0!important;}
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes > .xi-work-mode[data-mode="random"] {flex:1.05 1 0!important;padding-left:3px!important;padding-right:3px!important;gap:2px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode="random"] .xi-random-icon {margin-left:2px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {box-sizing:border-box!important;flex:0 0 94px!important;width:94px!important;min-width:94px!important;max-width:94px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {display:grid!important;position:relative!important;grid-template-columns:repeat(3,30px)!important;grid-template-rows:32px!important;column-gap:2px!important;row-gap:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active {position:relative!important;left:auto!important;top:auto!important;right:auto!important;bottom:auto!important;width:30px!important;min-width:30px!important;max-width:30px!important;margin:0!important;}
}/* v062 / 018: ensure all three density controls remain visible, equal 4px spacing. */


@media (max-width:600px) and (orientation:portrait) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density {display:block!important;flex:0 0 104px!important;width:104px!important;min-width:104px!important;max-width:104px!important;overflow:visible!important;padding:0!important;margin:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {display:grid!important;grid-template-columns:repeat(3,30px)!important;grid-template-rows:32px!important;gap:0 4px!important;width:98px!important;min-width:98px!important;max-width:98px!important;overflow:visible!important;justify-content:start!important;margin:0!important;padding:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn {display:flex!important;position:relative!important;inset:auto!important;grid-row:1!important;visibility:visible!important;opacity:1!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(1) {grid-column:1!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2) {grid-column:2!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3) {grid-column:3!important;}
}/* v063 / 019: reserve a compact 82px density group; equal 2px gaps. */


@media (max-width:600px) and (orientation:portrait) {
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row {gap:3px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density {box-sizing:border-box!important;flex:0 0 82px!important;width:82px!important;min-width:82px!important;max-width:82px!important;padding:0!important;margin:0!important;overflow:visible!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {box-sizing:border-box!important;display:grid!important;grid-template-columns:repeat(3,26px)!important;grid-template-rows:32px!important;column-gap:2px!important;row-gap:0!important;width:82px!important;min-width:82px!important;max-width:82px!important;margin:0!important;padding:0!important;overflow:visible!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn {box-sizing:border-box!important;width:26px!important;min-width:26px!important;max-width:26px!important;margin:0!important;padding:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered {width:26px!important;height:30px!important;}
}/* v064 / 020: eliminate old 32px flex-basis and absolute offsets that hid third control. */


@media (max-width:600px) and (orientation:portrait) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {box-sizing:border-box!important;flex:0 0 74px!important;width:74px!important;min-width:74px!important;max-width:74px!important;margin:0!important;padding:0!important;overflow:visible!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {display:grid!important;grid-template-columns:repeat(3,24px)!important;grid-template-rows:32px!important;gap:0 1px!important;justify-content:start!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active {position:relative!important;inset:auto!important;left:0!important;right:auto!important;top:0!important;flex:0 0 24px!important;width:24px!important;min-width:24px!important;max-width:24px!important;margin:0!important;padding:0!important;grid-row:1!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(1){grid-column:1!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2){grid-column:2!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3){grid-column:3!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered {width:24px!important;min-width:24px!important;max-width:24px!important;height:26px!important;}
}/* v065 / 021: mobile portfolio controls: responsive one-row layout, no absolute offsets. */


@media (max-width:600px) and (orientation:portrait) {
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row {display:flex!important;flex-wrap:nowrap!important;align-items:end!important;width:100%!important;min-width:0!important;gap:4px!important;overflow:visible!important;}
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes {display:flex!important;flex:1 1 0!important;width:0!important;min-width:0!important;max-width:none!important;overflow:visible!important;}
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes > .xi-work-mode:not([data-mode="random"]) {flex:1 1 0!important;min-width:0!important;padding-left:0!important;padding-right:0!important;white-space:nowrap!important;}
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes > .xi-work-mode[data-mode="random"] {flex:1.08 1 0!important;min-width:0!important;padding-left:2px!important;padding-right:2px!important;gap:1px!important;white-space:nowrap!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode[data-mode="random"] .xi-random-icon {margin-left:1px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density {display:block!important;box-sizing:border-box!important;flex:0 0 74px!important;width:74px!important;min-width:74px!important;max-width:74px!important;padding:0!important;margin:0!important;overflow:visible!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {display:grid!important;box-sizing:border-box!important;position:static!important;grid-template-columns:repeat(3,24px)!important;grid-template-rows:32px!important;column-gap:1px!important;row-gap:0!important;flex:none!important;width:74px!important;min-width:74px!important;max-width:74px!important;margin:0!important;padding:0!important;overflow:visible!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active {display:flex!important;position:static!important;inset:auto!important;grid-row:1!important;box-sizing:border-box!important;flex:none!important;width:24px!important;min-width:24px!important;max-width:24px!important;height:32px!important;margin:0!important;padding:0!important;transform:none!important;overflow:visible!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(1) {grid-column:1!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2) {grid-column:2!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3) {grid-column:3!important;}
}/* v066 / 022: portrait density controls keep identical geometry before/after selection.
   Explicitly neutralize legacy nth-child/active offsets and width rules. */


@media (max-width:600px) and (orientation:portrait) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density {
   flex:0 0 74px!important; width:74px!important; min-width:74px!important; max-width:74px!important;
   margin:0!important;padding:0!important;align-self:center!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {
   display:grid!important; position:relative!important;
   grid-template-columns:repeat(3,minmax(0,24px))!important;grid-template-rows:32px!important;
   column-gap:1px!important;row-gap:0!important;justify-content:start!important;
   width:74px!important;min-width:74px!important;max-width:74px!important;
   margin:0!important;padding:0!important;transform:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:active {
   display:flex!important;position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
   width:24px!important;min-width:24px!important;max-width:24px!important;
   height:32px!important;min-height:32px!important;max-height:32px!important;
   flex:none!important;grid-row:1!important;margin:0!important;padding:0!important;
   transform:none!important;translate:none!important;scale:none!important;
   box-sizing:border-box!important;justify-self:stretch!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(1),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(1).active {grid-column:1!important;left:auto!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(2).active {grid-column:2!important;left:auto!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:nth-child(3).active {grid-column:3!important;left:auto!important;}
}/* v067 / 023: Single geometry owner for portrait density controls.
   The selected state changes paint only, never layout. */


@media (max-width:600px) and (orientation:portrait) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density {
  display:flex!important;flex:0 0 78px!important;width:78px!important;min-width:78px!important;max-width:78px!important;overflow:visible!important;margin:0!important;padding:0!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait {
  display:flex!important;position:static!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:2px!important;
  flex:0 0 78px!important;width:78px!important;min-width:78px!important;max-width:78px!important;height:32px!important;
  margin:0!important;padding:0!important;transform:none!important;overflow:visible!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:active {
  display:flex!important;position:static!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  flex:0 0 24px!important;width:24px!important;min-width:24px!important;max-width:24px!important;
  height:32px!important;min-height:32px!important;max-height:32px!important;
  margin:0!important;padding:0!important;transform:none!important;translate:none!important;scale:none!important;
  float:none!important;grid-area:auto!important;order:0!important;box-sizing:border-box!important;
 }
}/* v068 / 024: One invariant row layout across all four portfolio modes.
   The active tab cannot change track widths or push density controls. */


@media (max-width:767px) and (orientation:portrait) {
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row {
  display:grid!important;grid-template-columns:minmax(0,1fr) 78px!important;
  gap:4px!important;width:100%!important;min-width:0!important;align-items:center!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes {
  display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  gap:0!important;overflow:visible!important;flex:none!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes > .xi-work-mode,
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes > .xi-work-mode.active,
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes > .xi-work-mode[aria-selected="true"] {
  grid-column:auto!important;box-sizing:border-box!important;position:relative!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  margin:0!important;flex:none!important;transform:none!important;
  padding-left:1px!important;padding-right:1px!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density {
  display:block!important;box-sizing:border-box!important;grid-column:2!important;
  width:78px!important;min-width:78px!important;max-width:78px!important;
  margin:0!important;padding:0!important;flex:none!important;justify-self:start!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-portrait {
  display:grid!important;grid-template-columns:repeat(3,24px)!important;
  column-gap:3px!important;gap:0 3px!important;width:78px!important;
  min-width:78px!important;max-width:78px!important;margin:0!important;padding:0!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-portrait > .xi-grid-density-btn,
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-portrait > .xi-grid-density-btn.active {
  position:static!important;grid-column:auto!important;grid-row:1!important;
  width:24px!important;min-width:24px!important;max-width:24px!important;
  margin:0!important;padding:0!important;transform:none!important;
 }
}/* v069 / 025: keep stable four-tab row; equal physical centers for 1/2/3.
   Neutralize historical icon button widths/margins without touching the mode tabs. */


@media (max-width:900px) and (orientation:portrait) {
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density {
  width:78px!important;min-width:78px!important;max-width:78px!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-portrait {
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  justify-content:flex-start!important;align-items:center!important;
  width:78px!important;min-width:78px!important;max-width:78px!important;
  gap:3px!important;column-gap:3px!important;padding:0!important;margin:0!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active {
  position:static!important;display:flex!important;flex:0 0 24px!important;
  box-sizing:border-box!important;width:24px!important;min-width:24px!important;max-width:24px!important;
  height:32px!important;min-height:32px!important;max-height:32px!important;
  padding:0!important;margin:0!important;left:auto!important;right:auto!important;
  transform:none!important;justify-content:center!important;align-items:center!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn .xi-grid-density-icon {
  display:block!important;flex:0 0 24px!important;width:24px!important;min-width:24px!important;max-width:24px!important;
  height:26px!important;margin:0!important;padding:0!important;transform:none!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn svg.xi-density-numbered {
  display:block!important;width:24px!important;min-width:24px!important;max-width:24px!important;height:26px!important;
 }
}/* v071: isolated landscape controls; fixed geometry in all selected states. */



@media (orientation:landscape) and (max-height:650px) and (max-width:1400px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape{display:flex!important;align-items:center!important;gap:3px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape>button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape>button.xi-grid-density-btn.active{box-sizing:border-box!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:none!important;display:flex!important;align-items:center!important;justify-content:center!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-icon{display:block!important;width:29px!important;height:26px!important;padding:0!important;margin:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape svg.xi-ls-clean-icon{display:block!important;width:29px!important;height:26px!important;overflow:hidden!important;transform:none!important;filter:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape svg.xi-ls-clean-icon .xi-ls-bars rect{display:block!important;fill:rgba(224,241,255,.18)!important;stroke:#9ac4e2!important;stroke-width:.65px!important;vector-effect:non-scaling-stroke!important;opacity:1!important;transform:none!important;filter:none!important;animation:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape svg.xi-ls-clean-icon .xi-ls-digit{display:block!important;fill:#91acc3!important;stroke:none!important;font:400 28px Arial,sans-serif!important;opacity:1!important;transform:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape>button.xi-grid-density-btn.active svg.xi-ls-clean-icon .xi-ls-bars rect{stroke:#7095b1!important;fill:rgba(195,224,245,.28)!important;stroke-width:.65px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape>button.xi-grid-density-btn.active svg.xi-ls-clean-icon .xi-ls-digit{fill:#365b79!important;animation:xi-ls-clean-glow 1.65s ease-in-out infinite!important;}
}
@keyframes xi-ls-clean-glow{0%,100%{opacity:1;filter:drop-shadow(0 0 1px rgba(70,142,205,.35))}50%{opacity:.72;filter:drop-shadow(0 0 2px rgba(70,142,205,.65))}}/* v030: single path prevents inherited rect/grid stroke duplication in landscape icons */


@media (max-width:900px) and (orientation:landscape){
 html body.portfolio-page .xi-grid-density-landscape .xi-grid-density-icon::before,
 html body.portfolio-page .xi-grid-density-landscape .xi-grid-density-icon::after{content:none!important;display:none!important;background:none!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape svg.xi-ls-clean-icon .xi-ls-single-path{fill:rgba(224,241,255,.12)!important;stroke:#9ac4e2!important;stroke-width:.65px!important;vector-effect:non-scaling-stroke!important;stroke-linejoin:round!important;stroke-linecap:round!important;transform:none!important;animation:none!important;filter:none!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape button.active svg.xi-ls-clean-icon .xi-ls-single-path{stroke:#7095b1!important;fill:rgba(195,224,245,.22)!important}
}/* v072 / 031: external SVG image isolates landscape 3/6 glyphs from legacy SVG path selectors. */


@media (orientation:landscape) and (max-height:650px) and (max-width:1400px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-icon img.xi-ls-isolated-image {display:block!important;width:29px!important;height:26px!important;max-width:29px!important;max-height:26px!important;object-fit:contain!important;opacity:1!important;transform:none!important;animation:none!important;filter:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape button.xi-grid-density-btn.active img.xi-ls-isolated-image {filter:drop-shadow(0 0 1.2px rgba(65,140,204,.6))!important;}
}/* v073 / 033: eliminate legacy repeating-linear-gradient on landscape six-column icon.
   The old v056 rule used background: ... !important and survived SVG replacements. */


@media (max-width:900px) and (orientation:landscape) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape button.xi-grid-density-btn[data-columns="6"] .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape button.xi-grid-density-btn[data-columns="6"].active .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape button.xi-grid-density-btn[data-columns="3"] .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape button.xi-grid-density-btn[data-columns="3"].active .xi-grid-density-icon {
   background:none!important;background-image:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-icon::before,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-icon::after {
   display:none!important;content:none!important;background:none!important;
 }
}/* v073: reverse random refresh arrow spin while keeping active-mode behavior. */

@keyframes xi-random-spin {from{transform:rotate(0deg)}to{transform:rotate(-360deg)}}/* v077 / 037: Landscape 3/6. Only the selected NUMERAL glows and blinks.
   Frame artwork is a separate static image. No !important opacity/filter on numeral:
   those would override keyframe properties in WebKit/Safari. */


@media (orientation:landscape) and (max-height:650px) and (max-width:1400px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape {gap:3px!important;column-gap:3px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.xi-grid-density-btn.active {
   position:relative!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;
   height:32px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;
   box-shadow:none!important;filter:none!important;animation:none!important;transform:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-icon {
   position:relative!important;display:block!important;width:29px!important;height:26px!important;
   overflow:visible!important;background:none!important;background-image:none!important;
   box-shadow:none!important;filter:none!important;animation:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape img.xi-ls-isolated-image,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape button.active img.xi-ls-isolated-image {
   display:block!important;width:29px!important;height:26px!important;
   filter:none!important;box-shadow:none!important;animation:none!important;transform:none!important;opacity:1!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-ls-number-overlay {
   position:absolute!important;inset:0!important;z-index:2!important;pointer-events:none!important;
   display:flex!important;align-items:center!important;justify-content:center!important;
   width:29px!important;height:26px!important;line-height:1!important;
   font:400 14px/1 Arial,sans-serif!important;color:#a5b6c7!important;
   text-shadow:none;filter:none;opacity:1;animation:none!important;-webkit-animation:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.xi-grid-density-btn.active .xi-ls-number-overlay {
   color:#36566f!important;
   animation:xi-ls-numeral-077 1.55s ease-in-out infinite!important;
   -webkit-animation:xi-ls-numeral-077 1.55s ease-in-out infinite!important;
 }
}
@keyframes xi-ls-numeral-077 {
 0%,100% {opacity:1;filter:drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 0 2px rgba(30,116,205,.4));}
 50% {opacity:.38;filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 7px rgba(16,116,230,.95));}
}/* v078: Landscape 3/6 selected frame stays static, never glows.
   Only the separately layered numeral may pulse. */


@media (orientation:landscape) and (max-height:650px) and (max-width:1400px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape button.xi-grid-density-btn.active,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape button.xi-grid-density-btn.active .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape button.xi-grid-density-btn.active img.xi-ls-isolated-image {
  box-shadow:none!important;filter:none!important;text-shadow:none!important;animation:none!important;
  -webkit-animation:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape button.xi-grid-density-btn.active .xi-ls-number-overlay {
  animation:xi-ls-numeral-078 1.55s ease-in-out infinite!important;
  -webkit-animation:xi-ls-numeral-078 1.55s ease-in-out infinite!important;
 }
}
@keyframes xi-ls-numeral-078 {
 0%,100% {opacity:1;text-shadow:0 0 2px #fff,0 0 4px rgba(42,130,210,.85);}
 50% {opacity:.25;text-shadow:0 0 1px #fff,0 0 8px rgba(42,130,210,.9);}
}/* v080: Keep 1/2/3 buttons fixed at exactly 24px in both active and idle states. */


@media (max-width:900px) and (orientation:portrait){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;justify-content:flex-start!important;gap:3px!important;column-gap:3px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active{box-sizing:border-box!important;position:relative!important;flex:0 0 24px!important;width:24px!important;min-width:24px!important;max-width:24px!important;height:28px!important;padding:0!important;margin:0!important;border:0!important;transform:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait .xi-grid-density-icon{box-sizing:border-box!important;flex:0 0 24px!important;width:24px!important;min-width:24px!important;max-width:24px!important;margin:0!important;transform:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered .xi-density-outline rect{stroke-width:.65px!important;vector-effect:non-scaling-stroke!important;}
}/* v080: Show landscape density selector also in category pages, where four mode tabs are intentionally hidden. */

@media (orientation:landscape) and (max-height:650px) and (max-width:1400px){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row{display:flex!important;align-items:center!important;justify-content:flex-end!important;min-height:34px!important;}
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density{display:flex!important;visibility:visible!important;opacity:1!important;align-items:center!important;justify-content:flex-end!important;flex:0 0 auto!important;width:auto!important;max-width:none!important;height:34px!important;margin:0!important;padding:0 4px!important;}
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-landscape{display:flex!important;visibility:visible!important;opacity:1!important;gap:3px!important;}
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-landscape > button{display:flex!important;visibility:visible!important;opacity:1!important;}
 html body.portfolio-page.xi-category-view[data-grid-columns="3"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}
 html body.portfolio-page.xi-category-view[data-grid-columns="6"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
}

@media (orientation:portrait) and (max-width:900px){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row{display:flex!important;justify-content:flex-end!important;}
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density{display:flex!important;visibility:visible!important;opacity:1!important;}
 html body.portfolio-page.xi-category-view[data-grid-columns="1"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(1,minmax(0,1fr))!important;}
 html body.portfolio-page.xi-category-view[data-grid-columns="2"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 html body.portfolio-page.xi-category-view[data-grid-columns="3"] .xi-gallery-panel .work-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;}}/* v081: portrait density buttons are invariant fixed tracks in every category.
   Old selected-state rules must not move the icon or its SVG groups. */


@media (orientation:portrait) and (max-width:900px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait,
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-portrait{
  display:grid!important;grid-template-columns:repeat(3,24px)!important;
  grid-template-rows:30px!important;column-gap:3px!important;row-gap:0!important;
  justify-content:start!important;align-items:center!important;justify-items:center!important;
  width:78px!important;min-width:78px!important;max-width:78px!important;
  height:30px!important;min-height:30px!important;padding:0!important;margin:0!important;
  position:relative!important;transform:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:active{
  position:static!important;display:flex!important;grid-row:1!important;
  flex:none!important;width:24px!important;min-width:24px!important;max-width:24px!important;
  height:30px!important;min-height:30px!important;max-height:30px!important;
  padding:0!important;margin:0!important;left:auto!important;right:auto!important;
  transform:none!important;translate:none!important;scale:none!important;
  box-shadow:none!important;filter:none!important;
  justify-content:center!important;align-items:center!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(1){grid-column:1!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(2){grid-column:2!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(3){grid-column:3!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered{
  display:block!important;position:static!important;width:24px!important;min-width:24px!important;max-width:24px!important;
  height:26px!important;min-height:26px!important;max-height:26px!important;
  padding:0!important;margin:0!important;transform:none!important;translate:none!important;scale:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered .xi-density-outline,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered .xi-density-outline rect{
  transform:none!important;filter:none!important;box-shadow:none!important;
 }
}/* v082: portrait density layout invariant, independent of active state and category.
   Overrides older grid/flex/transform rules without altering numeral animation. */


@media (orientation:portrait) and (max-width:900px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait{
  display:grid!important;grid-template-columns:repeat(3,26px)!important;
  grid-template-rows:30px!important;gap:0!important;column-gap:0!important;
  width:78px!important;min-width:78px!important;max-width:78px!important;
  height:30px!important;min-height:30px!important;max-height:30px!important;
  padding:0!important;margin:0!important;align-items:center!important;justify-items:center!important;
  position:relative!important;transform:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:active{
  position:static!important;display:flex!important;grid-row:1!important;
  width:26px!important;min-width:26px!important;max-width:26px!important;
  height:30px!important;min-height:30px!important;max-height:30px!important;
  flex:0 0 26px!important;box-sizing:border-box!important;
  padding:0!important;margin:0!important;inset:auto!important;
  transform:none!important;translate:none!important;scale:none!important;
  filter:none!important;box-shadow:none!important;align-items:center!important;justify-content:center!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(1){grid-column:1!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(2){grid-column:2!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(3){grid-column:3!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.active .xi-grid-density-icon{
  display:block!important;position:static!important;box-sizing:border-box!important;
  width:26px!important;min-width:26px!important;max-width:26px!important;
  height:26px!important;min-height:26px!important;max-height:26px!important;
  padding:0!important;margin:0!important;transform:none!important;translate:none!important;scale:none!important;
  filter:none!important;box-shadow:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait button.active svg.xi-density-numbered{
  display:block!important;position:static!important;width:26px!important;height:26px!important;
  min-width:26px!important;max-width:26px!important;min-height:26px!important;max-height:26px!important;
  margin:0!important;padding:0!important;transform:none!important;translate:none!important;scale:none!important;
 }
}/* v083: category banner remains visible, animated from full hero to slim purple header. */


html body.portfolio-page #portfolio-hero{transition:height .42s cubic-bezier(.2,.7,.2,1),min-height .42s cubic-bezier(.2,.7,.2,1),max-height .42s cubic-bezier(.2,.7,.2,1),filter .42s ease!important;}
html body.portfolio-page #portfolio-hero .page-heading{transition:opacity .32s ease!important;}
html body.portfolio-page #portfolio-hero.portfolio-category-hero{animation:xi-category-purple-reveal .48s ease-out both!important;}
@keyframes xi-category-purple-reveal{from{filter:brightness(1.16) saturate(1.18)}to{filter:brightness(1) saturate(1)}}
@media(max-width:900px){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav{margin-bottom:0!important;padding-bottom:0!important;}
 html body.portfolio-page.xi-category-view .xi-modes-density-row{margin-top:2px!important;margin-bottom:3px!important;}
 html body.portfolio-page.xi-category-view .xi-gallery-panel{margin-top:0!important;padding-top:0!important;}
 html body.portfolio-page.xi-category-view .xi-gallery-panel .work-grid{margin-top:6px!important;padding-top:0!important;}}/* v083: isolate portrait density layout from legacy active SVG transforms.
   Three absolutely anchored tracks cannot reflow when a numeral is selected. */

@media(orientation:portrait) and (max-width:900px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait{
  display:block!important;position:relative!important;flex:none!important;
  width:108px!important;min-width:108px!important;max-width:108px!important;
  height:32px!important;min-height:32px!important;max-height:32px!important;
  padding:0!important;margin:0!important;gap:0!important;transform:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:active{
  display:flex!important;position:absolute!important;top:0!important;bottom:auto!important;
  width:32px!important;min-width:32px!important;max-width:32px!important;
  height:32px!important;min-height:32px!important;max-height:32px!important;
  padding:0!important;margin:0!important;inset-block-start:0!important;
  transform:none!important;translate:none!important;scale:none!important;
  filter:none!important;box-shadow:none!important;align-items:center!important;justify-content:center!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(1){left:0!important;right:auto!important;inset-inline-start:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(2){left:38px!important;right:auto!important;inset-inline-start:38px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(3){left:76px!important;right:auto!important;inset-inline-start:76px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.active .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait button.active svg.xi-density-numbered{
  position:static!important;display:block!important;flex:none!important;
  width:32px!important;min-width:32px!important;max-width:32px!important;
  height:26px!important;min-height:26px!important;max-height:26px!important;
  margin:0!important;padding:0!important;transform:none!important;translate:none!important;scale:none!important;
 }
}
@media(prefers-reduced-motion:reduce){html body.portfolio-page #portfolio-hero{transition:none!important}html body.portfolio-page #portfolio-hero.portfolio-category-hero{animation:none!important}}/* v084: landscape category navigation: remove excess whitespace before first row. */


@media (orientation:landscape) and (max-height:800px) and (max-width:1600px){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav{padding-bottom:0!important;margin-bottom:0!important;}
 html body.portfolio-page.xi-category-view .xi-modes-density-row{min-height:26px!important;height:26px!important;margin:0!important;padding:0!important;align-items:center!important;}
 html body.portfolio-page.xi-category-view .xi-modes-density-row > .xi-grid-density{height:26px!important;min-height:26px!important;padding:0 4px!important;}
 html body.portfolio-page.xi-category-view .xi-gallery-panel{padding-top:0!important;margin-top:0!important;}
 html body.portfolio-page.xi-category-view .xi-gallery-panel .work-grid{margin-top:3px!important;}
}/* v084: single immutable portrait selector geometry, independent of selected state. */

@media (orientation:portrait) and (max-width:900px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait{display:grid!important;position:relative!important;grid-template-columns:repeat(3,32px)!important;grid-template-rows:30px!important;column-gap:6px!important;row-gap:0!important;width:108px!important;min-width:108px!important;max-width:108px!important;height:30px!important;padding:0!important;margin:0!important;align-items:center!important;justify-items:center!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:active{position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;grid-row:1!important;display:flex!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:30px!important;min-height:30px!important;max-height:30px!important;padding:0!important;margin:0!important;transform:none!important;translate:none!important;scale:none!important;box-shadow:none!important;filter:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(1){grid-column:1!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(2){grid-column:2!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(3){grid-column:3!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered{display:block!important;position:relative!important;inset:auto!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:26px!important;min-height:26px!important;max-height:26px!important;margin:0!important;padding:0!important;transform:none!important;translate:none!important;scale:none!important;}
}/* v085: portrait selector geometry, single final cascade. No active-state reflow. */


@media (orientation:portrait) and (max-width:900px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density{
  box-sizing:border-box!important;flex:0 0 108px!important;width:108px!important;min-width:108px!important;max-width:108px!important;
  height:32px!important;min-height:32px!important;padding:0!important;margin:0 auto!important;overflow:visible!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait{
  box-sizing:border-box!important;display:grid!important;position:relative!important;grid-template-columns:repeat(3,32px)!important;
  grid-template-rows:32px!important;gap:0 6px!important;flex:none!important;width:108px!important;min-width:108px!important;
  max-width:108px!important;height:32px!important;min-height:32px!important;max-height:32px!important;
  padding:0!important;margin:0!important;align-items:center!important;justify-content:start!important;justify-items:center!important;
  transform:none!important;translate:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:active{
  box-sizing:border-box!important;position:static!important;display:flex!important;grid-row:1!important;inset:auto!important;
  left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;flex:none!important;
  width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;
  max-height:32px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;
  transform:none!important;translate:none!important;scale:none!important;filter:none!important;box-shadow:none!important;
  align-items:center!important;justify-content:center!important;transition:color .15s ease!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(1){grid-column:1!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(2){grid-column:2!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(3){grid-column:3!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.active .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.active svg.xi-density-numbered{
  box-sizing:border-box!important;position:static!important;display:block!important;flex:none!important;
  width:32px!important;min-width:32px!important;max-width:32px!important;height:26px!important;min-height:26px!important;
  max-height:26px!important;margin:0!important;padding:0!important;inset:auto!important;
  transform:none!important;translate:none!important;scale:none!important;filter:none!important;box-shadow:none!important;
 }
}/* v085: compact landscape category selector strip; keep grid controls visible. */

@media (orientation:landscape) and (max-height:800px) and (max-width:1600px){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .portfolio-filters{margin-bottom:0!important;padding-bottom:2px!important;}
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row{
  box-sizing:border-box!important;display:flex!important;min-height:24px!important;height:24px!important;
  margin:-5px 0 0!important;padding:0!important;align-items:center!important;justify-content:flex-end!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density{
  height:24px!important;min-height:24px!important;margin:0!important;padding:0 2px!important;align-self:center!important;
 }
 html body.portfolio-page.xi-category-view .xi-gallery-panel{margin-top:0!important;padding-top:0!important;}
 html body.portfolio-page.xi-category-view .xi-gallery-panel .work-grid{margin-top:0!important;padding-top:0!important;}
}/* v086: portrait icon spacing — prevent SVG outlines touching adjacent icons. */


@media (orientation:portrait) and (max-width:900px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait{
  display:grid!important;grid-template-columns:repeat(3,34px)!important;column-gap:8px!important;
  width:118px!important;min-width:118px!important;max-width:118px!important;
  justify-content:center!important;justify-items:center!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density{
  flex:0 0 118px!important;width:118px!important;min-width:118px!important;max-width:118px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active{
  box-sizing:border-box!important;grid-row:1!important;position:static!important;
  width:34px!important;min-width:34px!important;max-width:34px!important;
  height:32px!important;min-height:32px!important;max-height:32px!important;
  padding:0!important;margin:0!important;transform:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.active .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.active svg.xi-density-numbered{
  box-sizing:border-box!important;display:block!important;position:static!important;
  width:27px!important;min-width:27px!important;max-width:27px!important;
  height:26px!important;min-height:26px!important;max-height:26px!important;
  padding:0!important;margin:0!important;transform:none!important;
 }
}/* v086: landscape: category pills and 3/6 selector share one row. */

@media (orientation:landscape) and (min-width:760px) and (max-height:800px) and (max-width:1600px){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;column-gap:8px!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .portfolio-filters{
  box-sizing:border-box!important;flex:1 1 auto!important;min-width:0!important;
  width:auto!important;max-width:none!important;margin:0!important;padding:0!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row{
  box-sizing:border-box!important;position:static!important;display:flex!important;
  flex:0 0 78px!important;width:78px!important;min-width:78px!important;max-width:78px!important;
  height:36px!important;min-height:36px!important;max-height:36px!important;
  margin:0!important;padding:0!important;align-items:center!important;justify-content:center!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density{
  display:flex!important;flex:0 0 78px!important;width:78px!important;min-width:78px!important;
  height:32px!important;min-height:32px!important;margin:0!important;padding:0!important;
  align-items:center!important;justify-content:center!important;
 }
 html body.portfolio-page.xi-category-view .xi-gallery-panel{margin-top:0!important;padding-top:0!important;}
}/* v087: actual DOM relocation puts landscape 3/6 in the same flex row as nine category pills. */


@media (orientation:landscape) and (min-width:700px) and (max-height:950px){
 html body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters.xi-density-inline{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:4px!important;width:100%!important;min-width:0!important;max-width:100%!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters.xi-density-inline > .filter-button{flex:0 1 auto!important;min-width:0!important;white-space:nowrap!important;padding-left:8px!important;padding-right:8px!important;margin:0!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters.xi-density-inline > .xi-modes-density-row{display:flex!important;position:static!important;flex:0 0 82px!important;width:82px!important;min-width:82px!important;max-width:82px!important;height:36px!important;min-height:36px!important;margin:0 0 0 4px!important;padding:0!important;align-items:center!important;justify-content:center!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters.xi-density-inline > .xi-modes-density-row > .xi-grid-density{display:flex!important;position:static!important;flex:0 0 82px!important;width:82px!important;min-width:82px!important;max-width:82px!important;margin:0!important;padding:0!important;}
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav:has(.xi-density-inline){display:block!important;}
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav:has(.xi-density-inline) > .portfolio-filters{width:100%!important;max-width:100%!important;}
}/* v088 — landscape: reduce gap above the nine-category row, not the banner itself. */


@media (orientation:landscape) and (min-width:700px) and (max-height:950px){
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav{
  margin-top:0!important;padding-top:0!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .portfolio-filters,
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .portfolio-filters.xi-density-inline{
  margin-top:0!important;padding-top:0!important;
 }
}/* v089: single, deterministic portrait 1/2/3 layout. No absolute positioning,
   no active-state size changes, no layout-affecting animation. */


@media (orientation:portrait) and (max-width:900px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density{
  display:flex!important;justify-content:center!important;flex:0 0 144px!important;
  width:144px!important;min-width:144px!important;max-width:144px!important;
  margin:0 auto!important;padding:0!important;overflow:visible!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait{
  display:grid!important;position:relative!important;grid-template-columns:repeat(3,36px)!important;
  grid-template-rows:32px!important;column-gap:18px!important;row-gap:0!important;
  width:144px!important;min-width:144px!important;max-width:144px!important;
  height:32px!important;min-height:32px!important;margin:0!important;padding:0!important;
  justify-content:start!important;align-items:center!important;overflow:visible!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:active{
  box-sizing:border-box!important;position:relative!important;inset:auto!important;
  top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;
  inset-inline-start:auto!important;inset-inline-end:auto!important;
  grid-row:1!important;width:36px!important;min-width:36px!important;max-width:36px!important;
  height:32px!important;min-height:32px!important;max-height:32px!important;
  margin:0!important;padding:0!important;border:0!important;background:transparent!important;
  box-shadow:none!important;filter:none!important;transform:none!important;translate:none!important;
  scale:none!important;transition:none!important;overflow:visible!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(1),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(1).active{grid-column:1!important;left:auto!important;inset-inline-start:auto!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(2),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(2).active{grid-column:2!important;left:auto!important;inset-inline-start:auto!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(3),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(3).active{grid-column:3!important;left:auto!important;inset-inline-start:auto!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.active .xi-grid-density-icon,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button svg.xi-density-numbered,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.active svg.xi-density-numbered{
  box-sizing:border-box!important;display:block!important;position:static!important;
  flex:0 0 34px!important;width:34px!important;min-width:34px!important;max-width:34px!important;
  height:26px!important;min-height:26px!important;max-height:26px!important;
  margin:0!important;padding:0!important;transform:none!important;translate:none!important;
  scale:none!important;filter:none!important;overflow:visible!important;
 }
}/* v089: landscape nine-category row sits closer to compact purple hero. */

@media (orientation:landscape) and (min-width:700px) and (max-width:767px) and (max-height:950px){
 html body.portfolio-page.xi-category-view .page-content{padding-top:0!important;}
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav{margin-top:-6px!important;padding-top:0!important;}
}/* v090: portrait density controls — isolate each button from legacy offsets and overlays. */


@media (orientation:portrait) and (max-width:900px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,36px))!important;
  gap:0 18px!important;width:144px!important;min-width:144px!important;max-width:144px!important;
  justify-content:start!important;place-items:center!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > .xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > .xi-grid-density-btn.active{
  position:static!important;inset:auto!important;float:none!important;
  grid-row:1!important;display:flex!important;flex:none!important;
  width:36px!important;min-width:36px!important;max-width:36px!important;
  margin:0!important;transform:none!important;translate:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > .xi-grid-density-btn:nth-child(1){grid-column:1!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > .xi-grid-density-btn:nth-child(2){grid-column:2!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > .xi-grid-density-btn:nth-child(3){grid-column:3!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > .xi-grid-density-btn::before,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > .xi-grid-density-btn::after,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait .xi-grid-density-icon::before,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait .xi-grid-density-icon::after{content:none!important;display:none!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait .xi-grid-density-icon{
  position:static!important;display:block!important;width:34px!important;height:26px!important;
  flex:0 0 34px!important;margin:0!important;transform:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait svg.xi-density-numbered{
  position:static!important;display:block!important;width:34px!important;height:26px!important;
  max-width:34px!important;transform:none!important;overflow:visible!important;
 }
}/* v091: portrait density icons rebuilt without SVG; legacy SVG selectors cannot affect them. */


@media (orientation:portrait) and (max-width:900px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait{
  display:grid!important;grid-template-columns:repeat(3,40px)!important;grid-template-rows:32px!important;
  column-gap:12px!important;row-gap:0!important;width:144px!important;min-width:144px!important;
  max-width:144px!important;height:32px!important;margin:0 auto!important;padding:0!important;
  justify-content:start!important;align-items:center!important;overflow:visible!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active{
  position:static!important;inset:auto!important;grid-row:1!important;box-sizing:border-box!important;
  width:40px!important;min-width:40px!important;max-width:40px!important;height:32px!important;
  min-height:32px!important;max-height:32px!important;margin:0!important;padding:0!important;
  transform:none!important;translate:none!important;scale:none!important;filter:none!important;
  border:0!important;background:none!important;box-shadow:none!important;overflow:hidden!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(1){grid-column:1!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(2){grid-column:2!important}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button:nth-child(3){grid-column:3!important}
 html body.portfolio-page .xi-grid-density-portrait .xi051-icon{
  display:block!important;position:relative!important;box-sizing:border-box!important;
  flex:0 0 38px!important;width:38px!important;height:26px!important;
  margin:0!important;padding:0!important;transform:none!important;filter:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi051-bars{
  position:absolute!important;inset:2px 1px!important;display:flex!important;gap:3px!important;
  margin:0!important;padding:0!important;transform:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi051-bars i{
  display:block!important;flex:1 1 0!important;min-width:0!important;height:22px!important;
  border:1px solid #a5cbe7!important;border-radius:2px!important;background:transparent!important;
  box-sizing:border-box!important;box-shadow:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait .xi051-digit{
  position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;
  justify-content:center!important;font:500 19px/1 Arial,sans-serif!important;
  color:#799cb9!important;pointer-events:none!important;transform:none!important;
  text-shadow:none!important;animation:none!important;
 }
 html body.portfolio-page .xi-grid-density-portrait > button.active .xi051-digit{
  color:#376487!important;animation:xi051-digit-glow 1.3s ease-in-out infinite alternate!important;
 }
}
@keyframes xi051-digit-glow{from{text-shadow:0 0 1px rgba(53,142,222,.25)}to{text-shadow:0 0 6px rgba(53,142,222,.95),0 0 10px rgba(53,142,222,.55)}}/* v092 — separate HOME and CATEGORY portrait density geometry.
   No active-state layout changes; old 144px rules are explicitly overridden. */


@media (orientation:portrait) and (max-width:900px){
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density{
  flex:0 0 80px!important;width:80px!important;min-width:80px!important;max-width:80px!important;
  margin:0!important;padding:0!important;justify-content:center!important;overflow:hidden!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-portrait{
  display:grid!important;grid-template-columns:repeat(3,24px)!important;grid-template-rows:28px!important;
  column-gap:4px!important;row-gap:0!important;width:80px!important;min-width:80px!important;max-width:80px!important;
  height:28px!important;margin:0!important;padding:0!important;justify-content:start!important;overflow:hidden!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active{
  width:24px!important;min-width:24px!important;max-width:24px!important;height:28px!important;
  min-height:28px!important;max-height:28px!important;position:static!important;inset:auto!important;
  margin:0!important;padding:0!important;transform:none!important;overflow:hidden!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-grid-density-portrait .xi051-icon{
  width:23px!important;flex:0 0 23px!important;height:24px!important;
 }
 html body.portfolio-page:not(.xi-category-view) .xi-grid-density-portrait .xi051-bars{inset:2px 0!important;gap:1px!important;}
 html body.portfolio-page:not(.xi-category-view) .xi-grid-density-portrait .xi051-bars i{height:20px!important;border-width:1px!important;}
 html body.portfolio-page:not(.xi-category-view) .xi-grid-density-portrait .xi051-digit{font-size:16px!important;}
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density{
  width:116px!important;min-width:116px!important;max-width:116px!important;flex:0 0 116px!important;
  margin:0 auto!important;padding:0!important;overflow:hidden!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-portrait{
  display:grid!important;grid-template-columns:repeat(3,32px)!important;grid-template-rows:30px!important;
  column-gap:10px!important;row-gap:0!important;width:116px!important;min-width:116px!important;
  max-width:116px!important;height:30px!important;margin:0 auto!important;overflow:hidden!important;
 }
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn,
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active{
  width:32px!important;min-width:32px!important;max-width:32px!important;height:30px!important;
  min-height:30px!important;max-height:30px!important;position:static!important;inset:auto!important;
  margin:0!important;padding:0!important;transform:none!important;overflow:hidden!important;
 }
 html body.portfolio-page.xi-category-view .xi-grid-density-portrait .xi051-icon{
  width:30px!important;flex:0 0 30px!important;height:25px!important;
 }
 html body.portfolio-page.xi-category-view .xi-grid-density-portrait .xi051-bars{inset:2px 0!important;gap:2px!important;}
 html body.portfolio-page.xi-category-view .xi-grid-density-portrait .xi051-bars i{height:21px!important;}
 html body.portfolio-page.xi-category-view .xi-grid-density-portrait .xi051-digit{font-size:18px!important;}
}/* v093: selected portrait density numeral only — visible pulse, no layout changes. */


@keyframes xi053-selected-numeral-pulse {
  0%,100% { opacity:1; text-shadow:0 0 1px rgba(47,122,190,.28),0 0 3px rgba(47,122,190,.25); }
  50% { opacity:.48; text-shadow:0 0 5px rgba(42,135,225,.95),0 0 10px rgba(42,135,225,.75); }
}
@-webkit-keyframes xi053-selected-numeral-pulse {
  0%,100% { opacity:1; text-shadow:0 0 1px rgba(47,122,190,.28),0 0 3px rgba(47,122,190,.25); }
  50% { opacity:.48; text-shadow:0 0 5px rgba(42,135,225,.95),0 0 10px rgba(42,135,225,.75); }
}
@media (orientation:portrait) and (max-width:900px) and (prefers-reduced-motion:no-preference) {
  html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active .xi051-icon > .xi051-digit {
    animation:xi053-selected-numeral-pulse 1.6s ease-in-out infinite!important;
    -webkit-animation:xi053-selected-numeral-pulse 1.6s ease-in-out infinite!important;
    color:#376487!important;
  }}
@media (orientation:portrait) and (max-width:900px) and (prefers-reduced-motion:reduce) {
  html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active .xi051-icon > .xi051-digit {
    animation:none!important;-webkit-animation:none!important;
    opacity:1!important;text-shadow:0 0 3px rgba(42,135,225,.55)!important;
  }}/* v094: inactive numerals lighter on both portfolio home and category views. */


@media (orientation:portrait) and (max-width:900px) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:not(.active) .xi051-icon > .xi051-digit {
  color:#b5cadb!important;opacity:.82!important;text-shadow:none!important;
  animation:none!important;-webkit-animation:none!important;
 }
}/* v095: subtle contrast adjustment only; no geometry changes. */


@media (orientation:portrait) and (max-width:900px) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:not(.active) .xi051-icon > .xi051-digit {color:#c0d1df!important;opacity:.78!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active .xi051-icon > .xi051-digit {color:#294e6b!important;}
}/* v096: only inactive portrait 1/2/3 grid borders are slightly lighter; preserve dimensions and active state. */


@media (orientation:portrait) and (max-width:900px) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn:not(.active) .xi051-bars i {
   border-color:#c5d9e9!important;
 }
}/* v097: slightly deepen selected portrait density grid outlines on both views. */


@media (orientation:portrait) and (max-width:900px) {
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait > button.xi-grid-density-btn.active .xi051-bars i {
  border-color:#8fb8d8!important;
 }
}/* v098: landscape 3/6 artwork matches portrait 1/2/3 styling, independent of legacy SVG rules. */


@media (orientation:landscape) and (max-height:650px) and (max-width:1400px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape {gap:3px!important;align-items:center!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.xi-grid-density-btn,
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.xi-grid-density-btn.active {
  display:flex!important;align-items:center!important;justify-content:center!important;
  position:relative!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;
  height:32px!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;filter:none!important;transform:none!important;animation:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi058-icon {
  position:relative!important;display:block!important;box-sizing:border-box!important;
  width:29px!important;height:26px!important;flex:0 0 29px!important;
  margin:0!important;padding:0!important;transform:none!important;filter:none!important;box-shadow:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi058-bars {
  position:absolute!important;inset:2px 0!important;display:flex!important;gap:2px!important;
  margin:0!important;padding:0!important;transform:none!important;filter:none!important;box-shadow:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi058-bars-6 {gap:1.5px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi058-bars i {
  display:block!important;flex:1 1 0!important;min-width:0!important;height:22px!important;
  border:1px solid #c5d9e9!important;border-radius:2px!important;box-sizing:border-box!important;
  background:transparent!important;box-shadow:none!important;filter:none!important;animation:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.active .xi058-bars i {border-color:#8fb8d8!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi058-digit {
  position:absolute!important;inset:0!important;display:flex!important;align-items:center!important;justify-content:center!important;
  font:500 18px/1 Arial,sans-serif!important;color:#c0d1df!important;
  pointer-events:none!important;transform:none!important;filter:none!important;animation:none!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.active .xi058-digit {
  color:#294e6b!important;opacity:1;
 }
}
@media (orientation:landscape) and (max-height:650px) and (max-width:1400px) and (prefers-reduced-motion:no-preference){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.active .xi058-digit {
  animation:xi053-selected-numeral-pulse 1.6s ease-in-out infinite!important;
  -webkit-animation:xi053-selected-numeral-pulse 1.6s ease-in-out infinite!important;
 }}
@media (orientation:landscape) and (max-height:650px) and (max-width:1400px) and (prefers-reduced-motion:reduce){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.active .xi058-digit {
  animation:none!important;-webkit-animation:none!important;
 }}/* v099: selected landscape numeral pulses like portrait; modest extra breathing room for six columns. */


@keyframes xi059-landscape-digit-pulse {
  0%,100% { opacity:1; text-shadow:0 0 1px rgba(47,122,190,.28),0 0 3px rgba(47,122,190,.25); }
  50% { opacity:.38; text-shadow:0 0 6px rgba(42,135,225,.98),0 0 11px rgba(42,135,225,.82); }
}
@-webkit-keyframes xi059-landscape-digit-pulse {
  0%,100% { opacity:1; text-shadow:0 0 1px rgba(47,122,190,.28),0 0 3px rgba(47,122,190,.25); }
  50% { opacity:.38; text-shadow:0 0 6px rgba(42,135,225,.98),0 0 11px rgba(42,135,225,.82); }
}
@media (orientation:landscape) and (max-height:650px) and (max-width:1400px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.xi-grid-density-btn[data-columns="6"] {
  flex-basis:37px!important;width:37px!important;min-width:37px!important;max-width:37px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.xi-grid-density-btn[data-columns="6"] .xi058-icon {
  width:34px!important;flex-basis:34px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.xi-grid-density-btn.active .xi058-digit {
  color:#294e6b!important;opacity:1;
 }}
@media (orientation:landscape) and (max-height:650px) and (max-width:1400px) and (prefers-reduced-motion:no-preference){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.xi-grid-density-btn.active .xi058-icon .xi058-digit {
  animation:xi059-landscape-digit-pulse 1.6s ease-in-out infinite!important;
  -webkit-animation:xi059-landscape-digit-pulse 1.6s ease-in-out infinite!important;
 }}/* v100: landscape icons slightly larger to match portrait visual weight; preserve position and numeral animation. */


@media (orientation:landscape) and (max-height:650px) and (max-width:1400px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.xi-grid-density-btn:not([data-columns="6"]) {
  flex-basis:35px!important;width:35px!important;min-width:35px!important;max-width:35px!important;height:34px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.xi-grid-density-btn[data-columns="6"] {
  flex-basis:40px!important;width:40px!important;min-width:40px!important;max-width:40px!important;height:34px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi058-icon {
  width:32px!important;flex-basis:32px!important;height:28px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button[data-columns="6"] .xi058-icon {
  width:37px!important;flex-basis:37px!important;
 }
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi058-bars i {height:24px!important;}
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi058-digit {font-size:19px!important;}
}/* v101: mobile navigation visual refinement. Keep icon positions and row geometry fixed. */


@media (max-width:680px) {
 /* Active location highlight fills its entire row, not merely the text link. */
 html body .site-header .nav-links.open > a.active,
 html body .site-header .nav-links.open > a.xi-current-page {
  width:100%!important;align-self:stretch!important;border-radius:0!important;
  background-clip:border-box!important;
 }
 html body .site-header .nav-links.open > a[href="index.html"].xi-current-page{background:rgba(62,131,182,.10)!important;}
 html body .site-header .nav-links.open > a[href="about.html"].xi-current-page{background:rgba(41,150,124,.10)!important;}
 html body .site-header .nav-links.open > a[href="news.html"].xi-current-page{background:rgba(221,132,50,.10)!important;}
 html body .site-header .nav-links.open > a[href="contact.html"].xi-current-page{background:rgba(212,91,125,.10)!important;}
 html body .site-header .nav-links.open .nav-dropdown.xi-current-page > .xi-portfolio-nav-pair,
 html body .site-header .nav-links.open .nav-dropdown:has(.xi-portfolio-main-link.active) > .xi-portfolio-nav-pair{
  background:rgba(139,98,201,.10)!important;border-radius:0!important;
 }
 /* One separator only under the portfolio row, even while submenu expands. */
 html body .site-header .nav-links.open > .nav-dropdown{border-bottom:1px solid #e1e8ee!important;box-shadow:none!important;}
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair{
  border-bottom:0!important;box-shadow:none!important;outline:0!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu{
  border-top:1px solid #e1e8ee!important;border-bottom:0!important;box-shadow:none!important;
 }
 /* A clean, animated chevron; original button and icon stay in the same place. */
 html body .site-header .nav-links.open .xi-portfolio-nav-pair > .nav-dropdown-trigger{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;
 }
 html body .site-header .nav-links.open .xi-portfolio-nav-pair > .nav-dropdown-trigger .nav-chevron{
  font-size:0!important;line-height:0!important;display:block!important;
  width:12px!important;height:12px!important;border:0!important;
  border-right:2px solid #60778e!important;border-bottom:2px solid #60778e!important;
  border-radius:1px!important;transform:translateY(-3px) rotate(45deg)!important;
  transform-origin:50% 50%!important;animation:xi101-chevron-glow 2s ease-in-out infinite!important;
  -webkit-animation:xi101-chevron-glow 2s ease-in-out infinite!important;
 }
 html body .site-header .nav-links.open .nav-dropdown.open .nav-chevron{
  transform:translateY(3px) rotate(225deg)!important;
 }
}
@keyframes xi101-chevron-glow{
  0%,100%{opacity:1;filter:drop-shadow(0 0 0 rgba(72,145,213,0));}
  50%{opacity:.55;filter:drop-shadow(0 0 4px rgba(72,145,213,.8));}
}
@-webkit-keyframes xi101-chevron-glow{
  0%,100%{opacity:1;-webkit-filter:drop-shadow(0 0 0 rgba(72,145,213,0));}
  50%{opacity:.55;-webkit-filter:drop-shadow(0 0 4px rgba(72,145,213,.8));}
}
@media (max-width:680px) and (prefers-reduced-motion:reduce){
 html body .site-header .nav-links.open .nav-dropdown-trigger .nav-chevron{animation:none!important;-webkit-animation:none!important;opacity:1!important;}}/* v102: align all mobile menu icons with the Home icon, without moving Home. */


@media (max-width:680px) {
 html body .site-header .nav-links.open > a:not([href="index.html"]) > .xi-nav-color-icon {
  position:relative!important;left:12px!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > .xi-portfolio-main-link > .xi-nav-color-icon {
  position:relative!important;left:-4px!important;
 }
}/* v103: one shared horizontal alignment grid for every mobile menu row.
   Home is the anchor; portfolio icon and the first character of its label
   align to Home without moving Home. Overrides the v102 icon offsets. */


@media (max-width:680px) {
 html body .site-header .nav-links.open > a > .xi-nav-color-icon,
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > .xi-portfolio-main-link > .xi-nav-color-icon {
   position:relative!important;left:0!important;right:auto!important;transform:none!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair {
   padding-left:8px!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > .xi-portfolio-main-link {
   padding-left:0!important;margin-left:0!important;gap:12px!important;
 }
}/* v104: portfolio chevron flashes visibly in mobile navigation; preserve the
   sketch's icon, label and arrow coordinates. Only the chevron animates. */


@keyframes xi104-portfolio-chevron-blink {
  0%,100% { opacity:1; filter:drop-shadow(0 0 1px rgba(59,126,189,.45)); }
  48%,58% { opacity:.20; filter:drop-shadow(0 0 5px rgba(48,143,231,.85)); }
}
@-webkit-keyframes xi104-portfolio-chevron-blink {
  0%,100% { opacity:1; -webkit-filter:drop-shadow(0 0 1px rgba(59,126,189,.45)); }
  48%,58% { opacity:.20; -webkit-filter:drop-shadow(0 0 5px rgba(48,143,231,.85)); }
}
@media (max-width:680px) and (prefers-reduced-motion:no-preference) {
  html body .site-header .nav-links.open .xi-portfolio-nav-pair > .nav-dropdown-trigger .nav-chevron {
    animation:xi104-portfolio-chevron-blink 1.6s ease-in-out infinite!important;
    -webkit-animation:xi104-portfolio-chevron-blink 1.6s ease-in-out infinite!important;
  }}
@media (max-width:680px) and (prefers-reduced-motion:reduce) {
  html body .site-header .nav-links.open .xi-portfolio-nav-pair > .nav-dropdown-trigger .nav-chevron {
    animation:none!important;-webkit-animation:none!important;opacity:1!important;
  }}/* v110: single grid for every mobile nav row. No absolute positioning. */


@media(max-width:680px){
 html body .site-header .nav-links.open > a,
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link{
  box-sizing:border-box!important;display:grid!important;
  grid-template-columns:29px minmax(0,1fr)!important;
  column-gap:12px!important;align-items:center!important;justify-items:start!important;
  padding-left:20px!important;padding-right:10px!important;
  text-indent:0!important;white-space:nowrap!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair{
  padding-left:0!important;margin-left:0!important;
 }
 html body .site-header .nav-links.open > a > .xi-nav-color-icon,
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link > .xi-nav-color-icon{
  box-sizing:border-box!important;grid-column:1!important;grid-row:1!important;
  position:static!important;left:auto!important;right:auto!important;top:auto!important;
  transform:none!important;display:flex!important;align-items:center!important;justify-content:center!important;
  width:29px!important;min-width:29px!important;max-width:29px!important;height:33px!important;
  margin:0!important;padding:0!important;flex:none!important;
 }
 html body .site-header .nav-links.open > a > .xi-nav-color-icon svg,
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link > .xi-nav-color-icon svg{
  width:25px!important;height:25px!important;display:block!important;transform:none!important;
 }
}/* v111: all five mobile navigation icons use ONE fixed flex slot.
   Keep icon and text on the same line; selected states never change alignment. */


@media (max-width:680px) {
 html body .site-header .nav-links.open > a {
   display:flex!important; flex-direction:row!important; flex-wrap:nowrap!important;
   align-items:center!important; justify-content:flex-start!important;
   box-sizing:border-box!important; padding-left:20px!important;
   gap:12px!important; text-indent:0!important; white-space:nowrap!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair {
   display:flex!important; align-items:center!important;
   box-sizing:border-box!important; padding-left:20px!important; padding-right:10px!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link {
   display:flex!important; flex-direction:row!important; flex-wrap:nowrap!important;
   align-items:center!important; justify-content:flex-start!important;
   box-sizing:border-box!important; padding:0!important; margin:0!important;
   gap:12px!important; text-indent:0!important; white-space:nowrap!important;
 }
 html body .site-header .nav-links.open .xi-nav-color-icon {
   position:static!important; inset:auto!important; transform:none!important;
   display:flex!important; align-items:center!important; justify-content:center!important;
   flex:0 0 29px!important; width:29px!important; min-width:29px!important;
   max-width:29px!important; height:33px!important; margin:0!important; padding:0!important;
 }
 html body .site-header .nav-links.open .xi-nav-color-icon svg {
   display:block!important; width:25px!important; height:25px!important;
   margin:0!important; transform:none!important;
 }
}/* v112: remove legacy v102 12px shift from About, News and Contact.
   Match the Home/Portfolio icon center with the same fixed slot. */


@media (max-width:680px) {
 html body .site-header .nav-links.open > a:not([href="index.html"]) > .xi-nav-color-icon,
 html body .site-header .nav-links.open > a[href="index.html"] > .xi-nav-color-icon,
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > .xi-portfolio-main-link > .xi-nav-color-icon {
   position:static!important;
   left:0!important;right:auto!important;top:auto!important;
   transform:none!important;
   margin-left:0!important;margin-right:0!important;
   flex:0 0 29px!important;
   width:29px!important;min-width:29px!important;max-width:29px!important;
   display:flex!important;align-items:center!important;justify-content:center!important;
 }
}/* v113: active mobile menu highlight covers the entire row; single divider
   below Portfolio. Keep the confirmed v112 icon/text alignment untouched. */


@media (max-width:680px) {
 html body .site-header .nav-links.open {
   padding-left:0!important; padding-right:0!important;
 }
 html body .site-header .nav-links.open > a,
 html body .site-header .nav-links.open > .nav-dropdown,
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair {
   margin-top:0!important; margin-bottom:0!important;
   margin-left:0!important; margin-right:0!important;
   border-radius:0!important; width:100%!important;
   box-sizing:border-box!important;
 }
 html body .site-header .nav-links.open > a.xi-current-page,
 html body .site-header .nav-links.open > a.active {
   border-radius:0!important; background-clip:border-box!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown.xi-current-page > .xi-portfolio-nav-pair,
 html body .site-header .nav-links.open > .nav-dropdown:has(.xi-portfolio-main-link.active) > .xi-portfolio-nav-pair {
   border-radius:0!important;
 }
 /* The portfolio link, its pair and the dropdown must not draw extra lines. */
 html body .site-header .nav-links.open > .nav-dropdown {
   border-bottom:1px solid #e1e8ee!important; box-shadow:none!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair,
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link {
   border:0!important; border-bottom:0!important; box-shadow:none!important;
   outline:0!important; background-clip:border-box!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair::after,
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair::before,
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link::after,
 html body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link::before {
   content:none!important; display:none!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu {
   border-top:0!important;
 }
}/* v114: muted active-row colors and indent portfolio submenu to label start.
   Do not change confirmed mobile icon/text alignment. */


@media (max-width:680px) {
 html body .site-header .nav-links.open > a.active,
 html body .site-header .nav-links.open > a.xi-current-page {
   background-color:#f0f3f6!important;
 }
 html body .site-header .nav-links.open > a[href="index.html"].active,
 html body .site-header .nav-links.open > a[href="index.html"].xi-current-page {
   background-color:#edf2f6!important;
 }
 html body .site-header .nav-links.open > a[href="about.html"].active,
 html body .site-header .nav-links.open > a[href="about.html"].xi-current-page {
   background-color:#eef5f2!important;
 }
 html body .site-header .nav-links.open > a[href="news.html"].active,
 html body .site-header .nav-links.open > a[href="news.html"].xi-current-page {
   background-color:#f7f2ed!important;
 }
 html body .site-header .nav-links.open > a[href="contact.html"].active,
 html body .site-header .nav-links.open > a[href="contact.html"].xi-current-page {
   background-color:#f8f1f4!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown:has(.xi-portfolio-main-link.active) > .xi-portfolio-nav-pair,
 html body .site-header .nav-links.open > .nav-dropdown.xi-current-page > .xi-portfolio-nav-pair {
   background-color:#f3f0f8!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu {
   box-sizing:border-box!important;
   padding-left:76px!important;
   padding-right:12px!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a {
   color:#687587!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a.is-current-category {
   background-color:#f0f2f6!important;
   color:#526276!important;
 }
}/* v115: portfolio submenu items are separate rounded cards, without underline dividers. */


@media (max-width:680px) {
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a {
  border:1px solid #e7edf2!important;
  border-bottom:1px solid #e7edf2!important;
  border-right:1px solid #e7edf2!important;
  border-radius:9px!important;
  box-shadow:none!important;
  text-decoration:none!important;
  background-clip:padding-box!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a::after,
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a::before {
  border-bottom:0!important; text-decoration:none!important;
 }
}/* v116: lighter selected submenu card and thicker current-page outline. */


@media (max-width:680px) {
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:is(.active,.is-current-category,[aria-current="page"]) {
   background-color:#f8f9fb!important;
   border:2px solid #c4cfdb!important;
   border-radius:9px!important;
   box-shadow:none!important;
   color:#586b7f!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:not(:is(.active,.is-current-category,[aria-current="page"])) {
   border-width:1px!important;
 }
}/* v117: temporary touch-down feedback only. After release retain v116 current-page styling. */


@media (max-width:680px) {
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:active,
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:is(.active,.is-current-category,[aria-current="page"]):active {
   background-color:#ffffff!important;
   color:#8290a0!important;
   box-shadow:none!important;
 }
}/* v118: clear immediate touch feedback, distinct from persistent selected page.
   Keep v116 persistent current-category appearance and 2px outline unchanged. */


@media (max-width:680px) {
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a {
   -webkit-tap-highlight-color:rgba(183,207,229,.35)!important;
   touch-action:manipulation;
   transition:background-color .09s ease-out,color .09s ease-out!important;
 }
 @media (any-hover:hover) and (any-pointer:fine) {
   html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:hover:not(:active):not(.active):not(.is-current-category):not([aria-current="page"]) {
     background-color:#f0f5fa!important;
   }
 }
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:active,
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:is(.active,.is-current-category,[aria-current="page"]):active {
   background-color:#e0ebf6!important;
   color:#435d76!important;
   -webkit-tap-highlight-color:rgba(183,207,229,.35)!important;
 }
}/* v119: remove native mobile browser blue tap rectangle; retain rounded custom :active feedback. */


@media (max-width:680px) {
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a,
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:active {
   -webkit-tap-highlight-color:transparent!important;
   -webkit-touch-callout:none;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:active {
   background-color:#e0ebf6!important;
   border-radius:9px!important;
 }
}/* v120: soften only the persistent current-page submenu outline; keep 2px width. */


@media (max-width:680px) {
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:is(.active,.is-current-category,[aria-current="page"]) {
   border-color:#dce4ed!important;
 }
}/* v121: portfolio landing page also highlights the "作品集首頁" submenu card. */


@media (max-width:680px) {
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a.xi-portfolio-home-current {
   background-color:#f8f9fb!important;
   border:2px solid #dce4ed!important;
   border-radius:9px!important;
   box-shadow:none!important;
   color:#586b7f!important;
 }
 html body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a.xi-portfolio-home-current:active {
   background-color:#e0ebf6!important;
 }
}/* v128: unified horizontal navigation link geometry. Both ordinary anchors and
   portfolio anchor share the same box, typography, and underline logic. */


@media (min-width:681px) {
 html body .site-header .nav-links > .nav-dropdown,
 html body .site-header .nav-links > .nav-dropdown > .xi-portfolio-nav-pair {
   display:flex!important; align-items:center!important; align-self:center!important;
   margin:0!important; padding:0!important; gap:0!important;
   border:0!important; background:transparent!important; box-shadow:none!important;
   height:auto!important; min-height:0!important;
 }
 html body .site-header .nav-links > a:not(.login-link),
 html body .site-header .nav-links > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link {
   box-sizing:border-box!important; position:relative!important;
   display:inline-flex!important; align-items:center!important; align-self:center!important;
   font-family:inherit!important; font-size:inherit!important; font-style:normal!important;
   font-weight:600!important; line-height:1.4!important; letter-spacing:normal!important;
   color:#465363!important; padding:11px 1px!important; margin:0!important;
   height:auto!important; min-height:0!important; top:auto!important; bottom:auto!important;
   transform:none!important; text-decoration:none!important; border:0!important;
   border-radius:0!important; background:transparent!important; box-shadow:none!important;
 }
 html body .site-header .nav-links > a:not(.login-link).active,
 html body .site-header .nav-links > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link.active,
 html body .site-header .nav-links > a:not(.login-link):hover,
 html body .site-header .nav-links > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link:hover,
 html body .site-header .nav-links > a:not(.login-link):focus-visible,
 html body .site-header .nav-links > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link:focus-visible {
   color:var(--blue)!important;
 }
 html body .site-header .nav-links > a:not(.login-link)::after,
 html body .site-header .nav-links > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link::after {
   content:""!important; display:block!important; position:absolute!important;
   left:0!important; right:100%!important; bottom:4px!important; height:2px!important;
   border:0!important; border-radius:2px!important; background:var(--blue)!important;
   transition:right .3s cubic-bezier(.2,.75,.25,1)!important;
 }
 html body .site-header .nav-links > a:not(.login-link):is(:hover,:focus-visible,.active)::after,
 html body .site-header .nav-links > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link:is(:hover,:focus-visible,.active)::after {
   right:0!important;
 }
 html body .site-header .nav-links > .nav-dropdown > .xi-portfolio-nav-pair > .nav-dropdown-trigger {
   display:inline-flex!important; position:relative!important; align-items:center!important;
   justify-content:center!important; align-self:center!important;
   flex:0 0 16px!important; width:16px!important; min-width:16px!important;
   height:28px!important; min-height:0!important; margin:0 0 0 2px!important;
   padding:0!important; background:transparent!important; border:0!important;
   box-shadow:none!important; transform:none!important;
 }
 html body .site-header .nav-links > .nav-dropdown > .xi-portfolio-nav-pair > .nav-dropdown-trigger::after {
   content:none!important;display:none!important;
 }
}
@media (min-width:681px) and (prefers-reduced-motion:no-preference) {
 html body .site-header .nav-links > .nav-dropdown > .xi-portfolio-nav-pair > .nav-dropdown-trigger > .nav-chevron {
   animation:xi104-portfolio-chevron-blink 1.6s ease-in-out infinite!important;
   -webkit-animation:xi104-portfolio-chevron-blink 1.6s ease-in-out infinite!important;
 }}
@media (min-width:681px) and (prefers-reduced-motion:reduce) {
 html body .site-header .nav-links > .nav-dropdown > .xi-portfolio-nav-pair > .nav-dropdown-trigger > .nav-chevron {
   animation:none!important;-webkit-animation:none!important;
 }}/* v127: use the exact two-chevron vector supplied by the client; preserve dropdown rotation and blinking. */


.site-header .nav-dropdown-trigger .nav-chevron { font-size:0!important; line-height:0!important; }
.site-header .nav-dropdown-trigger .nav-chevron .xi-custom-arrow { display:block!important; width:13px!important; height:15px!important; }
@media(max-width:680px) {
 html body .site-header .nav-links.open .xi-portfolio-nav-pair > .nav-dropdown-trigger .nav-chevron {
  width:13px!important;height:15px!important;border:0!important;border-radius:0!important;
  background:none!important;transform:none!important;box-shadow:none!important;
 }
 html body .site-header .nav-links.open .nav-dropdown.open .nav-chevron {transform:rotate(180deg)!important;}}/* v129: restore readable home ABOUT X-IMAGE heading (previously capped at 17px). */


html body.xi-home-page .section.soft .xi-about-one-line {
  font-size:clamp(30px, 3.3vw, 42px)!important;
  line-height:1.3!important;
  letter-spacing:normal!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
}
@media (max-width:680px) {
 html body.xi-home-page .section.soft .xi-about-one-line {
   font-size:clamp(22px, 5.4vw, 27px)!important;
   line-height:1.35!important;
 }}/* v130: WHAT WE DO heading only; restore a balanced headline scale. */


.section-head.xi-what-we-do-heading h2 { font-size:clamp(24px, 3vw, 34px); line-height:1.35; }
@media (max-width:680px) {
  .section-head.xi-what-we-do-heading h2 { font-size:clamp(23px, 5.6vw, 28px); line-height:1.4; }}/* v131: LET’S TALK contact heading — restrained size, keep other headings unchanged. */


html body .contact-layout .contact-info > h2 {
 font-size:clamp(21px,2.15vw,26px)!important;
 line-height:1.4!important;
 letter-spacing:normal!important;
}
@media(max-width:680px){
 html body .contact-layout .contact-info > h2 {font-size:21px!important;line-height:1.4!important;}}/* v132: About page OUR PRINCIPLES headline only — balanced scale on tablets and phones. */


html body .section.soft .section-head.xi-principles-heading > h2 {
 font-size:clamp(24px,2.7vw,32px)!important;line-height:1.35!important;
}
@media(max-width:680px){
 html body .section.soft .section-head.xi-principles-heading > h2 {font-size:clamp(22px,5.4vw,27px)!important;line-height:1.4!important;}}/* v133: compact portrait home showcase headers and one-line title/category. */


@media (max-width:680px) and (orientation:portrait) {
 html body.xi-home-page .xi-showcase-section .xi-section-row,
 html body.xi-home-page .xi-recent-section .xi-section-row {margin-bottom:10px!important;row-gap:0!important;}
 html body.xi-home-page .xi-showcase-section .xi-section-row p,
 html body.xi-home-page .xi-recent-section .xi-section-row p,
 html body.xi-home-page .xi-showcase-section .xi-inline-section-title .eyebrow,
 html body.xi-home-page .xi-recent-section .xi-inline-section-title .eyebrow {display:none!important;}
 html body.xi-home-page .xi-showcase-section .xi-inline-section-title,
 html body.xi-home-page .xi-recent-section .xi-inline-section-title {display:flex!important;align-items:baseline!important;gap:5px!important;min-width:0!important;}
 html body.xi-home-page .xi-showcase-section .xi-inline-section-title h2,
 html body.xi-home-page .xi-recent-section .xi-inline-section-title h2 {font-size:22px!important;line-height:1.25!important;margin:0!important;white-space:nowrap!important;}
 html body.xi-home-page .xi-home-section-count {display:inline!important;white-space:nowrap!important;font-size:11px!important;font-weight:400!important;color:#8293a5!important;}
 html body.xi-home-page .xi-showcase-section .xi-section-more,
 html body.xi-home-page .xi-recent-section .xi-section-more {font-size:12px!important;white-space:nowrap!important;}
 html body.xi-home-page .xi-showcase-section .xi-showcase-card .xi-showcase-info,
 html body.xi-home-page .xi-recent-section .xi-showcase-card .xi-showcase-info,
 html body.xi-home-page .xi-home-infinite-rail:not([hidden]) > .xi-home-rail-card > .xi-showcase-info {
   display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;
   gap:8px!important;padding:7px 5px!important;min-width:0!important;min-height:0!important;
 }
 html body.xi-home-page .xi-showcase-section .xi-showcase-info strong,
 html body.xi-home-page .xi-recent-section .xi-showcase-info strong,
 html body.xi-home-page .xi-home-infinite-rail:not([hidden]) > .xi-home-rail-card > .xi-showcase-info strong {
   order:0!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;max-width:none!important;
   display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
   font-size:13px!important;line-height:1.35!important;
 }
 html body.xi-home-page .xi-showcase-section .xi-showcase-info small,
 html body.xi-home-page .xi-recent-section .xi-showcase-info small,
 html body.xi-home-page .xi-home-infinite-rail:not([hidden]) > .xi-home-rail-card > .xi-showcase-info small {
   order:1!important;flex:0 0 auto!important;width:auto!important;max-width:43%!important;
   display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
   font-size:11px!important;line-height:1.35!important;
 }
}/* v134: TOP circle more transparent (84% -> 65% opacity); preserve arrow and layout. */


html body .xi-top-row .xi-top-button{background:rgba(115,143,164,.65)!important;}/* v135: subtle image count and next-image button inside homepage artwork carousel.
   This changes only the card's own image switcher, not the main rail controls. */


html body.xi-home-page .xi-home-thumb-count {
  top:5px!important;right:5px!important;
  padding:1px 5px!important;
  font-size:9px!important;line-height:1.4!important;
  border-radius:9px!important;
  background:rgba(48,69,87,.48)!important;
  color:#fff!important;
  pointer-events:none!important;
}
html body.xi-home-page .xi-home-thumb-next {
  right:5px!important;top:50%!important;transform:translateY(-50%)!important;
  width:21px!important;height:21px!important;
  padding:0!important;border-radius:50%!important;
  background:rgba(94,121,143,.46)!important;
  color:#fff!important;font-size:18px!important;line-height:21px!important;
  text-align:center!important;
  -webkit-tap-highlight-color:transparent!important;
}
@media (hover:hover) {
 html body.xi-home-page .xi-home-thumb-next:hover {background:rgba(94,121,143,.70)!important;}}
html body.xi-home-page .xi-home-thumb-next:focus-visible {outline:2px solid #6c93b4;outline-offset:2px;}/* v136: place the artwork image-next control at the bottom-right of each carousel image. */


html body.xi-home-page .xi-home-thumb-next {
  top:auto!important;bottom:5px!important;right:5px!important;
  transform:none!important;
}/* v137: Anchor each image-switch button to the bottom-right of the artwork,
   above its caption. Caption height is measured by home-gallery.js. */


html body.xi-home-page .xi-showcase-card .xi-home-thumb-next,html body.xi-home-page .xi-home-rail-card .xi-home-thumb-next{
  top:auto!important;
  bottom:calc(var(--xi-thumb-caption-height, 42px) + 5px)!important;
  right:5px!important;
  transform:none!important;
}/* v138: Recent Works carousel uses the same clean viewer header as Featured Works.
   Hide only its redundant close button; retain gallery and carousel behavior. */


html body.xi-home-page .xi-home-gallery:has(+ [data-home-gallery="recent"]) .xi-home-gallery-close { display:none!important; }/* v212: strictly clipped two-panel mobile hero transition, no exposed page background. */


@media(max-width:1023px){
 .xi-hero-swipe-stage{position:fixed;z-index:2147483600;overflow:hidden;contain:paint;isolation:isolate;background:#20314d;touch-action:none;pointer-events:none;transform:translateZ(0);backface-visibility:hidden}
 .xi-hero-swipe-stage .xi-hero-panel{position:absolute;inset:0;width:100%;height:100%;background-size:cover;background-position:center center;background-repeat:no-repeat;will-change:transform;backface-visibility:hidden;overflow:hidden}
 .xi-hero-panel-label{position:absolute;left:7%;top:50%;transform:translateY(-50%);color:#fff;text-shadow:0 2px 9px rgba(0,0,0,.7);display:flex;flex-direction:column;gap:7px;max-width:86%}
 .xi-hero-panel-label small{font-size:12px;letter-spacing:2px}
 .xi-hero-panel-label strong{font-size:clamp(27px,7vw,45px);font-weight:700}
 .xi-hero-panel-label span{font-size:14px;line-height:1.6}
}/* v213: single clipped track, no overlapping translated panels or simulated home hero. */


@media(max-width:1023px){
 .xi-track-stage{position:fixed;z-index:2147483600;overflow:hidden;isolation:isolate;pointer-events:none;contain:layout paint;background:transparent;}
 .xi-track{position:absolute;left:0;top:0;height:100%;width:200%;display:flex;will-change:transform;backface-visibility:hidden;}
 .xi-track-panel{position:relative;flex:0 0 50%;width:50%;height:100%;box-sizing:border-box;background-size:cover;background-position:center;background-repeat:no-repeat;overflow:hidden;}
 .xi-track-heading{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;padding:0 7%;color:white;}
}/* v214: edge-safe hero track with fractional-pixel-safe panel sizing */


@media(max-width:1023px){.xi-track-stage{overflow:hidden!important;clip-path:inset(0)!important;background-color:#173f69!important}.xi-track{display:flex!important;gap:0!important;justify-content:flex-start!important}.xi-track-panel{background-color:#173f69!important;background-origin:border-box!important;background-clip:border-box!important}}/* v194: 1024-1365px landscape tablet (e.g. 1280x768). The category hero must not animate its
   height here: scroll targets are measured right after a category tap, and a hero still
   shrinking made the page jump up/down and stop at the wrong place. Also turn off browser
   scroll anchoring in category view so hiding/showing cards cannot nudge the scroll position. */


@media (min-width:1024px) and (max-width:1365px) and (orientation:landscape) and (max-height:800px){
 html body.portfolio-page #portfolio-hero,
 html body.portfolio-page #portfolio-hero .page-heading{transition:none!important}
 html body.portfolio-page #portfolio-hero.portfolio-category-hero{animation:none!important}
 html:has(body.portfolio-page.xi-category-view){overflow-anchor:none}
}/* v202: ONE left edge for every page title, on every page, at any window height.
   Content edge = .container (max 1160px) minus its 24px padding = max(24px, (100% - 1112px) / 2).
   Page heroes (about / portfolio / news / contact) used min(1180px,100% - 64px) and, in short
   windows (landscape-phone rules), an extra 20px side padding; the home hero-inner was switched to
   max-width:100% there. All of them now use the content-edge formula. */


@media (min-width:768px){
 html body .page-hero:not(.portfolio-category-hero):not(#xi-x) .page-heading{
  width:min(1112px,calc(100% - 48px))!important;max-width:1112px!important;
  margin-left:auto!important;margin-right:auto!important;padding-left:0!important;padding-right:0!important}
 html body.xi-home-page .hero .hero-inner:not(#xi-x){
  width:100%!important;max-width:1160px!important;margin-left:auto!important;margin-right:auto!important;padding-left:24px!important}
}/* v202: home "important news" card, when anchored on the left (short landscape windows), shares the
   same content edge as the hero title and buttons instead of a fixed 24px. */

@media (orientation:landscape) and (max-height:800px) and (max-width:1600px) and (min-width:768px){
 }
@media (orientation:landscape) and (max-height:800px) and (max-width:1600px) and (min-width:768px) and (pointer:coarse) and (min-width:100000px){html body.xi-home-page .hero > .xi-hero-news:not(#xi-x){left:max(24px,calc((100% - 1112px)/2))!important}}/* v203 (1) Header logo: ONE fixed position on every page and window size.
   - scrollbar-gutter keeps the same width whether or not a page needs a scrollbar, so the
     centered header/content no longer shifts ~8px between short and long pages (Windows).
   - nav-wrap side padding is the same 24px as the content container (short windows used 17px),
     so the logo sits on the content edge and the menu ends on the content's right edge. */


html{scrollbar-gutter:stable}
@media (min-width:768px){
 html body .site-header .nav-wrap:not(#xi-x){padding-left:24px!important;padding-right:24px!important}/* v203 (2) News page: controls box, list and cards use the same 1112px content width as every
    other page (was 1072px: content-narrow max 1120px - 2x24px padding). */
 
 html body .xnews-page .content-narrow:not(#xi-x){max-width:1160px!important}}/* v203 (3) Home important news: the sliding old/new item is clipped to its own area, so the faded
   ghost no longer flies out of the card frame and over the "重要消息" label. */

html body .xi-hero-news .xi-hero-news-items:not(#xi-x){overflow:hidden!important}/* v204 featured works: wide screens (desktop, tablet, landscape phone) = large image left, title + sliding thumbnails right */


@media (min-width:700px) and (orientation:landscape),(min-width:1000px),(min-width:540px) and (max-width:699.98px) and (orientation:landscape) and (max-height:500px){
 html body.xi-home-page .container:has(>[data-home-gallery]):not(#xi-x){display:grid!important;grid-template-columns:minmax(0,1.75fr) minmax(0,1fr);column-gap:28px;grid-auto-rows:auto;align-content:start}
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-section-row:not(#xi-x){grid-column:1/-1}
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-home-gallery:not([hidden]):not(#xi-x){display:contents!important}
 html body.xi-home-page .container:has(>[data-home-gallery]) .xi-home-gallery-stage:not(#xi-x){grid-column:1;grid-row:2/5;height:clamp(280px,40vw,520px)!important;align-self:start}
 html body.xi-home-page .container:has(>[data-home-gallery]) .xi-home-gallery-top:not(#xi-x){grid-column:2;grid-row:2;align-self:end;margin:0 0 6px!important}
 html body.xi-home-page .container:has(>[data-home-gallery]) .xi-home-gallery-title:not(#xi-x){font-size:clamp(18px,2vw,24px)!important;white-space:normal!important;line-height:1.3}
 html body.xi-home-page .container:has(>[data-home-gallery]) .xi-home-gallery-close:not(#xi-x){display:none!important}
 html body.xi-home-page .container:has(>[data-home-gallery]) .xi-home-gallery-count:not(#xi-x){grid-column:2;grid-row:3;text-align:left!important;margin:0 0 14px!important}
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-home-infinite-rail:not([hidden]):not(#xi-x){grid-column:2;grid-row:4;align-self:start;min-width:0}
}/* v205 phone/tablet stacked layout: title + category on one row (category right-aligned), tighter to the section heading, more air above the heading */


@media (max-width:999px) and (orientation:portrait),(max-width:699px){
 html body.xi-home-page .xi-home-gallery-top:not(#xi-x){margin:0 0 8px!important}
 html body.xi-home-page .xi-home-gallery-heading:not(#xi-x){flex:1 1 auto;flex-direction:row!important;justify-content:space-between;align-items:baseline;gap:12px}
 html body.xi-home-page .xi-home-gallery-heading .xi-home-gallery-title:not(#xi-x){flex:1 1 auto;min-width:0}
 html body.xi-home-page .xi-home-gallery-heading .xi-home-gallery-category:not(#xi-x){flex:none;text-align:right;white-space:nowrap}
 html body.xi-home-page .xi-home-gallery:not([hidden]):not(#xi-x){margin-top:4px!important}
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-section-row:not(#xi-x){margin-bottom:6px!important}
 html body.xi-home-page .xi-showcase-section:not(#xi-x),html body.xi-home-page section:has(>.container>[data-home-gallery]):not(#xi-x){padding-top:44px!important}
}
.xi-home-gallery-prev,.xi-home-gallery-next{touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}/* v207 category sits right after the title as a small tag */

@media (max-width:999px) and (orientation:portrait),(max-width:699px){
 html body.xi-home-page .xi-home-gallery-heading:not(#xi-x){justify-content:flex-start!important;align-items:center!important;gap:10px!important}
 html body.xi-home-page .xi-home-gallery-heading .xi-home-gallery-title:not(#xi-x){flex:0 1 auto!important}
 html body.xi-home-page .xi-home-gallery-heading .xi-home-gallery-category:not(#xi-x){text-align:left!important;font-size:11px!important;line-height:1;padding:3px 8px;border-radius:999px;background:#edf3f8;color:#5d7b94}
}/* v208 main image: when cropped to fill, show more of the top; tighter gap under the section heading */

html body.xi-home-page .xi-home-art-clip img.xi-smart-fill:not(#xi-x),html body.xi-home-page .xi-home-gallery-slide-layer.xi-smart-fill:not(#xi-x){object-position:center 22%!important}
@media (max-width:999px) and (orientation:portrait),(max-width:699px){
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-section-row:not(#xi-x){margin-bottom:0!important}
 html body.xi-home-page .xi-home-gallery:not([hidden]):not(#xi-x){margin-top:0!important}
 html body.xi-home-page .xi-home-gallery-top:not(#xi-x){margin-bottom:6px!important}}/* v209 phone home banner: pan the picture upward (slight zoom gives vertical room; anchored to the bottom) */

@media (max-width:680px) and (orientation:portrait){
 html body.xi-home-page .hero:not(#xi-x){background-size:auto 116%!important;background-position:62% 100%!important}
}/* v210 phone home: picture further up, news bar follows, shorter hero bottom, 18px to the featured heading */

@media (max-width:680px) and (orientation:portrait){
 html body.xi-home-page .hero:not(#xi-x){background-size:auto 120%!important;background-position:62% 65%!important;padding-bottom:10px!important}
 html body.xi-home-page .hero .hero-inner:not(#xi-x){padding-bottom:34px!important}
}
@media (max-width:999px) and (orientation:portrait),(max-width:699px){
 html body.xi-home-page section:has(>.container>[data-home-gallery]):not(#xi-x){padding-top:18px!important}}/* v212 tablet portrait: same idea - keep the watermark below the buttons */


@media (min-width:560px) and (max-width:1100px) and (orientation:portrait){
 html body.xi-home-page .hero:not(#xi-x){background-size:cover!important;background-position:40% center!important}
}
@media (min-width:700px) and (max-width:999px) and (orientation:landscape){
 html body.xi-home-page .hero:not(#xi-x){background-size:cover!important;background-position:40% center!important}}/* v215 landscape phones/tablets: one-line headline, paragraph break, shorter hero; shared two-column works layout; centered quick cards */


.xi-h1br,.xi-pbr{display:none}
@media (orientation:landscape) and (max-width:1400px) and (pointer:coarse),(orientation:landscape) and (max-width:1400px) and (max-height:500px){
 .xi-pbr{display:inline}
 html body.xi-home-page .hero h1 .xi-h1br:not(#xi-x){display:none!important}
 html body.xi-home-page .hero h1:not(#xi-x){white-space:nowrap!important;max-width:none!important;font-size:clamp(26px,4.2vw,50px)!important}
 html body.xi-home-page .hero h1 em:not(#xi-x){display:inline!important}
 html body.xi-home-page .hero:not(#xi-x){min-height:0!important}
 html body.xi-home-page .hero .hero-inner:not(#xi-x){padding-top:34px!important;padding-bottom:84px!important}
 html body.xi-home-page .hero .xi-hero-news:not(#xi-x){bottom:14px!important}}
@media (min-width:700px){
 html body .quick-pages-inner:not(#xi-x){grid-template-columns:repeat(4,calc((100% - 48px)/5))!important;gap:16px!important;justify-content:center!important}}
@media (orientation:landscape) and (max-width:1400px) and (pointer:coarse),(orientation:landscape) and (max-width:1400px) and (max-height:500px){
 html body.xi-home-page .hero .hero-inner:not(#xi-x){padding-bottom:34px!important}
 html body.xi-home-page .hero:not(#xi-x){background-size:auto 130%!important;background-position:50% 100%!important}
 html body.xi-home-page .hero > .xi-hero-news:not(#xi-x){left:auto!important;right:24px!important;bottom:12px!important;width:min(460px,calc(100% - 360px))!important;max-width:none!important}}/* v218 very short landscape viewports (e.g. Galaxy A12 with browser bars): keep headline, buttons and news bar in the first screen */

@media (orientation:landscape) and (max-height:420px){
 html body.xi-home-page .hero .hero-inner:not(#xi-x){padding-top:14px!important;padding-bottom:16px!important}
 html body.xi-home-page .hero .eyebrow:not(#xi-x){margin:0!important;font-size:10px!important}
 html body.xi-home-page .hero h1:not(#xi-x){margin:3px 0 5px!important;font-size:clamp(24px,3.6vw,34px)!important;line-height:1.15!important}
 html body.xi-home-page .hero p:not(#xi-x){margin:0 0 9px!important;font-size:13px!important;line-height:1.4!important}
 html body.xi-home-page .hero .button:not(#xi-x){min-height:36px!important;padding:6px 14px!important;font-size:13px!important}
 html body.xi-home-page .hero > .xi-hero-news:not(#xi-x){bottom:12px!important}
 html body.xi-home-page .hero:not(#xi-x){background-size:cover!important;background-position:50% 100%!important}
}/* v221 landscape touch: pin the news bar on both sides so it can never run past the right edge */

@media (orientation:landscape) and (max-width:1400px) and (pointer:coarse),(orientation:landscape) and (max-width:1400px) and (max-height:500px){
 html body.xi-home-page .hero > .xi-hero-news:not(#xi-x){left:max(330px,36%)!important;right:24px!important;width:auto!important;max-width:520px!important;margin-left:auto!important}
}/* v222 short landscape touch: hero fills the visible screen (featured works stays below the fold) */

.xi-hero-actions{display:contents}
@media (orientation:landscape) and (max-height:420px){
 html body.xi-home-page .hero:not(#xi-x){display:block!important;min-height:calc(var(--xi-vh,100svh) - var(--xi-hdr,49px))!important;background-size:cover!important;background-position:50% 100%!important}
 html body.xi-home-page .hero .hero-inner:not(#xi-x){display:flex!important;flex-direction:column;align-items:flex-start;min-height:calc(var(--xi-vh,100svh) - var(--xi-hdr,49px))!important;padding:12px 24px 14px!important;box-sizing:border-box}
 html body.xi-home-page .hero .hero-inner .eyebrow:not(#xi-x){margin-top:auto!important}
 html body.xi-home-page .hero .hero-inner p:not(#xi-x){margin-bottom:auto!important}
 html body.xi-home-page .hero .hero-inner .xi-hero-actions:not(#xi-x){display:flex!important;gap:8px;margin-top:12px}
 html body.xi-home-page .hero .hero-inner .xi-hero-actions .button:not(#xi-x){margin:0!important}
 html body.xi-home-page .hero > .xi-hero-news:not(#xi-x){bottom:14px!important}}/* v223 bigger system font: keep the bottom row inside the screen */


@media (orientation:landscape) and (max-height:420px){
 html body.xi-home-page .hero .hero-inner:not(#xi-x){height:calc(var(--xi-vh,100svh) - var(--xi-hdr,49px))!important;overflow:hidden}
 html body.xi-home-page .hero:not(#xi-x){height:calc(var(--xi-vh,100svh) - var(--xi-hdr,49px))!important;overflow:hidden}
 html body.xi-home-page .hero h1:not(#xi-x){font-size:clamp(22px,min(3.6vw,9vh),34px)!important}
}/* v225 narrow landscape (<=768px wide) was still switching the news bar to the portrait in-flow layout */

@media (orientation:landscape) and (max-height:420px){
 html body.xi-home-page .hero > .xi-hero-news:not(#xi-x){position:absolute!important;top:auto!important;margin:0!important;transform:none!important;left:max(330px,36%)!important;right:24px!important;width:auto!important;bottom:14px!important}
}/* v226 short landscape: text block sits higher, picture zoomed and shifted so the watermark clears text and news bar */

@media (orientation:landscape) and (max-height:420px){
 html body.xi-home-page .hero:not(#xi-x){background-size:130% auto!important;background-position:55% 100%!important}
 html body.xi-home-page .hero .hero-inner .eyebrow:not(#xi-x){margin-top:2px!important}
 html body.xi-home-page .hero .hero-inner:not(#xi-x){padding-top:10px!important}
}/* v229 selected column number always pulses, even when the phone has "remove animations" on */

@media (orientation:landscape) and (max-height:650px) and (max-width:1400px){
 html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.xi-grid-density-btn.active .xi058-icon .xi058-digit:not(#xi-x){
  animation:xi059-landscape-digit-pulse 1.6s ease-in-out infinite!important;-webkit-animation:xi059-landscape-digit-pulse 1.6s ease-in-out infinite!important}
}/* v231 landscape 3/6: same glow as the portrait 1/2/3 buttons */

html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.xi-grid-density-btn.active .xi058-icon .xi058-digit:not(#xi-x){color:#376487!important;animation:xi051-digit-glow 1.3s ease-in-out infinite alternate!important;-webkit-animation:xi051-digit-glow 1.3s ease-in-out infinite alternate!important}/* v234 landscape/desktop selected digit: same pulse as portrait (slower, dims) */


html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape > button.xi-grid-density-btn.active .xi058-icon .xi058-digit:not(#xi-x){color:#376487!important;animation:xi053-selected-numeral-pulse 1.6s ease-in-out infinite!important;-webkit-animation:xi053-selected-numeral-pulse 1.6s ease-in-out infinite!important}/* v235 tablet portrait works (featured + recent): big image left, vertical auto-scrolling rail right */


@media (min-width:700px) and (max-width:1100px) and (orientation:portrait){
 html body.xi-home-page .container:has(>[data-home-gallery]):not(#xi-x){display:grid!important;--xi-tv-h:clamp(300px,58vw,560px);grid-template-columns:minmax(0,3.4fr) minmax(0,1fr);column-gap:14px;grid-auto-rows:auto;align-content:start}
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-section-row:not(#xi-x){grid-column:1/-1}
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-home-gallery:not([hidden]):not(#xi-x){display:contents!important}
 html body.xi-home-page .container:has(>[data-home-gallery]) .xi-home-gallery-top:not(#xi-x){grid-column:1/-1;grid-row:2;margin:0 0 8px!important}
 html body.xi-home-page .container:has(>[data-home-gallery]) .xi-home-gallery-stage:not(#xi-x){grid-column:1;grid-row:3;height:var(--xi-tv-h)!important;align-self:start}
 html body.xi-home-page .container:has(>[data-home-gallery]) .xi-home-gallery-count:not(#xi-x){grid-column:1;grid-row:4;margin:6px 0 0!important}
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-home-infinite-rail:not([hidden]):not(#xi-x){grid-column:2;grid-row:3;align-self:start;min-width:0;height:var(--xi-tv-h)!important;flex-direction:column!important;overflow-x:hidden!important;overflow-y:auto!important;touch-action:pan-x!important;padding:0!important}
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-home-infinite-rail:not([hidden])>.xi-home-rail-card:not(#xi-x){flex:0 0 calc((var(--xi-tv-h) - 16px)/3)!important;width:100%!important;height:calc((var(--xi-tv-h) - 16px)/3)!important}
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-home-infinite-rail:not([hidden])>.xi-home-rail-card>img:not(#xi-x){flex:1 1 auto!important;height:auto!important;min-height:0!important}
}/* v236 tablet portrait: narrower right rail (about 27%), compact thumb captions */


@media (min-width:700px) and (max-width:1100px) and (orientation:portrait){
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-home-infinite-rail:not([hidden])>.xi-home-rail-card>.xi-showcase-info:not(#xi-x){flex-direction:column!important;align-items:flex-start!important;gap:1px!important;padding:5px 6px!important}
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-home-infinite-rail:not([hidden])>.xi-home-rail-card>.xi-showcase-info strong:not(#xi-x){font-size:12px!important;max-width:100%!important}
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-home-infinite-rail:not([hidden])>.xi-home-rail-card>.xi-showcase-info small:not(#xi-x){font-size:10px!important;max-width:100%!important}
}/* v237 tablet portrait rail cards: near-square image, one-line caption (name left, category right) */


@media (min-width:700px) and (max-width:1100px) and (orientation:portrait){
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-home-infinite-rail:not([hidden])>.xi-home-rail-card:not(#xi-x){flex:0 0 auto!important;height:auto!important}
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-home-infinite-rail:not([hidden])>.xi-home-rail-card>img:not(#xi-x){flex:none!important;width:100%!important;height:auto!important;aspect-ratio:1/1.05!important;max-height:none!important;min-height:0!important;object-fit:cover!important}
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-home-infinite-rail:not([hidden])>.xi-home-rail-card>.xi-showcase-info:not(#xi-x){flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;padding:7px 6px!important}
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-home-infinite-rail:not([hidden])>.xi-home-rail-card>.xi-showcase-info strong:not(#xi-x){flex:1 1 auto!important;font-size:12px!important}
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-home-infinite-rail:not([hidden])>.xi-home-rail-card>.xi-showcase-info small:not(#xi-x){flex:0 0 auto!important;max-width:45%!important;font-size:11px!important}
}/* v238 tablet portrait: wider main image, smaller rail thumbs (caption scaled with them) */


@media (min-width:700px) and (max-width:1100px) and (orientation:portrait){
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-home-infinite-rail:not([hidden])>.xi-home-rail-card>.xi-showcase-info strong:not(#xi-x){font-size:11px!important}
 html body.xi-home-page .container:has(>[data-home-gallery])>.xi-home-infinite-rail:not([hidden])>.xi-home-rail-card>.xi-showcase-info small:not(#xi-x){font-size:10px!important}
}/* v243 arrows back to the original look (straddling the frame edge); tablet portrait only nudges them 10px in so the right one stays clear of the thumbnail rail */





@media (min-width:700px) and (max-width:1100px) and (orientation:portrait){
 html body.xi-home-page .xi-home-gallery .xi-home-gallery-next:not(#xi-x){translate:-10px 0}
 html body.xi-home-page .xi-home-gallery .xi-home-gallery-prev:not(#xi-x){translate:10px 0}
}/* v245 short landscape phones: more air between eyebrow / headline / paragraph; buttons never clipped */


@media (orientation:landscape) and (max-height:420px){
 html body.xi-home-page .hero .eyebrow:not(#xi-x){margin:0 0 9px!important}
 html body.xi-home-page .hero h1:not(#xi-x){margin:0 0 10px!important}
 html body.xi-home-page .hero p:not(#xi-x){margin:0!important}
 html body.xi-home-page .hero .hero-inner .xi-hero-actions:not(#xi-x){flex-wrap:nowrap!important;overflow:visible!important}
 html body.xi-home-page .hero .hero-inner .xi-hero-actions .button:not(#xi-x){flex:none!important;white-space:nowrap!important;overflow:visible!important;max-width:none!important}
}/* v246 short landscape phones: more space above the eyebrow line */


@media (orientation:landscape) and (max-height:420px){
 html body.xi-home-page .hero .hero-inner:not(#xi-x){padding-top:30px!important}
}/* v247 phone portrait: headline breaks after the comma so the second line is one clean phrase */


@media (max-width:699px) and (orientation:portrait){
 html body.xi-home-page .hero h1 .xi-h1br:not(#xi-x){display:inline!important}
}/* v248 all devices: news bar sits 10px higher off the hero's bottom edge; the picture moves up a little so the watermark is not cut */


html body.xi-home-page .hero .xi-hero-news:not(#xi-x){translate:0 -10px}
@media (min-width:1000px) and (min-height:501px) and (pointer:fine){
 html body.xi-home-page .hero:not(#xi-x){background-position:100% 68%!important}}
@media (max-width:680px) and (orientation:portrait){
 html body.xi-home-page .hero:not(#xi-x){background-position:62% 72%!important}}/* v249 short landscape phones: buttons and news bar share one bottom line, lifted clear of the browser bar; picture moved up so the watermark text stays above them */


@media (orientation:landscape) and (max-height:420px){
 html body.xi-home-page .hero .hero-inner:not(#xi-x){padding-bottom:24px!important}
 html body.xi-home-page .hero > .xi-hero-news:not(#xi-x){bottom:14px!important}
 html body.xi-home-page .hero:not(#xi-x){background-size:165% auto!important;background-position:50% 100%!important}
}
@media (orientation:landscape) and (max-height:300px){
 html body.xi-home-page .hero:not(#xi-x){background-size:130% auto!important;background-position:55% 100%!important}}/* v250 short landscape phones: buttons and news bar have the same height and the same bottom line, so their centres line up */


@media (orientation:landscape) and (max-height:420px){
 html body.xi-home-page .hero .hero-inner .xi-hero-actions .button:not(#xi-x){height:44px!important;min-height:44px!important;box-sizing:border-box!important;padding-top:0!important;padding-bottom:0!important;display:inline-flex!important;align-items:center!important}
 html body.xi-home-page .hero > .xi-hero-news:not(#xi-x){height:44px!important;min-height:44px!important;box-sizing:border-box!important;display:flex!important;align-items:center!important}
}
@media (orientation:landscape) and (max-height:300px){
 html body.xi-home-page .hero > .xi-hero-news:not(#xi-x){translate:none!important;bottom:15px!important}}/* v252 short landscape phones: headline breaks after the comma (clears the logo); buttons + news bar are both anchored to the hero's bottom edge so they always line up */


@media (orientation:landscape) and (max-height:420px){
 html body.xi-home-page .hero h1 .xi-h1br:not(#xi-x){display:inline!important}
 html body.xi-home-page .hero .hero-inner:not(#xi-x){position:static!important}
 html body.xi-home-page .hero .hero-inner .xi-hero-actions:not(#xi-x){position:absolute!important;left:24px;bottom:24px;margin:0!important;z-index:3}
 html body.xi-home-page .hero > .xi-hero-news:not(#xi-x){translate:none!important;bottom:24px!important}
}
@media (orientation:landscape) and (max-height:300px){
 html body.xi-home-page .hero .hero-inner:not(#xi-x){padding-top:12px!important}
 html body.xi-home-page .hero .eyebrow:not(#xi-x){margin:0 0 4px!important}
 html body.xi-home-page .hero h1:not(#xi-x){font-size:24px!important;line-height:1.12!important;margin:0 0 5px!important}
 html body.xi-home-page .hero p:not(#xi-x){font-size:12px!important;line-height:1.35!important}
 html body.xi-home-page .hero .hero-inner .xi-hero-actions:not(#xi-x){bottom:14px}
 html body.xi-home-page .hero > .xi-hero-news:not(#xi-x){bottom:14px!important}}/* v256 home hero: the double arrow blinks/slides like the other pages' arrow (all widths where it shows) */


@media (max-width:1023px){
 html body.xi-home-page .hero > .xi-hero-swipe-hint img:not(#xi-x){filter:drop-shadow(0 1px 3px rgba(0,0,0,.7))!important;animation:xi-hint-207 2.4s ease-in-out infinite!important}
}
@media (prefers-reduced-motion:reduce){html body.xi-home-page .hero > .xi-hero-swipe-hint img:not(#xi-x){animation:none!important}}/* v256 phone portrait only: arrow sits in the gap between the paragraph and the buttons; news bar 18px lower so it no longer covers the watermark text */

@media (max-width:680px) and (orientation:portrait){
 html body.xi-home-page .hero > .xi-hero-swipe-hint:not(#xi-x){top:auto!important;bottom:172px!important}
 html body.xi-home-page .hero .xi-hero-news:not(#xi-x){translate:0 8px}
}/* v257 home double arrow: lighter shadow (the home banner is pale) */


@media (max-width:1023px){
 html body.xi-home-page .hero > .xi-hero-swipe-hint img:not(#xi-x){filter:drop-shadow(0 1px 2px rgba(0,0,0,.22))!important}
}/* v257 whole site: no press-and-hold image menu, no image dragging / selecting */

html body img:not(#xi-x),html body picture:not(#xi-x),html body a:has(>img):not(#xi-x){-webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important;-webkit-user-drag:none!important}/* v259 lightbox left/right arrows = the same arrows as the home featured works (round, soft blue-grey, glowing white chevron), with a larger invisible touch area */


html body .gallery-modal:not(.is-thumbnail-view) .gallery-image-stage > .gallery-prev:not(#xi-x),html body .gallery-modal:not(.is-thumbnail-view) .gallery-image-stage > .gallery-next:not(#xi-x){
 width:43px!important;height:43px!important;min-width:43px!important;min-height:43px!important;max-width:43px!important;max-height:43px!important;
 border:0!important;border-radius:50%!important;padding:0!important;
 background:rgba(115,143,164,.72)!important;background-image:none!important;
 box-shadow:0 2px 10px rgba(24,47,68,.14)!important;
 color:transparent!important;font-size:0!important;line-height:0!important;
 position:absolute!important;top:50%!important;overflow:visible!important;
 transform:translateY(-50%)!important;animation:none!important;opacity:1!important;
}
html body .gallery-modal:not(.is-thumbnail-view) .gallery-image-stage > .gallery-prev:not(#xi-x){left:10px!important;right:auto!important}
html body .gallery-modal:not(.is-thumbnail-view) .gallery-image-stage > .gallery-next:not(#xi-x){right:10px!important;left:auto!important}
html body .gallery-modal:not(.is-thumbnail-view) .gallery-image-stage > .gallery-prev:hover:not(#xi-x),html body .gallery-modal:not(.is-thumbnail-view) .gallery-image-stage > .gallery-next:hover:not(#xi-x){background:rgba(115,143,164,.82)!important;transform:translateY(-50%)!important}
html body .gallery-modal:not(.is-thumbnail-view) .gallery-image-stage > .gallery-prev::after,html body .gallery-modal:not(.is-thumbnail-view) .gallery-image-stage > .gallery-next::after{
 content:""!important;position:absolute!important;inset:7px!important;background-position:center!important;background-repeat:no-repeat!important;background-size:contain!important;pointer-events:none!important;
 animation:xi-top-white-glow 2.5s ease-in-out infinite!important;
}
html body .gallery-modal:not(.is-thumbnail-view) .gallery-image-stage > .gallery-prev::after{background-image:url('../assets/img/ui/arrow-left.svg')!important}
html body .gallery-modal:not(.is-thumbnail-view) .gallery-image-stage > .gallery-next::after{background-image:url('../assets/img/ui/arrow-right.svg')!important}
html body .gallery-modal:not(.is-thumbnail-view) .gallery-image-stage > .gallery-prev::before,html body .gallery-modal:not(.is-thumbnail-view) .gallery-image-stage > .gallery-next::before{content:"";position:absolute;inset:-10px}
@media(prefers-reduced-motion:reduce){html body .gallery-modal .gallery-image-stage > .gallery-prev::after,html body .gallery-modal .gallery-image-stage > .gallery-next::after{animation:none!important}}/* v260 news page tabs = the portfolio page tabs (same size, type, colours, corners, base line) */


html body .xnews-categories:not(#xi-x){gap:0!important;padding-left:0!important;border-bottom:2px solid rgb(84,113,138)!important;align-items:flex-end!important;overflow:visible!important}
html body .xnews-categories > button:not(#xi-x){
 box-sizing:border-box!important;flex:0 0 110px!important;width:110px!important;min-width:110px!important;height:38px!important;min-height:38px!important;
 margin:0 0 0 0!important;padding:4px 3px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
 font-size:16px!important;font-weight:500!important;line-height:23px!important;letter-spacing:normal!important;
 border:1px solid rgb(176,198,216)!important;border-bottom:0!important;border-radius:11px 11px 0 0!important;
 background:#fff!important;color:rgb(100,122,140)!important;box-shadow:none!important;white-space:nowrap!important}
html body .xnews-categories > button[aria-pressed="true"]:not(#xi-x){
 background:rgb(0,68,126)!important;border-color:rgb(0,68,126)!important;color:#fff!important;font-weight:500!important;
 box-shadow:inset 0 2px 0 rgba(255,255,255,.25)!important}
@media (max-width:610px){
 html body .xnews-categories:not(#xi-x){border-bottom:1px solid rgb(129,152,171)!important}
 html body .xnews-categories > button:not(#xi-x){flex:0 0 min(110px,calc((100vw - 122px)/4))!important;width:min(110px,calc((100vw - 122px)/4))!important;min-width:0!important;height:34px!important;min-height:34px!important;padding:7px 1px!important;
  font-size:clamp(9px,2.4vw,11px)!important;line-height:1.2!important;letter-spacing:-.35px!important;border-color:rgb(216,224,232)!important;color:rgb(101,116,131)!important}
 html body .xnews-categories > button[aria-pressed="true"]:not(#xi-x){border-color:rgb(0,68,126)!important;color:#fff!important;box-shadow:none!important}}/* v260 intermediate widths, like the portfolio tabs */


@media (min-width:480px) and (max-width:767px) and (orientation:portrait),(min-width:611px) and (max-width:767px){
 html body .xnews-categories:not(#xi-x){border-bottom:1px solid rgb(129,152,171)!important}
}
@media (min-width:611px) and (max-width:767px) and (orientation:portrait){
 html body .xnews-categories > button:not(#xi-x){flex:0 0 110px!important;width:110px!important;min-width:110px!important;height:37px!important;min-height:37px!important;padding:8px 1px!important;font-size:12px!important;line-height:1.2!important;letter-spacing:-.3px!important}}/* landscape phones */

@media (orientation:landscape) and (max-height:500px) and (max-width:899px){
 html body .xnews-categories:not(#xi-x){border-bottom:2px solid rgb(84,113,138)!important}
 html body .xnews-categories > button:not(#xi-x){flex:0 0 calc((100vw - 122px)/4)!important;width:calc((100vw - 122px)/4)!important;min-width:0!important;height:37px!important;min-height:37px!important;padding:8px 1px!important;font-size:12px!important;line-height:1.2!important;letter-spacing:normal!important;border-color:rgb(176,198,216)!important;color:rgb(100,122,140)!important}
 html body .xnews-categories > button[aria-pressed="true"]:not(#xi-x){border-color:rgb(0,68,126)!important;color:#fff!important}
}/* v260 wide short landscape (tablet-landscape compact tabs, like the portfolio) */

@media (orientation:landscape) and (max-height:500px) and (min-width:900px) and (pointer:coarse){
 html body .xnews-categories:not(#xi-x){border-bottom-width:0!important}
 html body .xnews-categories > button:not(#xi-x){flex:0 0 76px!important;width:76px!important;min-width:76px!important;height:27px!important;min-height:27px!important;padding:5px 13px!important;font-size:12px!important;line-height:1.2!important}
}/* v261 portfolio page, desktop / large tablets / tablet landscape: the category chips and the 4 tabs stay pinned under the header while the works scroll (same as phones) */


@media (min-width:1000px){
 html body.portfolio-page .xi-sticky-gallery-nav:not(#xi-x),
 html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav:not(#xi-x){
  position:sticky!important;top:var(--xi-measured-header-height,var(--xi-sticky-header-height,74px))!important;z-index:2100!important;
  background:rgb(243,247,250)!important}
}/* v262 pinned category/tab block: no shadow at its left/right sides (the cards' own shadows no longer peek out beside it); the only shadow is a soft one under the long base line */


html body.portfolio-page .xi-sticky-gallery-nav:not(#xi-x){
 box-shadow:-28px 0 0 0 rgb(243,247,250),28px 0 0 0 rgb(243,247,250),0 9px 9px -7px rgba(40,60,80,.30)!important}/* v263 first entry: same gap above thumbnails as after switching tabs */


@media(max-width:900px){
 html body.portfolio-page:not(.xi-category-view) .xi-gallery-panel:not(#xi-x){padding-top:16px!important}
}/* v264 category view: same background as the portfolio home (no white/blue patches) */


html body.portfolio-page.xi-category-view .page-content:not(#xi-x),html body.portfolio-page.xi-category-view .xi-gallery-panel:not(#xi-x),html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav:not(#xi-x),html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x){background:rgb(243,247,250)!important}
html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x){background:transparent!important}/* v265 active chip must not be clipped */

html body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x){overflow:visible!important;padding-bottom:4px!important;position:relative!important;z-index:2!important}/* v266 category view: 16px gap above thumbnails on phones (same as portfolio home) */


@media (max-width:680px) and (orientation:portrait),(orientation:landscape) and (max-height:420px){
 html body.portfolio-page.xi-category-view .xi-gallery-panel .work-grid:not(#xi-x){margin-top:16px!important;padding-top:0!important}
}/* v267 thumbnail pager: arrows always visible; with many pages numbers collapse to 1 … n … last */


.gallery-thumb-pagination .gallery-page-dots{color:rgba(255,255,255,.7);font-size:14px;line-height:1;padding:0 1px;align-self:center}
.gallery-thumb-pagination .gallery-page-button:first-child,.gallery-thumb-pagination .gallery-page-button:last-child{opacity:1!important;visibility:visible!important}
.gallery-thumb-pagination .gallery-page-button:disabled:first-child,.gallery-thumb-pagination .gallery-page-button:disabled:last-child{opacity:.45!important}/* v268 thumbnail view: round side arrows (same look as the image arrows) when a category has 2+ pages */


.gallery-thumbnail-view{position:relative}
.gallery-thumbnail-view .gallery-thumb-side{position:absolute;top:44%;transform:translateY(-50%);z-index:6;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(255,255,255,.45);background:rgba(110,125,140,.78);color:#fff;font-size:28px;line-height:1;padding:0 0 3px;cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none}
.gallery-thumbnail-view .gallery-thumb-side[hidden]{display:none!important}
.gallery-thumbnail-view .gallery-thumb-side:hover{background:rgba(135,152,168,.92)}
@media(max-width:680px){.gallery-thumbnail-view .gallery-thumb-side{width:38px;height:38px;font-size:24px}}/* v269 thumbnail side arrows: identical artwork/glow to the home featured-works arrows */


.gallery-thumbnail-view .gallery-thumb-side{width:43px!important;height:43px!important;padding:0!important;border:0!important;font-size:0!important;color:transparent!important;background:rgba(115,143,164,.72)!important;box-shadow:0 2px 10px rgba(24,47,68,.14)!important;-webkit-touch-callout:none}
.gallery-thumbnail-view .gallery-thumb-side:hover{background:rgba(115,143,164,.82)!important}
.gallery-thumbnail-view .gallery-thumb-side::after{content:"";position:absolute;inset:7px;background-position:center;background-repeat:no-repeat;background-size:contain;pointer-events:none;animation:xi-top-white-glow 2.5s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.gallery-thumbnail-view .gallery-thumb-side::after{animation:none}}/* v270 news sticky tabs: small white gap above (not glued to the header line), no side shadows, white background, shadow only below */


html body .xnews-page .xnews-controls:not(#xi-x){
 top:calc(var(--xi-news-sticky-top,74px) + 8px)!important;
 background:#fff!important;border-radius:0!important;
 box-shadow:0 -9px 0 0 #fff,0 9px 8px -8px rgba(25,56,84,.22)!important}
@media(min-width:681px){html body .xnews-page .xnews-controls:not(#xi-x){top:calc(var(--xi-news-sticky-top,82px) + 8px)!important}}
html body .xnews-page .xnews-categories:not(#xi-x){background:#fff!important}
html body .xnews-page .xnews-toolbar:not(#xi-x){background:#fff!important;box-shadow:none!important}/* v275 desktop: About/Contact body text gets breathing room below the hero (also on short laptop screens); About studio photo shows more of the picture (less top crop) */


@media (min-width:900px){
 html body:not(.portfolio-page) .page-hero + .page-content:not(.xnews-page):not(#xi-x){padding-top:44px!important}
 html body .page-content > .container.split:not(#xi-x){align-items:start!important}
 html body .visual-panel.xi-studio-photo:not(#xi-x){height:auto!important;min-height:0!important;aspect-ratio:4/3!important;background-position:center top!important;margin-top:0!important}
}/* v276 desktop: thinner (1px) blue base line under the tabs (portfolio + news) */


@media (min-width:1000px){
 html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky .xi-work-modes:not(#xi-x),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x),
 html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x),
 html body .xnews-categories:not(#xi-x){border-bottom-width:1px!important}
}/* v277 home hero "探索作品集": restore the breathing glow (button now lives in .xi-hero-actions) and give it a dreamy blue-violet gradient */


html body.xi-home-page .hero .xi-hero-actions > a.button[href="portfolio.html"]:not(#xi-x){
 background:linear-gradient(135deg,#4d86e0 0%,#6f66e6 52%,#a46be3 100%)!important;
 border-color:transparent!important;color:#fff!important;
 position:relative;isolation:isolate;
 animation:xiHeroCtaGlow 1.85s ease-in-out infinite!important}
@keyframes xiHeroCtaGlow{
 0%,100%{box-shadow:0 0 0 1px rgba(120,130,235,.22),0 0 6px rgba(120,140,240,.30),0 2px 8px rgba(60,70,140,.14)}
 50%{box-shadow:0 0 0 3px rgba(140,120,240,.30),0 0 16px 3px rgba(130,120,245,.62),0 0 28px 6px rgba(170,110,235,.30),0 2px 8px rgba(60,70,140,.16)}}
@media(prefers-reduced-motion:reduce){html body.xi-home-page .hero .xi-hero-actions > a.button[href="portfolio.html"]:not(#xi-x){animation:none!important;box-shadow:0 0 0 2px rgba(140,120,240,.28),0 0 12px rgba(130,120,245,.45)!important}}/* v279 home hero: a bit more space between "探索作品集" and "洽詢設計服務" */


html body.xi-home-page .hero .xi-hero-actions > a.button + a.button:not(#xi-x){margin-left:14px!important}
@media(min-width:700px){html body.xi-home-page .hero .xi-hero-actions > a.button + a.button:not(#xi-x){margin-left:18px!important}}
@media (orientation:landscape) and (max-height:420px){html body.xi-home-page .hero .xi-hero-actions:not(#xi-x){gap:6px!important}html body.xi-home-page .hero .xi-hero-actions > a.button + a.button:not(#xi-x){margin-left:8px!important}}/* v280 portfolio: 1px blue base line on every device; phone-landscape 3/6 density now uses the desktop button look with the "作品展示欄數" label */


html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x),html body.portfolio-page .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x),html body.portfolio-page .xi-sticky-gallery-nav.xi-v049-sticky > .xi-work-modes:not(#xi-x){border-bottom-width:1px!important}
@media (orientation:landscape) and (max-height:500px){
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x){display:flex!important;flex-flow:row nowrap!important;gap:10px!important;align-items:flex-end!important}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x){flex:1 1 0!important;min-width:0!important;width:auto!important;max-width:none!important}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x){border-bottom:1px solid #54718a!important}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x){border-bottom:0!important;justify-content:stretch!important;align-items:stretch!important}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes > *:not(#xi-x){flex:1 1 0!important;min-width:0!important;width:auto!important}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x){flex:0 0 auto!important;display:flex!important;align-items:center!important;margin-bottom:4px!important;visibility:visible!important;opacity:1!important}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait:not(#xi-x),html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop:not(#xi-x){display:none!important}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x){display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:6px!important;visibility:visible!important;opacity:1!important;position:static!important;white-space:nowrap!important}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x)::before{content:"作品展示欄數";font-size:12px;line-height:26px;color:#657e95;margin-right:4px;font-weight:400}
 html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x)::before{content:none!important;display:none!important}
 html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x){border-bottom:0!important;width:auto!important}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-btn:not(#xi-x){width:36px!important;height:26px!important;min-width:36px!important;max-width:36px!important;flex:0 0 36px!important;box-sizing:border-box!important;padding:0!important;display:grid!important;place-items:center!important;border:1px solid #c6d3de!important;border-radius:7px!important;background:linear-gradient(#fff 0%,#f4f6f8 100%)!important;color:#9bafbf!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.95),0 2px 5px rgba(32,61,85,.15)!important;opacity:1!important;animation:none!important}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-btn.active:not(#xi-x){border-color:#8aaac4!important;background:linear-gradient(#e9eff4,#fff)!important;color:#1679b7!important;box-shadow:inset 0 2px 4px rgba(53,87,112,.15),0 1px 4px rgba(48,98,137,.13)!important}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi058-bars:not(#xi-x){display:none!important}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi058-icon:not(#xi-x){display:grid!important;place-items:center!important;width:auto!important;height:auto!important}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi058-digit:not(#xi-x){display:block!important;position:static!important;font-size:14px!important;font-weight:600!important;line-height:14px!important;color:inherit!important;transform:none!important;}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-btn.active .xi058-digit:not(#xi-x){color:#004f8f!important;animation:xi053-selected-numeral-pulse 1.9s ease-in-out infinite!important}}
@media (max-width:767.98px){
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x){display:flex!important;flex-flow:row nowrap!important;gap:10px!important;align-items:flex-end!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x){flex:1 1 0!important;min-width:0!important;width:auto!important;max-width:none!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x){border-bottom:1px solid #54718a!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x){border-bottom:0!important;justify-content:stretch!important;align-items:stretch!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes > *:not(#xi-x){flex:1 1 0!important;min-width:0!important;width:auto!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x){flex:0 0 auto!important;display:flex!important;align-items:center!important;margin-bottom:4px!important;visibility:visible!important;opacity:1!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait:not(#xi-x),html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop:not(#xi-x){display:none!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x){display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:6px!important;visibility:visible!important;opacity:1!important;position:static!important;white-space:nowrap!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x)::before{content:"作品展示欄數";font-size:12px;line-height:26px;color:#657e95;margin-right:4px;font-weight:400}
 html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x)::before{content:none!important;display:none!important}
 html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x){border-bottom:0!important;width:auto!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-btn:not(#xi-x){width:36px!important;height:26px!important;min-width:36px!important;max-width:36px!important;flex:0 0 36px!important;box-sizing:border-box!important;padding:0!important;display:grid!important;place-items:center!important;border:1px solid #c6d3de!important;border-radius:7px!important;background:linear-gradient(#fff 0%,#f4f6f8 100%)!important;color:#9bafbf!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.95),0 2px 5px rgba(32,61,85,.15)!important;opacity:1!important;animation:none!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-btn.active:not(#xi-x){border-color:#8aaac4!important;background:linear-gradient(#e9eff4,#fff)!important;color:#1679b7!important;box-shadow:inset 0 2px 4px rgba(53,87,112,.15),0 1px 4px rgba(48,98,137,.13)!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi058-bars:not(#xi-x){display:none!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi058-icon:not(#xi-x){display:grid!important;place-items:center!important;width:auto!important;height:auto!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi058-digit:not(#xi-x){display:block!important;position:static!important;font-size:14px!important;font-weight:600!important;line-height:14px!important;color:inherit!important;transform:none!important;}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-btn.active .xi058-digit:not(#xi-x){color:#004f8f!important;animation:xi053-selected-numeral-pulse 1.9s ease-in-out infinite!important}}

@media (orientation:landscape) and (max-height:500px){html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-btn[data-columns]:not(#xi-x){width:36px!important;min-width:36px!important;max-width:36px!important;flex:0 0 36px!important}}
@media (max-width:767.98px){html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-btn[data-columns]:not(#xi-x){width:36px!important;min-width:36px!important;max-width:36px!important;flex:0 0 36px!important}}/* v282 landscape 3/6: identical footprint (same border colour family and outer shadow) so the selected box never looks bigger */


@media (orientation:landscape) and (max-height:500px){
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-btn:not(.active):not(#xi-x){border-color:#b4c5d4!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.95),0 1px 4px rgba(32,61,85,.14)!important}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-btn.active:not(#xi-x){border-color:#7ea3c0!important;box-shadow:inset 0 2px 4px rgba(53,87,112,.15),0 1px 4px rgba(32,61,85,.14)!important;transform:none!important;outline:0!important}
}
@media (max-width:767.98px){
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-btn:not(.active):not(#xi-x){border-color:#b4c5d4!important;box-shadow:inset 0 1px 1px rgba(255,255,255,.95),0 1px 4px rgba(32,61,85,.14)!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-btn.active:not(#xi-x){border-color:#7ea3c0!important;box-shadow:inset 0 2px 4px rgba(53,87,112,.15),0 1px 4px rgba(32,61,85,.14)!important;transform:none!important;outline:0!important}}/* v283 news: 1px blue base line under the tabs on every device */


html body .xnews-page .xnews-categories:not(#xi-x),html body .xnews-categories:not(#xi-x){border-bottom-width:1px!important}/* v284 mouse-desktop window dragging: one stable control set. From 600px up the desktop density group (label + 2/3/4/6) is always used; the phone variants never appear while resizing */


@media (min-width:700px){
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x),
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait:not(#xi-x){display:none!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop:not(#xi-x){display:flex!important;align-items:center!important;gap:12px!important;visibility:visible!important;opacity:1!important;position:static!important;white-space:nowrap!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x){display:flex!important;flex:0 0 auto!important;align-items:center!important}
}/* v284b mouse window 481-767px: use the single compact 3/6 control (same look as phone landscape), never the 1/2/3 or 2/3/4/6 variants */


@media (max-width:767.98px){
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-portrait:not(#xi-x),
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop:not(#xi-x){display:none!important}
}
@media (max-width:767.98px){
 html.xi-desk body.portfolio-page[data-grid-columns="3"] .xi-gallery-panel .work-grid:not(#xi-x){grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html.xi-desk body.portfolio-page[data-grid-columns="6"] .xi-gallery-panel .work-grid:not(#xi-x){grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:6px!important}}/* v285 mouse windows, 1920px as the reference: one control set whose type size scales smoothly (never jumps), the 3/6 columns always stay visible and wrap under the tabs instead of hiding behind them */


@media all{
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters .filter-button:not(#xi-x){font-size:clamp(11px,calc(11px + (100vw - 480px)*.00455),13px)!important;min-height:clamp(26px,calc(26px + (100vw - 480px)*.0092),31px)!important;line-height:1.2!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-work-mode:not(#xi-x){font-size:clamp(12px,calc(12px + (100vw - 480px)*.00735),16px)!important;min-height:clamp(32px,calc(32px + (100vw - 480px)*.011),38px)!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x){display:flex!important;flex-flow:row wrap!important;align-items:flex-end!important;justify-content:space-between!important;column-gap:12px!important;row-gap:6px!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x){flex:1 1 280px!important;min-width:0!important;max-width:440px!important;width:auto!important;margin:0!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x){flex:0 0 auto!important;margin-left:auto!important;display:flex!important;align-items:center!important;position:static!important;visibility:visible!important;opacity:1!important}
}
@media (max-width:767.98px){
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x){flex:1 1 100%!important;max-width:none!important}}
@media all{
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x){width:auto!important;min-width:0!important;max-width:none!important;overflow:visible!important;height:auto!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x){flex-wrap:nowrap!important;white-space:nowrap!important}}/* v286 fine-pointer windows: desktop density group is fully styled at every width >=768 (no fallback to unstyled browser buttons); spacing fixed to one set of values */

@media (min-width:700px){
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop:not(#xi-x){display:flex!important;align-items:center!important;gap:12px!important;white-space:nowrap!important;visibility:visible!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-label:not(#xi-x){display:inline-flex!important;align-items:center!important;height:26px!important;margin:0!important;padding:0!important;font-size:12px!important;line-height:1!important;letter-spacing:.04em!important;color:#657e95!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons:not(#xi-x){display:flex!important;align-items:center!important;gap:6px!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons>button:not(#xi-x){appearance:none!important;-webkit-appearance:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 34px!important;width:34px!important;min-width:34px!important;height:26px!important;min-height:26px!important;margin:0!important;padding:0!important;font:inherit!important;font-size:14px!important;border:1px solid #c6d3de!important;border-radius:7px!important;background:linear-gradient(180deg,#fff,#f4f6f8)!important;box-shadow:0 2px 5px rgba(32,61,85,.15)!important;color:#62788c!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons>button:is(.active,[aria-pressed="true"]):not(#xi-x){border-color:#83afcf!important;background:linear-gradient(#e8f3fb,#fff)!important;color:#004f8f!important;font-weight:600!important}
}
@media all{
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x){row-gap:8px!important;column-gap:8px!important;margin-bottom:12px!important;padding-top:0!important;padding-bottom:0!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x){margin-top:0!important;margin-bottom:0!important}}/* v287 mouse windows: one row (tabs + columns box) down to 600px so the blue line always sits under the tabs; below 600 the columns box goes ABOVE the tabs; chip spacing symmetric */

@media all{
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav:not(#xi-x){gap:0!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x){margin:0 0 14px!important;padding:0!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x){flex-wrap:nowrap!important;align-items:flex-end!important;column-gap:10px!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x){flex:1 1 0!important;max-width:440px!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x){margin:0 0 4px auto!important;flex:0 0 auto!important}
}
@media (max-width:767.98px){
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x){max-width:none!important}}
@media (max-width:599.98px){
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x){flex-wrap:wrap!important;row-gap:6px!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x){order:-1!important;flex:0 0 100%!important;justify-content:flex-end!important;margin:0!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x){order:1!important;flex:1 1 100%!important}}/* v288 1920 reference restored from the user's known-good desktop screenshot: chips 12px/28px high, hero->chips 16, chips->tabs 24, columns box 10px above the line, line->cards 18 */

@media all{
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters .filter-button:not(#xi-x){font-size:clamp(11px,calc(11px + (100vw - 480px)*.0007),12px)!important;min-height:28px!important;height:28px!important;padding-top:0!important;padding-bottom:0!important;display:inline-flex!important;align-items:center!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x){margin-bottom:24px!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x){margin-bottom:10px!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x){margin-bottom:2px!important}
}
@media (max-width:599.98px){
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x){margin-bottom:0!important}}
@media all{
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x){margin-top:8px!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x){margin-bottom:4px!important}}
@media (min-width:700px){
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-label:not(#xi-x){padding-top:0!important;box-sizing:border-box!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons .xi-density-digit:not(#xi-x){line-height:1!important;height:auto!important;display:block!important;transform:translateY(-1px)!important}}
@media (max-width:420.98px){
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters .filter-button:not(#xi-x){padding-left:3px!important;padding-right:3px!important;font-size:10.5px!important;min-width:0!important;overflow:hidden!important;white-space:nowrap!important}}/* v295 hero double arrows: same absolute spot (right 50px, bottom 13px, 118x28) at every desktop width */

@media (min-width:1024px){
 html.xi-desk body section.page-hero > .xi-hero-swipe-hint:not(#xi-x){display:block!important;position:absolute!important;left:auto!important;top:auto!important;right:50px!important;bottom:13px!important;width:118px!important;height:28px!important;margin:0!important;transform:none!important;visibility:visible!important;opacity:1!important}
 html.xi-desk body section.page-hero > .xi-hero-swipe-hint img:not(#xi-x){width:118px!important;height:28px!important;display:block!important;max-width:none!important}
}/* v292 desktop windows: when the 9 category chips would wrap, use the phone-portrait matrix (home pill left, 4 per row); thumbnails always 18px under the blue line */


@media (max-width:860.98px){
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav > .portfolio-filters:not(#xi-x){display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:32px!important;gap:6px 6px!important;align-items:center!important;justify-content:stretch!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav > .portfolio-filters > .filter-button:not(#xi-x){width:auto!important;min-width:0!important;height:32px!important;min-height:32px!important;padding:0 2px!important;justify-content:center!important;white-space:nowrap!important;overflow:hidden!important;font-size:clamp(10.5px,1.6vw,12px)!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav > .portfolio-filters > .filter-button:first-child:not(#xi-x){grid-column:1!important;grid-row:1 / span 2!important;align-self:center!important}
}
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x){margin-bottom:2px!important}/* v293 desktop: shadow now starts exactly at the blue line (no margin under the row); thumbnail gap kept at 18px via the grid; header links lowered 2px to share the logo-text centre line */

html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x){margin-bottom:0!important}
html.xi-desk body.portfolio-page .xi-gallery-panel .work-grid:not(#xi-x){margin-top:2px!important}
@media (min-width:1024px){
 html.xi-desk body .site-header .nav-links:not(#xi-x),html.xi-desk body .site-header .xi-search-trigger:not(#xi-x){transform:translateY(2px)!important}}/* v294 hero title block shares the content container (width min(1126px, 100% - 48px), centred) so its left edge lines up with the logo and the content below */

@media (min-width:901px){
 html body .page-hero:not(.portfolio-category-hero) > .page-heading:not(#xi-x){width:min(1126px,calc(100% - 48px))!important;max-width:1126px!important;margin-left:max(24px,calc((100% - 1160px)/2 + 24px))!important;margin-right:0!important;flex:0 0 auto!important}
}/* v296 columns box sits 10px above the blue line at every desktop-window width (same as 1920) */


@media (min-width:600px){
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x){padding-bottom:0!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x){padding:0!important;margin-bottom:10px!important;align-self:flex-end!important;height:26px!important;min-height:0!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x){margin:0!important;padding:0!important;height:26px!important;align-items:center!important}
}/* v297 compact 3/6 group (desktop windows <768) uses exactly the 1920 desktop values: 34x26, border #c6d3de / #83afcf, same gradients, shadow, digit colours and the same pulse (1.6s) */


@media (max-width:767.98px){
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x):not(#xi-y):not(#xi-z)::before{font-size:12px!important;color:#657e95!important;letter-spacing:.04em!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x):not(#xi-y){gap:6px!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-btn:not(#xi-x):not(#xi-y):not(#xi-z){flex:0 0 34px!important;width:34px!important;min-width:34px!important;height:26px!important;border:1px solid #c6d3de!important;border-radius:7px!important;background:linear-gradient(180deg,#fff,#f4f6f8)!important;box-shadow:0 2px 5px rgba(32,61,85,.15)!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-btn.active:not(#xi-x):not(#xi-y):not(#xi-z){border-color:#83afcf!important;background:linear-gradient(#e8f3fb,#fff)!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-btn:not(.active) .xi058-digit:not(#xi-x):not(#xi-y):not(#xi-z){font-size:14px!important;font-weight:400!important;color:#9bafbf!important;animation:none!important;text-shadow:none!important}
 html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape .xi-grid-density-btn.active .xi058-digit:not(#xi-x):not(#xi-y):not(#xi-z){font-weight:600!important;color:#004f8f!important;animation:xi053-selected-numeral-pulse 1.6s ease-in-out infinite!important}
}/* v299 portfolio blue base line = news line at every width: 1px; below 768 the same lighter blue (#8198ab) the news tabs use */

html body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y){border-bottom-width:1px!important}
@media (max-width:767.98px){
 html body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y){border-bottom:1px solid rgb(129,152,171)!important}}/* v300 home: "理由。" never splits (no lone 由 on its own line); desktop windows 681-1023: double arrow sits above the news bar instead of on it */

.xi-nw{white-space:nowrap!important}
@media (min-width:681px) and (max-width:1023.98px){
 html.xi-desk body.xi-home-page .hero > .xi-hero-swipe-hint:not(#xi-x){top:auto!important;bottom:78px!important}}/* v301 home hero, desktop windows 681-767px: the news bar was a flex sibling that squeezed the text column to 180px (5-6 line headline, 850px tall hero). Use the same absolute bottom-right bar and a steady 330px text column as the wider layout */

@media (min-width:681px) and (max-width:767.98px){
 html.xi-desk body.xi-home-page .hero > .xi-hero-news:not(#xi-x):not(#xi-y){position:absolute!important;left:auto!important;right:24px!important;bottom:14px!important;top:auto!important;width:min(460px,calc(100% - 360px))!important;max-width:none!important;margin:0!important;translate:none!important}
 html.xi-desk body.xi-home-page .hero > .hero-inner:not(#xi-x):not(#xi-y){flex:0 0 auto!important;width:min(330px,100%)!important;max-width:330px!important;height:auto!important;margin:0 auto 0 0!important;left:0!important}
 html.xi-desk body.xi-home-page .hero .xi-hero-actions > *:not(#xi-x):not(#xi-y){margin-left:0!important}
 html.xi-desk body.xi-home-page .hero .xi-hero-actions:not(#xi-x):not(#xi-y){gap:12px!important;flex-wrap:wrap!important}
}/* v302 desktop windows: the double arrow shows on every page and every width (home included) and the pointer becomes the index-finger hand over it */

@media (min-width:1024px){
 html.xi-desk body.xi-home-page .hero > .xi-hero-swipe-hint:not(#xi-x):not(#xi-y){display:block!important;position:absolute!important;left:auto!important;top:auto!important;right:50px!important;bottom:78px!important;width:118px!important;height:28px!important;margin:0!important;transform:none!important;visibility:visible!important;opacity:1!important;z-index:6!important}
 html.xi-desk body.xi-home-page .hero > .xi-hero-swipe-hint img:not(#xi-x):not(#xi-y){width:118px!important;height:28px!important;display:block!important;max-width:none!important}
}
html.xi-desk .xi-hero-swipe-hint:not(#xi-x),html.xi-desk .xi-hero-swipe-hint *:not(#xi-x){cursor:pointer!important}
@media (min-width:1024px){
 html.xi-desk .xi-hero-swipe-hint > .xi012-hit:not(#xi-x):not(#xi-y){position:absolute!important;top:0!important;bottom:0!important;width:50%!important;height:100%!important;min-width:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;opacity:0!important;box-shadow:none!important}
 html.xi-desk .xi-hero-swipe-hint > .xi012-hit.prev:not(#xi-x):not(#xi-y){left:0!important;right:auto!important}
 html.xi-desk .xi-hero-swipe-hint > .xi012-hit.next:not(#xi-x):not(#xi-y){right:0!important;left:auto!important}}/* v303 desktop windows >=1024: the double-arrow slide animation (same as the phone/tablet version) on every page */

@media (min-width:1024px){
 html.xi-desk body section.page-hero > .xi-hero-swipe-hint img:not(#xi-x):not(#xi-y){filter:drop-shadow(0 1px 3px rgba(0,0,0,.7))!important;animation:xi-hint-207 2.4s ease-in-out infinite!important}
 html.xi-desk body.xi-home-page .hero > .xi-hero-swipe-hint img:not(#xi-x):not(#xi-y){filter:drop-shadow(0 1px 2px rgba(0,0,0,.22))!important;animation:xi-hint-207 2.4s ease-in-out infinite!important}
}
@media (min-width:1024px) and (prefers-reduced-motion:reduce){
 html.xi-desk body .xi-hero-swipe-hint img:not(#xi-x):not(#xi-y){animation:none!important}}/* v304 home: featured + latest side by side (>=1024px, phone-portrait layout inside each column) */

.xi-works-pair{display:block}
@media (min-width:1024px){
.xi-works-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 28px;width:min(1160px,100% - 48px);margin:0 auto;align-items:start}
html body .xi-works-pair .xi-showcase-section:not(#xi-x){padding-top:18px!important;padding-bottom:18px!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-showcase-section .container:not(#xi-x){display:block!important;column-gap:normal!important;padding-left:20px!important;padding-right:20px!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-showcase-section .xi-section-row:not(#xi-x){display:grid!important;flex-direction:column!important;align-items:center!important;column-gap:6px!important;row-gap:0px!important;margin-bottom:0px!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-showcase-section .xi-inline-section-title:not(#xi-x){display:flex!important;align-items:baseline!important;column-gap:5px!important;row-gap:5px!important;margin-bottom:5px!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-showcase-section h2:not(#xi-x){margin-top:0px!important;margin-bottom:0px!important;font-size:22px!important;line-height:27.5px!important}
html body .xi-works-pair .xi-showcase-section .xi-home-section-count:not(#xi-x){display:block!important;font-size:11px!important;line-height:19.25px!important;color:rgb(130, 147, 165)!important}
html body .xi-works-pair .xi-showcase-section .eyebrow:not(#xi-x){display:none!important;margin-bottom:4px!important;font-size:8px!important;line-height:9.6px!important;letter-spacing:0.64px!important}
html body .xi-works-pair .xi-showcase-section p:not(#xi-x){display:none!important;margin-top:4px!important;font-size:12px!important;line-height:17.4px!important}
html body .xi-works-pair .xi-showcase-section .xi-section-more:not(#xi-x){font-size:12px!important;line-height:16.8px!important}
html body .xi-works-pair .xi-showcase-section .xi-home-gallery:not(#xi-x){display:block!important;margin-top:0px!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-showcase-section .xi-home-gallery-top:not(#xi-x){align-self:auto!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-showcase-section .xi-home-gallery-heading:not(#xi-x){flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;column-gap:10px!important;row-gap:10px!important;font-size:14px!important;line-height:24.5px!important;flex-grow:1!important}
html body .xi-works-pair .xi-showcase-section .xi-home-gallery-title:not(#xi-x){font-size:13px!important;line-height:22.75px!important}
html body .xi-works-pair .xi-showcase-section .xi-home-gallery-category:not(#xi-x){padding-top:3px!important;padding-bottom:3px!important;padding-left:8px!important;padding-right:8px!important;font-size:11px!important;line-height:11px!important;color:rgb(93, 123, 148)!important;background-color:rgb(237, 243, 248)!important;text-align:left!important}
html body .xi-works-pair .xi-showcase-section .xi-home-gallery-stage:not(#xi-x){align-self:auto!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-showcase-section .xi-home-art-clip:not(#xi-x){font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-showcase-section .xi-home-gallery-backdrop:not(#xi-x){font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-showcase-section .xi-home-gallery-image:not(#xi-x){font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-showcase-section .xi-home-gallery-count:not(#xi-x){margin-top:8px!important;margin-bottom:2px!important;text-align:center!important}
html body .xi-works-pair .xi-showcase-section .xi-showcase-grid:not(#xi-x){font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-showcase-section .xi-home-infinite-rail:not(#xi-x){align-self:auto!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-recent-section:not(#xi-x){padding-top:18px!important;padding-bottom:22px!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-recent-section .container:not(#xi-x){display:block!important;column-gap:normal!important;padding-left:20px!important;padding-right:20px!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-recent-section .xi-section-row:not(#xi-x){display:grid!important;flex-direction:column!important;align-items:center!important;column-gap:6px!important;row-gap:0px!important;margin-bottom:0px!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-recent-section .xi-inline-section-title:not(#xi-x){display:flex!important;align-items:baseline!important;column-gap:5px!important;row-gap:5px!important;margin-bottom:5px!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-recent-section h2:not(#xi-x){margin-top:0px!important;margin-bottom:0px!important;font-size:22px!important;line-height:27.5px!important}
html body .xi-works-pair .xi-recent-section .xi-home-section-count:not(#xi-x){display:block!important;font-size:11px!important;line-height:19.25px!important;color:rgb(130, 147, 165)!important}
html body .xi-works-pair .xi-recent-section .eyebrow:not(#xi-x){display:none!important;margin-bottom:4px!important;font-size:8px!important;line-height:9.6px!important;letter-spacing:0.64px!important}
html body .xi-works-pair .xi-recent-section p:not(#xi-x){display:none!important;margin-top:4px!important;font-size:12px!important;line-height:17.4px!important}
html body .xi-works-pair .xi-recent-section .xi-section-more:not(#xi-x){font-size:12px!important;line-height:16.8px!important}
html body .xi-works-pair .xi-recent-section .xi-home-gallery:not(#xi-x){display:block!important;margin-top:0px!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-recent-section .xi-home-gallery-top:not(#xi-x){align-self:auto!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-recent-section .xi-home-gallery-heading:not(#xi-x){flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;column-gap:10px!important;row-gap:10px!important;font-size:14px!important;line-height:24.5px!important;flex-grow:1!important}
html body .xi-works-pair .xi-recent-section .xi-home-gallery-title:not(#xi-x){font-size:13px!important;line-height:22.75px!important}
html body .xi-works-pair .xi-recent-section .xi-home-gallery-category:not(#xi-x){padding-top:3px!important;padding-bottom:3px!important;padding-left:8px!important;padding-right:8px!important;font-size:11px!important;line-height:11px!important;color:rgb(93, 123, 148)!important;background-color:rgb(237, 243, 248)!important;text-align:left!important}
html body .xi-works-pair .xi-recent-section .xi-home-gallery-stage:not(#xi-x){align-self:auto!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-recent-section .xi-home-art-clip:not(#xi-x){font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-recent-section .xi-home-gallery-backdrop:not(#xi-x){font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-recent-section .xi-home-gallery-image:not(#xi-x){font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-recent-section .xi-home-gallery-count:not(#xi-x){margin-top:8px!important;margin-bottom:2px!important;text-align:center!important}
html body .xi-works-pair .xi-recent-section .xi-showcase-grid:not(#xi-x){font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-recent-section .xi-showcase-card:not(#xi-x){flex-direction:column!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .xi-recent-section .xi-home-infinite-rail:not(#xi-x){align-self:auto!important;font-size:14px!important;line-height:24.5px!important}
html body .xi-works-pair .container:not(#xi-x){width:100%!important;max-width:none!important;margin:0!important;padding-left:16px!important;padding-right:16px!important}
html body .xi-works-pair .xi-home-gallery-stage:not(#xi-x){width:100%!important;height:auto!important;aspect-ratio:350/320!important}
html body .xi-works-pair .xi-home-art-clip:not(#xi-x),html body .xi-works-pair .xi-home-gallery-backdrop:not(#xi-x),html body .xi-works-pair .xi-home-gallery-image:not(#xi-x){width:100%!important;height:100%!important}
html body .xi-works-pair .xi-home-gallery-heading:not(#xi-x){width:100%!important}}
@media (min-width:1024px){
html body .xi-works-pair section.section.section:not(#xi-x):not(#xi-y){background:transparent!important}
html body .xi-works-pair section .container .xi-section-row:not(#xi-x){display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 6px!important}
html body .xi-works-pair section .container .xi-section-row>div:not(#xi-x){flex:1 1 auto!important;min-width:0!important}
html body .xi-works-pair section .container .xi-inline-section-title:not(#xi-x){display:flex!important;align-items:baseline!important;gap:8px!important}
html body .xi-works-pair section .container .xi-section-more:not(#xi-x){display:block!important;flex:0 0 auto!important;white-space:nowrap!important;font-size:14px!important;margin:0!important}
html body .xi-works-pair .xi-home-gallery-count:not(#xi-x){text-align:center!important}}
@media (min-width:1024px){html body .xi-works-pair section .container .xi-home-gallery .xi-home-gallery-count:not(#xi-x){text-align:center!important;font-size:12px!important}}/* v306 category pages (>=768): tighter space above the 8-category pills and above the 3/6 column buttons */
@media (min-width:768px){
html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x):not(#xi-y){margin-top:2px!important;margin-bottom:3px!important}
}
/* v308 news reading view: desktop/tablet show longer articles before "read more" (phone unchanged: 540px) */
@media (min-width:768px){
.xnews-page[data-news-view="full"] .xnews-full-content.xnews-clamped:not(#xi-x){max-height:960px!important}
}
/* v309 news view buttons: no accidental text selection (blue block on titles) */
.xnews-page [data-news-view],.xnews-page [data-news-category]{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
/* v310 news: no blue flash on the title after switching reading/summary/list view */
.xnews-card.xi-view-focus>.xnews-title-button:not(#xi-x):not(#xi-y){animation:none!important;background:transparent!important}
/* v312 landscape phones (touch, short viewport): one-line hero title, portrait-style featured/latest sections, 3 services in one row, centered 4 quick cards */
@media (orientation:landscape) and (max-height:500px){
html:not(.xi-desk) body.xi-home-page .hero h1:not(#xi-x):not(#xi-y){white-space:nowrap!important;width:auto!important;max-width:none!important;font-size:22px!important;line-height:1.25!important}
html:not(.xi-desk) body.xi-home-page .hero h1 .xi-h1br:not(#xi-x){display:none!important}
html:not(.xi-desk) body.xi-home-page .hero h1 em:not(#xi-x){display:inline!important}
html:not(.xi-desk) body .xi-showcase-section .eyebrow:not(#xi-x):not(#xi-y),html:not(.xi-desk) body .xi-recent-section .eyebrow:not(#xi-x):not(#xi-y),
html:not(.xi-desk) body .xi-showcase-section .xi-section-row p:not(#xi-x):not(#xi-y),html:not(.xi-desk) body .xi-recent-section .xi-section-row p:not(#xi-x):not(#xi-y){display:none!important}
html:not(.xi-desk) body .xi-showcase-section h2:not(#xi-x):not(#xi-y),html:not(.xi-desk) body .xi-recent-section h2:not(#xi-x):not(#xi-y){font-size:22px!important;line-height:27.5px!important;margin-bottom:0!important}
html:not(.xi-desk) body .xi-showcase-section .xi-home-section-count:not(#xi-x):not(#xi-y),html:not(.xi-desk) body .xi-recent-section .xi-home-section-count:not(#xi-x):not(#xi-y){font-size:11px!important;line-height:19.25px!important;color:#8293a5!important}
html:not(.xi-desk) body .xi-showcase-section .xi-section-more:not(#xi-x):not(#xi-y),html:not(.xi-desk) body .xi-recent-section .xi-section-more:not(#xi-x):not(#xi-y){font-size:12px!important;line-height:16.8px!important}
html:not(.xi-desk) body .xi-showcase-section .xi-home-gallery-title:not(#xi-x):not(#xi-y),html:not(.xi-desk) body .xi-recent-section .xi-home-gallery-title:not(#xi-x):not(#xi-y){font-size:13px!important;line-height:22.75px!important}
html:not(.xi-desk) body .xi-showcase-section .xi-showcase-info:not(#xi-x):not(#xi-y),html:not(.xi-desk) body .xi-recent-section .xi-showcase-info:not(#xi-x):not(#xi-y){align-items:center!important;justify-content:space-between!important}
html:not(.xi-desk) body .xi-recent-section .xi-showcase-card:not(#xi-x):not(#xi-y){flex-direction:column!important}
html:not(.xi-desk) body .services:not(#xi-x):not(#xi-y){grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
html:not(.xi-desk) body .quick-pages-inner:not(#xi-x):not(#xi-y){grid-template-columns:repeat(4,minmax(0,min(154px,22vw)))!important;gap:12px!important;justify-content:center!important;margin-left:auto!important;margin-right:auto!important}
}

/* v313 hero spacing on landscape phones */
@media (orientation:landscape) and (max-height:500px){
html:not(.xi-desk) body.xi-home-page .hero h1:not(#xi-x):not(#xi-y){margin:12px 0 14px!important}
html:not(.xi-desk) body.xi-home-page .hero .eyebrow:not(#xi-x):not(#xi-y){margin-bottom:0!important}
html:not(.xi-desk) body.xi-home-page .hero-inner > p:not(#xi-x):not(#xi-y){margin-top:0!important;line-height:1.6!important}
}
/* v315 landscape phones: portfolio category pills use the 5-column grid (first pill spans 2 rows), same as the narrow-window layout */
@media (orientation:landscape) and (max-height:500px) and (max-width:860.98px){
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav > .portfolio-filters:not(#xi-x){display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-rows:32px!important;gap:6px 6px!important;align-items:center!important;justify-content:stretch!important}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav > .portfolio-filters > .filter-button:not(#xi-x){width:auto!important;min-width:0!important;height:32px!important;min-height:32px!important;padding:0 2px!important;justify-content:center!important;white-space:nowrap!important;overflow:hidden!important;font-size:clamp(10.5px,1.6vw,12px)!important}
 html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav > .portfolio-filters > .filter-button:first-child:not(#xi-x){grid-column:1!important;grid-row:1 / span 2!important;align-self:center!important}
}
/* v318 wide landscape phones / emulators (>=1024 css px, height<=500, not a desktop browser): show the 3/6 column group + label, nudge pill text down */
@media (orientation:landscape) and (max-height:500px) and (min-width:1024px){
html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density:not(#xi-x):not(#xi-y):not(#xi-z){display:flex!important;visibility:visible!important;opacity:1!important;position:static!important;width:auto!important;height:auto!important;overflow:visible!important;pointer-events:auto!important}
html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density .xi-grid-density-landscape:not(#xi-x):not(#xi-y):not(#xi-z){display:flex!important;visibility:visible!important;opacity:1!important;position:static!important;width:auto!important;height:26px!important;overflow:visible!important;pointer-events:auto!important;align-items:center!important;gap:6px!important}
html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density .xi-grid-density-landscape:not(#xi-x):not(#xi-y):not(#xi-z)::before{content:"作品展示欄數"!important;display:block!important;font-size:12px!important;line-height:26px!important;color:#657e95!important;margin-right:4px!important}
html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z){margin-bottom:0!important}
}
@media (orientation:landscape) and (max-height:500px){
html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav > .portfolio-filters > .filter-button:not(#xi-x):not(#xi-y){padding-top:6px!important;padding-bottom:4px!important}
}
/* v319 wide landscape phones, category pages: 3/6 group sits on the pills line (right side) instead of being pulled under the grid */
@media (orientation:landscape) and (max-height:500px) and (min-width:1024px){
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y){position:sticky!important}
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z){position:absolute!important;right:24px!important;top:2px!important;margin:0!important;height:32px!important;width:auto!important;display:flex!important;align-items:center!important;border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;z-index:3!important}
}
/* v320 category pages: gap between the controls line and the thumbnails. Tall windows already have ~18px; short windows (<=560px) had 0 */
@media (min-width:768px) and (max-height:560px){
html body.portfolio-page.xi-category-view .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z){margin-bottom:18px!important}
}
@media (orientation:landscape) and (max-height:500px) and (min-width:1024px){
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z){margin-bottom:18px!important}
}

/* v321 desktop windows 700-860px: pills (2 rows) no longer overlap the purple banner; "作品展示欄數" group keeps 10px under the pills and right-aligned; 700-767px uses the desktop 2/3/4/6 group instead of the phone 3/6 group */
@media (min-width:700px) and (max-width:860.98px){
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z){display:flex!important;flex-direction:column!important;align-items:stretch!important;margin:0!important}
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav > .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z){height:70px!important;min-height:70px!important;margin:9px 0 0!important}
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z),html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z){position:relative!important;display:flex!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:none!important;height:52px!important;min-height:0!important;max-height:none!important;margin:0!important;padding:7px 0 0!important;border-bottom:1px solid #54718a!important;justify-content:space-between!important;align-items:flex-end!important}
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x):not(#xi-y):not(#xi-z){display:none!important}
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop:not(#xi-x):not(#xi-y):not(#xi-z){display:flex!important;visibility:visible!important;opacity:1!important}
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x):not(#xi-y):not(#xi-z){margin:0 0 10px auto!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;height:26px!important;min-height:0!important}
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-desktop:not(#xi-x):not(#xi-y):not(#xi-z),html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-label:not(#xi-x):not(#xi-y):not(#xi-z),html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons:not(#xi-x):not(#xi-y):not(#xi-z){height:26px!important;min-height:26px!important;max-height:26px!important}
}
/* v321b desktop windows 481-699px (phone-style controls): 10px between pills and the 3/6 box, 18px between the line and the thumbnails */
@media (min-width:480.02px) and (max-width:699.98px){
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav > .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z){margin-bottom:10px!important}
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z){margin-bottom:18px!important}
}
@media (min-width:700px) and (max-width:767.98px){
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z){margin-bottom:18px!important}
}
@media (min-width:700px) and (max-width:860.98px) and (max-height:560px){
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z){margin-bottom:18px!important}
}
/* v322 desktop windows >=481px, category pages: the line->thumbnail gap is set in ONE place (panel padding 16 + grid 2 = 18px) so it no longer depends on window height */
@media (min-width:480.02px){
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){margin-bottom:0!important}
html.xi-desk body.portfolio-page.xi-category-view .xi-gallery-panel:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){margin-top:0!important;padding-top:16px!important}
html.xi-desk body.portfolio-page.xi-category-view .xi-gallery-panel .work-grid:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){margin-top:2px!important}
}
/* v322b desktop windows 481-699px: 3/6 box keeps ~11px above the line (same as the 2/3/4/6 box on wider windows) */
@media (min-width:480.02px) and (max-width:699.98px){
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){height:auto!important;min-height:0!important;padding-bottom:6px!important;box-sizing:content-box!important}
}
/* v323 desktop windows 481-699px: same crisp 1px blue line as wider windows, full width under the 3/6 box; 8px above / 10px below the box */
@media (min-width:480.02px) and (max-width:699.98px){
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav > .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){margin-bottom:0!important}
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w),html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){display:flex!important;width:100%!important;max-width:none!important;padding:8px 0 10px!important;border-bottom:1px solid #54718a!important;justify-content:flex-end!important;align-items:flex-end!important}
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){margin:0 0 0 auto!important;flex:0 0 auto!important}
}
@media (min-width:480.02px) and (max-width:699.98px){
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){box-sizing:border-box!important;height:45px!important;min-height:45px!important;max-height:45px!important;margin-top:0!important;margin-bottom:0!important}
}
@media (min-width:480.02px) and (max-width:699.98px){
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){flex-wrap:nowrap!important;align-content:flex-end!important}
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){order:0!important;flex:0 0 auto!important;margin:0 0 0 auto!important;height:26px!important}
}
/* v324 desktop windows 861-1199px (columns box on its own row): box sits 8px under the chips, like the 700-860px layout */
@media (min-width:861px) and (max-width:1199.98px){
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){margin-top:-10px!important}
}
/* v325 desktop windows 481-699px: show the "作品展示欄數" label in front of the 3/6 box (there is room) */
@media (min-width:480.02px) and (max-width:699.98px){
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w)::before{content:"作品展示欄數"!important;display:inline-block!important;font-size:12px!important;line-height:26px!important;letter-spacing:.04em!important;color:#657e95!important;margin-right:8px!important;font-weight:400!important;white-space:nowrap!important}
}
/* v326 desktop windows >=481px, category pages: hero -> first chip row is 18px at every width/height (page-content top padding removed, chip block carries the gap) */
@media (min-width:480.02px){
html.xi-desk body.portfolio-page.xi-category-view .page-content:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){padding-top:0!important}
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){margin-top:18px!important}
}
@media (min-width:861px) and (max-width:1199.98px){
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){margin-top:11.5px!important}
}
@media (min-width:480.02px){
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .portfolio-filters > .filter-button:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){top:0!important;bottom:auto!important}
}
/* v327 desktop windows >=481px, category hero: banner height and title/eyebrow sizes are fixed so dragging the window never changes them */
@media (min-width:480.02px){
html.xi-desk body.portfolio-page.xi-category-view .page-hero.portfolio-category-hero:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){height:60px!important;min-height:60px!important;max-height:60px!important;box-sizing:border-box!important}
html.xi-desk body.portfolio-page.xi-category-view .portfolio-category-hero .page-heading h1:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){font-size:20px!important;line-height:24px!important;letter-spacing:-.7px!important}
html.xi-desk body.portfolio-page.xi-category-view .portfolio-category-hero .page-heading .eyebrow:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){font-size:10px!important;line-height:18px!important;letter-spacing:1.8px!important}
}
@media (min-width:480.02px) and (max-width:680px){
html.xi-desk body.portfolio-page.xi-category-view .portfolio-category-hero > .page-heading:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){left:20px!important;margin-left:0!important}
}
@media (min-width:680.02px) and (max-width:899.98px){
html.xi-desk body.portfolio-page.xi-category-view .portfolio-category-hero > .page-heading:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){left:24px!important;margin-left:0!important}
}
/* v328 desktop windows >=481px: top bar is decided ONLY by window height (<=800px compact 49px / taller 74px), never by width or orientation, so dragging the window width never changes the logo or bar height; menu stays right-aligned next to the search icon until it turns into the hamburger */
@media (min-width:480.02px) and (max-height:800px){
html.xi-desk body .site-header .nav-wrap:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){height:49px!important;min-height:49px!important;max-height:49px!important;align-items:center!important}
html.xi-desk body .site-header .brand-logo:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){width:205px!important;height:42px!important;max-width:none!important}
}
@media (min-width:480.02px) and (min-height:801px){
html.xi-desk body .site-header .nav-wrap:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){height:73px!important;min-height:73px!important;max-height:73px!important;align-items:center!important}
html.xi-desk body .site-header .brand-logo:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){width:245px!important;height:58px!important;max-width:none!important}
}
@media (min-width:700px) and (max-width:949.98px){
html.xi-desk body .site-header .nav-links:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){margin-left:auto!important}
}
@media (min-width:700px) and (max-width:949.98px){
html.xi-desk body .site-header .xi-search-trigger:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){margin-left:0!important}
}
@media (min-width:480.02px) and (max-height:800px){
html.xi-desk body .site-header:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){height:49px!important;min-height:49px!important;max-height:49px!important}
}
@media (min-width:480.02px) and (min-height:801px){
html.xi-desk body .site-header:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){height:74px!important;min-height:74px!important;max-height:74px!important}
}
@media (min-width:700px) and (max-width:949.98px){
html.xi-desk body .site-header .nav-wrap:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){gap:0!important}
}
@media (min-width:1400px) and (max-height:800px){
html.xi-desk body .site-header .nav-links:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){gap:14px!important;column-gap:14px!important}
html.xi-desk body .site-header .nav-links > a:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){font-size:12px!important}
}
/* v329 desktop windows >=700px: the search icon glyph (not its 9px padding) ends at the content's right edge */
@media (min-width:700px){
html.xi-desk body .site-header .xi-search-trigger:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){margin-right:-9px!important}
}
@media (min-width:700px) and (max-width:1023.98px){
html.xi-desk body .site-header .xi-search-trigger:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){position:static!important;left:auto!important;right:auto!important;transform:translateY(2px)!important}
html.xi-desk body .site-header .nav-links:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){transform:translateY(2px)!important}
}
@media (min-width:680.02px) and (max-width:1023.98px){
html.xi-desk body .site-header .nav-wrap:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){padding-left:24px!important;padding-right:24px!important}
}
/* v330 desktop windows >=700px: columns box - inactive digits always the light colour (as on >=1024), digits no longer lifted, the 4 frames sit 1px higher so label, frames and digits share one centre line */
@media (min-width:700px){
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons > button:not(.active):not([aria-pressed="true"]) .xi-density-digit:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){color:#9bafbf!important}
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons .xi-density-digit:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){transform:none!important}
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .xi-desktop-density-buttons:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){transform:translateY(-1px)!important}
}

/* v331 desktop windows 861-1199px: the old short-window landscape rules (height<=500 / <=560) no longer move the columns box, chips or gap; every height uses the same layout (nominal values pinned) */
@media (min-width:861px) and (max-width:1199.98px){
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){display:flex!important;flex-direction:column!important;align-items:stretch!important;flex-wrap:nowrap!important}
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){display:flex!important;flex-wrap:nowrap!important;align-content:center!important;align-items:center!important;justify-content:flex-start!important;max-width:100%!important;min-height:41px!important;max-height:41px!important;margin-top:11.5px!important}
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .portfolio-filters > .filter-button:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){align-self:center!important;flex-shrink:0!important;min-width:0!important}
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){position:relative!important;top:0!important;left:0!important;right:0!important;bottom:0!important;display:flex!important;flex:0 0 auto!important;width:100%!important;min-width:0!important;max-width:100%!important;height:45px!important;min-height:45px!important;max-height:45px!important;padding:7px 0 0!important;border-bottom:1px solid #54718a!important;margin-top:-10px!important;margin-bottom:0!important;z-index:40!important;justify-content:space-between!important;align-items:flex-end!important}
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-desktop:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){justify-content:flex-end!important;min-width:246px!important;min-height:26px!important;max-height:26px!important;max-width:none!important}
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-desktop-density-buttons:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){align-self:flex-end!important;flex:0 0 156px!important;min-width:0!important;min-height:26px!important;max-height:26px!important}
html.xi-desk body.portfolio-page.xi-category-view .work-grid:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){column-gap:20px!important;row-gap:20px!important}
}

/* v331b desktop windows 481-699px: the phone-style rules that switched on at exactly 600px / portrait no longer change the chips (corner shape, letter-spacing) or the box row; same look from 481 to 699 */
@media (min-width:480.02px) and (max-width:699.98px){
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .portfolio-filters > .filter-button:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){border-radius:999px!important;letter-spacing:normal!important;max-height:none!important;justify-self:auto!important}
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){position:relative!important;top:0!important;left:0!important;right:0!important;bottom:0!important;z-index:40!important}
}

/* v332 desktop windows: (a) >=1200px the columns box now sits the same distance under the chips as at 861-1199px, so crossing 1200px no longer jumps; (b) 481-699px the 3/6 box is vertically centred between the chips and the blue line */
@media (min-width:1200px){
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t){margin-top:-3px!important;height:140px!important;min-height:140px!important;max-height:140px!important}
}
@media (min-width:480.02px) and (max-width:699.98px){
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t){padding-top:9px!important;padding-bottom:9px!important;box-sizing:border-box!important}
}

/* v333 desktop windows 700px and wider: one box-row recipe (45px: 9px above the box, 9px below it, then the blue line) in every width band, so dragging the window never changes the spacing around the 作品展示欄數 box */
@media (min-width:700px){
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s){height:45px!important;min-height:45px!important;max-height:45px!important;padding:10px 0 8px!important;box-sizing:border-box!important;align-items:center!important}
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row > .xi-grid-density:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s){margin:0 0 0 auto!important;align-self:center!important;transform:none!important;top:auto!important;position:static!important}
}
@media (min-width:700px) and (max-width:860.98px){
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s){margin-top:0!important}
}
@media (min-width:861px) and (max-width:1199.98px){
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s){margin-top:-9.5px!important}
}
@media (min-width:1200px){
html.xi-desk body.portfolio-page.xi-category-view .xi-sticky-gallery-nav > .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s){margin-top:-3px!important}
}

/* v335 desktop windows: no menu-panel fade/slide while the window is being dragged (removes the white line over the purple banner at the 680px switch) */
html.xi-desk.xi-resizing body .site-header .nav-links:not(#xi-x):not(#xi-y):not(#xi-z),
html.xi-desk.xi-resizing body .site-header .nav-links *:not(#xi-x):not(#xi-y):not(#xi-z),
html.xi-desk.xi-resizing body .site-header .menu-toggle:not(#xi-x):not(#xi-y):not(#xi-z){transition:none!important;animation:none!important}

/* v336 desktop windows >=481px, category pages: the 18px gap under the purple banner has the same light-blue background as the chip area (it showed white at 481-860px) */
@media (min-width:480.02px){
html.xi-desk body.portfolio-page.xi-category-view .page-content:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){display:flow-root!important;background-color:rgb(243,247,250)!important}
}

/* v338 desktop windows 681-699px: hamburger menu (same look as <=680px) so the top bar matches the 2-row chip layout below; copied from the <=680px header rules, desktop windows only */
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header:not(#xi-x):not(#xi-y){height:72px !important}
html.xi-desk .nav-wrap:not(#xi-x):not(#xi-y){padding:0 18px !important}
html.xi-desk .menu-toggle:not(#xi-x):not(#xi-y){display:block !important}
html.xi-desk .nav-links:not(#xi-x):not(#xi-y){display:none !important;position:absolute !important;top:71px !important;left:0 !important;right:0 !important;background:#fff !important;border-bottom:1px solid var(--line) !important;padding:12px 20px 20px !important;align-items:stretch !important;gap:0 !important;box-shadow:0 12px 18px rgba(20,35,50,.06) !important}
html.xi-desk .nav-links.open:not(#xi-x):not(#xi-y){display:flex !important;flex-direction:column !important}
html.xi-desk .nav-links a:not(#xi-x):not(#xi-y){padding:12px 3px !important;border-bottom:1px solid #eef1f4 !important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .nav-links:not(#xi-x):not(#xi-y){gap:0 !important}
html.xi-desk .nav-dropdown:not(#xi-x):not(#xi-y){display:block !important;border-bottom:1px solid #eef1f4 !important}
html.xi-desk .nav-dropdown-trigger:not(#xi-x):not(#xi-y){display:flex !important;width:100% !important;justify-content:space-between !important;padding:12px 3px !important}
html.xi-desk .nav-dropdown-trigger:not(#xi-x):not(#xi-y)::after{display:none !important}
html.xi-desk .nav-submenu:not(#xi-x):not(#xi-y){position:static !important;min-width:0 !important;padding:0 0 6px 12px !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;background:rgba(255,255,255,.70) !important;opacity:1 !important;visibility:visible !important;transform:none !important;display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:2px !important;max-height:0 !important;overflow:hidden !important;transition:max-height .32s ease,padding .32s ease !important}
html.xi-desk .nav-dropdown.open .nav-submenu:not(#xi-x):not(#xi-y),html.xi-desk .nav-dropdown:focus-within .nav-submenu:not(#xi-x):not(#xi-y){max-height:320px !important;padding:5px 0 9px 12px !important}
html.xi-desk .nav-submenu:not(#xi-x):not(#xi-y)::before{display:none !important}
html.xi-desk .nav-submenu a:not(#xi-x):not(#xi-y){white-space:normal !important;padding:8px 10px !important;font-size:13px !important}
html.xi-desk .nav-submenu a:hover:not(#xi-x):not(#xi-y){padding-left:13px !important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header:not(#xi-x):not(#xi-y){height:74px !important}
html.xi-desk .nav-wrap:not(#xi-x):not(#xi-y){padding:0 16px !important}
html.xi-desk .brand-logo:not(#xi-x):not(#xi-y){width:174px !important;height:54px !important;max-width:58vw !important}
html.xi-desk .nav-links:not(#xi-x):not(#xi-y){top:73px !important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header .brand-logo:not(#xi-x):not(#xi-y){width:160px !important;height:50px !important;max-width:55vw !important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header .brand-logo:not(#xi-x):not(#xi-y){width:34px !important;height:34px !important;flex-basis:34px !important}
html.xi-desk .site-header .brand-lockup:not(#xi-x):not(#xi-y){gap:6px !important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header .brand-logo:not(#xi-x):not(#xi-y){width:52px!important;height:48px!important;flex-basis:52px!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header .brand-logo:not(#xi-x):not(#xi-y){width:55px!important;height:50px!important;flex-basis:55px!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body:has(.portfolio-filters) .site-header:not(#xi-x):not(#xi-y){height:68px !important}
html.xi-desk body:has(.portfolio-filters) .nav-links:not(#xi-x):not(#xi-y){top:67px !important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header .nav-links:not(#xi-x):not(#xi-y){display:flex !important;flex-direction:column !important;max-height:0 !important;padding-top:0 !important;padding-bottom:0 !important;overflow:hidden !important;opacity:0 !important;visibility:hidden !important;pointer-events:none !important;transform:translateY(-12px) !important;transition:max-height .42s cubic-bezier(.22,.7,.25,1), opacity .28s ease, transform .38s cubic-bezier(.22,.7,.25,1), padding .35s ease, visibility 0s linear .42s !important}
html.xi-desk .site-header .nav-links.open:not(#xi-x):not(#xi-y){max-height:min(82dvh,740px) !important;overflow-y:auto !important;padding-top:12px !important;padding-bottom:20px !important;opacity:1 !important;visibility:visible !important;pointer-events:auto !important;transform:translateY(0) !important;transition:max-height .42s cubic-bezier(.22,.7,.25,1), opacity .28s ease, transform .38s cubic-bezier(.22,.7,.25,1), padding .35s ease, visibility 0s !important}
html.xi-desk .nav-links .nav-dropdown:not(#xi-x):not(#xi-y){display:block !important;width:100% !important}
html.xi-desk .nav-links .nav-dropdown-trigger:not(#xi-x):not(#xi-y){width:100% !important;justify-content:space-between !important;padding:12px 14px!important;border-radius:8px !important;transition:background-color .25s ease,color .25s ease !important}
html.xi-desk .nav-links .nav-dropdown.open>.nav-dropdown-trigger:not(#xi-x):not(#xi-y),html.xi-desk .nav-links .nav-dropdown-trigger.active:not(#xi-x):not(#xi-y){background:rgba(82,107,134,.13)!important;color:#354b63!important;font-weight:800!important;box-shadow:inset 3px 0 #526b86 !important}
html.xi-desk .nav-links .nav-dropdown-trigger:not(#xi-x):not(#xi-y)::after{display:none!important}
html.xi-desk .nav-links .nav-submenu a.is-current-category:not(#xi-x):not(#xi-y){background:rgba(82,107,134,.14)!important;color:#354b63!important;font-weight:700 !important;border-radius:7px !important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header:not(#xi-x):not(#xi-y),html.xi-desk body.portfolio-page .site-header:not(#xi-x):not(#xi-y){position:sticky!important;top:0!important;z-index:1100!important;transform:none!important;overflow:visible!important}
html.xi-desk .site-header .nav-wrap:not(#xi-x):not(#xi-y),html.xi-desk body.portfolio-page .site-header .nav-wrap:not(#xi-x):not(#xi-y){position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;transform:none!important;height:100%!important;overflow:visible!important}
html.xi-desk .site-header .menu-toggle:not(#xi-x):not(#xi-y),html.xi-desk body.portfolio-page .site-header .menu-toggle:not(#xi-x):not(#xi-y){position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;display:flex!important;align-items:center!important;justify-content:center!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;flex:0 0 52px!important;margin:0!important;padding:0!important;z-index:1102!important;isolation:isolate!important;pointer-events:auto!important;border:0!important;background:transparent!important;font-size:30px!important;line-height:1!important;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;touch-action:manipulation!important}
html.xi-desk .site-header .menu-toggle:not(#xi-x):not(#xi-y)::before{content:'' !important;position:absolute !important;inset:0 !important;z-index:-1 !important;pointer-events:none !important}
html.xi-desk .site-header .brand:not(#xi-x):not(#xi-y){position:relative!important;z-index:1!important;min-width:0!important;max-width:calc(100% - 64px)!important}
html.xi-desk .site-header .nav-links:not(#xi-x):not(#xi-y){z-index:1101!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header .menu-toggle:not(#xi-x):not(#xi-y),html.xi-desk body.portfolio-page .site-header .menu-toggle:not(#xi-x):not(#xi-y){box-sizing:border-box!important;position:relative!important;transform:none!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;margin:0!important;padding:0!important;line-height:1!important;touch-action:manipulation!important;-webkit-tap-highlight-color:transparent!important;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header .menu-toggle:not(#xi-x):not(#xi-y),html.xi-desk body.portfolio-page .site-header .menu-toggle:not(#xi-x):not(#xi-y){-webkit-appearance:none!important;appearance:none!important;position:relative!important;display:block!important;flex:0 0 52px!important;width:52px!important;height:52px!important;padding:0!important;margin:0!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#526b86!important;cursor:pointer!important;overflow:hidden!important;font-size:0!important;line-height:0!important;-webkit-tap-highlight-color:transparent!important;-webkit-user-select:none!important;user-select:none!important;touch-action:manipulation!important;z-index:1102!important}
html.xi-desk .site-header .menu-toggle:not(#xi-x):not(#xi-y)::before,html.xi-desk .site-header .menu-toggle:not(#xi-x):not(#xi-y)::after{content:''!important;position:absolute!important;pointer-events:none!important;left:12px!important;top:25px!important;width:28px!important;height:3px!important;border-radius:3px!important;background:#526b86!important;z-index:1!important;transform:none!important;transition:transform .22s ease,box-shadow .22s ease!important}
html.xi-desk .site-header .menu-toggle:not(#xi-x):not(#xi-y)::before{left:12px!important;top:17px!important;box-shadow:0 8px 0 #526b86,0 16px 0 #526b86!important}
html.xi-desk .site-header .menu-toggle:not(#xi-x):not(#xi-y)::after{display:none!important}
html.xi-desk .site-header .menu-toggle.is-open:not(#xi-x):not(#xi-y)::before{top:25px!important;transform:rotate(45deg)!important;box-shadow:none!important}
html.xi-desk .site-header .menu-toggle.is-open:not(#xi-x):not(#xi-y)::after{display:block!important;left:12px!important;top:25px!important;transform:rotate(-45deg)!important}
html.xi-desk .site-header .menu-toggle:focus-visible:not(#xi-x):not(#xi-y){outline:2px solid #526b86!important;outline-offset:2px!important}
html.xi-desk .site-header .menu-toggle:focus:not(:focus-visible):not(#xi-x):not(#xi-y){outline:none!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header .nav-wrap:not(#xi-x):not(#xi-y){transform:none!important;filter:none!important;perspective:none!important}
html.xi-desk .site-header .menu-toggle:not(#xi-x):not(#xi-y),html.xi-desk body.portfolio-page .site-header .menu-toggle:not(#xi-x):not(#xi-y){-webkit-tap-highlight-color:rgba(0,0,0,0)!important;-webkit-touch-callout:none!important;-webkit-user-select:none!important;user-select:none!important;touch-action:manipulation!important;outline:none !important;transform:none!important;isolation:isolate!important}
html.xi-desk .site-header .menu-toggle:focus:not(:focus-visible):not(#xi-x):not(#xi-y){outline:none!important}
html.xi-desk .site-header .menu-toggle:focus-visible:not(#xi-x):not(#xi-y){outline:2px solid #526b86!important;outline-offset:2px!important}
html.xi-desk .site-header .menu-toggle:not(#xi-x):not(#xi-y)::before,html.xi-desk .site-header .menu-toggle:not(#xi-x):not(#xi-y)::after{pointer-events:none!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header .menu-toggle:not(#xi-x):not(#xi-y),html.xi-desk body.portfolio-page .site-header .menu-toggle:not(#xi-x):not(#xi-y){position:relative!important;inset:auto!important;transform:none!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 52px!important;width:52px!important;height:52px!important;padding:0!important;margin:0!important;border:0!important;border-radius:12px!important;background:transparent!important;overflow:visible!important;isolation:auto!important;-webkit-tap-highlight-color:transparent!important;touch-action:manipulation!important;-webkit-user-select:none!important;user-select:none!important}
html.xi-desk .site-header .menu-toggle:not(#xi-x):not(#xi-y)::before,html.xi-desk .site-header .menu-toggle:not(#xi-x):not(#xi-y)::after{content:none!important;display:none!important;box-shadow:none!important}
html.xi-desk .site-header .menu-toggle .xi-menu-icon:not(#xi-x):not(#xi-y){display:block!important;position:static!important;width:32px!important;height:32px!important;flex:0 0 32px!important;overflow:visible!important;pointer-events:none!important;stroke:#526b86 !important;stroke-width:2.6 !important;stroke-linecap:round !important;fill:none !important}
html.xi-desk .site-header .menu-toggle .xi-menu-cross:not(#xi-x):not(#xi-y){display:none !important}
html.xi-desk .site-header .menu-toggle.is-open .xi-menu-bars:not(#xi-x):not(#xi-y){display:none !important}
html.xi-desk .site-header .menu-toggle.is-open .xi-menu-cross:not(#xi-x):not(#xi-y){display:block !important}
html.xi-desk .site-header .nav-links .nav-dropdown .nav-submenu:not(#xi-x):not(#xi-y){visibility:hidden!important;opacity:0!important;max-height:0!important;padding-top:0!important;padding-bottom:0!important;transform:none!important;overflow:hidden!important;pointer-events:none!important;transition:max-height .32s ease,padding .32s ease,opacity .2s ease!important}
html.xi-desk .site-header .nav-links .nav-dropdown.open>.nav-submenu:not(#xi-x):not(#xi-y){visibility:visible!important;opacity:1!important;max-height:420px!important;padding:8px 0 12px 12px!important;pointer-events:auto!important}
html.xi-desk .site-header .nav-links .nav-dropdown .nav-submenu:not(#xi-x):not(#xi-y)::before{display:none!important}
html.xi-desk .site-header .nav-links .nav-dropdown .nav-submenu a:not(#xi-x):not(#xi-y){-webkit-tap-highlight-color:transparent!important}
html.xi-desk .site-header .nav-dropdown-trigger:not(#xi-x):not(#xi-y),html.xi-desk .site-header .menu-toggle:not(#xi-x):not(#xi-y){-webkit-touch-callout:none!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header .nav-links > a.xi-current-page:not(#xi-x):not(#xi-y),html.xi-desk .site-header .nav-links > .nav-dropdown.xi-current-page > .nav-dropdown-trigger:not(#xi-x):not(#xi-y){background:rgba(82,107,134,.13)!important;color:#354b63!important;box-shadow:inset 3px 0 #526b86!important;border-radius:8px!important;font-weight:800!important}
html.xi-desk .site-header .nav-links > .nav-dropdown > .nav-dropdown-trigger:not(#xi-x):not(#xi-y){padding-left:3px!important}
html.xi-desk .site-header .nav-links > .nav-dropdown.xi-current-page > .nav-dropdown-trigger:not(#xi-x):not(#xi-y){padding-left:12px!important}
}
@media (orientation:portrait) and (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header .nav-links> a:not(#xi-x):not(#xi-y),html.xi-desk .site-header .nav-links>.nav-dropdown>.nav-dropdown-trigger:not(#xi-x):not(#xi-y),html.xi-desk .site-header .nav-links> a.xi-current-page:not(#xi-x):not(#xi-y),html.xi-desk .site-header .nav-links>.nav-dropdown.xi-current-page>.nav-dropdown-trigger:not(#xi-x):not(#xi-y){box-sizing:border-box!important;padding-left:16px!important;padding-right:16px!important;text-indent:0!important}
}
@media (min-width:680.02px) and (max-width:699.98px) and (orientation:portrait){
html.xi-desk .site-header .nav-links > a:not(.login-link):not(#xi-x):not(#xi-y)::after,html.xi-desk .site-header .nav-links .nav-dropdown-trigger:not(#xi-x):not(#xi-y)::after{display:none!important;content:none!important}
html.xi-desk .site-header .nav-links > a:not(#xi-x):not(#xi-y),html.xi-desk .site-header .nav-links > .nav-dropdown > .nav-dropdown-trigger:not(#xi-x):not(#xi-y){box-sizing:border-box!important;margin:2px 0!important;padding:12px 16px!important;border:0!important;border-radius:10px!important;text-indent:0!important;background:#fff!important;box-shadow:none!important;color:#465363!important}
html.xi-desk .site-header .nav-links > a.xi-current-page:not(#xi-x):not(#xi-y),html.xi-desk .site-header .nav-links > .nav-dropdown.xi-current-page > .nav-dropdown-trigger:not(#xi-x):not(#xi-y){background:#e6edf3!important;color:#354b63!important;font-weight:800!important;box-shadow:inset 4px 0 0 #526b86!important}
html.xi-desk .site-header .nav-links > .nav-dropdown.open:not(.xi-current-page) > .nav-dropdown-trigger:not(#xi-x):not(#xi-y),html.xi-desk .site-header .nav-links > .nav-dropdown:not(.xi-current-page) > .nav-dropdown-trigger.active:not(#xi-x):not(#xi-y){background:#fff!important;color:#465363!important;box-shadow:none!important}
}
@media (orientation:portrait) and (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header .nav-links>.nav-dropdown>.xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){box-sizing:border-box!important;margin:2px 0!important;padding:0 12px 0 16px!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;min-height:48px!important}
html.xi-desk .site-header .nav-links>.nav-dropdown.xi-current-page>.xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){background:#e6edf3!important;box-shadow:inset 4px 0 0 #526b86!important}
html.xi-desk .site-header .nav-dropdown .xi-portfolio-main-link:not(#xi-x):not(#xi-y){flex:1!important;min-height:48px!important;color:#465363!important}
html.xi-desk .site-header .nav-dropdown.xi-current-page .xi-portfolio-main-link:not(#xi-x):not(#xi-y){color:#354b63!important;font-weight:800!important}
html.xi-desk .site-header .nav-dropdown .nav-dropdown-trigger:not(#xi-x):not(#xi-y){width:42px!important;min-width:42px!important;min-height:44px!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .xi-search-trigger:not(#xi-x):not(#xi-y){width:34px !important;flex-basis:34px !important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-wrap:not(#xi-x):not(#xi-y){column-gap:4px!important}
html.xi-desk body .site-header .nav-wrap > .xi-search-trigger:not(#xi-x):not(#xi-y){position:relative!important;left:auto!important;right:auto!important;transform:none!important;margin-left:auto!important;margin-right:0!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-wrap:not(#xi-x):not(#xi-y){gap:0!important;column-gap:0!important}
html.xi-desk body .site-header .nav-wrap > .xi-search-trigger:not(#xi-x):not(#xi-y){position:relative!important;left:auto!important;right:auto!important;transform:none!important;margin-left:auto!important;margin-right:-10px!important;z-index:1103!important}
html.xi-desk body .site-header .nav-wrap > .menu-toggle:not(#xi-x):not(#xi-y){margin-left:0!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header .nav-links .xi-nav-color-icon:not(#xi-x):not(#xi-y){display:inline-flex!important;width:38px !important;height:38px !important;min-width:38px !important;align-items:center !important;justify-content:center !important;border-radius:12px !important;background:var(--xi-nav-icon-bg) !important;color:var(--xi-nav-icon-color) !important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.65) !important}
html.xi-desk .site-header .nav-links .xi-nav-color-icon svg:not(#xi-x):not(#xi-y){width:21px !important;height:21px !important;display:block !important;stroke:currentColor !important}
html.xi-desk .site-header .nav-links>a:not(#xi-x):not(#xi-y),html.xi-desk .site-header .nav-links .xi-portfolio-main-link:not(#xi-x):not(#xi-y){display:flex!important;align-items:center!important;gap:12px!important}
html.xi-desk .site-header .nav-links>a:not(#xi-x):not(#xi-y){min-height:53px!important;padding-top:6px!important;padding-bottom:6px!important}
html.xi-desk .site-header .nav-links>a.active:not(#xi-x):not(#xi-y),html.xi-desk .site-header .nav-links .xi-portfolio-main-link.active:not(#xi-x):not(#xi-y){border-radius:11px!important}
html.xi-desk .site-header .nav-links .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){align-items:center!important}
html.xi-desk .site-header .nav-links .nav-submenu a:not(#xi-x):not(#xi-y){font-size:13px!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header .nav-links .xi-nav-color-icon:not(#xi-x):not(#xi-y){background:transparent!important;box-shadow:none!important;border:0!important;width:29px!important;min-width:29px!important;height:33px!important;border-radius:0!important}
html.xi-desk .site-header .nav-links .xi-nav-color-icon svg:not(#xi-x):not(#xi-y){width:25px!important;height:25px!important;stroke-width:1.65!important}
html.xi-desk .site-header .nav-links>a:not(#xi-x):not(#xi-y),html.xi-desk .site-header .nav-links .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){border-bottom:1px solid #e5edf3!important;box-shadow:0 2px 2px -2px rgba(52,82,112,.2)!important}
html.xi-desk .site-header .nav-links>a:not(#xi-x):not(#xi-y){min-height:51px!important;padding:6px 8px!important}
html.xi-desk .site-header .nav-links .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){min-height:51px!important}
html.xi-desk .site-header .nav-links>a.active:not(#xi-x):not(#xi-y),html.xi-desk .site-header .nav-links .xi-portfolio-main-link.active:not(#xi-x):not(#xi-y),html.xi-desk .site-header .nav-links .nav-dropdown:has(.xi-portfolio-main-link.active) .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){border-left:0!important;box-shadow:none!important;position:relative!important}
html.xi-desk .site-header .nav-links>a.active:not(#xi-x):not(#xi-y)::before,html.xi-desk .site-header .nav-links .xi-portfolio-nav-pair:has(.xi-portfolio-main-link.active):not(#xi-x):not(#xi-y)::before{content:""!important;position:absolute!important;left:-20px!important;top:50%!important;width:65px!important;height:4px!important;transform:translateY(-50%)!important;background:linear-gradient(90deg,#245e93,rgba(79,147,204,.45),transparent)!important;border-radius:0 5px 5px 0!important;pointer-events:none!important}
html.xi-desk .site-header .xi-search-trigger:not(#xi-x):not(#xi-y){transform:translateX(-8px)!important}
html.xi-desk .site-header .xi-search-trigger svg:not(#xi-x):not(#xi-y){width:23px!important;height:23px!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk .site-header .nav-links.open:not(#xi-x):not(#xi-y){padding-left:0!important;padding-right:0!important;gap:0!important}
html.xi-desk .site-header .nav-links>a:not(#xi-x):not(#xi-y),html.xi-desk .site-header .nav-links .nav-dropdown:not(#xi-x):not(#xi-y){margin-left:0!important;margin-right:0!important;width:100%!important;max-width:none!important;border-radius:0!important}
html.xi-desk .site-header .nav-links>a:not(#xi-x):not(#xi-y),html.xi-desk .site-header .nav-links .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){border-radius:0!important;box-shadow:none!important;border-bottom:1px solid #e1e8ee!important}
html.xi-desk .site-header .nav-links>a.active:not(#xi-x):not(#xi-y),html.xi-desk .site-header .nav-links .xi-portfolio-main-link.active:not(#xi-x):not(#xi-y),html.xi-desk .site-header .nav-links .nav-dropdown:has(.xi-portfolio-main-link.active) .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){border-radius:0!important;box-shadow:none!important;border-left:0!important}
html.xi-desk .site-header .nav-links>a.active:not(#xi-x):not(#xi-y)::before,html.xi-desk .site-header .nav-links .xi-portfolio-nav-pair:has(.xi-portfolio-main-link.active):not(#xi-x):not(#xi-y)::before{content:none!important;display:none!important}
html.xi-desk .site-header .nav-links>a[href="index.html"].active:not(#xi-x):not(#xi-y){background:rgba(62,131,182,.10)!important}
html.xi-desk .site-header .nav-links>a[href="about.html"].active:not(#xi-x):not(#xi-y){background:rgba(41,150,124,.10)!important}
html.xi-desk .site-header .nav-links .nav-dropdown:has(.xi-portfolio-main-link.active) .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){background:rgba(139,98,201,.10)!important}
html.xi-desk .site-header .nav-links>a[href="news.html"].active:not(#xi-x):not(#xi-y){background:rgba(221,132,50,.10)!important}
html.xi-desk .site-header .nav-links>a[href="contact.html"].active:not(#xi-x):not(#xi-y){background:rgba(212,91,125,.10)!important}
html.xi-desk .site-header .nav-links .xi-nav-color-icon:not(#xi-x):not(#xi-y){background:transparent!important;border:0!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-links.open > a.active:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > a.xi-current-page:not(#xi-x):not(#xi-y){width:100%!important;align-self:stretch!important;border-radius:0!important;background-clip:border-box!important}
html.xi-desk body .site-header .nav-links.open > a[href="index.html"].xi-current-page:not(#xi-x):not(#xi-y){background:rgba(62,131,182,.10)!important}
html.xi-desk body .site-header .nav-links.open > a[href="about.html"].xi-current-page:not(#xi-x):not(#xi-y){background:rgba(41,150,124,.10)!important}
html.xi-desk body .site-header .nav-links.open > a[href="news.html"].xi-current-page:not(#xi-x):not(#xi-y){background:rgba(221,132,50,.10)!important}
html.xi-desk body .site-header .nav-links.open > a[href="contact.html"].xi-current-page:not(#xi-x):not(#xi-y){background:rgba(212,91,125,.10)!important}
html.xi-desk body .site-header .nav-links.open .nav-dropdown.xi-current-page > .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open .nav-dropdown:has(.xi-portfolio-main-link.active) > .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){background:rgba(139,98,201,.10)!important;border-radius:0!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown:not(#xi-x):not(#xi-y){border-bottom:1px solid #e1e8ee!important;box-shadow:none!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){border-bottom:0!important;box-shadow:none!important;outline:0!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu:not(#xi-x):not(#xi-y){border-top:1px solid #e1e8ee!important;border-bottom:0!important;box-shadow:none!important}
html.xi-desk body .site-header .nav-links.open .xi-portfolio-nav-pair > .nav-dropdown-trigger:not(#xi-x):not(#xi-y){position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important}
html.xi-desk body .site-header .nav-links.open .xi-portfolio-nav-pair > .nav-dropdown-trigger .nav-chevron:not(#xi-x):not(#xi-y){font-size:0!important;line-height:0!important;display:block!important;width:12px!important;height:12px!important;border:0!important;border-right:2px solid #60778e!important;border-bottom:2px solid #60778e!important;border-radius:1px!important;transform:translateY(-3px) rotate(45deg)!important;transform-origin:50% 50%!important;animation:xi101-chevron-glow 2s ease-in-out infinite!important;-webkit-animation:xi101-chevron-glow 2s ease-in-out infinite!important}
html.xi-desk body .site-header .nav-links.open .nav-dropdown.open .nav-chevron:not(#xi-x):not(#xi-y){transform:translateY(3px) rotate(225deg)!important}
}
@media (min-width:680.02px) and (max-width:699.98px) and (prefers-reduced-motion:reduce){
html.xi-desk body .site-header .nav-links.open .nav-dropdown-trigger .nav-chevron:not(#xi-x):not(#xi-y){animation:none!important;-webkit-animation:none!important;opacity:1!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-links.open > a:not([href="index.html"]) > .xi-nav-color-icon:not(#xi-x):not(#xi-y){position:relative!important;left:12px!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > .xi-portfolio-main-link > .xi-nav-color-icon:not(#xi-x):not(#xi-y){position:relative!important;left:-4px!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-links.open > a > .xi-nav-color-icon:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > .xi-portfolio-main-link > .xi-nav-color-icon:not(#xi-x):not(#xi-y){position:relative!important;left:0!important;right:auto!important;transform:none!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){padding-left:8px!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > .xi-portfolio-main-link:not(#xi-x):not(#xi-y){padding-left:0!important;margin-left:0!important;gap:12px!important}
}
@media (min-width:680.02px) and (max-width:699.98px) and (prefers-reduced-motion:no-preference){
html.xi-desk body .site-header .nav-links.open .xi-portfolio-nav-pair > .nav-dropdown-trigger .nav-chevron:not(#xi-x):not(#xi-y){animation:xi104-portfolio-chevron-blink 1.6s ease-in-out infinite!important;-webkit-animation:xi104-portfolio-chevron-blink 1.6s ease-in-out infinite!important}
}
@media (min-width:680.02px) and (max-width:699.98px) and (prefers-reduced-motion:reduce){
html.xi-desk body .site-header .nav-links.open .xi-portfolio-nav-pair > .nav-dropdown-trigger .nav-chevron:not(#xi-x):not(#xi-y){animation:none!important;-webkit-animation:none!important;opacity:1!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-links.open > a:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link:not(#xi-x):not(#xi-y){box-sizing:border-box!important;display:grid!important;grid-template-columns:29px minmax(0,1fr)!important;column-gap:12px!important;align-items:center!important;justify-items:start!important;padding-left:20px!important;padding-right:10px!important;text-indent:0!important;white-space:nowrap!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){padding-left:0!important;margin-left:0!important}
html.xi-desk body .site-header .nav-links.open > a > .xi-nav-color-icon:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link > .xi-nav-color-icon:not(#xi-x):not(#xi-y){box-sizing:border-box!important;grid-column:1!important;grid-row:1!important;position:static!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;display:flex!important;align-items:center!important;justify-content:center!important;width:29px!important;min-width:29px!important;max-width:29px!important;height:33px!important;margin:0!important;padding:0!important;flex:none!important}
html.xi-desk body .site-header .nav-links.open > a > .xi-nav-color-icon svg:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link > .xi-nav-color-icon svg:not(#xi-x):not(#xi-y){width:25px!important;height:25px!important;display:block!important;transform:none!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-links.open > a:not(#xi-x):not(#xi-y){display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;box-sizing:border-box!important;padding-left:20px!important;gap:12px!important;text-indent:0!important;white-space:nowrap!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){display:flex!important;align-items:center!important;box-sizing:border-box!important;padding-left:20px!important;padding-right:10px!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link:not(#xi-x):not(#xi-y){display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;box-sizing:border-box!important;padding:0!important;margin:0!important;gap:12px!important;text-indent:0!important;white-space:nowrap!important}
html.xi-desk body .site-header .nav-links.open .xi-nav-color-icon:not(#xi-x):not(#xi-y){position:static!important;inset:auto!important;transform:none!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 29px!important;width:29px!important;min-width:29px!important;max-width:29px!important;height:33px!important;margin:0!important;padding:0!important}
html.xi-desk body .site-header .nav-links.open .xi-nav-color-icon svg:not(#xi-x):not(#xi-y){display:block!important;width:25px!important;height:25px!important;margin:0!important;transform:none!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-links.open > a:not([href="index.html"]) > .xi-nav-color-icon:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > a[href="index.html"] > .xi-nav-color-icon:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > .xi-portfolio-main-link > .xi-nav-color-icon:not(#xi-x):not(#xi-y){position:static!important;left:0!important;right:auto!important;top:auto!important;transform:none!important;margin-left:0!important;margin-right:0!important;flex:0 0 29px!important;width:29px!important;min-width:29px!important;max-width:29px!important;display:flex!important;align-items:center!important;justify-content:center!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-links.open:not(#xi-x):not(#xi-y){padding-left:0!important;padding-right:0!important}
html.xi-desk body .site-header .nav-links.open > a:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > .nav-dropdown:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){margin-top:0!important;margin-bottom:0!important;margin-left:0!important;margin-right:0!important;border-radius:0!important;width:100%!important;box-sizing:border-box!important}
html.xi-desk body .site-header .nav-links.open > a.xi-current-page:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > a.active:not(#xi-x):not(#xi-y){border-radius:0!important;background-clip:border-box!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown.xi-current-page > .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > .nav-dropdown:has(.xi-portfolio-main-link.active) > .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){border-radius:0!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown:not(#xi-x):not(#xi-y){border-bottom:1px solid #e1e8ee!important;box-shadow:none!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link:not(#xi-x):not(#xi-y){border:0!important;border-bottom:0!important;box-shadow:none!important;outline:0!important;background-clip:border-box!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y)::after,html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y)::before,html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link:not(#xi-x):not(#xi-y)::after,html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .xi-portfolio-nav-pair > a.xi-portfolio-main-link:not(#xi-x):not(#xi-y)::before{content:none!important;display:none!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu:not(#xi-x):not(#xi-y){border-top:0!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-links.open > a.active:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > a.xi-current-page:not(#xi-x):not(#xi-y){background-color:#f0f3f6!important}
html.xi-desk body .site-header .nav-links.open > a[href="index.html"].active:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > a[href="index.html"].xi-current-page:not(#xi-x):not(#xi-y){background-color:#edf2f6!important}
html.xi-desk body .site-header .nav-links.open > a[href="about.html"].active:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > a[href="about.html"].xi-current-page:not(#xi-x):not(#xi-y){background-color:#eef5f2!important}
html.xi-desk body .site-header .nav-links.open > a[href="news.html"].active:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > a[href="news.html"].xi-current-page:not(#xi-x):not(#xi-y){background-color:#f7f2ed!important}
html.xi-desk body .site-header .nav-links.open > a[href="contact.html"].active:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > a[href="contact.html"].xi-current-page:not(#xi-x):not(#xi-y){background-color:#f8f1f4!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown:has(.xi-portfolio-main-link.active) > .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > .nav-dropdown.xi-current-page > .xi-portfolio-nav-pair:not(#xi-x):not(#xi-y){background-color:#f3f0f8!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu:not(#xi-x):not(#xi-y){box-sizing:border-box!important;padding-left:76px!important;padding-right:12px!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:not(#xi-x):not(#xi-y){color:#687587!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a.is-current-category:not(#xi-x):not(#xi-y){background-color:#f0f2f6!important;color:#526276!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:not(#xi-x):not(#xi-y){border:1px solid #e7edf2!important;border-bottom:1px solid #e7edf2!important;border-right:1px solid #e7edf2!important;border-radius:9px!important;box-shadow:none!important;text-decoration:none!important;background-clip:padding-box!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:not(#xi-x):not(#xi-y)::after,html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:not(#xi-x):not(#xi-y)::before{border-bottom:0!important;text-decoration:none!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:is(.active,.is-current-category,[aria-current="page"]):not(#xi-x):not(#xi-y){background-color:#f8f9fb!important;border:2px solid #c4cfdb!important;border-radius:9px!important;box-shadow:none!important;color:#586b7f!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:not(:is(.active,.is-current-category,[aria-current="page"])):not(#xi-x):not(#xi-y){border-width:1px!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:active:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:is(.active,.is-current-category,[aria-current="page"]):active:not(#xi-x):not(#xi-y){background-color:#ffffff!important;color:#8290a0!important;box-shadow:none!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:not(#xi-x):not(#xi-y),html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:active:not(#xi-x):not(#xi-y){-webkit-tap-highlight-color:transparent!important;-webkit-touch-callout:none !important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:active:not(#xi-x):not(#xi-y){background-color:#e0ebf6!important;border-radius:9px!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a:is(.active,.is-current-category,[aria-current="page"]):not(#xi-x):not(#xi-y){border-color:#dce4ed!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a.xi-portfolio-home-current:not(#xi-x):not(#xi-y){background-color:#f8f9fb!important;border:2px solid #dce4ed!important;border-radius:9px!important;box-shadow:none!important;color:#586b7f!important}
html.xi-desk body .site-header .nav-links.open > .nav-dropdown > .nav-submenu > a.xi-portfolio-home-current:active:not(#xi-x):not(#xi-y){background-color:#e0ebf6!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-links.open .xi-portfolio-nav-pair > .nav-dropdown-trigger .nav-chevron:not(#xi-x):not(#xi-y){width:13px!important;height:15px!important;border:0!important;border-radius:0!important;background:none!important;transform:none!important;box-shadow:none!important}
html.xi-desk body .site-header .nav-links.open .nav-dropdown.open .nav-chevron:not(#xi-x):not(#xi-y){transform:rotate(180deg)!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body.portfolio-page .site-header:not(#xi-x):not(#xi-y){z-index:3000!important}
}
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-links > a:not(#xi-x):not(#xi-y):not(#xi-z){font-size:11px!important}
}

/* v339 desktop windows >=481px, category pages: the purple banner starts 2px under the header (it is taller by 2px, pulled up by 2px) so the fractional-pixel seam between header and banner (a hairline showing white or a strip of thumbnails at 125%-138% screen scaling) is always covered; title/arrows keep their exact position */
@media (min-width:480.02px){
html.xi-desk body.portfolio-page.xi-category-view .page-hero.portfolio-category-hero:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){margin-top:-2px!important;height:62px!important;min-height:62px!important;max-height:62px!important;padding-top:2px!important;box-sizing:border-box!important}
html.xi-desk body.portfolio-page.xi-category-view .page-hero.portfolio-category-hero .page-heading:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){margin-top:1px!important}
html.xi-desk body.portfolio-page.xi-category-view .page-hero.portfolio-category-hero .portfolio-breadcrumb:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){margin-top:1px!important}
}

/* v341 desktop windows 481-699px: one left/right margin (24px) and one logo size at every width, so dragging across 680px never moves the logo, heading, chips or cards; backdrop-filter removed from the header, banner and chips bar on desktop (it was nearly opaque anyway) because Chrome at fractional screen scaling can leave a stale strip of thumbnails painted over the bottom of a blurred header */
@media (min-width:480.02px) and (max-width:699.98px){
html.xi-desk body .site-header .nav-wrap:not(#xi-x):not(#xi-y):not(#xi-z){padding-left:24px!important;padding-right:24px!important}
html.xi-desk body .site-header .brand-logo:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){width:205px!important;height:42px!important;max-width:none!important;max-height:42px!important;flex:0 0 205px!important}
html.xi-desk body.portfolio-page .page-hero .page-heading:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){padding-left:24px!important;padding-right:24px!important}
html.xi-desk body.portfolio-page .page-content > .container:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){padding-left:24px!important;padding-right:24px!important}
}
@media (min-width:480.02px){
html.xi-desk body .site-header:not(#xi-x):not(#xi-y):not(#xi-z),
html.xi-desk body .site-header *:not(#xi-x):not(#xi-y):not(#xi-z),
html.xi-desk body.portfolio-page .page-hero:not(#xi-x):not(#xi-y):not(#xi-z),
html.xi-desk body.portfolio-page .page-hero *:not(#xi-x):not(#xi-y):not(#xi-z),
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z),
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav *:not(#xi-x):not(#xi-y):not(#xi-z){-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}

/* v342 desktop: the strip is a stale copy of the bottom of the window painted into the last rows of the header's own texture (the debug box text showed up in it). Make the header fully opaque and put a solid-colour layer (drawn as a plain colour, no texture) over its bottom 9px, under the header content, so no stale pixels can show there */
@media (min-width:480.02px){
html.xi-desk body.portfolio-page .site-header:not(#xi-x):not(#xi-y):not(#xi-z){background:#fff!important;isolation:isolate}
html.xi-desk body.portfolio-page .site-header:not(#xi-x):not(#xi-y):not(#xi-z)::before{content:""!important;display:block!important;position:absolute!important;left:0;right:0;bottom:0;height:9px;background:#fff;z-index:-1;pointer-events:none;will-change:transform;transform:translateZ(0)}
}

/* v343 desktop windows 481-699px: the banner title block ("折價券 | OUR WORKS") sits at the same left edge as the logo (24px) with the same 9px gap and 13px divider spacing at every width, so it no longer drifts at 680/700px */
@media (min-width:480.02px) and (max-width:699.98px){
html.xi-desk body.portfolio-page.xi-category-view .page-hero.portfolio-category-hero .page-heading:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){left:24px!important;padding-left:0!important;padding-right:0!important;gap:9px!important}
html.xi-desk body.portfolio-page.xi-category-view .page-hero.portfolio-category-hero .page-heading .eyebrow:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){padding-left:13px!important}
}

/* v344 desktop windows: every page with a banner (about, contact, news, portfolio and its categories) uses one rule for the banner title's left edge (= logo edge) and one rule for the double arrows' right edge (= right edge of the content below). Pure CSS, so nothing is repositioned by script while the window is being dragged (that made the arrows jump / flash) */
@media (min-width:480.02px){
html.xi-desk body section.page-hero:not(.portfolio-category-hero) > .page-heading:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){margin-left:max(24px,calc((100% - 1160px)/2 + 24px))!important;padding-left:0!important;padding-right:0!important}
html.xi-desk body section.page-hero > .xi-hero-swipe-hint:not(#xi-x):not(#xi-y):not(#xi-z){right:max(24px,calc((100% - 1160px)/2 + 24px))!important}
}
@media (min-width:480.02px) and (max-width:699.98px){
html.xi-desk body:has(section.page-hero) :is(.container,.content-narrow,.footer-inner):not(#xi-x):not(#xi-y):not(#xi-z){padding-left:24px!important;padding-right:24px!important}
}

/* v345/v346 (arrows held still) were withdrawn in v366: the double arrows move again exactly like before (a gentle left-right sway). The fixed size/position from v350 stays. */

/* v349: v347's separate compositor layer for the arrows was removed again - at fractional screen scaling its bitmap snapped to a different height and squashed the arrows */

/* v348 desktop windows: the category banner used to replay its "purple reveal" (brightness+saturation flash, arrows missing for a frame) and animate its height while the window was dragged. Desktop: no reveal/filter on the banner, and no CSS transitions at all while the window is being resized (class xi-resizing is set by script on every resize event) */
html.xi-desk body.portfolio-page #portfolio-hero:not(#xi-x):not(#xi-y):not(#xi-z){animation:none!important;-webkit-animation:none!important;filter:none!important;transition:none!important}
html.xi-desk.xi-resizing *:not(#xi-x):not(#xi-y):not(#xi-z),
html.xi-desk.xi-resizing *:not(#xi-x):not(#xi-y):not(#xi-z)::before,
html.xi-desk.xi-resizing *:not(#xi-x):not(#xi-y):not(#xi-z)::after{transition:none!important;-webkit-transition:none!important}

/* v350 desktop windows: the banner double arrows have ONE geometry at every window width (118x28, 14px above the banner's bottom edge). Before, the offset was 13px/14px depending on whether the window was under or over 1024px, which put the bitmap on a different pixel phase at 138% screen scaling and made the arrows look squashed after crossing 1024px */
@media (min-width:480.02px){
html.xi-desk body section.page-hero > .xi-hero-swipe-hint:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){top:auto!important;bottom:14px!important;width:118px!important;height:28px!important;margin:0!important;transform:none!important}
html.xi-desk body section.page-hero > .xi-hero-swipe-hint img:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){width:118px!important;height:28px!important;max-width:none!important;object-fit:fill!important}
}

/* v351 desktop windows: the tall banners of about / news / portfolio / contact use ONE height (180px), one background position and one type scale at every window width, so nothing jumps while the window is dragged (before: 170/190/129/150/180/185/255px high and 25/26/31/37px titles depending on the width) */
@media (min-width:480.02px){
html.xi-desk body section.page-hero:not(.portfolio-category-hero):not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){height:180px!important;min-height:180px!important;max-height:180px!important;padding-top:18px!important;padding-bottom:18px!important;box-sizing:border-box!important;background-position:50% 35%!important;display:flex!important;flex-direction:row!important;justify-content:flex-start!important;align-items:center!important}
html.xi-desk body section.page-hero:not(.portfolio-category-hero) .page-heading .eyebrow:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){font-size:10.2px!important;line-height:17.85px!important;letter-spacing:1.836px!important}
html.xi-desk body section.page-hero:not(.portfolio-category-hero) .page-heading h1:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){font-size:31.2px!important;line-height:38.064px!important;letter-spacing:-.7px!important;margin-top:9px!important;margin-bottom:9px!important}
html.xi-desk body section.page-hero:not(.portfolio-category-hero) .page-heading p:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){font-size:12px!important;line-height:19.8px!important}
}

/* v353 (restores the v340 portfolio-top layout): tab/columns-box structure below 600px is the designed one (box above the tabs); only the refresh icon of the 4th tab is made slimmer so it never touches the edge. No font-size, order or wrapping changes here. */
@media (min-width:480.02px){
html.xi-desk body.portfolio-page .xi-work-modes .xi-random-icon:not(#xi-x):not(#xi-y):not(#xi-z){width:16px!important;min-width:16px!important;flex:0 0 16px!important}
}
@media (min-width:480.02px) and (max-width:599.98px){
html.xi-desk body.portfolio-page .xi-work-modes .xi-work-mode:last-child:not(#xi-x):not(#xi-y):not(#xi-z){padding-left:0!important;padding-right:0!important;gap:0!important}
}

/* v354 portfolio top page, desktop windows >=481px: chips, work tabs and the columns label keep ONE size at every window width (they used to scale 10.5->12px / 12->16px and 32->28px / 35->38px while the window was dragged) */
@media (min-width:480.02px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .filter-button:not(#xi-x):not(#xi-y):not(#xi-z){font-size:11px!important;line-height:13px!important;height:30px!important;min-height:30px!important;max-height:30px!important;padding-top:0!important;padding-bottom:0!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-mode:not(#xi-x):not(#xi-y):not(#xi-z){font-size:13px!important;line-height:18px!important;height:36px!important;min-height:36px!important;max-height:36px!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density > :not(.xi-grid-density-landscape):not(.xi-grid-density-portrait) span:not(.xi058-icon),html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-grid-density-label:not(#xi-x):not(#xi-y){font-size:12px!important}
}

/* v354b/v356 portfolio top page: the block between banner and artwork grid has ONE height per chip layout (2 chip rows: 131px with a clear gap between chips and tabs at every width 481-860; 1 chip row: 96px at every width 861+) */
@media (min-width:480.02px) and (max-width:860.98px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z){height:131px!important;min-height:131px!important;max-height:131px!important;box-sizing:border-box!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){margin-top:0!important;margin-bottom:0!important;padding-top:7px!important;padding-bottom:0!important;height:52px!important;min-height:52px!important;max-height:52px!important;box-sizing:border-box!important;align-content:flex-end!important;align-items:flex-end!important}
}
@media (min-width:860.02px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z){height:96px!important;min-height:96px!important;max-height:96px!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){margin-top:-10px!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important;height:44px!important;min-height:44px!important;max-height:44px!important;box-sizing:border-box!important}
}

/* v355 portfolio top page, desktop windows 481-599px: the 3/6 box never sits left of the tabs. Tabs left, the two small 3/6 buttons right, same row as the tabs (its text label is dropped so the 4 tabs keep their room) - the same position it has at 600px and wider */
@media (min-width:480.02px) and (max-width:599.98px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){flex-wrap:nowrap!important;row-gap:0!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){order:1!important;flex:0 0 auto!important;margin:0 0 0 auto!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x):not(#xi-y){order:0!important;flex:1 1 0!important;min-width:0!important;max-width:none!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-grid-density-landscape:not(#xi-x):not(#xi-y)::before,html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-grid-density-landscape:not(#xi-x):not(#xi-y)::after{display:none!important;content:none!important}
}

/* v356 two-chip-row layouts start at the same distance below the banner at every width (it used to be 14/16/8/9px) */
@media (min-width:680.02px) and (max-width:699.98px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){margin-top:-2px!important}
}
@media (min-width:699.99px) and (max-width:860.98px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){margin-top:-3px!important;height:140px!important;min-height:140px!important;max-height:140px!important}
}

/* v357 portfolio top page: (1) no grey drop shadow under the tabs line (only the side covers stay); (2) tabs and the columns box keep at least 20px apart and the box ends exactly at the content edge at every width */
@media (min-width:480.02px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){box-shadow:-28px 0 0 0 rgb(243,247,250),28px 0 0 0 rgb(243,247,250)!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){column-gap:20px!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){margin-right:0!important;padding-right:0!important}
}
@media (min-width:699.99px) and (max-width:799.99px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){margin-right:-2px!important}
}

/* v358 portfolio top page, 481-860px (two chip rows): the tabs + columns box row is pinned to the bottom of the sticky block (always 9px above its bottom edge, 52px high), so it can never ride up under the chips or leave a blank band below the tabs line, whatever else changes the chip block height */
@media (min-width:480.02px) and (max-width:860.98px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){position:sticky!important;overflow:visible!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t){position:absolute!important;left:0!important;right:0!important;bottom:9px!important;top:auto!important;width:auto!important;height:52px!important;min-height:52px!important;max-height:52px!important;margin:0!important;box-sizing:border-box!important;transform:none!important}
}

/* v359 portfolio top page: the 2/3/4/6 (and 3/6) columns box sits on the tabs line - bottom-aligned with a fixed 4px lift - at every width, instead of hanging from the top edge of the tabs */
@media (min-width:480.02px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){align-self:flex-end!important;margin-top:0!important;margin-bottom:4px!important;height:26px!important}
}
@media (min-width:480.02px) and (max-width:599.98px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){margin-bottom:2px!important}
}
@media (min-width:599.99px) and (max-width:699.98px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){margin-bottom:5px!important}
}

/* v360 portfolio top page: the 4 tabs stand ON the tabs line - their bottom edge touches the line at every width, so the vertical tab borders run down into it (it used to leave a 0-3px gap that changed with the window width) */
@media (min-width:480.02px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){align-items:flex-end!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z){align-self:flex-end!important;margin-top:0!important;margin-bottom:0!important;top:0!important}
}
@media (min-width:480.02px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){height:36px!important;min-height:36px!important;max-height:36px!important;align-items:flex-end!important}
}

/* v360 portfolio top page tabs = the Latest News tabs spec (the reference), at every width:
   481-610px 11px / 34px high,  611-767px 12px / 37px high,  768px+ 16px / 38px high; same colours, radius, inset highlight and line colour as news.html.
   The tab bottoms stand on the line (vertical borders run into it). */
@media (min-width:480.02px) and (max-width:610.98px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-mode:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){font-size:11px!important;letter-spacing:-.35px!important;line-height:13.2px!important;height:34px!important;min-height:34px!important;max-height:34px!important;padding-top:7px!important;border-color:rgb(216,224,232)!important;color:rgb(101,116,131)!important;box-shadow:none!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){height:34px!important;min-height:34px!important;max-height:34px!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t){border-bottom-color:rgb(129,152,171)!important}
}
@media (min-width:610.99px) and (max-width:767.98px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-mode:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){font-size:12px!important;letter-spacing:-.3px!important;line-height:14.4px!important;height:37px!important;min-height:37px!important;max-height:37px!important;padding-top:8px!important;border-color:rgb(176,198,216)!important;color:rgb(100,122,140)!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){height:37px!important;min-height:37px!important;max-height:37px!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t){border-bottom-color:rgb(129,152,171)!important}
}
@media (min-width:767.99px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-mode:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){font-size:16px!important;letter-spacing:normal!important;line-height:23px!important;height:38px!important;min-height:38px!important;max-height:38px!important;padding-top:4px!important;border-color:rgb(176,198,216)!important;color:rgb(100,122,140)!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){height:38px!important;min-height:38px!important;max-height:38px!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t){border-bottom-color:rgb(84,113,138)!important}
}
@media (min-width:610.99px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-mode:not(.active):not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){box-shadow:none!important}
}
@media (min-width:480.02px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-mode.active:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){color:rgb(255,255,255)!important;border-color:rgb(0,68,126)!important}
}

/* v361 portfolio top page tabs: ONE size at every width (14px text, 36px high) - no jumps between 11/12/16px while the window is dragged; the light-blue bar under the active tab sits ON the tab (its bottom edge = the tab's bottom edge) so it never covers the long tabs line, and its glow only goes upward */
@media (min-width:480.02px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-mode:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){font-size:14px!important;letter-spacing:0!important;line-height:20px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding-top:6px!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){height:36px!important;min-height:36px!important;max-height:36px!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u)::after{bottom:0!important;top:auto!important;height:3px!important;box-shadow:0 -2px 6px rgba(84,151,207,.55)!important}
}

/* v362 portfolio top page: the block under the chips uses the CONFIRMED category-page numbers at every width >=481px:
   row 45px = 10px above / 8px below the 2-3-4-6 box (26px high), 1px line, soft grey shadow under the line (0 9px 9px -7px), 18px from the line to the thumbnails.
   The 4 tabs still stand on the line (they rise out of the row), nothing is pinned or absolutely positioned any more. */
@media (min-width:480.02px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t){height:auto!important;min-height:0!important;max-height:none!important;box-shadow:-28px 0 0 0 rgb(243,247,250),28px 0 0 0 rgb(243,247,250),0 9px 9px -7px rgba(40,60,80,.3)!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s){position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;top:0!important;width:auto!important;height:45px!important;min-height:45px!important;max-height:45px!important;margin:0!important;padding:10px 0 8px!important;box-sizing:border-box!important;align-items:flex-end!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t){margin-bottom:-8px!important;align-self:flex-end!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){margin-bottom:0!important;align-self:flex-end!important}
}
@media (min-width:860.02px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav > .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s):not(#xi-r){margin-top:-23px!important}
}
@media (min-width:480.02px) and (max-width:599.98px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t){margin-bottom:-2px!important}
}
@media (min-width:599.99px) and (max-width:699.98px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row > .xi-grid-density:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t){margin-bottom:1px!important}
}

/* v363 portfolio top page tabs: the text of all 4 tabs is centred the same way (flex, no padding), so no tab's label sits higher or lower than the others; the refresh icon is centred on the same line */
@media (min-width:480.02px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-mode:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u){display:flex!important;align-items:center!important;justify-content:center!important;padding-top:0!important;padding-bottom:0!important;line-height:20px!important;gap:2px!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-mode .xi-random-icon:not(#xi-x):not(#xi-y){align-self:center!important;margin:0!important;position:static!important;top:auto!important;transform-origin:center!important}
}

/* v364 desktop windows 700-767px: the 2/3/4/6 buttons are shown here and now work (they did nothing below 768px); the grid follows the chosen column count exactly like at 768px and wider */
@media (min-width:699.99px) and (max-width:767.98px){
html.xi-desk body.portfolio-page[data-grid-columns="2"] .xi-gallery-panel .work-grid:not(#xi-x):not(#xi-y):not(#xi-z){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px!important}
html.xi-desk body.portfolio-page[data-grid-columns="3"] .xi-gallery-panel .work-grid:not(#xi-x):not(#xi-y):not(#xi-z){grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:20px!important}
html.xi-desk body.portfolio-page[data-grid-columns="4"] .xi-gallery-panel .work-grid:not(#xi-x):not(#xi-y):not(#xi-z){grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important}
html.xi-desk body.portfolio-page[data-grid-columns="6"] .xi-gallery-panel .work-grid:not(#xi-x):not(#xi-y):not(#xi-z){grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:20px!important}
}

/* v365 desktop windows: the 2/3/4/6 and 3/6 buttons (and their digits) always show the hand cursor, also at 700-767px where it was a plain arrow */
@media (min-width:480.02px){
html.xi-desk body.portfolio-page .xi-grid-density button:not(#xi-x):not(#xi-y):not(:disabled),html.xi-desk body.portfolio-page .xi-grid-density button:not(#xi-x):not(#xi-y) *{cursor:pointer!important}
}

/* v367 Latest News page, desktop windows: tabs, line, type size, proportions and spacing = the Portfolio page spec, at every width >=481px.
   Tabs: 110 x 36px, 14px text centred, radius 11, same colours; the tabs stand on a 1px line (colour as portfolio); the banner-to-tabs distance and the toolbar height are the same at every width; line shadow as portfolio. */
@media (min-width:480.02px){
html.xi-desk .xnews-page .xnews-controls:not(#xi-x):not(#xi-y):not(#xi-z){box-shadow:0 -9px 0 0 #fff,0 9px 9px -7px rgba(40,60,80,.3)!important;margin-bottom:12px!important}
html.xi-desk .xnews-page .xnews-controls .xnews-categories:not(#xi-x):not(#xi-y):not(#xi-z){padding:0!important;height:37px!important;min-height:37px!important;align-items:flex-end!important;border-bottom-width:1px!important}
html.xi-desk .xnews-page .xnews-categories > button:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){display:flex!important;align-items:center!important;justify-content:center!important;width:110px!important;min-width:110px!important;max-width:110px!important;height:36px!important;min-height:36px!important;max-height:36px!important;padding:0!important;font-size:14px!important;letter-spacing:0!important;line-height:20px!important;font-weight:500!important;border-radius:11px 11px 0 0!important;border-color:rgb(176,198,216)!important;color:rgb(100,122,140)!important;box-shadow:none!important}
html.xi-desk .xnews-page .xnews-categories > button.active:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){color:#fff!important;border-color:rgb(0,68,126)!important;background-color:rgb(0,68,126)!important}
html.xi-desk .xnews-page .xnews-toolbar:not(#xi-x):not(#xi-y):not(#xi-z){height:36px!important;min-height:36px!important;box-sizing:border-box!important}
html.xi-desk .xnews-page .xnews-count:not(#xi-x):not(#xi-y):not(#xi-z){font-size:12px!important;line-height:22px!important}
html.xi-desk .xnews-page .xnews-view button:not(#xi-x):not(#xi-y):not(#xi-z){font-size:12px!important}
}
@media (min-width:480.02px) and (max-width:767.98px){
html.xi-desk .xnews-page .xnews-controls .xnews-categories:not(#xi-x):not(#xi-y):not(#xi-z){border-bottom-color:rgb(129,152,171)!important}
}
@media (min-width:767.99px){
html.xi-desk .xnews-page .xnews-controls .xnews-categories:not(#xi-x):not(#xi-y):not(#xi-z){border-bottom-color:rgb(84,113,138)!important}
}
@media (min-width:480.02px) and (max-width:610.98px){
html.xi-desk .xnews-page .xnews-controls:not(#xi-x):not(#xi-y):not(#xi-z){margin-top:4px!important}
}
@media (min-width:610.99px) and (max-width:767.98px){
html.xi-desk .xnews-page .xnews-controls:not(#xi-x):not(#xi-y):not(#xi-z){margin-top:6px!important}
}
/* v367b news active tab uses aria-pressed */
@media (min-width:480.02px){
html.xi-desk .xnews-page .xnews-categories > button[aria-pressed="true"]:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){color:#fff!important;border-color:rgb(0,68,126)!important;background-color:rgb(0,68,126)!important;font-weight:600!important}
html.xi-desk .xnews-page .xnews-categories > button[aria-pressed="false"]:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){color:rgb(100,122,140)!important}
}
/* v368 active-tab blue bar: thinner, same on Portfolio and News (desktop) */
@media (min-width:480.02px){
html.xi-desk .xnews-page .xnews-categories:not(#xi-x):not(#xi-y)::after{height:2px!important;bottom:0!important;border-radius:2px 2px 0 0!important;box-shadow:0 -1px 3px rgba(84,151,207,.45)!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z)::after{height:2px!important;bottom:0!important;top:auto!important;box-shadow:0 -1px 3px rgba(84,151,207,.45)!important}
}
@media (min-width:480.02px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t)::after{height:2px!important;bottom:0!important;top:auto!important;box-shadow:0 -1px 3px rgba(84,151,207,.45)!important}
}
/* v369 Portfolio long line = News long line (thin grey-blue); News toolbar row evenly spaced top/bottom */
@media (min-width:480.02px) and (max-width:767.98px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){border-bottom:1px solid rgb(129,152,171)!important}
}
@media (min-width:767.99px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){border-bottom:1px solid rgb(84,113,138)!important}
}
@media (min-width:480.02px){
html.xi-desk .xnews-page .xnews-toolbar:not(#xi-x):not(#xi-y):not(#xi-z){display:flex!important;align-items:center!important;padding-top:0!important;padding-bottom:0!important}
html.xi-desk .xnews-page .xnews-toolbar .xnews-view:not(#xi-x):not(#xi-y):not(#xi-z){padding:0!important;margin:0 0 0 auto!important;align-self:center!important;height:26px!important;align-items:center!important}
html.xi-desk .xnews-page .xnews-toolbar .xnews-count:not(#xi-x):not(#xi-y):not(#xi-z){align-self:center!important;margin-top:0!important;margin-bottom:0!important;line-height:26px!important;height:26px!important}
html.xi-desk .xnews-page .xnews-toolbar .xnews-view button:not(#xi-x):not(#xi-y):not(#xi-z){height:26px!important;margin:0!important;align-self:center!important}
}
@media (min-width:480.02px){
html.xi-desk .xnews-page .xnews-toolbar .xnews-view:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){transform:translateY(-3px)!important}
html.xi-desk .xnews-page .xnews-toolbar .xnews-count:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){transform:translateY(-2px)!important}
}
/* v370 long line colour identical at every width: News + Portfolio */
@media (min-width:480.02px){
html.xi-desk .xnews-page .xnews-controls .xnews-categories:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){border-bottom-color:rgb(84,113,138)!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v){border-bottom-color:rgb(84,113,138)!important}
}
@media (min-width:480.02px){
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s):not(#xi-r){border-bottom-color:rgb(84,113,138)!important}
}
/* v371 long line: lighter grey-blue, same at every width (News + Portfolio) */
@media (min-width:480.02px){
html.xi-desk .xnews-page .xnews-controls .xnews-categories:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t){border-bottom-color:rgb(129,152,171)!important}
html.xi-desk body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s):not(#xi-r):not(#xi-q){border-bottom-color:rgb(129,152,171)!important}
}
/* v372 category chips (desktop windows): text optically centred top/bottom (ink was ~1.1px high) */
@media (min-width:480.02px){
html.xi-desk body.portfolio-page .xi-sticky-gallery-nav .portfolio-filters .filter-button:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){padding-top:2.3px!important;padding-bottom:0!important;box-sizing:border-box!important}
}
/* v379 phone landscape: density 3 / 4 / 6; long line + tab edges unified */
@media (max-width:900px) and (orientation:landscape){
html body.portfolio-page[data-grid-columns="4"] .xi-gallery-panel .work-grid:not(#xi-x):not(#xi-y){grid-template-columns:repeat(4,minmax(0,1fr))!important}
html body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x):not(#xi-y){gap:5px!important}
}
@media (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s):not(#xi-r){border-bottom:1px solid rgb(129,152,171)!important}
}
/* v379 phone/tablet: 4-tab side borders run all the way down into the long line; the blue bar is square and thin like desktop */
@media (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z)>.xi-work-mode{margin-bottom:0!important;padding-top:7.5px!important;padding-bottom:8.5px!important;display:flex!important;align-items:center!important;justify-content:center!important;line-height:16px!important;gap:3px!important;z-index:2}
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z)::after{border-radius:0!important;height:3px!important;bottom:-1px!important}
}
@media (min-width:900.02px) and (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z)>.xi-work-mode{margin-bottom:-1px!important;padding-top:4.5px!important;padding-bottom:6.5px!important}
}
@media (max-width:900px) and (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z)>.xi-work-modes{margin-bottom:-2px!important}
}
/* v380 phone landscape (A56 etc., width <=900): category chips on ONE row, same look as the wider phones */
@media (max-width:900px) and (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){display:flex!important;flex-wrap:nowrap!important;grid-template-columns:none!important;gap:5px!important;align-items:center!important;justify-content:flex-start!important;overflow:hidden!important}
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w) .filter-button:not(#xi-v){flex:0 1 auto!important;width:auto!important;min-width:0!important;height:28px!important;min-height:28px!important;max-height:28px!important;padding:0 9px!important;font-size:11px!important;line-height:1!important;white-space:nowrap!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
}
@media (max-width:760px) and (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w) .filter-button:not(#xi-v){padding:0 6px!important}
}
/* v381 phone landscape: the active (blue) tab is never overlapped by its neighbours' rounded corners */
@media (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z)>.xi-work-mode.active,
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z)>.xi-work-mode[aria-pressed="true"],
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z)>.xi-work-mode[aria-selected="true"]{z-index:4!important}
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z)>.xi-work-mode:not(.active):not([aria-pressed="true"]):not([aria-selected="true"]){z-index:1!important}
}
@media (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z)::after{z-index:6!important}
}
/* v382 phone landscape: space between the 4th tab (隨機作品) and the column-count label */
@media (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z)>.xi-grid-density{margin-left:12px!important}
}
/* v383 phone landscape: tab + column-button frames use the desktop colours / thickness */
@media (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w)>.xi-work-mode:not(.active):not([aria-pressed="true"]){border:1px solid rgb(176,198,216)!important;border-bottom-width:0!important;color:rgb(100,122,140)!important}
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w)>.xi-work-mode.active{border:1px solid rgb(0,68,126)!important;border-bottom-width:0!important;box-shadow:inset 0 2px 0 0 rgba(255,255,255,.25)!important}
html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x):not(#xi-y):not(#xi-z)>.xi-grid-density-btn{border:1px solid rgb(198,211,222)!important;color:rgb(98,120,140)!important;box-shadow:0 2px 5px 0 rgba(32,61,85,.15)!important}
html:not(.xi-desk) body.portfolio-page .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x):not(#xi-y):not(#xi-z)>.xi-grid-density-btn.active{border:1px solid rgb(131,175,207)!important;color:rgb(0,79,143)!important;box-shadow:0 2px 5px 0 rgba(32,61,85,.15)!important}
}
/* v384 phone / tablet PORTRAIT: long line, blue bar, tab + column-button frames = the same spec as landscape / desktop */
@media (orientation:portrait){
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s):not(#xi-r){border-bottom:1px solid rgb(129,152,171)!important}
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w)::after{height:3px!important;bottom:-1px!important;border-radius:0!important;z-index:6!important}
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w)>.xi-work-mode:not(.active):not([aria-pressed="true"]){border:1px solid rgb(176,198,216)!important;border-bottom-width:0!important;color:rgb(100,122,140)!important;z-index:1!important}
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w)>.xi-work-mode.active{border:1px solid rgb(0,68,126)!important;border-bottom-width:0!important;box-shadow:inset 0 2px 0 0 rgba(255,255,255,.25)!important;z-index:4!important}
}
@media (orientation:portrait) and (max-width:767.98px){
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w)>.xi-work-mode{box-sizing:border-box!important;height:36.5px!important;margin-top:.5px!important;margin-bottom:-2px!important;padding:0 1px 0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important;line-height:16px!important}
}
@media (orientation:portrait) and (max-width:767.98px){
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v)::after{bottom:-2px!important}
}
/* v387 phone landscape (iPhone Safari, A56 ...), category pages: the 9 chips on ONE row, column buttons to their right */
@media (max-width:900px) and (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y){display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important}
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){display:flex!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;flex-wrap:nowrap!important;grid-template-columns:none!important;gap:5px!important;align-items:center!important;justify-content:flex-start!important;overflow:hidden!important;margin:0!important}
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w) .filter-button:not(#xi-v){flex:0 1 auto!important;width:auto!important;min-width:0!important;height:28px!important;min-height:28px!important;max-height:28px!important;padding:0 9px!important;font-size:11px!important;line-height:1!important;white-space:nowrap!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){flex:0 0 auto!important;position:static!important;width:auto!important;margin:0 0 0 auto!important;padding:0!important;border:0!important;height:auto!important;min-height:0!important}
}
@media (max-width:760px) and (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w) .filter-button:not(#xi-v){padding:0 6px!important}
}
@media (max-width:900px) and (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w)>.xi-grid-density{width:118px!important;min-width:118px!important;flex:0 0 118px!important;margin:0!important;position:static!important}
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x):not(#xi-y):not(#xi-z){position:static!important;width:118px!important;margin:0!important;left:auto!important;right:auto!important;transform:none!important;justify-content:space-between!important}
}
@media (max-width:900px) and (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s){width:118px!important;min-width:118px!important;max-width:118px!important;flex:0 0 118px!important}
}
@media (max-width:740px) and (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w) .filter-button:not(#xi-v){padding:0 4px!important;font-size:10px!important}
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){gap:3px!important}
}
@media (max-width:900px) and (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s){flex:1 1 0!important;width:auto!important;max-width:calc(100% - 126px)!important;min-width:0!important}
}
@media (max-width:900px) and (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s):not(#xi-r){flex:1 1 100%!important;width:100%!important;max-width:none!important}
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .portfolio-filters .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s):not(#xi-r){margin-left:auto!important;flex:0 0 118px!important}
}
/* v388 phone landscape, category pages: 3 / 4 / 6 move to a lower row (right aligned, with label) + thin line, spacing like the desktop category page */
@media (max-width:960px) and (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s):not(#xi-r):not(#xi-q):not(#xi-p):not(#xi-o):not(#xi-n):not(#xi-m):not(#xi-l):not(#xi-k):not(#xi-j){display:flex!important;flex-wrap:wrap!important;align-items:center!important;align-content:flex-start!important;column-gap:0!important;row-gap:0!important}
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s):not(#xi-r):not(#xi-q):not(#xi-p):not(#xi-o):not(#xi-n):not(#xi-m):not(#xi-l):not(#xi-k):not(#xi-j){display:flex!important;flex-wrap:wrap!important;align-items:center!important;align-content:flex-start!important;gap:5px!important;overflow:visible!important;width:100%!important;max-width:none!important;flex:1 1 100%!important}
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s):not(#xi-r):not(#xi-q):not(#xi-p):not(#xi-o):not(#xi-n):not(#xi-m):not(#xi-l):not(#xi-k):not(#xi-j){flex:0 0 100%!important;width:100%!important;min-width:0!important;max-width:none!important;display:flex!important;justify-content:flex-end!important;align-items:center!important;margin:6px 0 0!important;padding:0 0 8px!important;border:0!important;border-bottom:1px solid rgb(129,152,171)!important;box-sizing:border-box!important;height:auto!important;min-height:0!important;position:static!important}
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-modes-density-row>.xi-grid-density:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s):not(#xi-r):not(#xi-q):not(#xi-p):not(#xi-o):not(#xi-n):not(#xi-m):not(#xi-l):not(#xi-k):not(#xi-j){width:auto!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important;margin:0!important}
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s):not(#xi-r):not(#xi-q):not(#xi-p):not(#xi-o):not(#xi-n):not(#xi-m):not(#xi-l):not(#xi-k):not(#xi-j){width:auto!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;margin:0!important;position:static!important}
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .xi-grid-density-landscape:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s):not(#xi-r):not(#xi-q):not(#xi-p):not(#xi-o):not(#xi-n):not(#xi-m):not(#xi-l):not(#xi-k):not(#xi-j)::before{content:"作品展示欄數"!important;display:inline-block!important;font-size:12px!important;line-height:1!important;color:rgb(98,120,140)!important;margin-right:6px!important;position:static!important;background:none!important;width:auto!important;height:auto!important}
}

/* v390 phone landscape wider than 900px (A17 / large iPhones): density 4 really gives 4 columns */
@media (max-height:500px) and (orientation:landscape){
html:not(.xi-desk) body.portfolio-page[data-grid-columns="4"] .xi-gallery-panel .work-grid:not(#xi-x):not(#xi-y):not(#xi-z){grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

/* v391 closed lightbox: its (invisible) fullscreen / close buttons must never catch taps */
.gallery-modal:not(.is-open):not(#xi-x) *{visibility:hidden!important;pointer-events:none!important}
.gallery-modal:not(.is-open):not(#xi-x){pointer-events:none!important}

/* v392 phone landscape category pages: banner is hidden from the very first paint (no purple flash), chips get breathing room above */
@media (orientation:landscape) and (max-height:500px) and (max-width:960px){
html.xi-pre-cat:not(.xi-desk) body.portfolio-page .page-hero:not(#xi-x):not(#xi-y){height:0!important;min-height:0!important;max-height:0!important;padding-top:0!important;padding-bottom:0!important;border-width:0!important;opacity:0!important;overflow:hidden!important}
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z){padding-top:10px!important}
}

/* v393 phone landscape: (1) chip glow no longer clipped into a rectangle, (2) tab bar glow as soft as desktop, (3) 700-767px: shadow sits right on the long line */
@media (orientation:landscape) and (max-height:500px) and (max-width:960px){
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z){overflow:visible!important}
html:not(.xi-desk) body.portfolio-page .xi-work-modes:not(#xi-x):not(#xi-y):not(#xi-z)::after{box-shadow:0 -1px 3px rgba(84,151,207,.45)!important}
}
@media (orientation:landscape) and (max-height:500px) and (min-width:700px) and (max-width:960px){
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z){overflow:visible!important}
}
@media (orientation:landscape) and (max-height:500px) and (min-width:700px) and (max-width:767.98px){
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav .portfolio-filters.xi-density-inline:not(#xi-x):not(#xi-y):not(#xi-z){padding-bottom:0!important}
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-gallery-panel .work-grid:not(#xi-x):not(#xi-y):not(#xi-z){margin-top:18px!important}
}
@media (orientation:landscape) and (max-height:500px) and (min-width:700px) and (max-width:767.98px){
html:not(.xi-desk) body.portfolio-page.xi-category-view .xi-sticky-gallery-nav:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w){padding-top:16px!important}
}
/* v394 portfolio home, phone landscape (any width): chip glow never clipped into a block */
@media (orientation:landscape) and (max-height:500px) and (max-width:960px){
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z){overflow:visible!important}
}
@media (orientation:landscape) and (max-height:500px) and (max-width:960px){
html:not(.xi-desk) body.portfolio-page:not(.xi-category-view) .xi-sticky-gallery-nav .portfolio-filters:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v):not(#xi-u):not(#xi-t):not(#xi-s){overflow:visible!important}
}

/* v395 artwork images: not draggable / selectable, no iOS long-press save menu */
main img,.gallery-modal img,.work-image,.work-image img{-webkit-user-drag:none;user-drag:none;-webkit-touch-callout:none}
.gallery-modal img,.work-image img{user-select:none;-webkit-user-select:none}

/* v395 lightbox immersive view (the "full screen" button) */
.gallery-modal.xi-immersive:not(#xi-x):not(#xi-y):not(#xi-z){padding:0!important;background:#0c1219!important}
.gallery-modal.xi-immersive:not(#xi-x):not(#xi-y):not(#xi-z) .gallery-dialog{width:100%!important;max-width:none!important;height:100dvh!important;max-height:none!important;grid-template-rows:minmax(0,1fr)!important;background:transparent!important;box-shadow:none!important;border-radius:0!important}
.gallery-modal.xi-immersive:not(#xi-x):not(#xi-y):not(#xi-z) .gallery-category-tabs,
.gallery-modal.xi-immersive:not(#xi-x):not(#xi-y):not(#xi-z) .gallery-caption{display:none!important}
.gallery-modal.xi-immersive:not(#xi-x):not(#xi-y):not(#xi-z) .gallery-image-stage{grid-row:1!important;height:100%!important}
.gallery-modal.xi-immersive:not(#xi-x):not(#xi-y):not(#xi-z) .gallery-image-stage img{max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;object-fit:contain!important}
.gallery-modal.xi-immersive:not(#xi-x):not(#xi-y):not(#xi-z) .gallery-top-actions{top:max(8px,env(safe-area-inset-top))!important;right:max(8px,env(safe-area-inset-right))!important}
.gallery-modal.xi-immersive .gallery-control,.gallery-modal.xi-immersive .gallery-top-actions{transition:opacity .35s ease}
.gallery-modal.xi-immersive.xi-ctl-hidden .gallery-control,.gallery-modal.xi-immersive.xi-ctl-hidden .gallery-top-actions{opacity:0!important;pointer-events:none!important}
.gallery-modal.xi-immersive.xi-ctl-hidden{cursor:none}
.gallery-modal.xi-immersive.xi-ctl-hidden:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v) .gallery-control,
.gallery-modal.xi-immersive.xi-ctl-hidden:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v) .gallery-prev,
.gallery-modal.xi-immersive.xi-ctl-hidden:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v) .gallery-next,
.gallery-modal.xi-immersive.xi-ctl-hidden:not(#xi-x):not(#xi-y):not(#xi-z):not(#xi-w):not(#xi-v) .gallery-top-actions{opacity:0!important;pointer-events:none!important}
