/* Global vertical rhythm: keep the presentation dense while preserving readability. */
.section{padding-block:72px}
.section-heading h2,.profile-copy h2,.contact-card h2{margin-bottom:14px}
.section-heading>p:last-child{margin-top:0}
.expertise-grid{margin-top:40px}
.expertise-card{min-height:220px;padding:24px}
.expertise-card h3{margin-top:34px}
.expertise-section .expertise-card{min-height:190px;padding:20px}
.expertise-section .expertise-card h3{margin-top:26px;margin-bottom:6px;font-size:22px}
.expertise-section .expertise-card p{font-size:13px;line-height:1.4}
.expertise-section .expertise-card .card-description{margin-bottom:0}
.expertise-section .expertise-subsets{margin-top:10px;padding-top:10px;gap:12px}
.expertise-section .expertise-subsets h4{margin-bottom:3px}
.expertise-section .expertise-subsets p{font-size:12px}
.expertise-subsets{margin-top:18px;padding-top:14px;gap:18px}
.method-section{padding-block:72px}
.method-layout{gap:64px}
.method-item{padding-block:16px}
.profile-layout{gap:64px}
.tech-row{margin-top:56px;padding-block:16px}
.contact{padding-bottom:72px}
.contact-card{padding:48px 56px}

@media (max-width:850px){
  .section{padding-block:60px}
  .method-section{padding-block:60px}
  .method-layout,.profile-layout{gap:40px}
  .contact-card{padding:40px 32px}
}

@media (max-width:560px){
  .section{padding-block:48px}
  .expertise-grid{margin-top:30px}
  .expertise-card{min-height:0;padding:22px}
  .expertise-card h3{margin-top:28px}
  .expertise-section .expertise-card{padding:18px}
  .expertise-section .expertise-card h3{margin-top:22px;margin-bottom:5px;font-size:21px}
  .tech-row{margin-top:40px}
  .contact{padding-bottom:52px}
}

/* Restore the original card typography while keeping the compact spacing. */
.expertise-section .section-heading{max-width:100%}
.expertise-section .section-heading h2{white-space:nowrap}
.expertise-section .expertise-card h3{font-size:25px}
.expertise-section .expertise-card p{font-size:14px;line-height:1.5}
.expertise-section .expertise-subsets p{font-size:13px}

@media (max-width:850px){
  .expertise-section .section-heading h2{white-space:normal}
}

@media (max-width:560px){
  .expertise-section .expertise-card h3{font-size:25px}
  .expertise-section .expertise-card p{font-size:14px}
  .expertise-section .expertise-subsets p{font-size:13px}
}
