/* V5: immersive photo cards. Text sections retain the V4 visual language. */
@media(min-width:992px){.hero-layout{min-height:740px}.hero-copy{padding-top:124px;padding-bottom:137px}.hero-photo{object-position:center 58%}}
@media(min-width:1600px){.hero-layout{min-height:810px}.hero-copy{padding-top:153px}}
.services-section .row,.services-page>.container>.row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;border:0}
.services-section .service-card,.services-page>.container>.row>.service-card{display:flex;flex-direction:column;position:relative;isolation:isolate;min-height:610px;padding:30px;border:1px solid #214f3e;border-radius:5px;overflow:hidden;background:#09251c;gap:0;width:auto}
.service-card:nth-child(even),.service-card:hover{background:#09251c!important}
.service-card:hover{transform:translateY(-3px);box-shadow:0 14px 35px #0a241d1c;border-color:#61866b!important}
.service-card figure{position:absolute;inset:0;z-index:-2;width:100%;height:100%;max-width:none;margin:0;border-radius:0;overflow:hidden;pointer-events:none}
.service-card figure>a{height:100%}
.service-card figure:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#06201515 0%,#05201945 23%,#042016ed 55%,#041e16 83%);pointer-events:none}
.service-card .service-photo{height:100%;width:100%;aspect-ratio:auto;object-fit:cover;object-position:center top;filter:saturate(.65);transition:transform .6s ease}
.service-card:hover .service-photo{transform:scale(1.045)}
.service-top{order:0;display:block;margin:0 0 165px;padding:0;font:24px Georgia,serif;color:#e7f0e5;text-decoration:underline;text-underline-offset:7px;text-decoration-thickness:1px}
.service-card h3,.inner-page #content .service-card h3{order:1;min-height:109px;margin:0 0 20px;padding:0;font:400 29px/1.16 Georgia,'Times New Roman',serif;letter-spacing:-.02em;color:white;position:relative}
.service-card h3 a,.service-card h3 a:hover{color:white}
.service-card p,.inner-page #content .service-card p{order:2;margin:0;padding:0;min-height:0;font-size:17px;line-height:1.75;color:#dfebe1;position:relative;flex:1}
.service-card .read_more{order:3;display:flex;flex-direction:row;align-self:flex-start;justify-self:auto;gap:18px;padding:0;margin:26px 0 0;font-size:16px;color:white;position:static}
.service-card .read_more:after{content:'';display:block;width:43px;height:1px;background:#c2d2c3;transition:width .25s}
.service-card .read_more:hover:after{width:60px}
.service-card .read_more svg{position:absolute;top:27px;right:27px;width:40px;height:40px;padding:10px;border:1px solid #ffffff80;border-radius:0;color:white;transform:rotate(-45deg)}
.service-card:hover .read_more svg{background:#ffffff16;color:white;transform:rotate(-45deg) translateX(2px)}
/* Project cards are links with their own title; document galleries stay unchanged. */
.home #gallery,.page-projects #gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.home .picframe:has(.work-card),.page-projects .picframe:has(.work-card){border:0;border-radius:5px;overflow:hidden;position:relative;isolation:isolate;background:#0d251d}
.picframe>a.work-card{display:block;position:relative;min-height:350px;aspect-ratio:1.18;color:white;overflow:hidden}
.picframe>a.work-card>img{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;border-radius:0;filter:saturate(.75);transition:transform .55s,filter .3s}
.work-card:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,transparent 24%,#06181125 45%,#061b14d9 80%,#041a12f5);z-index:1;pointer-events:none}
.picframe>a.work-card:hover>img{transform:scale(1.045);filter:saturate(1)}
.work-card .project-caption{position:absolute;inset:auto 25px 26px;z-index:2;padding:0;border:0;display:flex;align-items:flex-end;gap:17px;min-height:0;color:white}
.work-card .overlay{flex:1;min-width:0;color:white}
.work-category{display:block;font-family:Manrope,Arial,sans-serif;font-size:12px;line-height:1.5;letter-spacing:.065em;text-transform:uppercase;color:#e0e9df;margin:0 0 9px}
.work-card .project-name{font-family:Georgia,'Times New Roman',serif;font-size:29px;line-height:1.15;font-weight:400;letter-spacing:-.015em;display:block}
.work-card .project-caption svg{flex:0 0 43px;width:43px;height:43px;margin:0;border:1px solid #ffffff90;border-radius:50%;padding:10px;color:white;transition:background .25s,transform .25s}
.work-card:hover .project-caption svg{background:#ffffff1f;transform:translateX(3px)}
.page-projects #subheader{background:white;padding:40px 0 28px;border-bottom:0}
.page-projects #subheader h1{font-size:61px;display:flex;align-items:center;gap:42px;max-width:none}
.page-projects #subheader h1:after{content:'';height:1px;flex:1;background:#688a72;margin-top:12px}
.page-projects #content{padding-top:0;padding-bottom:80px}
.page-projects #filters{margin:8px 0 33px;gap:12px}
.page-projects #gallery{width:calc(100% - 96px);max-width:1344px;margin:0 auto;padding:0}
.page-projects #filters a{font-size:17px;padding:11px 16px}
.page-projects .spacer-single{height:0}
@media(max-width:1200px){.services-section .service-card,.services-page>.container>.row>.service-card{padding:25px;min-height:590px}.service-top{margin-bottom:145px}.service-card h3,.inner-page #content .service-card h3{font-size:26px;min-height:123px}.service-card p,.inner-page #content .service-card p{font-size:16px}.picframe>a.work-card{min-height:325px}.work-card .project-name{font-size:26px}.work-card .project-caption{inset:auto 20px 23px}.work-card .project-caption svg{width:36px;height:36px;flex-basis:36px;padding:8px}.page-projects #gallery{width:calc(100% - 64px)}}
@media(max-width:991px){.hero-layout{min-height:610px}.hero-copy{padding-top:86px;padding-bottom:110px}.services-section .row,.services-page>.container>.row{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.home .services-section .service-card:last-child{grid-column:1/-1;min-height:410px}.home .services-section .service-card:last-child .service-top{margin-bottom:110px}.home .services-section .service-card:last-child h3{min-height:0;max-width:560px}.home .services-section .service-card:last-child p{max-width:560px}.home .services-section .service-card:last-child figure:after{background:linear-gradient(90deg,#041e16f5 0%,#041e16dd 50%,#041e1640)}.home #gallery,.page-projects #gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.page-projects #gallery{width:calc(100% - 48px)}.page-projects #subheader h1{font-size:48px}.page-projects #filters a{font-size:15px}.work-card .project-name{font-size:28px}}
@media(max-width:640px){.hero-layout{min-height:0}.hero-copy{padding-top:57px;padding-bottom:170px}.hero-photo{object-position:68% 56%}.services-section .row,.services-page>.container>.row{display:grid;grid-template-columns:1fr;gap:22px}.services-section .service-card,.services-page>.container>.row>.service-card,.home .services-section .service-card:last-child{display:flex;min-height:570px;padding:25px;gap:0;grid-column:auto}.service-top,.home .services-section .service-card:last-child .service-top{margin:0 0 160px;padding:0;font-size:24px}.service-card h3,.inner-page #content .service-card h3,.home .services-section .service-card:last-child h3{font-size:28px;line-height:1.19;min-height:0;margin:0 0 20px}.service-card p,.inner-page #content .service-card p{font-size:17px;line-height:1.75;margin:0;min-height:0}.service-card .read_more{font-size:16px;margin-top:25px;align-self:flex-start;flex-direction:row}.service-card .read_more svg{width:38px;height:38px;top:25px;right:25px;padding:9px}.service-card figure,.home .services-section .service-card:last-child figure{position:absolute;inset:0;width:100%;height:100%;margin:0}.home .services-section .service-card:last-child figure:after{background:linear-gradient(180deg,#06201515 0%,#05201945 23%,#042016ed 55%,#041e16 83%)}.service-card .service-photo{aspect-ratio:auto;height:100%}.home #gallery,.page-projects #gallery{grid-template-columns:1fr;gap:20px}.picframe>a.work-card{min-height:350px;aspect-ratio:1.06}.work-card .project-name{font-size:29px}.work-card .project-caption{inset:auto 23px 25px}.work-category{font-size:12px}.work-card .project-caption svg{width:40px;height:40px;flex-basis:40px;padding:9px}.page-projects #gallery{width:calc(100% - 36px)}.page-projects #subheader{padding:28px 0 15px}.page-projects #subheader h1{font-size:39px;line-height:1.15;display:block}.page-projects #subheader h1:after{display:block;width:55px;margin-top:24px}.page-projects #filters{margin:3px 0 25px;gap:3px}.page-projects #filters a{font-size:14px;padding:9px}.page-projects #content{padding-top:4px;padding-bottom:44px}}
.picframe>a.work-card{width:100%;max-width:100%;min-width:0}.work-card .project-name{overflow-wrap:anywhere}
.page-projects #section-portfolio{padding:10px 0 0}
