/* Proportional sizing for the 1440 x 748 browser viewport shown in the brief.
   The height guard keeps these reductions isolated from taller desktop views. */
@media (min-width: 1400px) and (max-width: 1460px) and (max-height: 800px) {
  /* Header and hero */
  .site-header:not(.is-past-hero) {
    top: 66px;
    height: 49px;
  }

  .site-header:not(.is-past-hero) .brand-large {
    top: -27px;
    width: 112px;
  }

  .site-header:not(.is-past-hero) .main-nav {
    height: 49px;
    right: 6.9vw;
    left: auto;
    transform: none;
  }

  .site-header:not(.is-past-hero) .main-nav a {
    padding-inline: 16px;
    font-size: 13px;
  }

  .site-header:not(.is-past-hero) .main-nav .nav-cta {
    min-width: 165px;
    margin-left: 14px;
  }

  .hero-content {
    min-height: 100vh;
    padding-top: 125px;
    padding-bottom: 40px;
  }

  .hero-kicker {
    margin-bottom: 12px;
    font-size: 43px;
  }

  .hero h1 span {
    font-size: 60px;
  }

  .hero-tags {
    gap: 22px;
    margin: 22px 0 25px;
    font-size: 25.5px;
    letter-spacing: 1.7px;
  }

  .hero-tags li {
    gap: 22px;
  }

  .hero-tags li:not(:last-child)::after {
    width: 13px;
    height: 13px;
  }

  .hero-copy {
    max-width: 980px;
    font-size: 23px;
    line-height: 30px;
    letter-spacing: 0.55px;
  }

  .hero-actions {
    gap: 26px;
    margin-top: 39px;
  }

  .hero-actions .btn {
    min-width: 314px;
    height: 61px;
    font-size: 23px;
  }

  /* Process */
  .process {
    padding: 83px 0 144px;
  }

  .process-layout {
    grid-template-columns: 336px 1fr;
    gap: 80px;
  }

  .process-intro {
    top: 88px;
  }

  .process-intro .pill {
    padding: 13px 26px;
    margin-bottom: 16px;
    font-size: 12px;
  }

  .process-intro h2 {
    margin-bottom: 10px;
    font-size: 42px;
  }

  .process-intro > p:not(.pill) {
    max-width: 496px;
    margin-bottom: 13px;
    font-size: 18.5px;
  }

  .process-stats {
    max-width: 280px;
  }

  .process-stats > div {
    padding: 22px 0;
  }

  .process-stats strong {
    font-size: 32px;
  }

  .process-stats span {
    font-size: 17.5px;
  }

  .process-steps {
    gap: 77px;
  }

  .process-steps article {
    grid-template-columns: 192px 1fr;
    gap: 38px;
  }

  .step-icon {
    width: 192px;
    height: 176px;
    border-radius: 14px;
  }

  .step-icon svg,
  .step-icon img {
    width: 112px;
    height: 112px;
  }

  .process-steps h3 {
    margin-bottom: 13px;
    font-size: 29px;
  }

  .process-steps p {
    max-width: 320px;
    font-size: 19px;
  }

  /* Engineer */
  .engineer {
    padding: 80px 0 72px;
  }

  .engineer-layout {
    gap: 56px;
  }

  .engineer-copy h2 {
    max-width: 464px;
    font-size: 37px;
  }

  .engineer-copy blockquote {
    max-width: 384px;
    margin: 30px 0;
    font-size: 19px;
  }

  .engineer-copy blockquote::before,
  .engineer-copy blockquote::after {
    font-size: 62px;
  }

  .engineer-copy blockquote::before {
    left: -6px;
    top: -32px;
  }

  .engineer-copy blockquote::after {
    right: 32px;
    bottom: -32px;
  }

  .engineer-copy > p:not(.pill) {
    max-width: 480px;
    font-size: 16px;
  }

  .expertise-grid {
    max-width: 560px;
    gap: 13px;
    margin-top: 32px;
  }

  .expertise-grid article {
    min-height: 104px;
    gap: 18px;
    padding: 18px;
    border-radius: 11px;
  }

  .expertise-grid svg,
  .expertise-grid img {
    width: 38px;
    height: 38px;
  }

  .expertise-grid h3 {
    margin-bottom: 5px;
    font-size: 18px;
  }

  .expertise-grid p {
    max-width: 144px;
    font-size: 14.5px;
  }

  .engineer-profile > img {
    width: min(100%, 464px);
    margin: -44px auto -52px;
    left: -32px;
  }

  .profile-text h3 {
    margin-bottom: 10px;
    font-size: 38px;
  }

  .profile-text > p {
    font-size: 14.5px;
  }

  .profile-meta {
    margin-top: 18px !important;
  }

  .profile-meta span {
    height: 14px;
    margin-inline: 14px;
  }

  .profile-text h4 {
    max-width: 416px;
    margin: 34px auto 13px;
    font-size: 18.5px;
    transform: translateX(56px);
  }

  .profile-text .tick-list {
    max-width: 416px;
    font-size: 16px;
    transform: translateX(56px);
  }

  /* Footer */
  .site-footer {
    padding: 124px 0 36px;
  }

  .footer-grid {
    gap: 48px;
  }

  .footer-brand img {
    width: 120px;
    margin-bottom: 38px;
  }

  .footer-brand p {
    max-width: 368px;
    margin-bottom: 38px;
    font-size: 20px;
  }

  .socials {
    gap: 21px;
  }

  .socials a {
    width: 45px !important;
    height: 45px !important;
    margin: 0 !important;
  }
  .socials a svg {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    transform: none !important;
  }

  .site-footer h3 {
    margin: 38px 0 40px;
    font-size: 22.5px;
  }

  .site-footer a {
    margin-bottom: 27px;
    font-size: 20px;
  }

  .contact p {
    grid-template-columns: 24px 1fr;
    gap: 16px;
    margin-bottom: 22px;
    font-size: 20px;
  }

  .contact a {
    margin: 0;
  }

  .contact svg,
  .contact img {
    width: 21px;
    height: 21px;
    margin-top: 3px;
  }

  .footer-bottom {
    margin-top: 62px;
    padding-top: 30px;
  }

  .footer-bottom p {
    font-size: 19px;
  }

  /* Compact floating navigation */
  .site-header.is-past-hero {
    top: 19px;
    width: 216px;
    height: 58px;
  }

  .site-header.is-past-hero::after {
    top: 11px;
    bottom: 11px;
    left: 77px;
  }

  .site-header.is-past-hero.is-menu-open {
    width: min(1104px, calc(100vw - 32px));
  }

  .site-header.is-past-hero .brand-dock {
    top: 6px;
    left: 6px;
    width: 64px;
    height: 46px;
  }

  .site-header.is-past-hero .brand-dock img {
    width: 42px;
    height: 40px;
  }

  .site-header.is-past-hero .menu-toggle {
    top: 6px;
    right: 6px;
    width: 133px;
    height: 46px;
    padding: 0 18px 0 22px;
  }

  .site-header.is-menu-open .menu-toggle {
    width: 109px;
    padding-left: 16px;
  }

  .site-header.is-past-hero .menu-toggle__label {
    font-size: 14px;
  }

  .site-header.is-past-hero .menu-toggle__lines {
    width: 20px;
    height: 14px;
    flex-basis: 20px;
  }

  .site-header.is-past-hero .menu-toggle__lines > span {
    width: 20px;
  }

  .site-header.is-past-hero .menu-toggle__lines > span:nth-child(2) {
    top: 6px;
  }

  .site-header.is-past-hero .menu-toggle__lines > span:nth-child(3) {
    top: 12px;
  }

  .site-header.is-menu-open .menu-toggle__lines > span:nth-child(1),
  .site-header.is-menu-open .menu-toggle__lines > span:nth-child(3) {
    top: 6px;
  }

  .site-header.is-past-hero .main-nav {
    inset: 0 117px 0 77px;
    height: 58px;
  }

  .site-header.is-past-hero .main-nav a {
    padding-inline: 13px;
    font-size: 14px;
  }

  .site-header.is-past-hero .main-nav .nav-cta {
    min-width: 174px;
    height: 45px;
    margin-left: 10px;
  }

  /* Quote popup */
  .popup-overlay {
    padding: 16px;
  }

  .popup-card {
    max-width: 704px;
    border-radius: 19px;
  }

  .popup-close {
    top: 13px;
    right: 13px;
    width: 29px;
    height: 29px;
    font-size: 18px;
  }

  .popup-grid {
    grid-template-columns: 256px 1fr;
  }

  .popup-promo {
    padding: 32px 24px;
  }

  .promo-badge {
    padding: 5px 11px;
    margin-bottom: 19px;
    font-size: 10.5px;
  }

  .popup-promo h3 {
    margin-bottom: 10px;
    font-size: 22.5px;
  }

  .popup-promo p {
    margin-bottom: 19px;
    font-size: 11.5px;
  }

  .promo-benefits {
    gap: 10px;
  }

  .promo-benefits li {
    gap: 8px;
    font-size: 11px;
  }

  .promo-benefits li span {
    width: 16px;
    height: 16px;
    font-size: 8px;
  }

  .popup-form-wrap {
    padding: 29px 35px 26px;
  }

  .popup-form-wrap h2 {
    margin-bottom: 6px;
    font-size: 22.5px;
  }

  .popup-form-wrap p {
    margin-bottom: 16px;
    font-size: 11.5px;
  }

  .popup-form label {
    gap: 5px;
    margin-bottom: 8px;
    font-size: 11px;
  }

  .popup-form input,
  .popup-form select,
  .popup-form textarea {
    height: 34px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .popup-form textarea {
    height: 56px;
    padding-block: 8px;
  }

  .popup-form .form-grid {
    gap: 11px;
  }

  .popup-form .custom-select-trigger {
    height: 34px;
    padding-inline: 11px;
    font-size: 11px;
  }

  .popup-form .custom-select-trigger::after {
    width: 11px;
    height: 11px;
    margin-left: 10px;
  }

  .popup-form .custom-options {
    margin-top: 6px;
    border-radius: 10px;
  }

  .popup-form .custom-option {
    padding: 8px 11px;
    font-size: 11px;
  }

  .popup-form .btn-submit {
    height: 38px;
    margin-top: 5px;
    font-size: 12px;
  }

  .popup-form small {
    margin-top: 11px;
    font-size: 11px;
  }

  /* Floating contact controls */
  .floating-actions {
    right: 24px;
    bottom: 24px;
    gap: 12px;
  }

  .floating-btn {
    width: 45px;
    height: 45px;
  }

  .floating-btn svg {
    width: 19px;
    height: 19px;
  }

  .float-whatsapp svg {
    width: 22px;
    height: 22px;
  }

  /* Why section grid and card sizes */
  .why-collage {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
    max-width: 1220px;
    margin-inline: auto;
  }

  .why-collage .why-card {
    height: 350px;
  }

  .why-collage .why-card:nth-child(1),
  .why-collage .why-card:nth-child(6) {
    align-self: center;
  }

  /* Final CTA banner height reduction */
  .final-cta {
    min-height: 480px;
    padding: 80px 0 100px;
  }
}

/* Keep the process split exclusive to the requested 1440px viewport. */
@media (width: 1440px) {
  .process-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .process-intro,
  .process-steps {
    min-width: 0;
  }
}
