/* Project portfolio: editorial layouts in Technocrat's existing palette. */
.recent-projects{border-top:1px solid var(--line)}
.recent-projects-heading{display:grid;grid-template-columns:1fr 1.05fr auto;gap:60px;align-items:center;margin-bottom:48px}
.recent-projects-heading .section-title{margin:0;font-size:clamp(40px,4.6vw,62px);line-height:1.06}
.recent-projects-heading .section-title span{color:var(--blue)}
.recent-projects-heading>p{max-width:370px;color:var(--muted);font-size:17px;line-height:1.9}
.recent-projects-heading .btn{gap:25px;border-radius:40px;white-space:nowrap}
.recent-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px}
.recent-project-card{min-width:0}
.project-card-image{position:relative;overflow:hidden;background:var(--paper);border-radius:3px;aspect-ratio: .92}
.project-card-image:before,.project-card-image:after{content:'';position:absolute;left:28px;right:28px;height:13px;background:white;z-index:1;border-radius:0 0 50% 50%}
.project-card-image:before{top:-7px}
.project-card-image:after{bottom:-7px;transform:rotate(180deg)}
.project-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.recent-project-card:hover img{transform:scale(1.035)}
.project-card-arrow{position:absolute;bottom:20px;right:20px;width:44px;height:44px;background:var(--green);color:white;display:grid;place-items:center;border-radius:50%;transition:background .2s}
.recent-project-card:hover .project-card-arrow{background:var(--blue)}
.project-card-meta{display:flex;flex-wrap:wrap;gap:6px 14px;margin:20px 0 8px;font-size:12px;color:var(--muted);font-weight:650}
.project-card-meta>span:first-child{color:var(--blue);display:flex;align-items:center;gap:7px}
.project-card-meta>span:first-child:before{content:'';width:5px;height:5px;border-radius:50%;background:var(--green)}
.recent-project-card h3{font-size:24px;line-height:1.35;overflow-wrap:anywhere}
.portfolio-coming-soon{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:65px;align-items:center;background:var(--paper);border:1px solid var(--line);border-radius:4px;overflow:hidden}
.portfolio-coming-soon>div{padding:40px 0 40px 45px}
.portfolio-coming-soon h3{font-size:31px;margin-bottom:18px}
.portfolio-coming-soon p{font-size:16px;color:var(--muted);margin-bottom:18px}
.portfolio-coming-soon>img{width:100%;height:340px;object-fit:cover}
.portfolio-empty-icon{display:grid;place-items:center;width:50px;height:50px;background:white;color:var(--blue);margin-bottom:24px;border:1px solid var(--line)}
.illustration-label{position:absolute;bottom:12px;right:14px;color:white;font-size:11px;background:#071d46bd;padding:3px 10px}
.portfolio-hero{position:relative;isolation:isolate;background:var(--navy);color:white;min-height:510px;padding:28px 0 65px}
.portfolio-hero:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#071d4650 0%,#071d4670 30%,#071d46eb 100%)}
.portfolio-hero:after{content:'';position:absolute;bottom:-1px;width:48%;height:20px;background:white;left:26%;border-radius:50% 50% 0 0}
.portfolio-hero-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 55%;z-index:-2}
.portfolio-hero .breadcrumb{color:#fff;margin-bottom:120px}
.portfolio-hero .breadcrumb a{color:#fff}
.portfolio-hero .eyebrow{color:#fff;font-size:12px}
.portfolio-hero-content{display:flex;justify-content:space-between;align-items:flex-end;gap:60px}
.portfolio-hero h1{font-size:clamp(40px,4.4vw,62px);line-height:1.14;max-width:760px}
.portfolio-hero h1 span{color:#b4edbf}
.portfolio-hero-aside{max-width:330px;flex-shrink:0}
.portfolio-hero-aside p{font-size:16px;line-height:1.8;color:#e5ebf4;margin-bottom:24px}
.portfolio-list-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:25px;margin-bottom:30px}
.portfolio-list-heading .section-title{margin:0}
.portfolio-count{font-size:14px;color:var(--muted);padding-bottom:8px;white-space:nowrap}
.project-filters{display:flex;gap:12px;flex-wrap:wrap;padding-bottom:32px}
.project-filters>a{border:1px solid var(--line);padding:8px 17px;border-radius:30px;font-size:13px;font-weight:750;transition:background .2s}
.project-filters>a:hover{background:var(--paper)}
.project-filters>a[aria-current]{background:var(--blue);color:white;border-color:var(--blue)}
.project-filters span{opacity:.65;margin-left:7px}
.project-list-item{border-top:1px solid #c9d1ce;display:grid;grid-template-columns:1fr 1.15fr;gap:85px;padding:42px 0;align-items:center}
.project-list-item:last-child{border-bottom:1px solid #c9d1ce}
.project-list-copy{padding:10px 0}
.project-list-number{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--blue);font-weight:800;margin-bottom:22px}
.project-list-copy h2{font-size:clamp(27px,2.8vw,38px);line-height:1.22;margin-bottom:18px;overflow-wrap:anywhere}
.project-list-copy>p{color:var(--muted);font-size:16px;line-height:1.85;margin-bottom:20px}
.project-location{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;margin-bottom:25px}
.project-location .icon{width:15px;height:15px;color:var(--blue)}
.project-list-copy .btn{border-radius:30px;font-size:14px;gap:25px;padding:11px 20px;min-height:46px}
.project-list-image{position:relative;aspect-ratio:1.65;overflow:hidden;background:var(--paper);border-radius:3px}
.project-list-image img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.project-list-image:hover img{transform:scale(1.035)}
.project-image-arrow{position:absolute;right:17px;bottom:17px;display:grid;place-items:center;width:42px;height:42px;background:white;border-radius:50%;color:var(--blue)}
.portfolio-empty{text-align:center;padding:65px 25px;border-top:1px solid var(--line)}
.portfolio-empty>span{display:grid;place-items:center;width:65px;height:65px;background:var(--paper);color:var(--blue);border-radius:50%;margin:0 auto 25px}
.portfolio-empty>span .icon{width:30px;height:30px}
.portfolio-empty h1,.portfolio-empty h2{font-size:36px;line-height:1.25;margin-bottom:18px}
.portfolio-empty p{color:var(--muted);font-size:17px;max-width:500px;margin:0 auto 30px}
.project-detail-header{padding:28px 0 48px;background:var(--paper)}
.project-detail-header .breadcrumb{flex-wrap:wrap;margin-bottom:48px}
.project-detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:center}
.project-detail-title{min-width:0;padding-right:48px}
.project-detail-title h1{font-size:clamp(32px,3.6vw,50px);line-height:1.15;overflow-wrap:anywhere}
.project-detail-location{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:15px;margin-top:26px;overflow-wrap:anywhere}
.project-detail-location .icon{width:17px;height:17px;color:var(--blue)}
.project-featured{min-width:0;background:var(--paper);border-radius:4px;overflow:hidden}
.project-featured img{width:100%;height:100%;aspect-ratio:1.4;object-fit:cover}
.project-story{max-width:960px}
.project-rich-text{font-size:18px;line-height:1.95;overflow-wrap:anywhere}
.project-rich-text p,.project-rich-text ul,.project-rich-text ol,.project-rich-text blockquote{margin:0 0 22px}
.project-rich-text h2{font-size:32px;margin:36px 0 20px}
.project-rich-text h3{font-size:26px;margin:30px 0 16px}
.project-rich-text>:first-child{margin-top:0}
.project-rich-text li{padding-left:5px;margin-bottom:8px}
.project-rich-text li::marker{color:var(--blue)}
.project-rich-text blockquote{border-left:3px solid var(--green);padding:10px 0 10px 25px;color:var(--blue)}
.project-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
.project-gallery>a{position:relative;display:block;aspect-ratio:1.35;overflow:hidden;border-radius:3px}
.project-gallery img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.project-gallery>a:hover img{transform:scale(1.03)}
.project-gallery>a>span{position:absolute;bottom:18px;right:18px;background:white;color:var(--blue);border-radius:50%;width:40px;height:40px;display:grid;place-items:center}
.project-back-row{display:flex;justify-content:space-between;gap:25px;align-items:center}
.gallery-dialog{border:0;background:#071522;color:white;max-width:95vw;max-height:95dvh;width:min(1400px,95vw);padding:18px;border-radius:6px}
.gallery-dialog::backdrop{background:#000d}
.gallery-dialog-toolbar{display:flex;justify-content:space-between;align-items:center;padding:0 6px 15px;font-size:14px}
.gallery-dialog button{background:#ffffff14;border:1px solid #ffffff40;color:white;border-radius:4px;padding:8px 15px;font-size:16px}
.gallery-dialog-stage{display:flex;align-items:center;justify-content:space-between;gap:14px}
.gallery-dialog-stage img{min-width:0;max-width:calc(100% - 120px);max-height:78dvh;object-fit:contain}
@media(max-width:1100px){.recent-projects-heading{gap:30px;grid-template-columns:1fr 1.1fr}.recent-projects-heading .btn{grid-column:2;justify-self:start;margin-top:-12px}.recent-projects-heading>div{grid-row:1/3}.recent-project-grid{gap:22px}.recent-project-card h3{font-size:21px}.portfolio-hero-aside{max-width:260px}.portfolio-hero-content{gap:30px}.project-list-item{gap:40px}.project-detail-title{padding-right:30px}.portfolio-coming-soon{gap:30px}.portfolio-coming-soon>div{padding-left:30px}}
@media(max-width:600px){.recent-projects-heading{grid-template-columns:1fr;gap:24px;align-items:start;margin-bottom:30px}.recent-projects-heading>div{grid-row:auto}.recent-projects-heading .section-title{font-size:46px}.recent-projects-heading>p{font-size:16px}.recent-projects-heading .btn{grid-column:auto;margin:0}.recent-project-grid{grid-template-columns:1fr;gap:38px}.project-card-image{aspect-ratio:1.05}.recent-project-card h3{font-size:26px}.project-card-meta{margin-top:17px}.portfolio-coming-soon{grid-template-columns:1fr;gap:0}.portfolio-coming-soon>div{padding:28px}.portfolio-coming-soon>img{height:250px}.portfolio-coming-soon h3{font-size:28px}.portfolio-hero{padding-bottom:46px;min-height:560px}.portfolio-hero .breadcrumb{margin-bottom:80px}.portfolio-hero h1{font-size:40px}.portfolio-hero .eyebrow{font-size:10px}.portfolio-hero-content{display:block}.portfolio-hero-aside{max-width:340px;margin-top:25px}.portfolio-hero-aside p{font-size:15px}.portfolio-hero:after{width:60%;left:20%;height:12px}.portfolio-list-heading .section-title{font-size:34px}.project-filters{gap:8px;padding-bottom:24px}.project-filters>a{padding:7px 12px;font-size:12px}.project-list-item{grid-template-columns:1fr;gap:25px;padding:30px 0}.project-list-image{grid-row:1;aspect-ratio:1.45}.project-list-copy{padding:0 0 5px}.project-list-copy h2{font-size:29px}.project-list-number{margin-bottom:14px;font-size:11px}.project-list-copy>p{font-size:15px}.project-location{margin-bottom:20px}.portfolio-empty{padding:45px 0}.portfolio-empty h1,.portfolio-empty h2{font-size:29px}.portfolio-empty p{font-size:16px}.project-detail-header{padding-bottom:32px}.project-detail-header .breadcrumb{font-size:11px;margin-bottom:32px;gap:10px}.project-detail-title{padding-right:0}.project-detail-title h1{font-size:39px}.project-detail-location{margin-top:20px;font-size:14px}.project-featured img{min-height:250px}.project-rich-text{font-size:16px;line-height:1.9}.project-rich-text h2{font-size:28px}.project-rich-text h3{font-size:23px}.project-gallery{grid-template-columns:1fr;gap:20px}.project-back-row{flex-direction:column;align-items:flex-start;gap:25px}.gallery-dialog{padding:10px}.gallery-dialog-stage{gap:6px;position:relative}.gallery-dialog-stage img{max-width:100%;width:100%;max-height:75dvh}.gallery-dialog-stage button{position:absolute;z-index:1;background:#071522bd;padding:6px 10px}.gallery-dialog-stage button:last-child{right:0}.gallery-dialog-toolbar button{font-size:14px;padding:6px 10px}}
@media(prefers-reduced-motion:reduce){.project-card-image img,.project-list-image img,.project-gallery img{transition:none}}

@media(max-width:800px){.project-detail-grid{grid-template-columns:minmax(0,1fr);gap:30px}.project-detail-title{padding-right:0}.project-featured img{max-height:480px}}
