/* =========================================================
   AROHAM TALENT — MOBILE APP EXPERIENCE
   Loaded only at <= 720px. Completely reworks home + inner pages.
   ========================================================= */

@media (max-width: 720px) {

  :root {
    --m-bg: #F5F7FB;
    --m-card: #ffffff;
    --m-ink: #0A1F44;
    --m-ink-2: #4a5878;
    --m-ink-3: #8a96b0;
    --m-line: rgba(10,31,68,.08);
    --m-accent: #00A896;
    --m-navy: #0A1F44;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --tabbar-h: calc(64px + var(--safe-bottom));
  }

  /* ---------- App shell base ---------- */
  body {
    background: var(--m-bg);
    color: var(--m-ink);
    padding-bottom: 0;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
  }
  /* Footer absorbs the tab-bar clearance so its navy bg fills the bottom */
  .footer {
    padding-bottom: calc(36px + var(--tabbar-h)) !important;
  }
  html { scroll-behavior: smooth; }

  /* Kill default elements that don't belong in the app view */
  .desktop-only, .nav, .hero, .logos,
  .services-grid, .about, section[aria-label="At a glance"],
  #process, #insights, #faq,
  section[style*="padding-bottom: 0"], section[style*="padding-block: 0"],
  section:has(.cta-banner), section:has(.about-grid),
  section:has(.services-grid), section:has(.testimonials),
  .testimonials {
    display: none !important;
  }

  /* Footer stays — but restyled for mobile */
  .footer {
    margin-top: 24px;
    padding: 36px 14px 24px;
    background: var(--m-navy);
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .footer .brand-logo { height: 32px; }
  .footer .blurb { font-size: 13px; margin-top: 14px; max-width: none; }
  .footer h5 { font-size: 12px; margin-bottom: 14px; }
  .footer ul { gap: 10px; }
  .footer ul a { font-size: 13.5px; }
  .footer .socials { margin-top: 14px; }
  .footer .socials a { width: 36px; height: 36px; }
  .newsletter { flex-direction: column; gap: 8px; }
  .newsletter input { width: 100%; }
  .newsletter button { width: 100%; height: 44px; }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    padding-top: 18px;
    margin-top: 36px;
    font-size: 12px;
  }
  .footer-bottom .legal { gap: 14px 18px; }

  /* But show our mobile-only sections */
  .m-only { display: block !important; }

  /* ---------- App header (sticky pill) ---------- */
  .m-header {
    position: sticky; top: 12px; z-index: 60;
    margin: 14px 14px 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 8px 8px 16px;
    background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-radius: 999px;
    box-shadow: 0 2px 12px -2px rgba(10,31,68,.08);
    border: 1px solid rgba(10,31,68,.06);
    height: 54px;
    gap: 8px;
    min-width: 0;
  }
  .m-header .m-brand { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
  .m-header .m-brand img { height: 22px; width: auto; }
  .m-header-title {
    flex: 1; min-width: 0;
    font-family: var(--ff-head); font-weight: 700; font-size: 15px;
    color: var(--m-navy);
    text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    padding: 0 4px;
  }
  .m-header-actions { display: flex; gap: 6px; flex-shrink: 0; }
  .m-icon-btn {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--m-bg);
    display: grid; place-items: center;
    color: var(--m-navy);
    transition: transform .15s ease, background .15s ease;
    flex-shrink: 0;
    position: relative;
  }
  .m-icon-btn:active { transform: scale(0.92); background: #e8ecf3; }
  .m-icon-btn .badge {
    position: absolute; top: 8px; right: 8px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--m-accent);
    border: 2px solid #fff;
  }

  /* ---------- Hero card ---------- */
  .m-hero {
    margin: 20px 14px 0;
    position: relative;
  }
  .m-hero h1 {
    font-size: 38px !important;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--m-navy);
    margin-bottom: 18px;
  }
  .m-hero h1 .accent { color: var(--m-accent); }
  .m-hero-photo {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 4/4.6;
    background: linear-gradient(135deg, #0A1F44, #1a3a73 60%, #00A896);
    box-shadow: 0 30px 60px -20px rgba(10,31,68,.4);
    margin-bottom: 18px;
    will-change: transform;
  }
  .m-hero-photo img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 0.1s linear;
    will-change: transform;
  }
  .m-hero-photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,31,68,0) 30%, rgba(10,31,68,.7) 100%);
    z-index: 1;
  }
  .m-hero-photo-overlay {
    position: absolute;
    inset: auto 20px 20px;
    z-index: 2;
    color: #fff;
  }
  .m-hero-photo-overlay .pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-family: var(--ff-head); font-weight: 600; font-size: 11px;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255,255,255,.15);
    margin-bottom: 12px;
  }
  .m-hero-photo-overlay .pill .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--teal-300);
    box-shadow: 0 0 0 4px rgba(60,201,192,.3);
    animation: mpulse 2s ease-in-out infinite;
  }
  @keyframes mpulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
  }
  .m-hero-photo-overlay h3 {
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 16px;
    max-width: 16ch;
  }
  .m-cta-row {
    display: flex; gap: 10px;
  }
  .m-cta {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 52px;
    padding: 0 20px;
    border-radius: 999px;
    font-family: var(--ff-head); font-weight: 600; font-size: 15px;
    transition: transform .15s ease, box-shadow .15s ease;
  }
  .m-cta:active { transform: scale(0.96); }
  .m-cta.primary {
    background: var(--m-accent); color: #fff;
    box-shadow: 0 10px 24px -8px rgba(0,168,150,.6);
  }
  .m-cta.ghost {
    background: rgba(255,255,255,.2);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
  }

  /* Hero stat strip below photo */
  .m-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .m-stat-pill {
    background: #fff;
    border-radius: 16px;
    padding: 12px 10px;
    text-align: center;
    border: 1px solid var(--m-line);
    box-shadow: 0 2px 4px rgba(10,31,68,.03);
  }
  .m-stat-pill .v {
    font-family: var(--ff-head); font-weight: 700;
    font-size: 18px; color: var(--m-navy); line-height: 1;
  }
  .m-stat-pill .l {
    font-size: 10px;
    color: var(--m-ink-3);
    margin-top: 4px;
    line-height: 1.2;
  }

  /* ---------- Section heads (compact) ---------- */
  .m-sect {
    margin-top: 36px;
    padding: 0 14px;
  }
  .m-sect-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 6px;
  }
  .m-sect-head h2 {
    font-size: 22px;
    line-height: 1.15;
    color: var(--m-navy);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .m-sect-head h2 small {
    display: block;
    font-size: 11px;
    color: var(--m-accent);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .m-sect-head .see-all {
    font-family: var(--ff-head);
    font-size: 13px; font-weight: 600;
    color: var(--m-accent);
    display: inline-flex; align-items: center; gap: 4px;
  }
  .m-sect-head .see-all svg { width: 14px; height: 14px; transition: transform .2s; }
  .m-sect-head .see-all:active svg { transform: translateX(3px); }

  /* ---------- 3D Service Carousel ---------- */
  .m-services {
    margin: 16px 0 0;
    padding: 12px 0 32px;
    perspective: 1200px;
    overflow: hidden;
  }
  .m-svc-rail {
    display: flex;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 0 32px;
    gap: 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .m-svc-rail::-webkit-scrollbar { display: none; }
  .m-svc-card {
    flex: 0 0 78vw;
    max-width: 320px;
    scroll-snap-align: center;
    border-radius: 28px;
    padding: 26px 24px 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    aspect-ratio: 5/6.2;
    box-shadow: 0 20px 40px -15px rgba(10,31,68,.4);
    transform: rotateY(0deg) scale(0.92);
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(.2,.8,.3,1), filter 0.4s;
    filter: brightness(0.85);
    will-change: transform, filter;
  }
  .m-svc-card.is-active {
    transform: rotateY(0deg) scale(1);
    filter: brightness(1);
  }
  .m-svc-card.is-left {
    transform: rotateY(18deg) scale(0.9);
    filter: brightness(0.7);
  }
  .m-svc-card.is-right {
    transform: rotateY(-18deg) scale(0.9);
    filter: brightness(0.7);
  }
  .m-svc-card:nth-child(1) { background: linear-gradient(160deg, #0A1F44 0%, #1E6A8E 100%); }
  .m-svc-card:nth-child(2) { background: linear-gradient(160deg, #1a3a73 0%, #00A896 100%); }
  .m-svc-card:nth-child(3) { background: linear-gradient(160deg, #0A1F44 0%, #3CC9C0 100%); }
  .m-svc-card:nth-child(4) { background: linear-gradient(160deg, #122d5c 0%, #F4B400 130%); }
  .m-svc-card:nth-child(5) { background: linear-gradient(160deg, #00A896 0%, #0A1F44 100%); }

  .m-svc-card::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(60% 60% at 80% 10%, rgba(255,255,255,.18), transparent 60%),
      radial-gradient(40% 50% at 0% 100%, rgba(244,180,0,.15), transparent 60%);
    pointer-events: none;
  }
  .m-svc-num {
    font-family: var(--ff-head); font-size: 64px; font-weight: 800;
    line-height: 0.9;
    color: rgba(255,255,255,.16);
    letter-spacing: -0.04em;
  }
  .m-svc-ico {
    position: absolute; top: 26px; right: 24px;
    width: 56px; height: 56px;
    border-radius: 18px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: grid; place-items: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
  }
  .m-svc-card h3 {
    color: #fff;
    font-size: 24px;
    line-height: 1.15;
    margin-top: auto;
    margin-bottom: 10px;
    max-width: 14ch;
    position: relative;
    z-index: 1;
  }
  .m-svc-card p {
    color: rgba(255,255,255,.78);
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
  }
  .m-svc-card .m-svc-meta {
    margin-top: 18px;
    display: flex; align-items: center; gap: 10px;
    font-family: var(--ff-head); font-weight: 600; font-size: 12px;
    color: rgba(255,255,255,.7);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .m-svc-card .m-svc-meta::before {
    content: ""; width: 24px; height: 1px; background: rgba(255,255,255,.4);
  }
  .m-svc-card .m-svc-cta {
    position: absolute;
    right: 22px; bottom: 22px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--m-navy);
    display: grid; place-items: center;
    transition: transform .2s ease;
  }
  .m-svc-card:active .m-svc-cta { transform: scale(0.9); }

  /* Body content layout inside card */
  .m-svc-card-body {
    height: 100%;
    display: flex; flex-direction: column;
  }

  /* Dots indicator */
  .m-svc-dots {
    display: flex; justify-content: center; gap: 6px;
    margin-top: 18px;
  }
  .m-svc-dots span {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(10,31,68,.15);
    transition: width 0.3s ease, background 0.3s ease;
  }
  .m-svc-dots span.active {
    width: 24px;
    background: var(--m-accent);
    border-radius: 999px;
  }

  /* ---------- Stats banner ---------- */
  .m-stats {
    margin: 32px 14px 0;
    background: linear-gradient(135deg, var(--m-navy) 0%, #122d5c 100%);
    border-radius: 28px;
    padding: 24px 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  .m-stats::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(50% 60% at 100% 0%, rgba(0,168,150,.3), transparent 60%),
      radial-gradient(40% 50% at 0% 100%, rgba(244,180,0,.15), transparent 60%);
  }
  .m-stats-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .m-stat {
    padding: 6px 0;
  }
  .m-stat .v {
    font-family: var(--ff-head); font-weight: 700;
    font-size: 32px; line-height: 1;
    letter-spacing: -0.02em;
  }
  .m-stat .v .tail {
    color: var(--teal-300);
    font-size: 0.55em;
    font-weight: 600;
    margin-left: 2px;
  }
  .m-stat .l {
    font-size: 12px;
    color: rgba(255,255,255,.65);
    margin-top: 6px;
    letter-spacing: 0.02em;
  }

  /* ---------- Industries — horizontal chip carousel ---------- */
  .m-industries {
    margin-top: 36px;
    overflow: hidden;
  }
  .m-ind-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 4px 14px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 14px;
  }
  .m-ind-rail::-webkit-scrollbar { display: none; }
  .m-ind-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 22px;
    padding: 18px 16px;
    border: 1px solid var(--m-line);
    box-shadow: 0 4px 12px -4px rgba(10,31,68,.06);
    display: flex; flex-direction: column;
    height: 168px;
    transition: transform .15s ease;
    position: relative;
    overflow: hidden;
  }
  .m-ind-card:active { transform: scale(0.97); }
  .m-ind-card .ico {
    width: 44px; height: 44px;
    border-radius: 14px;
    background: rgba(0,168,150,.10);
    color: var(--m-accent);
    display: grid; place-items: center;
    margin-bottom: auto;
  }
  .m-ind-card .name {
    font-family: var(--ff-head); font-weight: 700;
    font-size: 14px;
    color: var(--m-navy);
    line-height: 1.2;
    margin-top: 12px;
  }
  .m-ind-card .count {
    font-size: 11px;
    color: var(--m-ink-3);
    margin-top: 4px;
  }
  .m-ind-card .arrow {
    position: absolute;
    top: 18px; right: 16px;
    color: var(--m-ink-3);
  }

  /* Make first card bolder (featured) */
  .m-ind-rail .m-ind-card:first-child {
    background: linear-gradient(150deg, var(--m-navy) 0%, #1E6A8E 100%);
    color: #fff;
    border: 0;
  }
  .m-ind-rail .m-ind-card:first-child .ico {
    background: rgba(255,255,255,.16);
    color: #fff;
  }
  .m-ind-rail .m-ind-card:first-child .name { color: #fff; }
  .m-ind-rail .m-ind-card:first-child .count { color: rgba(255,255,255,.65); }
  .m-ind-rail .m-ind-card:first-child .arrow { color: rgba(255,255,255,.8); }

  /* ---------- Testimonials — horizontal swipe deck ---------- */
  .m-testim {
    margin: 36px 0 0;
    position: relative;
    height: 260px;
    perspective: 1200px;
    overflow: hidden;
    padding: 0 14px;
  }
  .m-test-card {
    position: absolute;
    inset: 0 14px;
    background: #fff;
    border-radius: 24px;
    padding: 24px 22px 22px;
    box-shadow: 0 20px 40px -15px rgba(10,31,68,.18);
    transition: transform 0.5s cubic-bezier(.25,.8,.25,1), opacity 0.5s, z-index 0s 0.25s;
    transform-origin: center center;
    border: 1px solid var(--m-line);
    will-change: transform, opacity;
  }
  .m-test-card[data-pos="0"] {
    transform: translateX(0) scale(1) rotateY(0deg);
    z-index: 3;
    opacity: 1;
  }
  .m-test-card[data-pos="1"] {
    transform: translateX(18px) scale(0.94) rotateY(-4deg);
    z-index: 2;
    opacity: 0.65;
  }
  .m-test-card[data-pos="2"] {
    transform: translateX(34px) scale(0.88) rotateY(-7deg);
    z-index: 1;
    opacity: 0.35;
  }
  .m-test-card[data-pos="-1"] {
    transform: translateX(-110%) scale(0.9) rotateY(12deg);
    opacity: 0;
    pointer-events: none;
  }
  .m-test-card .stars {
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 10px;
  }
  .m-test-card .quote {
    font-family: var(--ff-head);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.45;
    color: var(--m-navy);
    margin-bottom: 16px;
  }
  .m-test-author {
    display: flex; align-items: center; gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--m-line);
  }
  .m-test-author .av {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--ff-head); font-weight: 700; color: #fff;
    font-size: 13px;
  }
  .m-test-author .nm {
    font-family: var(--ff-head); font-weight: 600;
    color: var(--m-navy); font-size: 14px;
  }
  .m-test-author .ro {
    font-size: 12px; color: var(--m-ink-3);
  }

  /* ---------- Insights / Why us — vertical cards ---------- */
  .m-why-grid {
    display: grid;
    gap: 12px;
    padding: 0 14px;
    margin-top: 16px;
  }
  .m-why {
    background: #fff;
    border-radius: 20px;
    padding: 18px 18px 18px 60px;
    border: 1px solid var(--m-line);
    position: relative;
  }
  .m-why .ico {
    position: absolute;
    left: 14px; top: 16px;
    width: 38px; height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--m-accent), var(--teal-300));
    color: #fff;
    display: grid; place-items: center;
  }
  .m-why h3 { font-size: 16px; margin-bottom: 4px; color: var(--m-navy); }
  .m-why p { font-size: 13px; color: var(--m-ink-2); line-height: 1.5; }

  /* ---------- CTA banner ---------- */
  .m-cta-banner {
    margin: 36px 14px 0;
    background: linear-gradient(135deg, var(--m-navy) 0%, #1a3a73 60%, #00A896 130%);
    border-radius: 28px;
    padding: 28px 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: left;
  }
  .m-cta-banner::before {
    content: ""; position: absolute; inset: 0;
    background:
      radial-gradient(50% 70% at 100% 0%, rgba(60,201,192,.4), transparent 60%),
      radial-gradient(40% 50% at 0% 100%, rgba(244,180,0,.18), transparent 60%);
  }
  .m-cta-banner > * { position: relative; }
  .m-cta-banner .eyebrow {
    color: var(--teal-300);
    font-size: 11px;
  }
  .m-cta-banner h2 {
    color: #fff;
    font-size: 26px;
    line-height: 1.15;
    margin: 10px 0 12px;
    max-width: 16ch;
  }
  .m-cta-banner p {
    color: rgba(255,255,255,.75);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .m-cta-banner .m-cta-row { flex-direction: row; }
  .m-cta-banner .m-cta.primary {
    background: #fff; color: var(--m-navy);
    box-shadow: 0 12px 30px -8px rgba(0,0,0,.3);
  }
  .m-cta-banner .m-cta.ghost {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.2);
  }

  /* ---------- Trust / logos strip ---------- */
  .m-trust {
    margin: 28px 14px 0;
    padding: 16px 18px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--m-line);
    display: flex; align-items: center; gap: 14px;
  }
  .m-trust .av-stack {
    display: flex;
  }
  .m-trust .av-stack span {
    width: 30px; height: 30px; border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -8px;
    display: grid; place-items: center;
    font-family: var(--ff-head); font-weight: 700; font-size: 10px;
    color: #fff;
  }
  .m-trust .av-stack span:first-child { margin-left: 0; }
  .m-trust strong {
    display: block;
    font-family: var(--ff-head); font-weight: 700;
    font-size: 14px; color: var(--m-navy);
  }
  .m-trust .stars {
    color: var(--gold); font-size: 11px; letter-spacing: 2px;
  }
  .m-trust em {
    font-style: normal;
    font-size: 11px;
    color: var(--m-ink-3);
  }

  /* ---------- Tab bar (fluid slider) ---------- */
  .app-tabbar {
    display: flex;
    position: fixed;
    bottom: calc(10px + var(--safe-bottom));
    left: 14px; right: 14px;
    z-index: 80;
    background: rgba(255,255,255,.96);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 18px 44px -12px rgba(10,31,68,.28), 0 4px 12px -2px rgba(10,31,68,.1);
    border: 1px solid rgba(10,31,68,.06);
  }
  /* Fluid sliding pill behind the active tab */
  .app-tabbar .tab-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 0;
    width: 0;
    background: var(--m-navy);
    border-radius: 999px;
    z-index: 0;
    box-shadow: 0 6px 18px -4px rgba(10,31,68,.45), inset 0 0 0 1px rgba(255,255,255,.06);
    transition:
      left .55s cubic-bezier(.34,1.4,.64,1),
      width .55s cubic-bezier(.34,1.4,.64,1);
    will-change: left, width;
    pointer-events: none;
  }
  .app-tabbar a {
    position: relative;
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    gap: 6px;
    height: 48px;
    border-radius: 999px;
    color: var(--m-ink-3);
    z-index: 1;
    transition: color .35s cubic-bezier(.2,.8,.2,1), flex .5s cubic-bezier(.34,1.4,.64,1), transform .15s ease;
  }
  .app-tabbar a svg {
    width: 24px; height: 24px;
    flex-shrink: 0;
    transition: transform .45s cubic-bezier(.34,1.56,.64,1);
    stroke-width: 2;
  }
  .app-tabbar a .label {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    font-family: var(--ff-head);
    font-size: 13px; font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.01em;
    transition:
      max-width .5s cubic-bezier(.34,1.4,.64,1),
      opacity .3s ease .12s,
      margin .35s cubic-bezier(.2,.8,.2,1);
    margin-left: 0;
  }
  .app-tabbar a.active {
    color: #fff;
    flex: 1.95;
  }
  .app-tabbar a.active .label {
    max-width: 100px;
    opacity: 1;
    margin-left: 4px;
  }
  .app-tabbar a.active svg {
    transform: scale(1.08);
    stroke-width: 2.2;
    animation: tabIconPop .55s cubic-bezier(.34,1.56,.64,1);
  }
  @keyframes tabIconPop {
    0% { transform: scale(0.9); }
    55% { transform: scale(1.2); }
    100% { transform: scale(1.08); }
  }
  .app-tabbar a:active { transform: scale(0.92); }
  .app-tabbar a:active svg { transform: scale(0.88); }

  /* ---------- Page hero override on inner pages ---------- */
  .page-hero {
    padding-top: 90px; /* below sticky header */
    padding-bottom: 28px;
    background: var(--m-bg);
    border-bottom: 0;
  }
  .page-hero::before { display: none; }
  .page-hero-grid { display: block; }
  .page-hero h1 {
    font-size: 32px !important;
    line-height: 1.08;
    color: var(--m-navy);
  }
  .page-hero .lead {
    font-size: 15px;
    color: var(--m-ink-2);
  }
  .crumbs { font-size: 12px; margin-bottom: 8px; }
  .page-hero-aside {
    margin-top: 22px;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .aside-card {
    flex-direction: column;
    padding: 14px 10px !important;
    text-align: center;
    background: #fff;
    border: 1px solid var(--m-line);
    border-radius: 16px;
  }
  .aside-card .ico {
    margin: 0 auto 8px;
    width: 32px !important; height: 32px !important;
  }
  .aside-card .v { font-size: 13px !important; }
  .aside-card .l { font-size: 10px !important; }

  /* Show header on inner pages too (was hidden by display:none on .nav) */
  .nav { display: none !important; }
  body > .m-header { display: flex !important; }

  /* Page transitions */
  .m-fade-in {
    animation: mFadeIn 0.4s cubic-bezier(.2,.8,.3,1);
  }
  @keyframes mFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Reveal animations for cards as they enter viewport */
  .m-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s cubic-bezier(.2,.8,.3,1), transform .5s cubic-bezier(.2,.8,.3,1);
  }
  .m-reveal.in {
    opacity: 1;
    transform: translateY(0);
  }

  /* ---------- Inner-page generic content ---------- */
  /* Services page service rows */
  .service-row {
    display: block !important;
    padding: 24px 14px !important;
    border-top: 0 !important;
  }
  .service-row .sr-visual {
    aspect-ratio: 16/10;
    border-radius: 22px;
    margin-bottom: 18px;
  }
  .service-row.reverse .sr-copy { order: unset !important; }
  .service-row.reverse .sr-visual { order: unset !important; }
  .sr-copy h2 { font-size: 26px !important; }
  .sr-copy .lead { font-size: 15px; }
  .sr-features li { font-size: 14px; }
  .sr-meta { grid-template-columns: 1fr 1fr; gap: 12px; }
  .sr-meta .v { font-size: 13px; }

  /* Process stages */
  .stage {
    grid-template-columns: 1fr !important;
    padding: 24px 14px !important;
    gap: 14px;
    border-top: 0 !important;
  }
  .stage-num { font-size: 56px !important; }
  .stage-copy h2 { font-size: 24px !important; }
  .stage-copy p { font-size: 14.5px; }
  .stage-details { padding: 18px; border-radius: 18px; }
  .stage-details li { font-size: 13.5px; }

  /* Industries page cards */
  .industry-card {
    grid-template-columns: 1fr !important;
    border-radius: 22px;
    margin: 0 14px;
  }
  .industry-visual { aspect-ratio: 16/9; }
  .industry-body { padding: 20px; }
  .industries-stack { gap: 14px; }

  /* Insights articles */
  .featured-article { grid-template-columns: 1fr !important; gap: 18px; }
  .articles-grid { grid-template-columns: 1fr !important; }
  .fa-cover { aspect-ratio: 16/10; border-radius: 22px; }
  .fa-copy h2 { font-size: 24px !important; }
  .article { border-radius: 22px; }

  /* Contact page */
  .contact-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .channels-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .map-card { grid-template-columns: 1fr !important; }
  .map-art { min-height: 240px; }
  .form-card { padding: 20px; border-radius: 22px; }
  .form-row { grid-template-columns: 1fr !important; }
  .form-actions { flex-direction: column; align-items: stretch !important; gap: 12px; }
  .form-actions .btn { width: 100%; }
  .contact-row { padding: 12px 0; }

  /* About page */
  .about-grid, .about-hero-img + section .reveal { grid-template-columns: 1fr !important; }
  .about-hero-img { aspect-ratio: 16/10; border-radius: 22px; margin: 18px 14px; }
  .values-grid { grid-template-columns: 1fr !important; padding: 0 14px; }
  .team-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; padding: 0 14px; }
  .team-card { border-radius: 20px; }
  .team-body { padding: 14px; }
  .team-body h4 { font-size: 15px; }
  .team-body .role { font-size: 11px; }
  .team-body p { font-size: 12.5px; }
  .timeline { padding-left: 24px; }

  /* Section heads on inner pages */
  .section-head { padding: 0 14px; text-align: left; margin-bottom: 22px; }
  .section-head h2 { font-size: 24px !important; line-height: 1.15; }
  .section-head .lead { font-size: 14px; margin: 0; }

  /* Sections become tighter */
  section { padding-block: 32px !important; }

  /* FAQ */
  .faq-wrap { padding: 0 14px; }
  .faq-q { font-size: 15px; padding: 16px 0; }
  .faq-a-inner { font-size: 14px; padding-right: 40px; padding-bottom: 16px; }

  /* Why us */
  .why-grid { grid-template-columns: 1fr !important; padding: 0 14px; gap: 12px; }
  .feature { border-radius: 20px; padding: 22px; }

  /* SLA cards */
  .sla-grid { grid-template-columns: 1fr 1fr !important; padding: 0 14px; gap: 10px; }
  .sla { border-radius: 16px; padding: 16px; }
  .sla h4 { font-size: 14px; }
  .sla p { font-size: 12.5px; }

  /* Newsletter block on insights */
  .newsletter-block { margin: 36px 14px 0; padding: 28px 22px; border-radius: 24px; }
  .newsletter-block h2 { font-size: 22px !important; }
  .newsletter-block form { flex-direction: column; gap: 10px; }
  .newsletter-block button { width: 100%; }

  /* Compare on services page */
  .compare { padding: 14px; margin: 0 14px; border-radius: 22px; }
  .cmp-tabs { gap: 2px; padding: 4px; }
  .cmp-tab { padding: 8px 6px; }
  .cmp-tab .cmp-num { font-size: 9px; }
  .cmp-tab .cmp-name { font-size: 11px; }
  .cmp-card { min-height: 0; padding: 18px; }
  .cmp-title { font-size: 22px !important; }
  .cmp-meta { padding: 14px; gap: 12px; }

  /* CTA banner on inner pages — keep visible (cancel earlier hide) */
  section:has(.cta-banner) { display: block !important; padding-block: 32px !important; }
  .cta-banner {
    padding: 28px 24px;
    border-radius: 24px;
    margin: 0 14px;
  }
  .cta-grid { grid-template-columns: 1fr !important; }
  .cta-banner h2 { font-size: 22px !important; }
  .cta-banner p { font-size: 14px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; max-width: none; min-width: 0; flex: 1 1 100%; }

  /* All visible on mobile only via these helpers */
  /* (m-only is already display:block above) */
  /* ---------- Search overlay ---------- */
  /* Page transition: fade content during nav */
  .m-page-out {
    animation: mPageOut .18s cubic-bezier(.4,0,1,1) forwards;
  }
  @keyframes mPageOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-6px) scale(0.99); }
  }
  .m-page-out .app-tabbar,
  .m-page-out .m-loader { animation: none; opacity: 1; transform: none; }

  /* Page-switch loader */
  .m-loader {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid; place-items: center;
    background: rgba(245,247,251,.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none;
    transition: opacity .15s ease;
  }
  .m-loader.show { opacity: 1; pointer-events: auto; }
  .m-loader-card {
    width: 84px; height: 84px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 40px -10px rgba(10,31,68,.25);
    display: grid; place-items: center;
    color: var(--m-navy);
    position: relative;
    overflow: hidden;
    animation: mLoaderPop .35s cubic-bezier(.34,1.56,.64,1);
  }
  @keyframes mLoaderPop {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  .m-loader-card svg { width: 32px; height: 32px; }
  .m-loader-card::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    border: 2.5px solid transparent;
    border-top-color: var(--m-accent);
    border-right-color: var(--m-accent);
    animation: mLoaderSpin .7s linear infinite;
  }
  @keyframes mLoaderSpin {
    to { transform: rotate(360deg); }
  }

  .m-search-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(10,31,68,.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
  }
  .m-search-overlay.open { opacity: 1; pointer-events: auto; }
  .m-search-panel {
    position: absolute;
    top: 14px; left: 14px; right: 14px;
    background: #fff;
    border-radius: 22px;
    padding: 16px;
    box-shadow: 0 30px 60px -15px rgba(10,31,68,.4);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform .35s cubic-bezier(.2,.8,.3,1), opacity .25s;
  }
  .m-search-overlay.open .m-search-panel {
    transform: translateY(0);
    opacity: 1;
  }
  .m-search-input-wrap {
    display: flex; align-items: center; gap: 10px;
    background: var(--m-bg);
    border-radius: 14px;
    padding: 0 14px;
    height: 50px;
  }
  .m-search-input-wrap svg { color: var(--m-ink-3); flex-shrink: 0; }
  .m-search-input-wrap input {
    flex: 1; border: 0; background: transparent;
    font: inherit; color: var(--m-navy); font-size: 16px;
    outline: none;
  }
  .m-search-close {
    background: none; color: var(--m-ink-2);
    font-family: var(--ff-head); font-weight: 600; font-size: 13px;
  }
  .m-search-results { margin-top: 10px; max-height: 60vh; overflow-y: auto; }
  .m-search-results .group-title {
    padding: 14px 6px 8px;
    font-family: var(--ff-head); font-weight: 600; font-size: 11px;
    color: var(--m-ink-3); letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .m-search-results a {
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    border-radius: 12px;
    color: var(--m-navy);
    transition: background .15s ease;
  }
  .m-search-results a:active { background: var(--m-bg); }
  .m-search-results a .ic {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(0,168,150,.10); color: var(--m-accent);
    display: grid; place-items: center; flex-shrink: 0;
  }
  .m-search-results a .lb {
    display: block;
    font-family: var(--ff-head); font-weight: 600; font-size: 14px;
    line-height: 1.3;
    margin-bottom: 4px;
  }
  .m-search-results a .sub {
    display: block;
    font-size: 12px; color: var(--m-ink-3);
    line-height: 1.35;
  }
  .m-search-results .empty {
    padding: 24px; text-align: center; color: var(--m-ink-3); font-size: 13px;
  }

  /* ---------- Notifications overlay ---------- */
  .m-notif-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(10,31,68,.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
  }
  .m-notif-overlay.open { opacity: 1; pointer-events: auto; }
  .m-notif-panel {
    position: absolute;
    top: 14px; left: 14px; right: 14px;
    max-height: calc(100vh - 28px);
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 30px 60px -15px rgba(10,31,68,.4);
    transform: translateY(-20px);
    opacity: 0;
    transition: transform .35s cubic-bezier(.2,.8,.3,1), opacity .25s;
    display: flex; flex-direction: column;
    overflow: hidden;
  }
  .m-notif-overlay.open .m-notif-panel {
    transform: translateY(0);
    opacity: 1;
  }
  .m-notif-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 4px 4px 14px;
    border-bottom: 1px solid var(--m-line);
    margin-bottom: 6px;
  }
  .m-notif-head h3 {
    font-family: var(--ff-head); font-weight: 700; font-size: 17px;
    color: var(--m-navy); margin: 0;
  }
  .m-notif-actions { display: flex; gap: 4px; }
  .m-notif-action {
    background: none; padding: 6px 10px; border-radius: 8px;
    font-family: var(--ff-head); font-weight: 600; font-size: 12px;
    color: var(--m-accent);
  }
  .m-notif-action:active { background: rgba(0,168,150,.10); }
  .m-notif-list { overflow-y: auto; max-height: 65vh; padding: 4px; }
  .m-notif-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 8px;
    border-bottom: 1px solid var(--m-line);
    position: relative;
    transition: background .15s ease;
  }
  .m-notif-item:last-child { border-bottom: 0; }
  .m-notif-item.unread::before {
    content: ""; position: absolute;
    left: 0; top: 22px;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--m-accent);
  }
  .m-notif-item .ic {
    width: 38px; height: 38px; border-radius: 12px;
    display: grid; place-items: center; flex-shrink: 0;
  }
  .m-notif-item .ic.success { background: rgba(0,168,150,.12); color: var(--m-accent); }
  .m-notif-item .ic.info    { background: rgba(30,106,142,.12); color: #1E6A8E; }
  .m-notif-item .ic.warn    { background: rgba(244,180,0,.18); color: #8a6500; }
  .m-notif-item .body { flex: 1; min-width: 0; }
  .m-notif-item .title-row {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 10px; margin-bottom: 4px;
  }
  .m-notif-item .title-row strong {
    font-family: var(--ff-head); font-weight: 600; font-size: 14px;
    color: var(--m-navy);
  }
  .m-notif-item .time {
    font-size: 11px; color: var(--m-ink-3); flex-shrink: 0;
  }
  .m-notif-item .msg {
    font-size: 13px; color: var(--m-ink-2); line-height: 1.45;
  }
  .m-notif-item.unread .title-row strong { color: var(--m-navy); }
  .m-notif-empty {
    padding: 40px 20px; text-align: center;
    color: var(--m-ink-3); font-size: 13px;
  }
  .m-notif-empty svg { margin: 0 auto 12px; color: var(--m-line-2, #d4dce8); }
}

/* Hide mobile-only sections on desktop */
@media (min-width: 721px) {
  .m-only { display: none !important; }
  .m-header { display: none !important; }
}
