/* v75 — spacing refinement
   Tightens sections that had accumulated too much vertical whitespace across
   previous iterations. No content, typography hierarchy or functionality changes. */

@media (min-width:821px){
  /* Homepage — keep the editorial scale, remove unnecessary dead space. */
  .refinement-v40 .section{padding-block:82px}
  .stage1-v45 .about-pro{padding:94px 0 86px}
  .stage1-v45 .about-pro-principles{margin-top:66px}
  .stage1-v45 .about-pro-principles article{min-height:176px;padding-top:26px;padding-bottom:28px}

  .stage1-v45 .expertise-item{min-height:164px;padding-top:28px;padding-bottom:28px}
  .stage1-v45 .software-module{margin-top:64px}
  .stage1-v45 .software-group{min-height:136px}
  .stage1-v45 .software-logo{min-height:108px}
  .stage1-v45 .structure-module{margin-top:60px}

  .stage1-v45 .offer-pro{padding:90px 0 84px}
  .stage1-v45 .offer-stages{margin-top:54px}
  .stage1-v45 .offer-stages span{min-height:90px;padding-top:23px;padding-bottom:22px}
  .stage1-v45 .offer-more article{min-height:184px;padding-top:32px;padding-bottom:34px}
  .stage1-v45 .offer-more h3{margin-bottom:16px}
  .stage1-v45 .closing-contact{padding:88px 0 68px}

  /* Projects index. */
  .projects-v38 .portfolio-v38-hero{padding:76px 0 54px}
  .projects-v38 .portfolio-v38-hero .portfolio-hero-grid{gap:56px}
  .projects-v38 .portfolio-toolbar{margin-bottom:26px}
  .projects-v38 .portfolio-v38-grid{row-gap:32px}
  .projects-v38 .portfolio-v38-section{padding-bottom:84px}
  .projects-v38 .portfolio-v39-closing{padding:56px 0 30px}
  .projects-v38 .portfolio-v39-closing-grid{gap:clamp(44px,6vw,84px)}
  .projects-v38 .portfolio-v39-closing-meta{margin-top:38px}

  /* Project detail pages — images remain large, but transitions are tighter. */
  .project-v47-detail .project-v38-hero{padding-top:28px}
  .project-v47-detail .project-v38-hero .back-link{margin-bottom:36px}
  .project-v47-detail .project-v47-heading{margin-bottom:30px}
  .project-v47-detail .project-v47-facts{margin-bottom:34px}
  .project-v50-images .project-v47-secondary{padding-top:54px;padding-bottom:68px}
  .project-v38 .project-art-nav a{padding-top:30px;padding-bottom:30px}

  /* Contact + Careers share the same composition. Do not force a full-screen
     section when the actual content is shorter than the viewport. */
  .contact-v12-grid{
    min-height:0;
    gap:64px;
    padding:70px 0 58px;
  }
  .contact-v12-intro{top:calc(var(--header) + 26px);padding-top:6px}
  .contact-v12-intro>.overline{margin-bottom:18px}
  .contact-v12-lead{margin-top:26px}
  .contact-v12-intro blockquote{margin-top:32px;padding-top:16px}
  .contact-v12-direct{margin-top:34px;padding-top:22px;gap:20px}
  .contact-v12-form-wrap{padding-bottom:26px}
  .contact-v12-tabs button{padding-top:17px;padding-bottom:14px}
  .contact-v12-fields{gap:16px 16px}
  .field-line{padding-top:16px;padding-bottom:12px}
  .contact-v12-upload{margin-top:18px}
  .contact-v12-consent{margin-top:18px}
  .contact-v12-submit{margin-top:20px}
  .contact-v12-bottom{padding:52px 0 56px}
  .contact-v12-bottom-grid{gap:52px}

  /* v74 careers-specific blocks. */
  .career-v74 .career-v74-body{margin-top:17px}
  .career-v74-form-head{padding-top:19px;padding-bottom:16px}
  .career-v74-role-set{padding-top:14px;padding-bottom:16px}
  .career-v74-role{padding-top:11px;padding-bottom:11px}
  .career-v74-fields{padding-top:4px}
  .career-v74-upload{margin-top:14px!important}
}

@media (max-width:820px){
  /* Mobile was already compact; only remove a little accumulated whitespace. */
  .refinement-v40 .section{padding-block:56px}
  .stage1-v45 .software-module{margin-top:50px}
  .stage1-v45 .structure-module{margin-top:50px}
  .stage1-v45 .offer-pro{padding-top:66px;padding-bottom:62px}
  .stage1-v45 .offer-stages{margin-top:40px}

  .projects-v38 .portfolio-v38-hero{padding-top:56px;padding-bottom:42px}
  .projects-v38 .portfolio-v38-section{padding-bottom:72px}
  .projects-v38 .portfolio-v38-grid{gap:24px}

  .contact-v12-grid{padding-top:46px;padding-bottom:42px;gap:36px}
  .contact-v12-lead{margin-top:22px}
  .contact-v12-direct{margin-top:26px;padding-top:20px}
  .contact-v12-bottom{padding-top:44px;padding-bottom:46px}

  .career-v74-form-head{padding-top:17px;padding-bottom:14px}
  .career-v74-role-set{padding-top:13px;padding-bottom:15px}
  .career-v74-upload{margin-top:14px!important}
}

/* Slightly tighter footer rhythm on every page. */
.release-v36 .footer{padding-top:40px;padding-bottom:32px}
.release-v36 .footer-grid{gap:32px}
