/* =========================================================
   Home - Mobile Apps (layout inspired by Your Majesty)
   tall card | big statement + links | two overlapping cards
   ========================================================= */
html body .ma{
  position:relative;
  overflow:hidden;
  display:block;
  width:auto !important;
  margin:0 !important;
  padding:110px 0 120px !important;
  background:#fff !important;
  color:#0e1524;
}
.ma *,.ma *::before,.ma *::after{ box-sizing:border-box; }
.ma-inner{
  display:grid;
  grid-template-columns:minmax(220px, 23%) 1fr minmax(320px, 36%);
  align-items:center;
  gap:56px;
  padding-left:5%;
}

/* ---------- cards ---------- */
.ma-card{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  aspect-ratio:3 / 5;
  width:100%;
  padding:44px 18px 64px;
  border-radius:6px;
  overflow:hidden;
  text-decoration:none !important;
  transition:transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease;
}
.ma-card img{
  display:block;
  width:100% !important;
  max-width:none !important;
  height:auto !important;
  transition:transform .6s cubic-bezier(.2,.7,.2,1);
}
.ma-card:hover{ transform:translateY(-8px); box-shadow:0 26px 50px rgba(14,21,36,.18); }
.ma-card:hover img{ transform:scale(1.05); }
.ma-tag{
  position:absolute; top:16px; left:16px;
  padding:3px 8px;
  border-radius:4px;
  font-size:10.5px !important;
  font-weight:600 !important;
  letter-spacing:.1em !important;
  text-transform:uppercase;
}
.ma-name{
  position:absolute; left:18px; bottom:16px;
  font-size:clamp(20px, 1.9vw, 30px) !important;
  font-weight:700 !important;
  letter-spacing:-.03em !important;
  line-height:1 !important;
}
.ma-dark { background:linear-gradient(170deg, #2a2f38 0%, #0e1524 100%); }
.ma-dark .ma-tag{ background:rgba(0,0,0,.55); color:#fff; }
.ma-dark .ma-name{ color:#fff; }
.ma-peach{ background:linear-gradient(180deg, #fdebe3 0%, #fbe2d6 55%, #d9cfca 100%); }
.ma-peach .ma-tag{ background:rgba(14,21,36,.35); color:#fff; }
.ma-peach .ma-name{ color:#fff; text-shadow:0 1px 10px rgba(14,21,36,.25); }
.ma-navy { background:linear-gradient(170deg, #1b2a5a 0%, #0e1524 100%); }
.ma-navy .ma-tag{ background:rgba(0,0,0,.45); color:#fff; }
.ma-navy .ma-name{ color:#fff; }

/* left card */
.ma-left .ma-card{ max-width:330px; }

/* right: two overlapping cards, the back one bleeding off the edge */
.ma-right{
  position:relative;
  height:100%;
  min-height:560px;
}
.ma-right .ma-card{ position:absolute; width:58%; }
.ma-right .ma-peach{ left:0; top:0; z-index:1; }
.ma-right .ma-navy { left:46%; top:52px; z-index:2; width:62%; }
.ma-right .ma-card:hover{ z-index:3; }

/* ---------- copy ---------- */
.ma-copy{ max-width:620px; }
html body .ma .ma-kicker{
  margin:0 0 22px !important;
  font-size:12px !important;
  font-weight:600 !important;
  letter-spacing:.16em !important;
  text-transform:uppercase !important;
  color:#5d6472 !important;
}
html body .ma .ma-title{
  margin:0 0 26px !important;
  font-size:clamp(36px, 3.9vw, 62px) !important;
  line-height:1.02 !important;
  letter-spacing:-.04em !important;
  font-weight:400 !important;
  text-align:left !important;
  color:#0e1524 !important;
}
html body .ma .ma-text{
  max-width:480px;
  margin:0 0 36px !important;
  font-size:17px !important;
  line-height:1.55 !important;
  color:#2f3644 !important;
}
.ma-links{ display:flex; flex-wrap:wrap; gap:28px; }
.ma-links a{
  padding-bottom:5px;
  border-bottom:1.5px solid #0e1524;
  font-family:'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace !important;
  font-size:14px !important;
  letter-spacing:.14em !important;
  text-transform:uppercase;
  color:#0e1524 !important;
  text-decoration:none !important;
  transition:color .25s ease, border-color .25s ease;
}
.ma-links a:hover,.ma-links a:focus-visible{ color:#f1511b !important; border-color:#f1511b; }

/* ---------- tablets ---------- */
@media screen and (max-width:1100px){
  .ma-inner{ grid-template-columns:minmax(200px, 30%) 1fr; padding:0 5%; gap:40px; }
  .ma-right{ grid-column:1 / -1; min-height:0; height:auto; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .ma-right .ma-card{ position:relative; left:auto !important; top:auto !important; width:100% !important; }
}

/* ---------- phones ---------- */
@media screen and (max-width:700px){
  html body .ma{ padding:72px 0 80px !important; }
  .ma-inner{ display:flex; flex-direction:column; align-items:stretch; gap:36px; padding:0 20px; }
  .ma-copy{ order:-1; }
  .ma-left,.ma-right{ display:contents; }
  .ma-inner{ flex-direction:row; flex-wrap:wrap; }
  .ma-copy{ flex:0 0 100%; }
  .ma-card{ flex:0 0 calc(50% - 8px); max-width:none !important; position:relative !important; left:auto !important; top:auto !important; width:auto !important; padding:30px 10px 48px; }
  .ma-inner{ gap:16px; row-gap:36px; }
  .ma-name{ font-size:18px !important; left:12px; bottom:12px; }
}

@media (prefers-reduced-motion: reduce){
  .ma-card,.ma-card img{ transition:none; }
  .ma-card:hover{ transform:none; }
}

/* ---------- Portfolio heading: remove pencil-shavings background ---------- */
html body .portfolio_head{
  background:#fff none !important;
  height:auto !important;
}

/* ---------- Our Happy Customers: more space top & bottom ---------- */
html body .happyCustomers{ padding:110px 0 120px !important; }
@media screen and (max-width:700px){
  html body .happyCustomers{ padding:72px 0 80px !important; }
}
