:root{--paper:#F7F7FF;--indigo:#27187D;--ink:#151515;--muted:#66666F;--line:#E5E5EC}
.wordmark{display:block;width:90px;padding:0;line-height:0}
.wordmark img{display:block;width:100%;height:auto}
.wordmark-notch{display:none}
.projects-loading{grid-column:1/-1;color:var(--muted);font-size:14px}
footer .wordmark{width:62px}
footer .wordmark img{width:100%}
@media(max-width:680px){.wordmark{width:72px}}

/* Approved homepage direction — September iteration */
:root{--electric:#1514C5}
.brand-mark{display:block;width:47px;line-height:0}
.brand-mark img{display:block;width:100%;height:auto}
.hero-v2{height:790px;min-height:700px;background:radial-gradient(circle at 76% 63%,rgba(21,20,197,.12),transparent 31%),var(--paper)}
.hero-v2 .hero-content{padding-top:138px;width:min(43%,590px);margin-left:max(7%,calc((100vw - var(--content))/2));margin-right:0}
.hero-v2 .kicker{gap:18px;margin-bottom:34px;font-size:12px;letter-spacing:.25em}
.hero-v2 h1{font-size:clamp(4rem,5.45vw,5.45rem);line-height:1.02;letter-spacing:-.06em;text-transform:none;font-weight:500}
.hero-v2 h1 span{color:var(--electric)}
.hero-v2 .hero-description{max-width:560px;margin:29px 0 30px;color:#656a86;font-size:1.125rem;line-height:1.55}
.hero-text-link{display:flex;align-items:center;justify-content:space-between;width:205px;padding:0 0 12px;border-bottom:1px solid #8f94ae;font-size:1rem;transition:color .2s,width .25s}
.hero-text-link:hover{width:222px;color:var(--electric)}
.hero-cards{position:absolute;right:max(3.5%,calc((100vw - var(--content))/2 - 10px));top:77px;width:min(52vw,730px);height:590px}
.hero-card{position:absolute;margin:0;border:1px solid rgba(255,255,255,.62);border-radius:25px;overflow:hidden;box-shadow:0 30px 75px rgba(28,27,86,.17);background:#dfe0ef;transition:transform .45s ease,filter .45s ease}
.hero-card img{width:100%;height:100%;display:block;object-fit:cover}
.hero-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,rgba(8,8,25,.7))}
.hero-card figcaption{position:absolute;z-index:1;left:25px;right:25px;bottom:24px;color:#fff;font-size:.8rem;letter-spacing:.18em;text-transform:uppercase}
.hero-card-left{width:43%;height:410px;left:0;top:115px;transform:rotate(8deg);filter:saturate(.65) brightness(.82)}
.hero-card-center{z-index:3;width:49%;height:555px;left:24%;top:0;transform:rotate(2.5deg)}
.hero-card-center img{object-position:50% 23%;filter:saturate(.72) contrast(1.04)}
.hero-card-center figcaption{display:flex;align-items:flex-end;justify-content:space-between;line-height:1.5}
.hero-card-center figcaption span{max-width:100px}.hero-card-center figcaption strong{font-size:1.3rem;letter-spacing:0}
.hero-card-right{width:37%;height:410px;right:0;top:112px;transform:rotate(-7deg);filter:saturate(.65) brightness(.9)}
.hero-cards:hover .hero-card-left{transform:rotate(5deg) translateX(-8px)}
.hero-cards:hover .hero-card-right{transform:rotate(-4deg) translateX(8px)}
.hero-v2 .scroll-cue{bottom:35px}

.disciplines{padding:105px 8px 125px;border-top:1px solid var(--line)}
.disciplines-heading{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:40px;align-items:start;margin-bottom:65px}
.disciplines-heading h2{margin:0;font-size:clamp(2.6rem,4vw,4.5rem);line-height:1;letter-spacing:-.055em;font-weight:500}
.disciplines-heading h2 span{color:var(--electric)}
.disciplines-heading>p:last-child{margin:3px 0 0;color:var(--muted);font-size:1rem;line-height:1.55}
.discipline-deck{display:flex;justify-content:center;align-items:center;min-height:410px;padding:0 20px;overflow:hidden}
.discipline-card{position:relative;flex:0 1 235px;height:345px;margin-left:-34px;border-radius:18px;overflow:hidden;border:1px solid rgba(255,255,255,.7);box-shadow:0 22px 50px rgba(26,24,88,.15);filter:saturate(.7) brightness(.8);transform:scale(.93);transition:flex-basis .45s ease,height .45s ease,transform .45s ease,filter .45s ease;cursor:pointer;outline:none;background:#24233b}
.discipline-card:first-child{margin-left:0}
.discipline-card img{width:100%;height:100%;object-fit:cover;display:block}
.discipline-card:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(16,14,55,.06),rgba(10,9,30,.76))}
.discipline-card>div{position:absolute;z-index:1;left:20px;right:20px;bottom:20px;color:white}
.discipline-card span{font-size:.72rem;letter-spacing:.18em}.discipline-card h3{margin:7px 0 0;font-size:1.05rem;font-weight:500}
.discipline-card.is-active,.discipline-card:hover,.discipline-card:focus-visible{z-index:2;flex-basis:300px;height:400px;filter:none;transform:scale(1)}

@media(max-width:1100px){.hero-v2 .hero-content{width:48%}.hero-cards{right:2%;width:51vw;transform:scale(.9);transform-origin:right center}.disciplines-heading{grid-template-columns:1fr 2fr}.disciplines-heading>p:last-child{grid-column:2}.discipline-card{margin-left:-70px}}
@media(max-width:760px){.site-header{grid-template-columns:auto 1fr}.brand-mark{width:40px}.hero-v2{height:auto;min-height:890px;display:block}.hero-v2 .hero-content{width:auto;margin:0;padding:65px 6% 0}.hero-v2 h1{font-size:clamp(3.2rem,13vw,4.5rem)}.hero-v2 .hero-description{font-size:1rem;max-width:560px}.hero-cards{position:relative;right:auto;top:auto;width:100%;height:390px;margin-top:55px;transform:none}.hero-card{border-radius:17px}.hero-card-left{height:270px;left:4%;top:62px}.hero-card-center{height:365px;left:25%;width:50%}.hero-card-right{height:270px;right:4%;top:60px}.hero-card figcaption{left:15px;right:15px;bottom:14px;font-size:.65rem}.hero-v2 .scroll-cue{display:none}.disciplines{padding:72px 0 85px}.disciplines-heading{display:block;margin-bottom:42px}.disciplines-heading .section-label{margin-bottom:22px}.disciplines-heading h2{font-size:2.8rem}.disciplines-heading>p:last-child{font-size:1rem;margin-top:24px}.discipline-deck{justify-content:flex-start;overflow-x:auto;scroll-snap-type:x mandatory;padding:15px 6% 30px}.discipline-card,.discipline-card.is-active,.discipline-card:hover,.discipline-card:focus-visible{flex:0 0 78vw;height:390px;margin-left:14px;transform:none;filter:none;scroll-snap-align:center}.discipline-card:first-child{margin-left:0}}

/* Hero actions and theme controls */
.header-actions{justify-self:end;display:flex;align-items:center;gap:20px}
.theme-toggle{display:inline-flex;align-items:center;gap:9px;min-height:38px;padding:0 14px;border:1px solid rgba(39,24,125,.14);border-radius:999px;background:rgba(255,255,255,.58);color:var(--ink);font:inherit;font-size:.75rem;letter-spacing:.08em;cursor:pointer;box-shadow:0 8px 26px rgba(39,24,125,.06);backdrop-filter:blur(10px);transition:background .25s,color .25s,border-color .25s,transform .25s}
.theme-toggle:hover{transform:translateY(-1px);border-color:rgba(21,20,197,.35)}
.theme-toggle:focus-visible,.hero-button:focus-visible{outline:2px solid var(--electric);outline-offset:3px}
.theme-dot{width:8px;height:8px;border-radius:50%;background:var(--electric);box-shadow:0 0 0 4px rgba(21,20,197,.1)}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:38px}
.hero-button{display:flex;align-items:center;justify-content:space-between;gap:28px;min-width:178px;min-height:54px;padding:0 20px;border:1px solid transparent;border-radius:14px;font-size:.92rem;font-weight:500;transition:transform .25s,box-shadow .25s,background .25s,border-color .25s}
.hero-button:hover{transform:translateY(-2px)}
.hero-button-primary{background:var(--electric);color:#fff;box-shadow:0 15px 34px rgba(21,20,197,.2)}
.hero-button-primary:hover{box-shadow:0 19px 42px rgba(21,20,197,.28)}
.hero-button-secondary{border-color:rgba(255,255,255,.88);background:rgba(255,255,255,.68);color:var(--ink);box-shadow:0 14px 34px rgba(39,24,125,.08);backdrop-filter:blur(12px)}
.hero-button-secondary:hover{border-color:rgba(21,20,197,.2);background:rgba(255,255,255,.82)}
html[data-theme="dark"]{--paper:#0D0D14;--ink:#F7F7FF;--muted:#A6A6B8;--line:#292936;color-scheme:dark}
html[data-theme="dark"] body{background:var(--paper);color:var(--ink)}
html[data-theme="dark"] .site-header{background:rgba(13,13,20,.72);border-color:rgba(255,255,255,.08);box-shadow:0 12px 38px rgba(0,0,0,.2);backdrop-filter:blur(18px)}
html[data-theme="dark"] .site-nav a,html[data-theme="dark"] .identity strong{color:var(--ink)}
html[data-theme="dark"] .identity span,html[data-theme="dark"] .section-label{color:#9393AA}
html[data-theme="dark"] .theme-toggle{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.12);color:var(--ink);box-shadow:none}
html[data-theme="dark"] .theme-dot{background:#F7F7FF;box-shadow:0 0 0 4px rgba(247,247,255,.1)}
html[data-theme="dark"] .hero-v2{background:radial-gradient(circle at 76% 63%,rgba(67,65,255,.18),transparent 34%),var(--paper)}
html[data-theme="dark"] .hero-button-secondary{border-color:rgba(255,255,255,.13);background:rgba(255,255,255,.075);color:var(--ink);box-shadow:0 16px 36px rgba(0,0,0,.2)}
html[data-theme="dark"] .hero-button-secondary:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.22)}
html[data-theme="dark"] .work,html[data-theme="dark"] .disciplines,html[data-theme="dark"] .minor-section{background:var(--paper);color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .work-heading p,html[data-theme="dark"] .disciplines-heading>p:last-child,html[data-theme="dark"] .minor-section p,html[data-theme="dark"] .work-principle{color:var(--muted)}
html[data-theme="dark"] footer{background:#09090E;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] dialog{background:#14141D;color:var(--ink);border-color:rgba(255,255,255,.12)}
html[data-theme="dark"] dialog::backdrop{background:rgba(0,0,0,.78)}
html[data-theme="dark"] .dialog-top{border-color:var(--line)}
html[data-theme="dark"] .dialog-top button{color:var(--ink)}
@media(max-width:760px){.header-actions{margin-left:auto;gap:10px}.theme-toggle{min-height:34px;padding:0 11px}.hero-actions{margin-top:32px}.hero-button{min-width:0;flex:1 1 155px}}
@media(max-width:430px){.header-actions .identity{display:none}.hero-actions{display:grid;grid-template-columns:1fr 1fr}.hero-button{min-width:0;padding:0 15px;gap:14px}}
@media(prefers-reduced-motion:reduce){.theme-toggle,.hero-button{transition:none}}
.about-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.about-button{display:flex;align-items:center;justify-content:space-between;gap:24px;min-width:178px;min-height:52px;padding:0 18px;border:1px solid transparent;border-radius:14px;font:inherit;font-size:.9rem;transition:transform .25s,background .25s,border-color .25s}
.about-button-primary{background:var(--electric);color:#fff;box-shadow:0 14px 32px rgba(21,20,197,.18)}
.about-button-secondary{border-color:rgba(39,24,125,.14);background:rgba(255,255,255,.64);color:var(--ink);backdrop-filter:blur(10px)}
.about-button-secondary:hover{transform:translateY(-2px);border-color:rgba(21,20,197,.28)}
.about-button:focus-visible{outline:2px solid var(--electric);outline-offset:3px}
.about-button:disabled{cursor:not-allowed;opacity:.56;box-shadow:none}
html[data-theme="dark"] .about-button-secondary{border-color:rgba(255,255,255,.13);background:rgba(255,255,255,.075);color:var(--ink)}
@media(max-width:430px){.about-actions{display:grid;grid-template-columns:1fr 1fr}.about-button{min-width:0;padding:0 14px;gap:12px}}
.work-filters{display:flex;align-items:center;gap:8px;margin:30px 0 26px;overflow-x:auto;scrollbar-width:none}
.work-filters::-webkit-scrollbar{display:none}
.work-filter{flex:0 0 auto;min-height:38px;padding:0 16px;border:1px solid rgba(39,24,125,.13);border-radius:999px;background:rgba(255,255,255,.58);color:var(--muted);font:inherit;font-size:.78rem;cursor:pointer;transition:background .22s,color .22s,border-color .22s,transform .22s}
.work-filter:hover{transform:translateY(-1px);border-color:rgba(21,20,197,.3);color:var(--ink)}
.work-filter.is-active{border-color:var(--electric);background:var(--electric);color:#fff}
.work-filter:focus-visible{outline:2px solid var(--electric);outline-offset:2px}
html[data-theme="dark"] .work-filter{border-color:rgba(255,255,255,.12);background:rgba(255,255,255,.055);color:var(--muted)}
html[data-theme="dark"] .work-filter:hover{border-color:rgba(255,255,255,.24);color:var(--ink)}
html[data-theme="dark"] .work-filter.is-active{border-color:var(--electric);background:var(--electric);color:#fff}
@media(max-width:760px){.work-filters{margin-top:24px;padding-bottom:4px}}

/* Portrait mosaic — ideas assembling into a complete vision */
.portrait-mosaic{position:absolute;right:max(7%,calc((100vw - var(--content))/2 + 38px));top:88px;width:min(34vw,490px);aspect-ratio:.78;border-radius:4px;isolation:isolate;filter:drop-shadow(0 28px 58px rgba(22,18,82,.18));perspective:900px}
.portrait-mosaic:before{content:"";position:absolute;inset:8% -12% -7% 15%;z-index:-1;background:radial-gradient(circle,rgba(21,20,197,.2),transparent 67%);filter:blur(25px)}
.mosaic-fallback{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 28%;opacity:.12;filter:grayscale(1) contrast(1.08)}
.mosaic-grid{position:absolute;inset:0;display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(10,1fr);gap:2px}
.mosaic-tile{background-image:url("assets/portrait.jpg");background-repeat:no-repeat;background-size:800% 1000%;opacity:0;transform:translate3d(var(--scatter-x),var(--scatter-y),var(--scatter-z)) rotate(var(--scatter-r)) scale(.72);transition:transform 1.05s cubic-bezier(.2,.82,.2,1),opacity .7s ease,filter .25s ease;transition-delay:var(--delay);will-change:transform;filter:grayscale(1) contrast(1.12)}
.portrait-mosaic.is-ready .mosaic-tile{opacity:1;transform:translate3d(var(--hover-x,0),var(--hover-y,0),var(--hover-z,0)) rotate(var(--hover-r,0deg)) scale(1)}
.mosaic-signature{position:absolute;left:20px;right:20px;bottom:18px;z-index:2;display:flex;align-items:flex-end;justify-content:space-between;color:#fff;text-transform:uppercase;letter-spacing:.16em;pointer-events:none;text-shadow:0 2px 12px rgba(0,0,0,.8)}
.mosaic-signature span{max-width:110px;font-size:.72rem;line-height:1.5}.mosaic-signature strong{font-size:1.15rem;letter-spacing:.04em}
.mosaic-signature img{display:block;width:58px;height:auto;filter:brightness(0) invert(1) drop-shadow(0 2px 10px rgba(0,0,0,.65))}
html[data-theme="dark"]{--paper:#090A11;--ink:#F7F7FF;--muted:#B2B4C7;--line:#30323F}
html[data-theme="dark"] body{background:#090A11}
html[data-theme="dark"] .hero-v2{background:radial-gradient(circle at 78% 56%,rgba(39,24,125,.3),transparent 34%),linear-gradient(180deg,#090A11 0%,#0C0D16 100%)}
html[data-theme="dark"] .hero-v2 .kicker{color:#E7E8F5}
html[data-theme="dark"] .hero-v2 .short-rule,html[data-theme="dark"] .heading-rule{background:#55596C}
html[data-theme="dark"] .site-header{background:rgba(12,13,21,.88);border-color:#2B2D39}
html[data-theme="dark"] .brand-mark img{filter:brightness(0) invert(1);transition:filter .3s ease}
html[data-theme="dark"] .site-nav a{color:#EAEBF5}
html[data-theme="dark"] .site-nav a:hover{color:#6563FF}
html[data-theme="dark"] .identity strong{color:#F7F7FF}
html[data-theme="dark"] .identity span{color:#AEB0C4}
html[data-theme="dark"] .hero-button-primary,html[data-theme="dark"] .work-filter.is-active{background:#2927E6;border-color:#4F4DF1;box-shadow:0 16px 38px rgba(41,39,230,.3)}
html[data-theme="dark"] .hero-button-secondary,html[data-theme="dark"] .about-button-secondary{background:#1A1B26;border-color:#404353;color:#F7F7FF;box-shadow:0 12px 30px rgba(0,0,0,.2);backdrop-filter:none}
html[data-theme="dark"] .work,html[data-theme="dark"] .disciplines{background:#0D0E17}
html[data-theme="dark"] .minor-section{background:#10111B}
html[data-theme="dark"] .work-heading p,html[data-theme="dark"] .disciplines-heading>p:last-child,html[data-theme="dark"] .minor-section p{color:#B2B4C7}
html[data-theme="dark"] .work-heading a,html[data-theme="dark"] .contact a{color:#DADBEC}
html[data-theme="dark"] .work-principle{color:#D4D5E4}
html[data-theme="dark"] .project{border:1px solid #2F3240}
html[data-theme="dark"] .discipline-card{border-color:#3A3C49;box-shadow:0 24px 54px rgba(0,0,0,.34)}
html[data-theme="dark"] .work-filter{background:#181923;border-color:#343746;color:#C0C2D3}
html[data-theme="dark"] footer{background:#07080D;border-top:1px solid #2A2C36;color:#B9BBCB}
html[data-theme="dark"] footer .wordmark img{filter:brightness(0) invert(1)}
html[data-theme="dark"] .portrait-mosaic{filter:drop-shadow(0 32px 70px rgba(31,29,153,.24))}
@media(max-width:1100px){.portrait-mosaic{right:3%;width:min(39vw,470px)}}
@media(max-width:760px){.hero-v2{min-height:900px}.portrait-mosaic{position:relative;right:auto;top:auto;width:min(78vw,430px);margin:52px auto 0}.mosaic-grid{gap:1px}}
@media(prefers-reduced-motion:reduce){.mosaic-tile{transition:none;opacity:1;transform:none!important}}

/* Sticky section-aware navigation */
.site-header{position:sticky;top:14px;z-index:50}
.site-nav{gap:8px;padding:4px;border:1px solid rgba(39,24,125,.08);border-radius:13px;background:rgba(247,247,255,.38)}
.site-nav a{position:relative;min-width:74px;padding:9px 14px;border-radius:10px;text-align:center;overflow:hidden;transition:color .24s,background .24s,box-shadow .24s}
.site-nav a:after{content:"";position:absolute;right:0;top:20%;width:2px;height:60%;border-radius:999px;background:var(--electric);opacity:0;transform:scaleY(.2);box-shadow:0 0 5px var(--electric),0 0 14px rgba(21,20,197,.85);transition:opacity .25s,transform .32s}
.site-nav a.is-active{background:rgba(21,20,197,.07);color:var(--electric);box-shadow:inset 0 0 0 1px rgba(21,20,197,.08)}
.site-nav a.is-active:after{opacity:1;transform:scaleY(1)}
.section{scroll-margin-top:115px}
html[data-theme="dark"] .site-nav{background:#12131D;border-color:#2D303D}
html[data-theme="dark"] .site-nav a{color:#BEC0D0}
html[data-theme="dark"] .site-nav a:hover{background:#1A1B27;color:#F7F7FF}
html[data-theme="dark"] .site-nav a.is-active{background:linear-gradient(90deg,#1B1C28,#20213A);color:#F7F7FF;box-shadow:inset 0 0 0 1px #343749,0 6px 20px rgba(0,0,0,.18)}
html[data-theme="dark"] .site-nav a:after{background:#5553FF;box-shadow:0 0 6px #5553FF,0 0 16px #2927E6,0 0 25px rgba(41,39,230,.72)}
@media(max-width:760px){.site-header{top:8px}.site-nav{padding:3px;overflow-x:auto;scrollbar-width:none}.site-nav::-webkit-scrollbar{display:none}.site-nav a{min-width:max-content;padding:8px 11px}}

/* Direct contact routes */
.contact>div{max-width:820px}
.contact h2{max-width:760px}
.contact-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:26px;max-width:460px}
.contact-link{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:48px;padding:11px 16px;border:1px solid rgba(39,24,125,.16);border-radius:10px;background:transparent;color:var(--ink);box-shadow:none;transition:border-color .2s,background .2s,color .2s}
.contact-link:hover{border-color:var(--electric);background:rgba(39,24,125,.05)}
.contact-link svg{flex:0 0 20px;color:var(--electric)}
.contact-link .contact-label{font-size:14px;font-weight:500;color:inherit;text-shadow:none}
.contact-link small{display:block;margin-bottom:9px;color:var(--muted);font-size:.7rem;letter-spacing:.1em;text-transform:uppercase}
.contact-link strong{display:block;font-size:.88rem;font-weight:500;overflow-wrap:anywhere}
.contact-link:focus-visible{outline:2px solid var(--electric);outline-offset:3px}
html[data-theme="dark"] .contact-link{border-color:#343746;background:#181923;color:#F7F7FF;box-shadow:none}
html[data-theme="dark"] .contact-link:hover{border-color:#5053A1;background:#1E2030;box-shadow:none}
html[data-theme="dark"] .contact-link small{color:#AEB0C4}

@media(max-width:520px){.contact-links{grid-template-columns:repeat(2,minmax(0,1fr))}.contact-link{padding:11px 12px}}

/* Selected work deck — inherited from the approved discipline interaction */
.work{overflow:hidden}
.work .project-grid{display:flex;align-items:center;justify-content:center;gap:0;min-height:430px;padding:12px 34px 28px;overflow:visible}
.work .project{flex:0 1 255px;height:350px;aspect-ratio:auto;margin-left:-28px;border-radius:18px;border:1px solid rgba(255,255,255,.72);box-shadow:0 22px 50px rgba(26,24,88,.15);filter:saturate(.72) brightness(.82);transform:scale(.93);transition:flex-basis .45s ease,height .45s ease,transform .45s ease,filter .45s ease,box-shadow .45s ease;isolation:isolate}
.work .project:first-child{margin-left:0}
.work .project img{width:100%;height:100%;object-fit:cover;transition:transform .55s ease}
.work .project.is-active,.work .project:hover,.work .project:focus-visible{z-index:4;flex-basis:330px;height:410px;filter:none;transform:scale(1);box-shadow:0 28px 64px rgba(26,24,88,.22)}
.work .project.is-active img,.work .project:hover img,.work .project:focus-visible img{transform:scale(1.025)}
.work .project-overlay{z-index:3}
.work .project-shade{z-index:2;background:linear-gradient(180deg,rgba(9,9,24,.04) 32%,rgba(7,7,20,.78) 100%)}
.work .project-arrow{z-index:4}
html[data-theme="dark"] .work .project{border-color:#3A3C49;box-shadow:0 24px 54px rgba(0,0,0,.34)}
html[data-theme="dark"] .work .project.is-active,html[data-theme="dark"] .work .project:hover,html[data-theme="dark"] .work .project:focus-visible{border-color:#55596C;box-shadow:0 30px 72px rgba(21,20,197,.2)}
@media(max-width:900px){.work .project-grid{justify-content:flex-start;min-height:430px;padding:14px 6% 32px;overflow-x:auto;scroll-snap-type:x mandatory}.work .project,.work .project.is-active,.work .project:hover,.work .project:focus-visible{flex:0 0 72vw;height:390px;margin-left:14px;transform:none;filter:none;scroll-snap-align:center}.work .project:first-child{margin-left:0}}

/* Refined About CTAs */
.minor-section .about-actions{display:flex;align-items:center;gap:12px;margin-top:34px}
.minor-section .about-actions .about-button{display:flex;align-items:center;justify-content:space-between;gap:24px;width:196px;min-height:58px;margin:0;padding:0 10px 0 20px;border:1px solid transparent;border-radius:15px;font-size:.92rem;font-weight:500;text-decoration:none;box-sizing:border-box}
.minor-section .about-actions .about-button-primary{background:linear-gradient(135deg,#1514C5,#2927E6);color:#fff;border-color:#3A38ED;box-shadow:0 15px 34px rgba(21,20,197,.23)}
.minor-section .about-actions .about-button-secondary{background:rgba(255,255,255,.72);color:var(--ink);border-color:rgba(39,24,125,.14);box-shadow:0 12px 28px rgba(39,24,125,.07);backdrop-filter:blur(10px)}
.about-button-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.14);transition:transform .25s,background .25s}
.about-button-secondary .about-button-icon{background:rgba(21,20,197,.07);color:var(--electric)}
.minor-section .about-actions .about-button-secondary:hover{transform:translateY(-3px);border-color:rgba(21,20,197,.3);box-shadow:0 17px 36px rgba(39,24,125,.11)}
.minor-section .about-actions .about-button-secondary:hover .about-button-icon{transform:translate(2px,-2px);background:rgba(21,20,197,.12)}
.minor-section .about-actions .about-button:disabled{opacity:1;cursor:not-allowed}
.minor-section .about-actions .about-button-primary:disabled{background:linear-gradient(135deg,#211FB9,#2927D7);color:rgba(255,255,255,.82);box-shadow:0 12px 28px rgba(21,20,197,.17)}
html[data-theme="dark"] .minor-section .about-actions .about-button-secondary{background:#1A1B26;border-color:#414453;color:#F7F7FF;box-shadow:0 12px 30px rgba(0,0,0,.22);backdrop-filter:none}
html[data-theme="dark"] .about-button-secondary .about-button-icon{background:#27293A;color:#7472FF}
@media(max-width:520px){.minor-section .about-actions{display:grid;grid-template-columns:1fr 1fr}.minor-section .about-actions .about-button{width:100%;padding-left:14px;gap:10px}.about-button-icon{flex-basis:32px;width:32px;height:32px}}

/* Spatial portrait and pointer motion */
.portrait-mosaic{right:max(2.5%,calc((100vw - var(--content))/2 - 12px));top:118px;width:min(51vw,735px);aspect-ratio:1.5;transform:perspective(1100px) rotateX(var(--portrait-rx,0deg)) rotateY(var(--portrait-ry,0deg));transform-style:preserve-3d;transition:filter .35s ease}
.portrait-mosaic:before{inset:12% 0 -12% 14%;background:radial-gradient(ellipse,rgba(21,20,197,.28),transparent 65%);filter:blur(38px)}
.mosaic-fallback{object-position:center;opacity:.07;filter:none}
.mosaic-grid{grid-template-columns:repeat(10,1fr);grid-template-rows:repeat(7,1fr);gap:0;overflow:hidden}
.mosaic-tile{background-image:url("assets/portrait-particles.png");background-size:1000% 700%;filter:none;transition:transform 1.35s cubic-bezier(.16,.84,.22,1),opacity .95s ease,filter .35s ease;backface-visibility:hidden}
.portrait-mosaic.is-ready .mosaic-tile{opacity:1}
.portrait-mosaic:hover{filter:drop-shadow(0 34px 72px rgba(21,20,197,.25))}
.mosaic-signature{bottom:16px;left:24px;right:24px}
html[data-theme="light"] .portrait-mosaic{mix-blend-mode:multiply}
html[data-theme="light"] .mosaic-signature{display:none}
@media(max-width:1100px){.portrait-mosaic{right:1%;width:min(52vw,650px)}}
@media(max-width:760px){.portrait-mosaic{width:min(94vw,700px);margin-top:48px;mix-blend-mode:normal!important}.mosaic-signature{display:flex!important}}

.work .project:before{content:"";position:absolute;inset:0;z-index:1;background:radial-gradient(circle at var(--light-x,50%) var(--light-y,50%),rgba(255,255,255,.2),transparent 35%);opacity:0;transition:opacity .35s;pointer-events:none}
.work .project:hover:before,.work .project:focus-visible:before{opacity:1}
.work .project.is-active,.work .project:hover,.work .project:focus-visible{transform:perspective(900px) translate3d(var(--card-x,0),var(--card-y,0),0) rotateX(var(--card-rx,0deg)) rotateY(var(--card-ry,0deg)) scale(1)}

@media(pointer:fine) and (prefers-reduced-motion:no-preference){
  body,body a,body button{cursor:none}
  .space-cursor{position:fixed;left:0;top:0;z-index:9999;width:34px;height:34px;margin:-17px 0 0 -17px;border:1px solid rgba(90,88,255,.72);border-radius:50%;pointer-events:none;opacity:0;mix-blend-mode:screen;transition:width .25s,height .25s,margin .25s,opacity .2s,background .25s,border-color .25s;will-change:transform}
  .space-cursor.is-visible{opacity:1}
  .space-cursor-core{position:absolute;left:50%;top:50%;width:4px;height:4px;margin:-2px;border-radius:50%;background:#fff;box-shadow:0 0 8px #fff,0 0 18px #5553FF}
  .space-cursor-orbit{position:absolute;inset:-5px;border-radius:50%;border:1px solid rgba(85,83,255,.28);animation:cursor-orbit 2.8s linear infinite}
  .space-cursor-orbit:after{content:"";position:absolute;left:50%;top:-2px;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:#6563FF;box-shadow:0 0 10px #5553FF}
  .space-cursor.is-interactive{width:54px;height:54px;margin:-27px 0 0 -27px;background:rgba(41,39,230,.11);border-color:#7775FF}
  .space-cursor.is-pressed{width:24px;height:24px;margin:-12px 0 0 -12px;background:rgba(85,83,255,.24)}
  @keyframes cursor-orbit{to{transform:rotate(360deg)}}
}
@media(prefers-reduced-motion:reduce){.portrait-mosaic{transform:none}.space-cursor{display:none}.work .project{--card-x:0!important;--card-y:0!important;--card-rx:0deg!important;--card-ry:0deg!important}}

/* Motion system v2 — clean portrait, interactive particles and restrained sound control */
:root{--motion-smooth:cubic-bezier(.16,.84,.22,1);--motion-soft:cubic-bezier(.22,.61,.36,1)}
.hero-v2{isolation:isolate;overflow:hidden}
.hero-v2 .hero-content,.portrait-mosaic,.scroll-cue{z-index:2}
.particle-field{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none;mask-image:linear-gradient(90deg,transparent 35%,#000 58%,#000 100%)}
.particle-field:before{content:"";position:absolute;right:3%;top:12%;width:48%;height:72%;border-radius:50%;background:radial-gradient(circle,rgba(85,83,255,.14),transparent 67%);filter:blur(22px)}
.particle-field i{position:absolute;left:var(--px);top:var(--py);width:var(--size);height:var(--size);border-radius:50%;background:var(--electric);opacity:var(--alpha);box-shadow:0 0 calc(var(--size)*3) rgba(85,83,255,.64);will-change:transform;transition:opacity .35s ease}
html[data-theme="dark"] .particle-field i{background:#8EB5FF;box-shadow:0 0 calc(var(--size)*4) rgba(85,83,255,.85)}
.portrait-mosaic{right:max(7%,calc((100vw - var(--content))/2 + 34px));top:86px;width:min(34vw,490px);aspect-ratio:.78;border-radius:22px;overflow:hidden;background:#0A0A10;transform:perspective(1100px) translate3d(var(--portrait-x,0),var(--portrait-y,0),0) rotateX(var(--portrait-rx,0deg)) rotateY(var(--portrait-ry,0deg));transition:filter .5s var(--motion-soft),box-shadow .5s var(--motion-soft);box-shadow:0 28px 70px rgba(22,18,82,.2)}
.portrait-mosaic:after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,transparent 48%,rgba(6,6,14,.55) 100%);pointer-events:none}
.portrait-mosaic .mosaic-fallback{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;object-position:50% 24%;opacity:1;filter:grayscale(1) contrast(1.08);transition:transform .9s var(--motion-smooth),filter .45s ease}
.portrait-assembly{position:absolute;inset:0;z-index:2;display:grid;grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(6,1fr);overflow:hidden;pointer-events:none;transition:opacity .4s ease}
.portrait-assembly i{display:block;background:url("assets/portrait-new.jpeg") no-repeat;background-size:800% 600%;opacity:0;transform:translate3d(var(--assemble-x),var(--assemble-y),0) rotate(var(--assemble-r)) scale(.84);will-change:transform,opacity;transition:transform 1.15s var(--motion-smooth),opacity .62s ease;transition-delay:var(--assemble-delay)}
.portrait-mosaic:not(.assembly-complete) .mosaic-fallback{opacity:.08}
.portrait-mosaic.is-assembled .portrait-assembly i{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
.portrait-mosaic.assembly-complete .portrait-assembly{opacity:0;visibility:hidden}
.portrait-mosaic.assembly-complete .mosaic-fallback{opacity:1;transition:opacity .45s ease,transform .9s var(--motion-smooth),filter .45s ease}
.portrait-mosaic:hover .mosaic-fallback{transform:scale(1.018);filter:grayscale(1) contrast(1.12)}
.portrait-mosaic .mosaic-signature{display:flex!important;z-index:3}
html[data-theme="light"] .portrait-mosaic{mix-blend-mode:normal}
html[data-theme="light"] .mosaic-signature{display:flex!important}
.work .project{transition:flex-basis .58s var(--motion-smooth),height .58s var(--motion-smooth),transform .38s var(--motion-soft),filter .48s ease,box-shadow .48s ease}
.work .project img{transition:transform .75s var(--motion-smooth)}
.work .project:before{transition:opacity .42s var(--motion-soft)}
@media(max-width:1100px){.portrait-mosaic{right:3%;width:min(38vw,470px)}}
@media(max-width:760px){.particle-field{mask-image:linear-gradient(180deg,transparent 18%,#000 48%,#000 100%)}.portrait-mosaic{position:relative;right:auto;top:auto;width:min(78vw,430px);margin:50px auto 0}}
@media(prefers-reduced-motion:reduce){.particle-field i{transform:none!important}.portrait-assembly{display:none}.portrait-mosaic .mosaic-fallback{opacity:1;transition:none}.work .project{transition:none}}

/* Project details reveal only on intent */
.work .project-overlay,.work .project-arrow,.work .project-shade{opacity:0;pointer-events:none}
.work .project-overlay{transform:translate3d(0,24px,0);filter:blur(8px);transition:opacity .42s var(--motion-soft),transform .58s var(--motion-smooth),filter .48s ease}
.work .project-overlay strong,.work .project-overlay>span{display:block;opacity:0;transform:translateY(12px);transition:opacity .36s ease,transform .52s var(--motion-smooth)}
.work .project-overlay>span{transition-delay:.055s}
.work .project-shade{transform:scaleY(.72);transform-origin:bottom;transition:opacity .38s ease,transform .58s var(--motion-smooth)}
.work .project-arrow{transform:translate(-9px,9px) scale(.75);transition:opacity .35s ease,transform .52s var(--motion-smooth)}
.work .project:hover .project-overlay,.work .project:focus-visible .project-overlay,.work .project:hover .project-arrow,.work .project:focus-visible .project-arrow,.work .project:hover .project-shade,.work .project:focus-visible .project-shade{opacity:1}
.work .project:hover .project-overlay,.work .project:focus-visible .project-overlay{transform:translate3d(0,0,0);filter:blur(0)}
.work .project:hover .project-overlay strong,.work .project:focus-visible .project-overlay strong,.work .project:hover .project-overlay>span,.work .project:focus-visible .project-overlay>span{opacity:1;transform:translateY(0)}
.work .project:hover .project-shade,.work .project:focus-visible .project-shade{transform:scaleY(1)}
.work .project:hover .project-arrow,.work .project:focus-visible .project-arrow{transform:translate(0,0) scale(1)}
@media(hover:none){.work .project-overlay,.work .project-arrow,.work .project-shade{opacity:1}.work .project-overlay,.work .project-overlay strong,.work .project-overlay>span,.work .project-shade,.work .project-arrow{transform:none;filter:none}.work .project-overlay strong,.work .project-overlay>span{opacity:1}}

/* Motion and header performance refinement */
.brand-mark{width:36px;height:36px}
.work .project{backface-visibility:hidden;transition:transform .48s var(--motion-smooth),filter .42s ease,box-shadow .42s ease}
.work .project.is-active,.work .project:hover,.work .project:focus-visible{flex-basis:270px;height:380px;transform:perspective(900px) translate3d(var(--card-x,0),var(--card-y,0),0) rotateX(var(--card-rx,0deg)) rotateY(var(--card-ry,0deg)) scale(1.035)}
.space-cursor{will-change:transform;contain:layout style paint}
@media(max-width:760px){.brand-mark{width:32px;height:32px}.work .project.is-active,.work .project:hover,.work .project:focus-visible{height:auto;transform:none}}

/* Stable portrait assembly on reload */
.portrait-mosaic.is-loading .mosaic-fallback,.portrait-mosaic:not(.is-assembled):not(.assembly-complete) .mosaic-fallback{opacity:0}
.portrait-mosaic.is-loading .portrait-assembly i{transition:none}
.portrait-mosaic .portrait-assembly{transform:translateZ(0);backface-visibility:hidden}
.portrait-mosaic .portrait-assembly i{backface-visibility:hidden;transform-origin:center;contain:paint}
.portrait-mosaic.assembly-complete .portrait-assembly{opacity:0;visibility:hidden;transition:opacity .38s ease,visibility 0s linear .38s}
.portrait-mosaic.assembly-complete .mosaic-fallback{opacity:1}

/* Cursor contrast across both themes */
html[data-theme="light"] .space-cursor{mix-blend-mode:normal;border-color:rgba(39,24,125,.78);background:rgba(247,247,255,.2);box-shadow:0 0 0 1px rgba(255,255,255,.72),0 4px 18px rgba(39,24,125,.14)}
html[data-theme="light"] .space-cursor-core{background:#27187D;box-shadow:0 0 7px rgba(39,24,125,.7),0 0 15px rgba(52,40,255,.42)}
html[data-theme="light"] .space-cursor-orbit{border-color:rgba(39,24,125,.34)}
html[data-theme="light"] .space-cursor-orbit:after{background:#27187D;box-shadow:0 0 9px rgba(39,24,125,.58)}
html[data-theme="dark"] .space-cursor{mix-blend-mode:screen;border-color:rgba(126,124,255,.78)}

/* Clean portrait: no mosaic or glitch treatment */
.portrait-clean{background:#080A16}
.portrait-clean .mosaic-fallback{opacity:1!important;filter:none;object-position:center 30%;transform:scale(1.001);animation:portrait-reveal .9s var(--motion-smooth) both}
.portrait-clean:hover .mosaic-fallback{transform:scale(1.025);filter:none}
.portrait-clean .mosaic-signature{background:linear-gradient(180deg,transparent,rgba(5,6,15,.46));left:0;right:0;bottom:0;padding:54px 22px 18px}
@keyframes portrait-reveal{from{opacity:0;transform:scale(1.025)}to{opacity:1;transform:scale(1.001)}}

/* Reference-led selected work cards */
.work .project-grid{align-items:center;min-height:520px;padding:42px 5% 62px;gap:18px}
.work .project{flex:0 0 clamp(235px,21vw,306px);height:430px;margin-left:0;border-radius:28px;border:1px solid rgba(255,255,255,.7);filter:saturate(.68) brightness(.72);box-shadow:0 26px 55px rgba(26,24,88,.16);overflow:hidden}
.work .project.is-active,.work .project:hover,.work .project:focus-visible{flex-basis:clamp(235px,21vw,306px);height:470px;filter:saturate(1) brightness(1);transform:perspective(900px) translate3d(var(--card-x,0),calc(var(--card-y,0) - 12px),0) rotateX(var(--card-rx,0deg)) rotateY(var(--card-ry,0deg)) scale(1.025);box-shadow:0 38px 78px rgba(39,24,125,.25)}
.work .project img{height:100%;object-fit:cover}
.work .project-shade{opacity:1;background:linear-gradient(180deg,transparent 34%,rgba(5,7,20,.18) 52%,rgba(5,7,20,.9) 100%);transform:none}
.work .project-overlay{left:16px;right:16px;bottom:16px;display:grid;gap:14px;opacity:0;transform:translate3d(0,18px,0);filter:none}
.work .project-meta{display:grid;gap:5px;text-align:left}
.work .project-meta strong{font-size:clamp(1.45rem,2vw,2rem);font-weight:600;letter-spacing:-.035em}
.work .project-meta>span{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:rgba(255,255,255,.72)}
.work .project-cta{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:0 16px;border:1px solid rgba(255,255,255,.18);border-radius:14px;background:rgba(10,10,24,.48);color:#fff;font-size:.82rem;backdrop-filter:blur(14px)}
.work .project-cta i{font-style:normal;font-size:1rem}
.work .project:hover .project-overlay,.work .project:focus-visible .project-overlay,.work .project.is-active .project-overlay{opacity:1;transform:none}
.work .project:hover .project-overlay>span,.work .project:focus-visible .project-overlay>span,.work .project.is-active .project-overlay>span,.work .project:hover .project-meta strong,.work .project:hover .project-meta>span,.work .project:focus-visible .project-meta strong,.work .project:focus-visible .project-meta>span,.work .project.is-active .project-meta strong,.work .project.is-active .project-meta>span{opacity:1;transform:none}
.work .project:before{z-index:3}
html[data-theme="dark"] .work .project{border-color:rgba(255,255,255,.16);box-shadow:0 28px 62px rgba(0,0,0,.42)}
@media(max-width:760px){.portrait-clean .mosaic-fallback{object-position:center 28%}.work .project-grid{justify-content:flex-start;min-height:0;padding:26px 6% 46px;overflow-x:auto;scroll-snap-type:x mandatory}.work .project,.work .project.is-active,.work .project:hover,.work .project:focus-visible{flex:0 0 78vw;height:440px;transform:none;scroll-snap-align:center}.work .project-overlay{opacity:1;transform:none}.work .project-meta strong,.work .project-meta>span{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.portrait-clean .mosaic-fallback{animation:none;transform:none}}

/* Portrait assembly restored without the reload glitch */
.portrait-clean .mosaic-fallback{animation:none;opacity:1!important;transform:scale(1.001)}
.portrait-clean .portrait-assembly{opacity:1;visibility:visible;transition:opacity .46s ease,visibility 0s linear 0s}
.portrait-clean .portrait-assembly i{background-image:url("assets/portrait-hero-crop.webp");opacity:0;transform:translate3d(var(--assemble-x),var(--assemble-y),0) rotate(var(--assemble-r)) scale(.9);transition:transform 1.08s var(--motion-smooth),opacity .48s ease;transition-delay:var(--assemble-delay);will-change:transform,opacity}
.portrait-clean.is-assembled .portrait-assembly i{opacity:1;transform:translate3d(0,0,0) rotate(0) scale(1)}
.portrait-clean.assembly-complete .portrait-assembly{opacity:0;visibility:hidden;transition:opacity .46s ease,visibility 0s linear .46s}
.portrait-clean:hover .mosaic-fallback{transform:scale(1.018)}
.portrait-clean,.portrait-clean .portrait-assembly,.portrait-clean .mosaic-fallback{contain:layout paint;backface-visibility:hidden}
.portrait-clean .mosaic-fallback{aspect-ratio:39/50;object-position:center;transform:translateZ(0) scale(1.001);will-change:transform,opacity}

/* Selected work — exact reference proportions with clear hover copy separation */
.work .project-grid{align-items:center;justify-content:center;gap:22px;min-height:540px;padding:46px 0 66px}
.work .project{flex:0 0 clamp(220px,20vw,286px);height:410px;margin:0;border-radius:26px;filter:saturate(.76) brightness(.78);box-shadow:0 24px 48px rgba(25,23,72,.16);transform:translateY(10px) scale(.96);transition:transform .58s var(--motion-smooth),filter .42s ease,box-shadow .48s ease,border-color .35s ease}
.work .project.is-active{height:458px;z-index:2;filter:none;transform:translateY(-8px) scale(1);box-shadow:0 36px 76px rgba(39,24,125,.25)}
.work .project:hover,.work .project:focus-visible,.work .project.is-active:hover,.work .project.is-active:focus-visible{height:458px;z-index:5;filter:none;transform:perspective(900px) translate3d(var(--card-x,0),calc(var(--card-y,0) - 12px),0) rotateX(var(--card-rx,0deg)) rotateY(var(--card-ry,0deg)) scale(1.018);box-shadow:0 42px 86px rgba(39,24,125,.28),0 0 0 1px rgba(67,55,255,.22)}
.work .project-shade{inset:auto 0 0;height:64%;opacity:0;background:linear-gradient(180deg,transparent 0%,rgba(7,8,22,.58) 35%,rgba(7,8,22,.96) 100%);transform:translateY(18%);transition:opacity .38s ease,transform .58s var(--motion-smooth)}
.work .project-overlay{top:auto;left:18px;right:18px;bottom:18px;display:grid;gap:13px;padding:0;opacity:0;transform:translateY(22px);filter:none;transition:opacity .34s ease,transform .58s var(--motion-smooth)}
.work .project-meta{display:grid;gap:4px;color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.72)}
.work .project-meta strong{font-size:clamp(1.35rem,1.8vw,1.75rem);line-height:1.05}
.work .project-meta>span{color:rgba(255,255,255,.78);font-size:.68rem;letter-spacing:.11em}
.work .project-cta{min-height:49px;padding:0 16px;border:1px solid rgba(255,255,255,.16);border-radius:13px;background:rgba(11,12,29,.82);box-shadow:0 10px 24px rgba(0,0,0,.22);backdrop-filter:blur(8px)}
.work .project.is-active .project-overlay,.work .project.is-active .project-shade{opacity:0;transform:translateY(22px)}
.work .project:hover .project-overlay,.work .project:focus-visible .project-overlay,.work .project.is-active:hover .project-overlay,.work .project.is-active:focus-visible .project-overlay{opacity:1;transform:translateY(0)}
.work .project:hover .project-shade,.work .project:focus-visible .project-shade,.work .project.is-active:hover .project-shade,.work .project.is-active:focus-visible .project-shade{opacity:1;transform:translateY(0)}
html[data-theme="dark"] .work .project{box-shadow:0 26px 58px rgba(0,0,0,.44)}
html[data-theme="dark"] .work .project:hover,html[data-theme="dark"] .work .project:focus-visible{box-shadow:0 42px 90px rgba(0,0,0,.58),0 0 34px rgba(65,57,255,.2)}
@media(max-width:900px){.work .project-grid{justify-content:flex-start;gap:14px;padding-inline:6%;overflow-x:auto;scroll-snap-type:x mandatory}.work .project,.work .project.is-active,.work .project:hover,.work .project:focus-visible{flex:0 0 72vw;height:430px;transform:none;scroll-snap-align:center}.work .project-overlay,.work .project-shade,.work .project.is-active .project-overlay,.work .project.is-active .project-shade{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.portrait-clean .portrait-assembly{display:none}.work .project{transition:none}}

/* Project profile cards — framed media, editorial details and a direct case-study action */
.work .project-grid{gap:clamp(18px,2.2vw,34px);perspective:1200px}
.work .project{box-sizing:border-box;display:flex;flex-direction:column;flex:0 0 clamp(224px,20vw,282px);height:446px;padding:12px;border:1px solid rgba(39,24,125,.13);border-radius:24px;background:#ECECF7;color:#15151D;overflow:hidden;filter:none;box-shadow:0 24px 52px rgba(31,25,81,.14);transform:translateY(12px) rotate(var(--deck-angle,0deg)) scale(.95)}
.work .project:nth-child(1){--deck-angle:-5deg;transform-origin:right bottom}
.work .project:nth-child(2){--deck-angle:0deg}
.work .project:nth-child(3){--deck-angle:4deg;transform-origin:left bottom}
.work .project:nth-child(4){--deck-angle:7deg;transform-origin:left bottom}
.work .project.is-active{height:482px;background:#F3F3FC;transform:translateY(-10px) rotate(0) scale(1.01);box-shadow:0 38px 82px rgba(39,24,125,.22)}
.work .project:hover,.work .project:focus-within,.work .project.is-active:hover,.work .project.is-active:focus-within{height:482px;z-index:6;background:#F7F7FF;transform:perspective(1000px) translate3d(var(--card-x,0),calc(var(--card-y,0) - 14px),0) rotateX(var(--card-rx,0deg)) rotateY(var(--card-ry,0deg)) scale(1.018);border-color:rgba(42,32,207,.38);box-shadow:0 42px 90px rgba(39,24,125,.26),0 0 30px rgba(49,39,230,.12)}
.work .project:before{display:none}
.work .project-media{position:relative;flex:0 0 245px;border-radius:16px;overflow:hidden;background:#DCDCEA}
.work .project-media:after{content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.28);border-radius:inherit;pointer-events:none}
.work .project-media img{width:100%;height:100%;object-fit:cover;transform:scale(1.001);transition:transform .7s var(--motion-smooth),filter .4s ease}
.work .project:hover .project-media img,.work .project:focus-within .project-media img{transform:scale(1.035)}
.work .project-body{display:grid;grid-template-rows:auto auto auto 1fr;align-content:start;min-height:0;padding:15px 3px 2px;text-align:left}
.work .project-location{color:#5E6073;font-size:.68rem;line-height:1.2;letter-spacing:.11em;text-transform:uppercase}
.work .project-body h3{margin:7px 0 3px;color:#15151D;font-size:1.22rem;line-height:1.08;font-weight:600;letter-spacing:-.035em}
.work .project-body p{margin:0;color:#6A6C7E;font-size:.76rem;line-height:1.35}
.work .project-cta{align-self:end;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:46px;margin-top:15px;padding:0 14px;border:1px solid rgba(39,24,125,.12);border-radius:13px;background:#FFFFFF;color:#171722;font-size:.8rem;font-weight:500;box-shadow:0 7px 18px rgba(35,28,91,.07);backdrop-filter:none;transition:color .28s ease,background .28s ease,border-color .28s ease,box-shadow .28s ease,transform .28s ease}
.work .project-cta:hover,.work .project-cta:focus-visible{border-color:#3027D9;background:#3027D9;color:#fff;box-shadow:0 10px 26px rgba(48,39,217,.3),0 0 20px rgba(48,39,217,.18);transform:translateY(-1px)}
.work .project-cta:focus-visible{outline:2px solid #3027D9;outline-offset:3px}
.work .project-shade,.work .project-overlay{display:none}
html[data-theme="dark"] .work .project{border-color:#343646;background:#171821;color:#F7F7FF;box-shadow:0 28px 62px rgba(0,0,0,.44)}
html[data-theme="dark"] .work .project.is-active,html[data-theme="dark"] .work .project:hover,html[data-theme="dark"] .work .project:focus-within{border-color:#4C4F68;background:#1D1E29;box-shadow:0 42px 92px rgba(0,0,0,.6),0 0 30px rgba(65,57,255,.16)}
html[data-theme="dark"] .work .project-media{background:#101117}
html[data-theme="dark"] .work .project-location{color:#AEB1C5}
html[data-theme="dark"] .work .project-body h3{color:#F7F7FF}
html[data-theme="dark"] .work .project-body p{color:#B6B8C9}
html[data-theme="dark"] .work .project-cta{border-color:#3C3F50;background:#252632;color:#F7F7FF;box-shadow:0 8px 20px rgba(0,0,0,.22)}
html[data-theme="dark"] .work .project-cta:hover,html[data-theme="dark"] .work .project-cta:focus-visible{border-color:#5553FF;background:#3936EA;box-shadow:0 12px 30px rgba(41,39,230,.36),0 0 22px rgba(85,83,255,.25)}
@media(max-width:900px){.work .project-grid{gap:16px}.work .project,.work .project.is-active,.work .project:hover,.work .project:focus-within{flex:0 0 76vw;height:470px;transform:none}.work .project-media{flex-basis:270px}.work .project-body{flex:1}}


/* OUF interactive tab selection */
.site-header .site-nav{position:relative;isolation:isolate;gap:4px;padding:5px;border-radius:999px;background:rgba(39,24,125,.055);border:1px solid rgba(39,24,125,.09)}
.site-header .site-nav a{position:relative;z-index:1;padding:11px 22px;border-radius:999px;font-size:14px;transition:color .24s,transform .24s}
.site-header .site-nav a[aria-current],.site-header .site-nav a.is-active{color:#27187D;background:transparent;box-shadow:none}
.site-header .site-nav a:focus-visible{outline:2px solid #27187D;outline-offset:3px}
.nav-selection{position:absolute;top:0;left:0;z-index:0;border-radius:999px;background:#fff;border:1px solid rgba(39,24,125,.12);box-shadow:0 3px 10px rgba(39,24,125,.1),inset 0 1px 0 #fff;pointer-events:none;transition:transform .55s cubic-bezier(.22,1.25,.36,1),width .4s cubic-bezier(.22,1,.36,1),height .4s}
.nav-selection[hidden]{display:none}
.nav-switching a[aria-current]{animation:nav-settle .45s ease-out}
@keyframes nav-settle{40%{transform:scale(1.06)}100%{transform:scale(1)}}
html[data-theme="dark"] .site-header .site-nav{background:rgba(247,247,255,.055);border-color:rgba(247,247,255,.1)}
html[data-theme="dark"] .nav-selection{background:#343047;border-color:rgba(247,247,255,.18);box-shadow:0 3px 12px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.1)}
html[data-theme="dark"] .site-header .site-nav a[aria-current],html[data-theme="dark"] .site-header .site-nav a.is-active{color:#F7F7FF}
@media(max-width:680px){.site-header .site-nav{width:100%;display:flex;justify-content:space-between}.site-header .site-nav a{flex:1;text-align:center;padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.nav-selection,.site-header .site-nav a{transition:none}.nav-switching a[aria-current]{animation:none}}
