/* Shared project index, selected projects and detail pages. */
.portfolio-section{background:#fff}.portfolio-heading{display:flex;justify-content:space-between;align-items:end;gap:40px;margin-bottom:42px;max-width:1600px;margin-left:auto;margin-right:auto}.portfolio-heading .eyebrow{font-size:10px;letter-spacing:.14em;margin-bottom:20px}.portfolio-heading h2{font-size:clamp(36px,4.1vw,65px);letter-spacing:-.055em}.portfolio-heading>p{max-width:330px;font-size:14px;line-height:1.8;color:#74828b}.portfolio-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px;max-width:1600px;margin:auto}.portfolio-card{display:block;min-width:0}.portfolio-photo{position:relative;aspect-ratio:1.45;overflow:hidden;border-radius:27px;isolation:isolate;background:#e4eae9}.portfolio-photo>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 1s cubic-bezier(.2,.7,.2,1),opacity .7s}.portfolio-photo>.portfolio-hover{opacity:0}.portfolio-photo:after{content:'';position:absolute;inset:50% 0 0;background:linear-gradient(transparent,#0a283a50);pointer-events:none}.portfolio-type{position:absolute;left:23px;top:23px;padding:9px 15px;border:1px solid #ffffff85;border-radius:25px;background:#ffffffd9;backdrop-filter:blur(15px);color:#214352;font-size:10px;z-index:2}.portfolio-open{position:absolute;right:22px;bottom:22px;display:grid;place-items:center;width:49px;height:49px;border:1px solid #ffffff80;border-radius:50%;background:#ffffff25;backdrop-filter:blur(12px);color:white;z-index:2;transition:background .3s,transform .4s}.portfolio-open svg{width:18px;height:18px}.portfolio-caption{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:23px 4px}.portfolio-caption>div>span{display:block;font-size:10px;letter-spacing:.06em;color:#829096;margin-bottom:8px}.portfolio-caption h3{font-size:clamp(23px,2.2vw,34px);letter-spacing:-.045em;line-height:1.2}.portfolio-view{display:flex;align-items:center;gap:12px;font-size:11px;color:#4f6c7a;white-space:nowrap}.portfolio-bottom{max-width:1600px;margin:20px auto 0;display:flex;justify-content:flex-end;align-items:center;gap:30px}.portfolio-all{display:inline-flex;align-items:center;gap:28px;border-bottom:1px solid #adc0c8;padding:12px 0;font-size:13px;color:#244c60;transition:gap .3s}.portfolio-all:hover{gap:35px}.portfolio-swipe{display:none}@media(hover:hover){.portfolio-card:hover .portfolio-photo>img{transform:scale(1.04)}.portfolio-card:hover .portfolio-photo>.portfolio-hover{opacity:1}.portfolio-card:hover .portfolio-open{background:#ffffffd9;color:#163d4b;transform:rotate(45deg)}}.portfolio-card:focus-visible{outline:2px solid #678996;outline-offset:7px;border-radius:27px}
#projects-panel.portfolio-mega{width:990px;grid-template-columns:.8fr 1fr 1fr;gap:22px}.portfolio-mega .nav-project-photo{height:180px}.portfolio-mega .projects-panel-copy h2{font-size:29px}.portfolio-mega .nav-project-info strong{font-size:18px}.portfolio-mega .nav-project-info{gap:10px}.mobile-menu-links .mobile-all-projects{font-size:14px;padding:10px 0 22px;color:white;display:flex;justify-content:space-between}
.project-hero{height:100svh;min-height:630px;max-height:1200px;position:relative;color:white;isolation:isolate;background:#1a3136;overflow:hidden}.project-hero-image{position:absolute;inset:0;object-fit:cover;object-position:center 45%;z-index:-2}.project-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(#10262c40,transparent 30%,#0a1f2a10 45%,#0a1f2ab5);z-index:-1}.project-hero-alh .project-hero-image{object-position:center 42%}.project-hero-copy{position:absolute;left:var(--pad);right:var(--pad);bottom:9%;max-width:1600px;margin:auto}.project-back{display:inline-flex;gap:12px;align-items:center;border:1px solid #ffffff70;border-radius:30px;padding:10px 17px;font-size:11px;background:#ffffff16;backdrop-filter:blur(14px);margin-bottom:34px}.project-back svg{transform:rotate(180deg);width:12px;height:12px}.project-hero-copy>p{font-size:11px;letter-spacing:.16em;margin-bottom:19px}.project-hero h1{font-size:clamp(50px,6.4vw,105px);letter-spacing:-.065em;font-weight:400;line-height:1.05;max-width:1300px}.project-down{display:inline-flex;align-items:center;gap:30px;font-size:12px;margin-top:32px;border-bottom:1px solid #ffffff60;padding-bottom:13px}.project-down svg{height:17px;width:17px;transition:transform .3s}.project-down:hover svg{transform:translateY(4px)}
.project-intro{display:grid;grid-template-columns:1fr 1fr;gap:10%;max-width:1800px;margin:auto;padding-top:95px;padding-bottom:85px;scroll-margin-top:90px}.project-intro .eyebrow{font-size:10px;letter-spacing:.15em;margin-bottom:23px}.project-intro h2{max-width:560px;font-size:clamp(35px,4vw,60px);letter-spacing:-.055em}.project-description{color:#6f808b;font-size:15px;line-height:1.9;max-width:570px}.project-intro dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;border-top:1px solid #dfe7eb;padding-top:28px;margin:33px 0 0}.project-intro dt{font-size:10px;color:#82939c;margin-bottom:9px}.project-intro dd{font-size:12px;color:#2d4d5d;line-height:1.7;margin:0}.project-gallery-section{padding-top:20px;padding-bottom:70px;max-width:1800px;margin:auto}.project-gallery-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.project-gallery-heading h2{font-size:27px;letter-spacing:-.04em}.project-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.project-photo{padding:0;border-radius:24px;position:relative;overflow:hidden;aspect-ratio:1.3;background:#e4eae9;text-align:left;isolation:isolate;cursor:zoom-in}.project-photo:nth-child(5n+1){grid-column:1/-1;aspect-ratio:2.1}.project-photo img{width:100%;height:100%;object-fit:cover;transition:transform .9s}.project-photo>span:first-of-type{position:absolute;bottom:22px;left:25px;right:85px;font-size:12px;color:white;z-index:2;text-shadow:0 1px 15px #0b283a99}.project-photo:after{content:'';position:absolute;inset:60% 0 0;background:linear-gradient(transparent,#0b283a65);pointer-events:none;z-index:1}.project-photo-expand{position:absolute;bottom:20px;right:20px;z-index:2;display:grid;place-items:center;width:40px;height:40px;border:1px solid #ffffff80;background:#ffffff20;border-radius:50%;color:white;backdrop-filter:blur(10px)}.project-photo:hover img{transform:scale(1.025)}.project-image-note{font-size:10px;color:#80909a;margin-top:20px;line-height:1.7}.project-next{display:grid;grid-template-columns:1fr 1.35fr;align-items:center;gap:9%;background:#f4f7f7}.project-next .eyebrow{font-size:10px;letter-spacing:.15em;margin-bottom:22px}.project-next h2{font-size:clamp(33px,3.5vw,53px)}.project-next .portfolio-caption{padding-bottom:0}.project-contact-banner{padding:80px 5%;text-align:center;background:#073247;color:white;position:relative;overflow:hidden;isolation:isolate}.project-contact-banner:before{content:'';position:absolute;inset:-100% -30%;z-index:-1;background:radial-gradient(ellipse at center,#739d9b28,transparent 60%);transform:rotate(-25deg);pointer-events:none}.project-contact-banner .eyebrow{font-size:9px;color:#b5cbd4;letter-spacing:.15em;margin-bottom:22px}.project-contact-banner h2{font-size:clamp(42px,5vw,74px);letter-spacing:-.06em}.project-contact-banner .glass-button{font-size:13px;gap:35px}.project-page .site-footer{border-top:1px solid #ffffff16}.project-page .dialog-photo img{object-fit:contain}.project-page #project-gallery{max-width:1200px}.project-page .gallery-controls{gap:8px}.project-page .gallery-controls .ui-icon{width:20px;height:20px}.project-page .dialog-bottom p{font-size:14px}.project-page .dialog-bottom>span{font-size:10px;display:block;margin-top:6px}.project-page .dialog-top .eyebrow{font-size:11px}
@media(min-width:761px) and (max-width:1100px){#projects-panel.portfolio-mega{width:680px;grid-template-columns:1fr 1fr}.portfolio-mega>.projects-panel-copy{display:none}.portfolio-photo{aspect-ratio:1.15}.portfolio-caption{align-items:flex-start;flex-direction:column;gap:15px}.project-intro{gap:6%}.project-intro dl{gap:12px}.project-next{gap:5%}}
@media(max-width:760px){.portfolio-section{padding-top:55px;padding-bottom:55px}.portfolio-heading{display:block;margin-bottom:28px}.portfolio-heading .eyebrow{font-size:9px;margin-bottom:17px}.portfolio-heading h2{font-size:40px}.portfolio-heading>p{font-size:12px;margin-top:20px;max-width:290px}.portfolio-section:not(.project-directory) .portfolio-grid{display:flex;gap:15px;overflow-x:auto;scroll-snap-type:x mandatory;padding:6px 1px 10px;scrollbar-width:none;margin-right:-5.5%}.portfolio-section:not(.project-directory) .portfolio-grid::-webkit-scrollbar{display:none}.portfolio-section:not(.project-directory) .portfolio-card{flex:0 0 88%;scroll-snap-align:start}.portfolio-photo{aspect-ratio:.98;border-radius:22px}.portfolio-type{top:17px;left:16px;font-size:9px;padding:8px 12px}.portfolio-open{width:41px;height:41px;right:16px;bottom:17px}.portfolio-caption{display:block;padding:18px 2px}.portfolio-caption h3{font-size:25px}.portfolio-caption>div>span{font-size:9px;margin-bottom:8px}.portfolio-view{font-size:10px;margin-top:15px;gap:16px}.portfolio-bottom{justify-content:space-between;gap:10px;margin-top:12px}.portfolio-swipe{display:block;font-size:9px;color:#8a9ca4}.portfolio-all{font-size:11px;gap:15px}.project-directory .portfolio-grid{grid-template-columns:1fr;gap:32px}.project-hero{min-height:610px;max-height:950px}.project-hero-image{object-position:center}.project-hero-alh .project-hero-image{object-position:center}.project-hero-copy{left:6%;right:6%;bottom:8%}.project-hero h1{font-size:clamp(43px,11vw,68px);line-height:1.08;letter-spacing:-.055em}.project-hero-copy>p{font-size:9px;letter-spacing:.1em}.project-back{font-size:10px;margin-bottom:25px}.project-down{font-size:11px;margin-top:28px}.project-intro{grid-template-columns:1fr;gap:27px;padding:55px 6%;scroll-margin-top:80px}.project-intro h2{font-size:39px}.project-intro .eyebrow{font-size:9px;margin-bottom:15px}.project-description{font-size:13px;line-height:1.85}.project-intro dl{gap:15px;margin-top:25px;padding-top:22px}.project-intro dd{font-size:10px}.project-intro dt{font-size:9px}.project-gallery-section{padding:0 6% 50px}.project-gallery-heading{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:24px}.project-gallery-heading h2{font-size:27px}.project-photo-grid{gap:13px;grid-template-columns:1fr}.project-photo,.project-photo:nth-child(5n+1){grid-column:auto;aspect-ratio:1.16;border-radius:20px}.project-photo>span:first-of-type{font-size:10px;left:17px;bottom:18px;right:65px}.project-photo-expand{width:33px;height:33px;right:14px;bottom:14px}.project-image-note{font-size:9px;margin-top:17px}.project-next{grid-template-columns:1fr;gap:29px;padding:45px 6%}.project-next h2{font-size:36px}.project-next .eyebrow{font-size:9px;margin-bottom:15px}.project-contact-banner{padding:55px 6%}.project-contact-banner h2{font-size:51px}.project-contact-banner .glass-button{font-size:12px;padding:14px 23px;gap:25px}.project-page #project-gallery{width:calc(100% - 20px);border-radius:20px}.project-page .dialog-photo{height:58svh}.project-page .dialog-top{padding:15px 18px}.project-page .dialog-bottom{padding:17px 18px}.project-page .dialog-bottom p{font-size:12px}.project-page .dialog-top .eyebrow{font-size:9px}.project-page .gallery-controls{bottom:12px;right:12px}}
@media(prefers-reduced-motion:reduce){.portfolio-photo>img,.portfolio-open,.portfolio-all,.project-photo img,.project-down svg{transition:none!important}.portfolio-card:hover .portfolio-photo>img,.portfolio-card:hover .portfolio-open,.project-photo:hover img{transform:none}}

/* Neutral black overlay for the selected Lliçà cover. */
.project-hero-obra-nova-llica:after{background:linear-gradient(#00000040,transparent 30%,#00000010 45%,#000000b5)}
.portfolio-card[href="/proyectos/obra-nova-llica/"] .portfolio-photo:after{background:linear-gradient(transparent,#00000050)}

/* Project detail: a full-screen gallery with one persistent information card. */
body.project-immersive{height:100svh;overflow:hidden;background:#141414}.project-immersive main{height:100%}.project-viewer{height:100svh;width:100%;position:relative;isolation:isolate;overflow:hidden}.viewer-canvas{position:absolute;inset:0;touch-action:pan-y;background:#141414}.viewer-layer{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;opacity:0;transition:opacity .7s ease}.viewer-layer.is-active{opacity:1}.viewer-layer.is-portrait{object-fit:contain}.viewer-canvas:after{content:'';position:absolute;inset:0;background:linear-gradient(#00000050,transparent 28%,transparent 65%,#00000030);pointer-events:none}.viewer-card{position:absolute;bottom:30px;left:var(--pad);width:345px;max-width:calc(100% - 48px);padding:24px 25px 20px;border-radius:24px;border:1px solid #ffffffbb;background:#fffffff0;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:0 16px 60px #00000020;color:#1c2c32}.viewer-back{display:inline-flex;align-items:center;gap:9px;font-size:9px;letter-spacing:.12em;color:#657378;margin-bottom:20px}.viewer-back svg{width:12px;height:12px;transform:rotate(180deg)}.viewer-card h1{font-size:27px;line-height:1.15;letter-spacing:-.045em;font-weight:400;margin:0 0 10px}.viewer-meta{font-size:10px;color:#657378;line-height:1.6;margin:0}.viewer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;padding-bottom:17px;border-bottom:1px solid #213a471a}.viewer-picker-open{display:inline-flex;align-items:center;gap:9px;background:none;border:0;padding:7px 0;font-size:12px;color:inherit;cursor:pointer}.viewer-picker-open svg{height:15px;width:15px}.viewer-arrows{display:flex;gap:8px}.viewer-arrows button{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;border:1px solid #213a472b;background:#fff8;color:#24353c;cursor:pointer}.viewer-arrows svg{height:16px;width:16px}.viewer-arrows button:hover{background:#23343b;color:#fff}.viewer-details{margin-top:15px}.viewer-details summary{list-style:none;font-size:10px;color:#657378;display:flex;align-items:center;justify-content:space-between;cursor:pointer}.viewer-details summary::-webkit-details-marker{display:none}.viewer-details summary span{font-size:16px}.viewer-details[open] summary span{transform:rotate(45deg)}.viewer-details-content{max-height:27svh;overflow-y:auto;overscroll-behavior:contain;padding:13px 3px 2px 0;font-size:11px;line-height:1.75;color:#657378}.viewer-details-content dl{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:13px 0}.viewer-details-content dt{font-size:9px}.viewer-details-content dd{margin:3px 0;font-size:10px;color:#24353c}.viewer-details-content .viewer-note{font-size:9px;margin-top:12px}.viewer-details-content #credits-open{font-size:9px;text-decoration:underline;border:0;background:none;padding:10px 0;color:inherit;cursor:pointer}.viewer-contact{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:11px;margin-top:17px}.viewer-contact svg{width:14px;height:14px}.viewer-card a:focus-visible,.viewer-card button:focus-visible,.viewer-card summary:focus-visible,.viewer-thumb:focus-visible{outline:2px solid #2f5264;outline-offset:4px}.viewer-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.project-immersive #project-picker{width:min(1050px,calc(100% - 40px));max-height:86svh;border-radius:25px}.viewer-thumbnails{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding:0 25px 25px}.viewer-thumb{border:2px solid transparent;background:#f1f3f3;border-radius:15px;padding:5px;text-align:left;cursor:pointer;overflow:hidden;color:#23343b}.viewer-thumb[aria-pressed=true]{border-color:#355b6c}.viewer-thumb img{display:block;width:100%;height:auto;aspect-ratio:1.6;object-fit:cover;border-radius:10px}.viewer-thumb span{display:block;padding:9px 6px;font-size:10px;line-height:1.5}.project-immersive .header{background:transparent}.project-immersive .header:before{display:none}
@media(max-width:760px){.viewer-card{left:16px;bottom:max(16px,env(safe-area-inset-bottom));width:305px;max-width:calc(100% - 32px);padding:18px 20px 16px;border-radius:21px}.viewer-back{margin-bottom:13px;font-size:8px}.viewer-card h1{font-size:24px;margin-bottom:7px}.viewer-meta{font-size:9px}.viewer-toolbar{margin-top:14px;padding-bottom:12px}.viewer-picker-open{font-size:11px}.viewer-arrows button{width:37px;height:37px}.viewer-details{margin-top:10px}.viewer-contact{margin-top:12px;font-size:10px}.viewer-details-content{max-height:23svh}.viewer-layer{object-position:42% center}.viewer-thumbnails{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:0 14px 16px}.project-immersive #project-picker{width:calc(100% - 20px);max-height:88svh;border-radius:20px}.viewer-thumb span{font-size:9px;padding:7px 4px}}
@media(max-height:550px){.viewer-card{bottom:12px;padding:15px 20px;width:320px}.viewer-back{margin-bottom:8px}.viewer-card h1{font-size:23px}.viewer-toolbar{margin-top:10px;padding-bottom:9px}.viewer-details{margin-top:8px}.viewer-contact{margin-top:10px}.viewer-details-content{max-height:19svh}}
@media(prefers-reduced-motion:reduce){.viewer-layer{transition:none}}
.viewer-details summary{padding:0}.viewer-details-content p{font-size:11px;padding-bottom:0;color:inherit}

/* A light, compact glass caption instead of the solid information block. */
.viewer-card{width:555px;max-width:calc(100% - 48px);padding:20px 22px 17px;border-radius:18px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:28px;row-gap:5px;background:#18232869;border:1px solid #ffffff40;color:#fff;box-shadow:0 8px 30px #00000012;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.viewer-back{grid-column:1;grid-row:1;margin:0 0 8px;font-size:8px;color:#ffffffe0}.viewer-card h1{grid-column:1;grid-row:2;font-size:24px;letter-spacing:-.04em;margin:0}.viewer-meta{grid-column:1;grid-row:3;font-size:9px;color:#ffffffc9;margin:0}.viewer-toolbar{grid-column:2;grid-row:1/4;display:flex;flex-direction:column;justify-content:center;gap:9px;border:0;padding:0;margin:0}.viewer-picker-open{font-size:10px;padding:0;color:white}.viewer-picker-open svg{width:13px;height:13px}.viewer-arrows{gap:7px}.viewer-arrows button{width:33px;height:33px;background:#ffffff0d;border-color:#ffffff65;color:white}.viewer-arrows button:hover{background:#ffffffeb;color:#18313d}.viewer-arrows svg{width:14px;height:14px}.viewer-details{grid-column:1;grid-row:4;margin:10px 0 0}.viewer-details summary{padding:0;justify-content:flex-start;gap:10px;color:#ffffffcf;font-size:9px}.viewer-details summary span{font-size:14px}.viewer-contact{grid-column:2;grid-row:4;margin:10px 0 0;gap:10px;font-size:9px;color:#ffffffe6;white-space:nowrap;align-self:start}.viewer-contact svg{width:12px;height:12px}.viewer-details[open]{grid-column:1/-1}.viewer-details[open]~.viewer-contact{grid-column:1/-1;grid-row:5}.viewer-details-content{color:#ffffffe0;max-height:26svh;padding-top:12px}.viewer-details-content dd{color:#fff}.viewer-card a:focus-visible,.viewer-card button:focus-visible,.viewer-card summary:focus-visible{outline-color:#fff}
@media(max-width:760px){.viewer-card{left:14px;bottom:max(14px,env(safe-area-inset-bottom));width:calc(100% - 28px);max-width:none;padding:16px 17px 14px;border-radius:16px;column-gap:14px;row-gap:5px}.viewer-back{font-size:7px;margin-bottom:6px}.viewer-card h1{font-size:21px}.viewer-meta{font-size:8px;max-width:205px}.viewer-toolbar{gap:9px;margin:0;padding:0}.viewer-picker-open{font-size:9px;gap:6px}.viewer-arrows button{width:32px;height:32px}.viewer-contact{font-size:8px;gap:6px;margin-top:8px}.viewer-details{margin-top:8px}.viewer-details summary{font-size:8px;gap:7px}.viewer-details-content{max-height:27svh}.viewer-details-content p{font-size:10px}}
@media(max-width:360px){.viewer-card{column-gap:10px}.viewer-card h1{font-size:19px}.viewer-contact{font-size:7px}.viewer-arrows{gap:5px}.viewer-arrows button{width:30px;height:30px}}
@media(max-height:550px){.viewer-card{bottom:12px;padding:14px 18px;width:520px}.viewer-back{margin-bottom:4px}.viewer-card h1{font-size:22px}.viewer-toolbar{margin:0;padding:0}.viewer-details-content{max-height:20svh}}
