:root {
  --vm-intro-duration: 0.62s;
}

@media (max-width: 768px) {
  * {
    -webkit-font-smoothing: antialiased;
  }

  .vm-logo-intro {
    background: #ffffff;
  }

  .vm-logo-intro__mark {
    width: min(268px, 74vw);
    animation-duration: var(--vm-intro-duration) !important;
  }

  .vm-logo-intro__ring {
    animation-duration: 0.8s !important;
    opacity: 0.92;
  }

  .vm-logo-intro__logo {
    width: min(190px, 50vw);
    max-height: 110px;
    animation-duration: var(--vm-intro-duration) !important;
  }

  .float-actions a,
  .float-actions button {
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.1) !important;
  }

  .hero-slide,
  .project-card,
  .service-card,
  .about-card,
  .gallery-item,
  .testimonial,
  .card,
  .cta-btn,
  .btn {
    transition-duration: 0.18s !important;
    will-change: auto;
  }

  .hero-slide::before,
  .hero-slide::after {
    display: none !important;
  }
}


/* Responsive and performance QA stabilization */
@media (max-width: 820px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  img,
  video,
  iframe,
  embed,
  object {
    max-width: 100%;
  }

  header,
  body.home-page header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .container {
    width: min(100% - 24px, 720px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .header-container,
  header .container {
    min-height: 70px;
    align-items: center !important;
  }

  nav ul,
  #menu,
  .mobile-nav {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  .hero-content,
  .page-header .container,
  .hero-banner .container {
    max-width: 100% !important;
    overflow: visible !important;
  }

  .hero h1,
  .hero h2,
  .page-header h1,
  .hero-banner h1 {
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none !important;
  }

  .project-card,
  .project-preview-card,
  .service-card,
  .gallery-item,
  .testimonial,
  .contact-info,
  .contact-card,
  .footer-content > * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .project-card img,
  .project-preview-card img,
  .service-card img,
  .gallery-item img,
  .project-image img {
    width: 100% !important;
    max-width: 100% !important;
    object-fit: cover;
  }

  .footer-content {
    align-items: start !important;
  }

  .footer-contact a[href^="mailto:"],
  .contact-content-section a[href^="mailto:"],
  .contact-content a[href^="mailto:"] {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .float-actions,
  .floating-actions,
  .floating-contact,
  .floating-buttons {
    right: 14px !important;
    bottom: 14px !important;
    z-index: 999 !important;
  }

  .vm-logo-intro {
    transition: opacity 0.28s ease, visibility 0.28s ease !important;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 20px, 410px) !important;
  }

  .hero-content {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .btn,
  .cta-btn,
  button,
  a[class*="btn"] {
    max-width: 100%;
    white-space: normal;
  }

  .section-title h2,
  .page-header h1,
  .hero h1,
  .hero h2 {
    max-width: 100%;
  }
}

@media (max-width: 820px), (prefers-reduced-motion: reduce) {
  .hero-slide,
  .project-card,
  .project-preview-card,
  .service-card,
  .gallery-item,
  .testimonial,
  .btn,
  .cta-btn {
    transition-duration: 0.16s !important;
  }

  [data-aos] {
    transition-duration: 0.24s !important;
  }
}


/* Latest screenshot-driven mobile responsive repairs */
@media (max-width: 820px) {
  header,
  header * {
    box-sizing: border-box;
  }

  header > div {
    width: 100% !important;
  }

  header img[src*="logo-display"] {
    width: auto !important;
    height: 52px !important;
    max-height: 52px !important;
    object-fit: contain !important;
  }

  #mobileMenuBtn,
  .mobile-menu-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    margin-left: auto !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #menu.open {
    top: 70px !important;
    max-height: calc(100vh - 70px) !important;
  }

  body.home-page #menu.open {
    top: 104px !important;
    max-height: calc(100vh - 104px) !important;
  }

  .hero-banner,
  .page-header {
    min-height: 360px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 104px 16px 58px !important;
    background-attachment: scroll !important;
    background-position: center center !important;
    overflow: hidden !important;
  }

  .hero-banner > div,
  .page-header .container,
  .page-header > div {
    width: min(100%, 680px) !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .hero-banner h1,
  .page-header h1 {
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.14 !important;
    margin: 0 0 14px !important;
  }

  .hero-banner p,
  .page-header p {
    font-size: clamp(14px, 4vw, 16px) !important;
    line-height: 1.55 !important;
    margin: 0 auto 22px !important;
    max-width: 94% !important;
  }

  .hero-banner div[style*="display: flex"],
  .page-header div[style*="display: flex"] {
    gap: 12px !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .hero-banner a,
  .page-header a {
    width: auto !important;
    min-width: 148px !important;
    max-width: min(100%, 240px) !important;
    padding: 12px 20px !important;
    text-align: center !important;
    line-height: 1.25 !important;
  }

  .faq-section,
  .home-faq-section {
    padding: 72px 14px 58px !important;
    scroll-margin-top: 110px !important;
  }

  .faq-section .section-title,
  .home-faq-section > div > div:first-child {
    margin-bottom: 28px !important;
    padding-top: 0 !important;
  }

  .faq-section .section-title h2,
  .home-faq-section h2 {
    font-size: clamp(26px, 7vw, 31px) !important;
    line-height: 1.18 !important;
    margin: 0 0 10px !important;
    padding-top: 0 !important;
  }

  .faq-section .section-title p,
  .home-faq-section > div > div:first-child p {
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin: 0 auto !important;
    max-width: 92% !important;
  }

  .faq-container,
  .home-faq-section > div,
  .home-faq-section > div > div:nth-child(2) {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .faq-item,
  .home-faq-section div[style*="border-left:4px"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .home-faq-section div[style*="border-left:4px"] {
    padding: 17px 16px !important;
    border-radius: 10px !important;
  }

  .faq-question {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 16px 4px !important;
  }

  .faq-question h3,
  .home-faq-section h3 {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-wrap: break-word !important;
  }

  .home-faq-section h3 i {
    margin-right: 8px !important;
    font-size: 13px !important;
    vertical-align: 0.04em !important;
  }

  .faq-toggle {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    line-height: 1 !important;
  }

  .faq-answer {
    padding: 0 4px 16px !important;
  }

  .faq-answer p,
  .home-faq-section p {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }
}

@media (max-width: 768px) {
  body.home-page .hero {
    height: auto !important;
    min-height: 680px !important;
    background: #0a1a2f !important;
    overflow: hidden !important;
  }

  body.home-page .hero-slider,
  body.home-page .hero-slide {
    min-height: 680px !important;
    height: 100% !important;
  }

  body.home-page .hero-slide {
    background-color: #0a1a2f !important;
    background-size: cover !important;
    background-position: center center !important;
  }

  body.home-page .hero-slide::before {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg, rgba(3, 10, 20, 0.76), rgba(10, 26, 47, 0.62), rgba(3, 10, 20, 0.78)) !important;
    z-index: 1 !important;
  }

  body.home-page .hero-content {
    min-height: 680px !important;
    height: auto !important;
    justify-content: center !important;
    padding: 116px 16px 124px !important;
    overflow: visible !important;
  }

  body.home-page .hero h1,
  body.home-page .hero h2 {
    color: #fff !important;
    font-size: clamp(27px, 8vw, 34px) !important;
    line-height: 1.14 !important;
    margin-bottom: 12px !important;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55) !important;
  }

  body.home-page .hero p {
    color: rgba(255,255,255,0.94) !important;
    font-size: 13.5px !important;
    line-height: 1.48 !important;
    margin: 0 auto 8px !important;
    max-width: 94% !important;
    overflow: visible !important;
    display: block !important;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55) !important;
  }

  body.home-page .hero-buttons {
    gap: 10px !important;
    margin-top: 12px !important;
    margin-bottom: 28px !important;
    max-width: 100% !important;
  }

  body.home-page .hero-buttons .btn {
    width: min(100%, 245px) !important;
    min-height: 42px !important;
    padding: 11px 18px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.home-page .hero-dots {
    bottom: 26px !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.home-page .hero-dot {
    width: 10px !important;
    height: 10px !important;
  }

  body.home-page .hero-nav {
    display: none !important;
  }

  .founder-section {
    padding: 58px 14px !important;
  }

  .founder-section .container > div:first-child {
    margin-bottom: 34px !important;
  }

  .founder-section h2 {
    font-size: clamp(28px, 8vw, 34px) !important;
    line-height: 1.18 !important;
    margin-bottom: 12px !important;
  }

  .founder-section .container > div:first-child p {
    font-size: 14px !important;
    line-height: 1.55 !important;
    max-width: 94% !important;
  }

  .leadership-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    max-width: 360px !important;
    margin: 0 auto !important;
    align-items: stretch !important;
  }

  .leadership-card-wrapper,
  .founder-message {
    width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
  }

  .leadership-card {
    min-height: 0 !important;
    height: auto !important;
    border-radius: 16px !important;
  }

  .leadership-card img {
    height: 320px !important;
    min-height: 0 !important;
    object-fit: cover !important;
    object-position: top center !important;
  }

  .leadership-badge {
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    padding: 10px 13px !important;
    min-height: 0 !important;
    border-radius: 999px !important;
  }

  .leadership-name {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  .leadership-position {
    font-size: 11px !important;
    line-height: 1.25 !important;
    margin-top: 3px !important;
  }

  .leadership-message-card {
    min-height: 0 !important;
    padding: 28px 20px 22px !important;
    border-radius: 18px !important;
    justify-content: flex-start !important;
  }

  .leadership-message-card > div[style*="position:absolute"] {
    width: 46px !important;
    height: 46px !important;
    left: 22px !important;
    top: -12px !important;
  }

  .leadership-message-card h3 {
    font-size: 22px !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
  }

  .leadership-message-card p {
    font-size: 13.5px !important;
    line-height: 1.62 !important;
    margin-bottom: 12px !important;
  }

  .float-actions,
  .floating-actions,
  .floating-contact,
  .floating-buttons {
    right: 12px !important;
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    gap: 9px !important;
    z-index: 980 !important;
  }

  .float-actions a,
  .float-actions button,
  .floating-actions a,
  .floating-actions button,
  .floating-contact a,
  .floating-buttons a {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    font-size: 17px !important;
    border-width: 2px !important;
    box-shadow: 0 6px 16px rgba(2, 6, 23, 0.16) !important;
  }
}

@media (max-width: 430px) {
  header img[src*="logo-display"] {
    height: 48px !important;
    max-height: 48px !important;
  }

  body.home-page .hero,
  body.home-page .hero-slider,
  body.home-page .hero-slide,
  body.home-page .hero-content {
    min-height: 700px !important;
  }

  body.home-page .hero-content {
    padding-top: 108px !important;
    padding-bottom: 116px !important;
  }

  body.home-page .hero h1,
  body.home-page .hero h2 {
    font-size: clamp(25px, 7.6vw, 30px) !important;
  }

  body.home-page .hero p {
    font-size: 13px !important;
    line-height: 1.43 !important;
    max-width: 96% !important;
  }

  .hero-banner,
  .page-header {
    min-height: 340px !important;
    padding: 94px 14px 48px !important;
  }

  .hero-banner h1,
  .page-header h1 {
    font-size: clamp(26px, 7.4vw, 30px) !important;
  }

  .hero-banner p,
  .page-header p {
    font-size: 14px !important;
  }

  .leadership-layout {
    max-width: 330px !important;
    gap: 22px !important;
  }

  .leadership-card img {
    height: 292px !important;
  }
}


/* High-specificity hero banner mobile cascade guards */
@media (max-width: 820px) {
  section.hero-banner,
  section.page-header {
    min-height: 360px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 104px 16px 58px !important;
    background-attachment: scroll !important;
    background-position: center center !important;
  }

  section.hero-banner > div h1,
  section.page-header > div h1,
  section.page-header .container h1 {
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.14 !important;
    margin: 0 0 14px !important;
  }

  section.hero-banner > div p,
  section.page-header > div p,
  section.page-header .container p {
    font-size: clamp(14px, 4vw, 16px) !important;
    line-height: 1.55 !important;
    margin: 0 auto 22px !important;
    max-width: 94% !important;
  }

  section.hero-banner div[style*="display: flex"] > a,
  section.page-header div[style*="display: flex"] > a {
    width: auto !important;
    min-width: 148px !important;
    max-width: min(100%, 240px) !important;
    padding: 12px 20px !important;
    line-height: 1.25 !important;
    text-align: center !important;
  }
}

@media (max-width: 430px) {
  section.hero-banner,
  section.page-header {
    min-height: 340px !important;
    padding: 94px 14px 48px !important;
  }

  section.hero-banner > div h1,
  section.page-header > div h1,
  section.page-header .container h1 {
    font-size: clamp(26px, 7.4vw, 30px) !important;
  }

  section.hero-banner > div p,
  section.page-header > div p,
  section.page-header .container p {
    font-size: 14px !important;
  }
}
