/* Homepage project portfolio: responsive editorial grid */
.trice-project-showcase{padding:clamp(28px,3.5vw,52px) 0 clamp(55px,7vw,104px);background:#f3f6f9;overflow:hidden}.trice-project-heading{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:32px}.trice-project-kicker{display:block;color:#a57a30;font-weight:800;font-size:12px;letter-spacing:2px;margin-bottom:13px}.trice-project-heading h2{font-size:clamp(29px,3.5vw,47px);line-height:1.14;font-weight:800;letter-spacing:-.8px;color:#172d44;margin:0 0 15px}.trice-project-heading p{color:#566577;font-size:16px;line-height:1.7;max-width:650px;margin:0}.trice-project-all,.trice-project-bottom a{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 19px;background:#17324d;color:#fff!important;border-radius:5px;text-decoration:none!important;font-size:14px;font-weight:800;min-height:48px;white-space:nowrap}.trice-project-all:hover,.trice-project-bottom a:hover{background:#ad7d2e;color:#fff!important}.trice-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.trice-project-card{min-width:0;background:#fff;border:1px solid #e0e7ed;border-radius:10px;overflow:hidden;box-shadow:0 8px 26px rgba(20,42,64,.055);transition:transform .22s ease,box-shadow .22s ease}.trice-project-card:hover{transform:translateY(-4px);box-shadow:0 18px 35px rgba(20,42,64,.13)}.trice-project-image{position:relative;display:block;aspect-ratio:5/4;overflow:hidden;background:#e2e7eb}.trice-project-image img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .3s ease}.trice-project-card:hover .trice-project-image img{transform:scale(1.035)}.trice-project-view{position:absolute;bottom:14px;right:14px;background:#fff;color:#17324d;font-size:12px;font-weight:800;border-radius:4px;padding:9px 12px}.trice-project-info{padding:23px 23px 25px}.trice-project-number{display:block;color:#9a752e;font-size:11px;font-weight:800;letter-spacing:1px;text-transform:uppercase;line-height:1.5;margin-bottom:11px}.trice-project-number span{color:#adb8c2;margin:0 5px}.trice-project-info h3{font-size:clamp(17px,1.5vw,21px);line-height:1.38;font-weight:800;color:#193149;margin:0 0 19px;overflow-wrap:anywhere}.trice-project-info h3 a{color:inherit!important;text-decoration:none!important}.trice-project-detail{color:#805b23!important;text-decoration:none!important;font-weight:800;font-size:13px;display:inline-flex;gap:9px;align-items:center;min-height:35px}.trice-project-detail:hover{text-decoration:underline!important}.trice-project-bottom{margin-top:34px;padding:24px 29px;background:#fff;border-left:4px solid #d5a64f;border-radius:6px;display:flex;justify-content:space-between;align-items:center;gap:20px}.trice-project-bottom p{font-size:16px;line-height:1.6;color:#263c51;margin:0;max-width:690px}.trice-project-showcase a:focus-visible{outline:3px solid #c99536;outline-offset:3px}@media(max-width:991px){.trice-project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.trice-project-heading{align-items:start;flex-direction:column}.trice-project-bottom{align-items:start;flex-direction:column}}@media(max-width:575px){.trice-project-showcase{padding:23px 0 46px}.trice-project-grid{grid-template-columns:minmax(0,1fr);gap:18px}.trice-project-image{aspect-ratio:16/11}.trice-project-info{padding:20px}.trice-project-heading{margin-bottom:24px}.trice-project-all,.trice-project-bottom a{width:100%;white-space:normal;text-align:center}.trice-project-bottom{padding:21px}.trice-project-heading h2{font-size:31px}}@media(prefers-reduced-motion:reduce){.trice-project-card,.trice-project-image img{transition:none}.trice-project-card:hover{transform:none}.trice-project-card:hover .trice-project-image img{transform:none}}

/* Keep the project showcase headline on one line across screen sizes. */
.trice-project-heading{min-width:0}.trice-project-heading>div{min-width:0}.trice-project-heading h2{white-space:nowrap;max-width:100%;font-size:clamp(25px,2.65vw,39px);letter-spacing:-.045em}
@media(max-width:767px){.trice-project-heading h2{font-size:clamp(13px,3.55vw,25px);letter-spacing:-.055em;line-height:1.25;white-space:nowrap}}
@media(max-width:360px){.trice-project-heading h2{font-size:clamp(12px,3.55vw,13px)}}

/* Final heading layout correction: no wrapping, clipping, or CTA collision. */
.trice-project-heading>div{min-width:0;flex:1 1 auto}
.trice-project-heading h2{display:block;width:max-content;max-width:100%;white-space:nowrap;overflow:visible;font-size:clamp(22px,2.5vw,37px);letter-spacing:-.055em;line-height:1.18}
.trice-project-heading .trice-project-all{flex:0 0 auto}
@media(max-width:1199px){.trice-project-heading{align-items:flex-start;flex-direction:column;gap:18px}}
@media(max-width:767px){.trice-project-heading h2{font-size:clamp(12px,3.4vw,24px);letter-spacing:-.06em;line-height:1.25}}
@media(max-width:360px){.trice-project-heading h2{font-size:clamp(11px,3.35vw,12px)}}

/* Reduce excess whitespace between services and Work of Excellence.
   Scoped to the two adjacent homepage sections; all project cards stay unchanged. */
.trice-specialties{padding-bottom:clamp(20px,2.5vw,32px)}
.trice-specialties + .trice-project-showcase{padding-top:clamp(12px,1.6vw,20px)}
@media(max-width:767px){
 .trice-specialties{padding-bottom:18px}
 .trice-specialties + .trice-project-showcase{padding-top:12px}
}

/* 2026-10-25: Explicit homepage section-boundary fix. The legacy style.css
   contains competing homepage section padding declarations (including !important).
   Keep the existing cards and design; remove only the excess vertical gap. */
body:has(#ts-features) #ts-service-area.trice-specialties {
  padding-bottom: 12px !important;
  margin-bottom: 0 !important;
  min-height: 0;
}
body:has(#ts-features) #project-area.trice-project-showcase {
  padding-top: 16px !important;
  margin-top: 0 !important;
  min-height: 0;
}
@media (max-width: 767.98px) {
  body:has(#ts-features) #ts-service-area.trice-specialties {padding-bottom: 10px !important;}
  body:has(#ts-features) #project-area.trice-project-showcase {padding-top: 12px !important;}
}

/* Project boundary: direct adjacent selectors work across modern browsers without :has(). */
body #ts-service-area.trice-specialties { padding-bottom: 12px !important; margin-bottom: 0 !important; min-height: 0 !important; }
body #ts-service-area.trice-specialties + #project-area.trice-project-showcase { padding-top: 16px !important; margin-top: 0 !important; min-height: 0 !important; }
@media (max-width: 767.98px) {
 body #ts-service-area.trice-specialties {padding-bottom: 10px !important;}
 body #ts-service-area.trice-specialties + #project-area.trice-project-showcase {padding-top: 12px !important;}
}
