:root{
  --type-hero-max: 50px;
  --type-section-max: 40px;
  --type-card-title: 20px;
  --project-card-media-height: 228px;
}

html,
body{
  overflow-x:hidden;
}

body,
button,
input,
select,
textarea,
a,
p,
h1,
h2,
h3,
h4,
span,
div{
  overflow-wrap:anywhere;
  word-break:normal;
}

body{
  font-size:16px;
}

.container,
.hero,
.section,
.project-card,
.featured-project,
.card,
.lead-form,
.contact-grid,
.split,
.difference-grid,
.page-cta-card{
  min-width:0;
}

.hero h1{
  font-size:clamp(36px,3.35vw,var(--type-hero-max))!important;
  line-height:1.12!important;
  letter-spacing:-.038em!important;
  max-width:860px;
}

.section-head h2,
.split h2,
.contact-grid h2,
.about-card h2,
.page-cta-card h2,
.final-cta-title{
  font-size:clamp(30px,2.9vw,var(--type-section-max));
  line-height:1.14;
  letter-spacing:-.035em;
}

.hero-lead{
  font-size:clamp(16px,1.18vw,18px);
  line-height:1.56;
  max-width:720px;
}

.hero-note{
  font-size:clamp(15px,1.05vw,17px);
  line-height:1.52;
  max-width:720px;
}

.home-page .hero{
  align-items:flex-start!important;
}

.home-page .hero-grid{
  padding-top:88px!important;
}

.home-page .hero-tags{
  margin-top:0!important;
  margin-bottom:22px!important;
}

.section-head p,
.rich-text p,
.about-card p,
.contact-grid p,
.page-cta-card p,
.final-cta-text{
  font-size:16px;
  line-height:1.62;
}

.project-fallback[hidden],
#static-featured-project[hidden],
#static-project-cards[hidden]{
  display:none!important;
}

.project-grid-premium{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}

.project-card.unified-project-card{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:520px;
  border-radius:28px;
  overflow:hidden;
  background:#fff;
}

.project-card.unified-project-card .project-photo{
  position:relative;
  height:var(--project-card-media-height);
  min-height:var(--project-card-media-height);
  width:100%;
  padding:18px;
  overflow:hidden;
}

.project-card.unified-project-card .project-photo.has-image{
  background:#161412;
}

.project-card.unified-project-card .project-photo img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.project-card.unified-project-card .project-photo span{
  position:relative;
  z-index:2;
  align-self:end;
  justify-self:start;
  display:inline-flex;
  padding:8px 11px;
  border-radius:999px;
  background:rgba(17,16,14,.76);
  color:#fff;
  font-size:11px;
  line-height:1;
}

.project-card-body{
  display:flex;
  flex:1;
  flex-direction:column;
  padding:20px 22px 22px;
}

.project-card-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-bottom:13px;
}

.project-card-meta span{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:6px 9px;
  border-radius:999px;
  background:#f0e4cf;
  color:#795827;
  font-size:11px;
  font-weight:800;
  line-height:1.1;
}

.project-card.unified-project-card h3{
  margin:0 0 10px;
  font-size:var(--type-card-title);
  line-height:1.2;
  letter-spacing:-.025em;
}

.project-card.unified-project-card p{
  display:-webkit-box;
  -webkit-line-clamp:5;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0 0 18px;
  color:#625a50;
  font-size:14px;
  line-height:1.55;
}

.project-card.unified-project-card a{
  margin:auto 0 0;
  color:#9d7133;
  font-size:14px;
  font-weight:800;
}

.project-filters{
  align-items:center;
}

.project-filters button{
  white-space:normal;
  line-height:1.15;
  font-size:13px;
}

.btn,
.header-phone,
.contact-links a,
.final-cta-actions a{
  font-size:14px;
}

@media(max-width:1100px){
  .project-grid-premium{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .project-card.unified-project-card{
    min-height:500px;
  }
}

@media(max-width:980px){
  .hero h1{
    font-size:clamp(32px,5vw,42px)!important;
    line-height:1.12!important;
  }

  .hero{
    min-height:auto;
    padding:56px 0;
  }

  .home-page .hero-grid{
    padding-top:0!important;
  }
}

@media(max-width:640px){
  :root{
    --project-card-media-height: 198px;
    --type-card-title: 19px;
  }

  body{
    font-size:15px;
  }

  .container{
    width:calc(100% - 28px);
  }

  .site-header{
    align-items:flex-start;
    gap:12px;
  }

  .brand b{
    font-size:12px;
    line-height:1.15;
  }

  .brand small{
    font-size:9px;
  }

  .hero h1{
    font-size:clamp(26px,7.6vw,30px)!important;
    line-height:1.15!important;
    letter-spacing:-.032em!important;
  }

  .section-head h2,
  .split h2,
  .contact-grid h2,
  .about-card h2,
  .page-cta-card h2,
  .final-cta-title{
    font-size:clamp(24px,7vw,30px);
    line-height:1.16;
  }

  .section-head p,
  .rich-text p,
  .about-card p,
  .contact-grid p,
  .page-cta-card p,
  .final-cta-text{
    font-size:15px;
    line-height:1.58;
  }

  .hero-lead{
    font-size:15px;
    line-height:1.58;
  }

  .hero-note{
    font-size:14px;
  }

  .hero-actions,
  .contact-links{
    width:100%;
  }

  .btn,
  .contact-links a,
  .final-cta-actions a{
    min-width:0;
    width:100%;
    font-size:13px;
    text-align:center;
  }

  .project-grid-premium{
    grid-template-columns:1fr;
    gap:16px;
  }

  .project-card.unified-project-card{
    min-height:auto;
    border-radius:24px;
  }

  .project-card-body{
    padding:17px 18px 19px;
  }

  .project-card.unified-project-card h3{
    font-size:19px;
  }

  .project-card.unified-project-card p{
    -webkit-line-clamp:6;
    font-size:14px;
  }

  .project-filters{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .project-filters button{
    width:100%;
    padding:10px 11px;
    font-size:12px;
  }

  .lead-form input,
  .lead-form select,
  .lead-form textarea{
    min-width:0;
    font-size:16px;
  }

  .mobile-sticky-cta{
    grid-template-columns:1fr 1fr 1fr!important;
  }

  .mobile-sticky-cta a{
    min-width:0;
    padding:0 8px;
    font-size:11px;
    text-align:center;
  }
}

@media(max-width:390px){
  .hero h1{
    font-size:26px!important;
  }

  .section-head h2,
  .split h2,
  .contact-grid h2,
  .about-card h2,
  .page-cta-card h2,
  .final-cta-title{
    font-size:24px;
  }

  .project-filters{
    grid-template-columns:1fr;
  }

  .mobile-sticky-cta{
    left:8px;
    right:8px;
    gap:6px;
  }

  .mobile-sticky-cta a{
    font-size:10px;
  }
}
