:root {
  --color-teal: #244c62;
  --color-teal-deep: #183b4e;
  --color-teal-ink: #12333e;
  --color-gold: #856139;
  --color-gold-deep: #704d2b;
  --color-gold-bright: #c6a57e;
  --color-gold-soft: #8561391a;
}
.ts-brand { align-items:center; gap:.6rem }
.ts-brand strong { font-weight:750; }
html[lang=en] .ts-brand strong { letter-spacing:-.035em }
.ts-brand img { width:40px; height:40px; flex:none; border-radius:7px }
footer .ts-brand img, [data-drawer] .ts-brand img { outline:1px solid #ffffff70 }
.ts-cta,#preview-scope button { background:var(--color-teal-deep) }
.ts-contact { border-inline-start-color:var(--color-gold) }
@media(max-width:480px) { .ts-brand img { width:32px; height:32px } }
button[popovertarget]{cursor:pointer}
button[popovertarget="pw-phone"].fixed{bottom:calc(max(24px,env(safe-area-inset-bottom)) + 68px)}
.pw-phone-note{position:fixed;inset:auto;inset-inline-end:20px;bottom:155px;margin:0;padding:20px;width:min(340px,90vw);border:1px solid #c5d9cf;border-radius:14px;background:white;color:#12333e;box-shadow:0 10px 40px #14382f33}
.pw-phone-note p{margin:.5rem 0 1rem}.pw-phone-note a{text-decoration:underline}.pw-phone-note button{margin-inline-start:1rem}
.pw-links{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:5px}.pw-links a{display:inline-flex;align-items:center;min-height:40px;color:#f3f5f5}.pw-footer .pw-actions{display:grid;justify-items:start;gap:12px}.pw-actions h3{color:#d7ba78;font-weight:700}.pw-actions a{display:inline-flex;align-items:center;min-height:42px;padding:6px 18px;border:1px solid #ac914d;border-radius:25px}.pw-actions a:first-of-type{background:#ddc58f;color:#103340;font-weight:700}.pw-info{max-width:880px;min-height:52vh;margin:auto;padding:60px 24px;color:#12333e}.pw-info h1{font-size:clamp(2rem,5vw,3rem);font-weight:700;margin:0 0 24px}.pw-info p{line-height:1.9;margin:14px 0}.pw-info details{border-bottom:1px solid #c2cdcf;padding:16px 0}.pw-info summary{font-weight:700;cursor:pointer}.pw-info a{text-decoration:underline}.pw-footer a:focus-visible{outline:2px solid #ebcf8e;outline-offset:3px}#pw-projects,#pw-contact,#engineering-services{scroll-margin-top:90px}@media(max-width:700px){.pw-links{grid-template-columns:repeat(2,minmax(0,1fr))}.pw-footer .pw-actions{padding-inline-end:60px}.pw-footer .grid{gap:28px;padding-block:35px}}

main [data-service-card] {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: auto;
  min-height: 0;
}
main [data-service-card]::before {
  content: "";
  display: block;
  padding-top: 40%;
}
main [data-service-card] > div:last-child {
  position: relative;
  margin-top: auto;
  background: linear-gradient(transparent,rgba(11,46,61,.84) 30%,#0b2e3d);
}
main [data-service-card] :is(h3,p) {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}
main div:has(> [data-service-card]:only-child) {
  display: flex;
  align-self: stretch;
}
main div > [data-service-card]:only-child {
  flex: 1 1 auto;
  align-self: stretch;
}
main [data-service-card] {
  min-block-size: var(--pw-card-height, 0px);
}

/* Planwright shared footer */
body footer.pw-footer > .eng-grid { opacity: .18 !important; }
body footer.pw-footer .leading-relaxed,
body footer.pw-footer .leading-relaxed p { color: #f2f4ef !important; }
