/* ============================================================
   INOVENTRICS — RESPONSIVE CSS
   ============================================================ */

/* ---- TABLET (< 1100px) ---- */
@media (max-width: 1100px) {
  :root {
    --section-pad: 100px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-sub { text-align: center; }
  .hero-right { justify-content: center; }
  .float-cards { width: 100%; max-width: 420px; height: 360px; }
  .node-cloud { justify-content: center; }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    background-size: 50% 100%;
  }
  .studio-system-grid { grid-template-columns: 1fr; }
  .system-card.large,
  .system-card.tall { grid-column: span 1; grid-row: span 1; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proj-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .proj-right { direction: ltr; }
  .proj-right .proj-visual { order: -1; }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .process-timeline::-webkit-scrollbar {
    display: none;
  }
  .process-steps {
    display: flex;
    width: max-content;
    gap: 30px;
    padding: 0 5vw 40px;
  }
  .pstep {
    width: 280px;
    flex-shrink: 0;
    scroll-snap-align: center;
  }
  .timeline-line {
    display: block;
    width: max-content;
    min-width: calc(280px * 6 + 30px * 5);
    left: calc(5vw + 140px);
  }

  .testi-grid,
  .testimonial-carousel-scene {
    --carousel-card-width: 200px;
    --carousel-card-height: 190px;
    height: 325px;
    perspective: 920px;
  }
  .tcard {
    padding: 16px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: span 2; }
}

/* --- HERO SPLIT LAYOUT OVERRIDES --- */
.hero {
  background: #050505 !important;
}

.hero-top {
  background-color: #03140d;
  background-image: url("../assets/images/hero-bg-img.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-inner {
  width: min(100%, 1560px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-showcase {
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 255, 136, 0.08), transparent 34%),
    linear-gradient(180deg, #050505 0%, #020302 100%);
}

.hero-showcase-inner {
  width: min(100%, 1560px);
  margin: 0 auto;
}

.hero-mockups {
  width: min(100%, 1360px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  align-items: stretch;
}

.hero-mockup-card {
  aspect-ratio: 16 / 9;
}

.hero-mockup-card-mobile {
  aspect-ratio: 4 / 3;
}

@media (max-width: 768px) {
  .hero-top {
    background-position: center top;
  }

  .hero-mockups {
    grid-template-columns: 1fr;
  }

  .hero-mockup-card,
  .hero-mockup-card-mobile {
    aspect-ratio: 16 / 10;
  }
}

/* ---- MOBILE (< 768px) ---- */
@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
  }

  .container { padding: 0 24px; }

  .navbar {
    bottom: 18px;
    width: fit-content;
    max-width: calc(100vw - 20px);
  }
  .nav-inner {
    width: fit-content;
    padding: 8px 10px;
    gap: 5px;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    white-space: nowrap;
  }
  .nav-inner::-webkit-scrollbar { display: none; }
  .nav-link {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
    flex: 0 0 auto;
  }
  .nav-home {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }
  .btn-cta.nav-cta {
    min-height: 40px;
    padding: 0 18px;
    font-size: 12px;
    flex: 0 0 auto;
  }

  .section-heading { font-size: clamp(28px, 8vw, 44px); }

  .hero-inner { padding: 0 24px; }
  .hero-heading { font-size: clamp(32px, 9vw, 52px); }
  .brand-billboard { font-size: clamp(52px, 18vw, 98px); }
  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .stat-num { font-size: 24px; }
  .float-cards { height: 320px; max-width: 320px; }
  .fcard { min-width: 180px; padding: 10px 14px; font-size: 12px; }
  .hero-ring { width: 240px; height: 240px; }

  .marquee-section {
    margin: 36px 0 54px;
    padding: 32px 0;
  }
  .marquee-label { display: none; }
  .marquee-track-wrap { margin-left: 0; padding-left: 0; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .proj-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .projects .section-header { padding: 0 24px; }
  .project-row { padding: 60px 0; }
  .featured-lab { padding: 0 24px; }
  .featured-lab-grid { grid-template-columns: 1fr; }
  .card-swap-stage { min-height: 420px; }
  .swap-card { height: 320px; }
  .magic-bento-grid { grid-template-columns: 1fr; padding: 0 24px; }
  .magic-bento-card.large,
  .magic-bento-card.wide { grid-column: span 1; grid-row: span 1; min-height: 240px; }
  .project-curved-marquee { height: 110px; margin-bottom: 24px; }
  .peel-sticker { display: none; }

  .why-grid { grid-template-columns: 1fr; }



  .tech-logo-loop { margin-top: 40px; }
  .tech-pills { justify-content: flex-start; animation-duration: 28s; }
  .tpill { min-width: 148px; padding: 12px 16px; }

  .testi-grid,
  .testimonial-carousel-scene {
    height: auto;
    margin: 36px -24px 0;
    padding: 0 24px 14px;
    perspective: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
    cursor: default;
  }
  .testi-grid::-webkit-scrollbar,
  .testimonial-carousel-scene::-webkit-scrollbar {
    display: none;
  }
  .testi-grid::before,
  .testi-grid::after,
  .testimonial-carousel-scene::before,
  .testimonial-carousel-scene::after {
    display: none;
  }
  .testimonial-carousel-spin {
    position: relative;
    inset: auto;
    display: flex;
    gap: 16px;
    width: max-content;
    transform: none !important;
    animation: none !important;
  }
  .tcard,
  .tcard:hover {
    position: relative;
    top: auto;
    left: auto;
    width: min(74vw, 245px);
    height: 225px;
    flex: 0 0 min(74vw, 245px);
    transform: none;
    scroll-snap-align: center;
  }
  .tcard:hover {
    transform: translateY(-4px);
  }

  .contact-form-wrap { padding: 28px 24px; }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .hero-btns { flex-direction: column; align-items: center; }
}

/* ---- SMALL MOBILE (< 480px) ---- */
@media (max-width: 480px) {
  .container { padding: 0 20px; }

  .hero-heading { font-size: clamp(28px, 10vw, 38px); }
  .navbar {
    bottom: 14px;
  }
  .nav-link:not(.nav-home) {
    padding: 0 10px;
  }
  .btn-cta.nav-cta {
    padding: 0 16px;
  }

  .float-cards {
    width: 280px;
    height: 280px;
  }
  .fcard-3, .fcard-4 { display: none; }
  .card-swap-stage { min-height: 360px; }
  .swap-card { height: 290px; padding: 16px; }
  .swap-preview { height: 138px; }
  .project-loop-wrap { mask-image: none; }

  .testi-grid,
  .testimonial-carousel-scene { margin-inline: -20px; padding-inline: 20px; }
  .tcard,
  .tcard:hover {
    width: min(80vw, 240px);
    flex-basis: min(80vw, 240px);
    height: 235px;
    padding: 17px;
  }

  .contact-inner { gap: 40px; }

  .footer-top { gap: 24px; }
}

/* ---- LARGE DESKTOP (> 1400px) ---- */
@media (min-width: 1400px) {
  :root {
    --container: 1380px;
  }
  .hero-heading { font-size: 88px; }
}

/* ---- HOVER: DESKTOP ONLY ---- */
@media (hover: hover) {
  .nav-link:hover { color: var(--white); }
  .scard:hover { background: var(--card2); }
  .why-card:hover { transform: translateY(-4px); }
  .tpill:hover { transform: translateY(-3px); }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .fcard { animation: none; }
  .orb-1, .orb-2, .orb-3 { animation: none; }
  .marquee-track { animation: none; }
  .tech-pills { animation: none; }
  .testimonial-carousel-spin {
    animation-duration: 160s !important;
  }
}



/* ---- PRINT ---- */
@media (max-width: 768px) {
  .nav-logo .brand-logo-img { height: 36px; }
  .loader-logo-img { height: 76px; }
  .floating-brand-logo {
    width: 82px;
    height: 82px;
    right: 4%;
    bottom: 4%;
  }
  .contact-brand-logo .brand-logo-img,
  .footer-logo .brand-logo-img {
    height: 42px;
  }
}

@media print {
  .loader, .noise-overlay { display: none; }
  body { background: white; color: black; }
}

/* ---- HERO REDESIGN RESPONSIVE OVERRIDES ---- */
@media (max-width: 1100px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 0;
    padding: 112px 24px 92px;
  }

  .brand-billboard {
    white-space: nowrap;
    font-size: clamp(4.2rem, 16vw, 11rem);
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    justify-content: stretch;
  }

  .stat-num {
    font-size: clamp(2rem, 7vw, 3.4rem);
  }

  .hero-right,
  .float-cards,
  .fcard,
  .hero-ring,
  .floating-brand-logo {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    padding: 104px 20px 78px;
  }

  .hero-kicker {
    max-width: 310px;
    font-size: 12px;
    line-height: 1.5;
  }

  .brand-billboard {
    white-space: nowrap;
    max-width: 100%;
    font-size: clamp(3rem, 17vw, 7.25rem);
    letter-spacing: -0.055em;
    line-height: 0.85;
  }

  .hero-btns {
    width: 100%;
    flex-direction: column;
    justify-content: center;
  }

  .hero-stats {
    flex-wrap: nowrap;
  }
}

@media (max-width: 480px) {
  .brand-billboard {
    font-size: clamp(2.58rem, 16vw, 4.7rem);
  }
}

/* ---- REFINED HERO / PROJECTS / CONTACT RESPONSIVENESS ---- */
@media (max-width: 1100px) {
  .hero-inner {
    display: flex;
    min-height: 100svh;
    padding: 108px 24px 142px;
    text-align: center;
  }
  .brand-billboard {
    font-size: clamp(4rem, 15vw, 9.5rem);
  }
  .fcard {
    min-width: 186px;
    padding: 12px 14px;
  }
  .fcard-1 { top: 14%; left: 3%; }
  .fcard-2 { top: 14%; right: 3%; }
  .fcard-3 { bottom: 15%; left: 4%; }
  .fcard-4 { bottom: 15%; right: 4%; }
}

@media (max-width: 768px) {
  .hero-inner {
    padding: 104px 20px 132px;
  }
  .hero-kicker {
    font-size: 13px;
    margin-bottom: 18px;
  }
  .brand-billboard {
    white-space: normal;
    max-width: 680px;
    font-size: clamp(3.25rem, 19vw, 7.5rem);
    line-height: 0.86;
  }
  .hero-sub {
    max-width: 520px;
    font-size: 15px;
  }
  .hero-btns {
    flex-direction: row;
    justify-content: center;
  }
  .fcard {
    min-width: 156px;
    max-width: 190px;
    padding: 10px 12px;
    opacity: 0.62;
  }
  .fcard-1 { top: 13%; left: -34px; }
  .fcard-2 { top: 15%; right: -44px; }
  .fcard-3 { bottom: 13%; left: -40px; }
  .fcard-4 { bottom: 13%; right: -44px; }
  .scroll-indicator { display: none; }

  .projects-editorial-header {
    padding: 0 20px;
  }
  .projects-heading {
    font-size: clamp(3.4rem, 17vw, 6rem);
  }
  .projects-subtitle {
    margin-top: 20px;
    font-size: 14px;
  }
  .project-curved-marquee {
    height: 96px;
    margin: 38px 0 58px;
  }
  .project-curved-marquee text {
    font-size: 14px;
  }
  .project-launch-badge {
    display: inline-flex;
    top: 96px;
    right: 20px;
    scale: 0.82;
  }

  .contact-illustration {
    width: clamp(150px, 44vw, 190px);
    margin: -34px auto 22px;
  }
}

@media (max-width: 480px) {
  .brand-billboard {
    font-size: clamp(3rem, 18vw, 5.5rem);
  }
  .hero-btns {
    flex-direction: column;
  }
  .fcard-3,
  .fcard-4 {
    display: none;
  }
  .project-launch-badge {
    display: none;
  }
}

/* ---- FINAL HERO REDESIGN CASCADE ---- */
@media (max-width: 1100px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 0;
    padding: 112px 24px 92px;
  }

  .brand-billboard {
    white-space: nowrap;
    max-width: 100%;
    font-size: clamp(3.4rem, 12.8vw, 9.2rem);
    line-height: 0.92;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    justify-content: stretch;
  }

  .hero-right,
  .float-cards,
  .fcard,
  .hero-ring,
  .floating-brand-logo {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    padding: 104px 20px 78px;
  }

  .hero-kicker {
    max-width: 310px;
    font-size: 12px;
    line-height: 1.5;
  }

  .brand-billboard {
    display: flex;
    font-size: clamp(2.65rem, 13vw, 5.7rem);
    letter-spacing: -0.045em;
    line-height: 0.92;
  }

  .brand-outline {
    margin-inline: 0.012em 0.018em;
  }

  .hero-brand-mark {
    top: -22px;
    right: 2px;
    height: clamp(42px, 11vw, 62px);
  }

  .hero-btns {
    width: 100%;
    flex-direction: column;
  }

  .stat {
    min-height: 106px;
    padding: 22px 12px;
  }

  .stat-num {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .stat-label {
    font-size: 10px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 480px) {
  .brand-billboard {
    font-size: clamp(2.25rem, 12.6vw, 4.1rem);
  }
}

/* ---- FINAL NAVBAR WIDTH OPTIMIZATION ---- */
.navbar {
  width: fit-content;
  max-width: calc(100vw - 28px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.nav-inner {
  width: fit-content;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  white-space: nowrap;
}

.nav-links {
  flex: 0 0 auto;
  gap: 6px;
}

.nav-link {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
}

.nav-home {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
}

.btn-cta.nav-cta {
  flex: 0 0 auto;
  min-height: 46px;
  margin-left: 2px;
  padding: 0 30px;
}

@media (max-width: 768px) {
  .navbar {
    max-width: calc(100vw - 20px);
  }

  .nav-inner {
    gap: 5px;
    padding: 8px 10px;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .nav-link {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
  }

  .nav-home {
    width: 42px;
    min-width: 42px;
    height: 42px;
  }

  .btn-cta.nav-cta {
    min-height: 40px;
    padding: 0 18px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .nav-inner {
    padding-inline: 8px;
    gap: 4px;
  }

  .nav-link:not(.nav-home) {
    padding: 0 9px;
  }

  .btn-cta.nav-cta {
    padding: 0 14px;
  }
}

/* ============================================================
   COMPLETE MOBILE RESPONSIVENESS OPTIMIZATION
   Final cascade: phones, small phones, tablets
   ============================================================ */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

.container,
.hero-inner,
.projects-editorial-header,
.project-row,
.services-intro,
.contact-inner,
.footer-top {
  min-width: 0;
}

@media (max-width: 1023px) {
  :root {
    --section-pad: clamp(76px, 10vw, 108px);
  }

  .section {
    padding: var(--section-pad) 0;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: clamp(20px, 4vw, 32px);
  }

  .section-header {
    margin-bottom: clamp(38px, 7vw, 62px);
  }

  .section-heading {
    font-size: clamp(2.5rem, 8vw, 4.8rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
  }

  .section-sub,
  .projects-subtitle,
  .contact-sub,
  .about-para,
  .system-card p,
  .system-list li,
  .why-card p,
  .proj-desc {
    font-size: clamp(0.95rem, 2.2vw, 1.08rem);
    line-height: 1.72;
  }

  .hero-inner {
    min-height: 100svh;
    padding: clamp(112px, 15vh, 148px) clamp(18px, 4vw, 32px) clamp(72px, 10vw, 110px);
  }

  .hero-title-lockup {
    width: min(100%, 920px);
  }

  .brand-billboard {
    max-width: 100%;
    font-size: clamp(3.1rem, 12vw, 8.4rem);
    letter-spacing: -0.04em;
    line-height: 0.96;
  }

  .hero-brand-mark {
    height: clamp(44px, 6vw, 76px);
    right: clamp(0px, 2vw, 24px);
    top: clamp(-20px, -1vw, -8px);
  }

  .hero-sub {
    width: min(100%, 720px);
  }

  .hero-stats {
    width: min(100%, 920px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-mockups {
    width: min(calc(100vw - 48px), 920px);
    grid-template-columns: 1fr 1fr;
  }

  .services-intro {
    padding: clamp(62px, 8vw, 84px) clamp(24px, 5vw, 40px) clamp(38px, 6vw, 54px);
    flex-direction: column;
    align-items: flex-start;
  }

  .services-intro-right,
  .intro-desc {
    max-width: 680px;
    margin-left: 0;
    text-align: left;
  }

  .services-scroll-container {
    display: block;
  }

  .services-left {
    display: none;
  }

  .services-right {
    padding-bottom: 0;
  }

  .s-content-block {
    min-height: auto;
    padding: clamp(54px, 8vw, 76px) clamp(24px, 5vw, 40px);
    opacity: 1;
    transform: none;
  }

  .projects {
    padding-top: var(--section-pad);
  }

  .projects-heading {
    font-size: clamp(3.4rem, 12vw, 7.5rem);
    line-height: 0.95;
    word-break: normal;
  }

  .project-curved-marquee,
  .project-launch-badge,
  .peel-sticker {
    display: none !important;
  }

  .project-marquee-wrap {
    margin-top: 26px;
  }

  .project-row {
    padding: clamp(52px, 8vw, 72px) 0;
  }

  .proj-inner {
    grid-template-columns: 1fr;
    gap: clamp(28px, 6vw, 44px);
  }

  .proj-right {
    direction: ltr;
  }

  .proj-right .proj-visual {
    order: -1;
  }

  .proj-desc {
    max-width: 100%;
  }

  .pm-screen {
    height: clamp(210px, 36vw, 300px);
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: clamp(36px, 7vw, 58px);
    padding: clamp(38px, 6vw, 56px) 0;
    background-size: 50% 100%;
  }

  .studio-system-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .system-card.large,
  .system-card.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .process-timeline {
    width: 100%;
    margin-left: 0;
    overflow: visible;
  }

  .timeline-line {
    display: none;
  }

  .process-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 18px;
    padding: 0;
  }

  .pstep {
    width: auto;
    padding: 22px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    scroll-snap-align: none;
  }

  .process-growth {
    width: min(80%, 760px);
    margin-top: clamp(50px, 7vw, 78px);
  }

  .tech-logo-loop {
    margin-top: clamp(28px, 6vw, 44px);
  }

  .testimonial-carousel-scene,
  .testi-grid {
    height: auto;
    margin: clamp(26px, 6vw, 42px) calc(50% - 50vw) 0;
    padding: 0 clamp(20px, 4vw, 32px) 16px;
    perspective: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .testi-grid::-webkit-scrollbar,
  .testimonial-carousel-scene::-webkit-scrollbar {
    display: none;
  }

  .testimonial-carousel-spin {
    position: relative;
    inset: auto;
    display: flex;
    gap: 16px;
    width: max-content;
    transform: none !important;
    animation: none !important;
  }

  .tcard,
  .tcard:hover {
    position: relative;
    top: auto;
    left: auto;
    width: min(72vw, 280px);
    height: auto;
    min-height: 225px;
    flex: 0 0 min(72vw, 280px);
    transform: none;
    scroll-snap-align: center;
  }

  .faq-card {
    width: min(100%, 980px);
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: clamp(42px, 8vw, 64px);
  }

  .contact-left {
    text-align: center;
  }

  .contact-brand-logo,
  .social-links {
    justify-content: center;
  }

  .contact-illustration {
    width: clamp(150px, 30vw, 230px);
    margin: -28px auto 24px;
  }

  .contact-details {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .contact-form-wrap {
    width: min(100%, 720px);
    margin-inline: auto;
    padding: clamp(28px, 5vw, 42px);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  :root {
    --section-pad: clamp(68px, 14vw, 92px);
  }

  h1,
  h2,
  h3,
  h4,
  p,
  a,
  span,
  li,
  label,
  input,
  textarea,
  select,
  button {
    max-width: 100%;
  }

  p,
  li,
  .proj-desc,
  .contact-detail-item,
  .footer-links-col a,
  .faq-answer p {
    overflow-wrap: anywhere;
  }

  body {
    font-size: clamp(0.95rem, 3vw, 1.05rem);
  }

  .loader-logo-text {
    font-size: clamp(1.35rem, 8vw, 2.2rem);
    letter-spacing: 0.18em;
  }

  .section {
    padding: var(--section-pad) 0;
  }

  .container {
    padding-inline: clamp(16px, 5vw, 22px);
  }

  .section-eyebrow {
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .section-heading {
    font-size: clamp(2.25rem, 10vw, 3.7rem);
    line-height: 1.04;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-video {
    filter: brightness(0.24) contrast(1.18) saturate(0.85);
  }

  .hero-inner {
    padding: 108px 16px 70px;
  }

  .hero-kicker {
    max-width: 340px;
    margin-bottom: 18px;
    font-size: clamp(0.72rem, 3.3vw, 0.82rem);
  }

  .hero-title-lockup {
    width: min(100%, 420px);
  }

  .brand-billboard {
    font-size: clamp(2.35rem, 13.2vw, 4.35rem);
    letter-spacing: -0.035em;
    line-height: 0.98;
  }

  .hero-brand-mark {
    height: clamp(38px, 11vw, 58px);
    top: -20px;
    right: 0;
  }

  .brand-outline {
    margin-inline: 0.02em;
    -webkit-text-stroke-width: 1px;
    text-stroke-width: 1px;
  }

  .hero-sub {
    max-width: 34rem;
    margin-top: 20px;
    font-size: clamp(0.98rem, 4vw, 1.12rem);
    line-height: 1.62;
  }

  .hero-btns {
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
  }

  .hero .btn-primary,
  .hero .btn-ghost {
    width: min(100%, 300px);
    min-height: 50px;
    justify-content: center;
  }

  .hero-stats {
    width: 100%;
    margin-top: 36px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 0;
  }

  .stat {
    min-height: 96px;
    padding: 20px 10px;
  }

  .stat-num {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .stat-label {
    font-size: 9.5px;
    line-height: 1.25;
  }

  .hero-mockups {
    left: auto;
    translate: none;
    width: 100%;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-mockup-card {
    border-radius: 8px;
  }

  .hero-trust-logos {
    gap: 8px;
  }

  .hero-trust-logos span {
    min-height: 30px;
    padding-inline: 10px;
    font-size: 10px;
  }

  .marquee-section {
    margin: 34px 0 48px;
    padding: 28px 0;
  }

  .marquee-label {
    display: none;
  }

  .marquee-track-wrap {
    margin-left: 0;
  }

  .services-intro {
    padding: 62px 18px 36px;
    gap: 22px;
  }

  .intro-heading,
  .s-content-block h2 {
    font-size: clamp(2.35rem, 10vw, 3.7rem);
    line-height: 1.02;
  }

  .s-content-block {
    padding: 48px 18px;
  }

  .s-tags {
    gap: 8px;
  }

  .s-tag {
    font-size: 10px;
    padding: 7px 11px;
  }

  .projects .section-header,
  .projects-editorial-header {
    padding-inline: 18px;
  }

  .projects-heading {
    font-size: clamp(3rem, 15vw, 5.4rem);
    letter-spacing: -0.04em;
  }

  .project-marquee-wrap {
    padding: 14px 0;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .pm-item {
    font-size: 12px;
    padding-inline: 14px;
  }

  .project-row {
    padding: 48px 0;
  }

  .project-card-number {
    right: 20px;
    font-size: clamp(4rem, 20vw, 8rem);
    opacity: 0.82;
  }

  .proj-inner {
    gap: 26px;
  }

  .proj-meta {
    align-items: flex-start;
    gap: 12px;
  }

  .proj-title {
    font-size: clamp(1.75rem, 8vw, 2.7rem);
  }

  .pm-browser,
  .proj-mockup {
    border-radius: 12px;
  }

  .pm-bar {
    padding: 8px 10px;
  }

  .pm-url {
    font-size: 9px;
    padding-inline: 8px;
  }

  .pm-screen {
    height: clamp(190px, 62vw, 250px);
  }

  .pm-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pm-shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pm-card-item,
  .pm-shop-item {
    height: 92px;
  }

  .about-inner {
    padding: 32px 0;
    background-image: none;
  }

  .about-card-big {
    min-height: 170px;
    padding: 26px;
    border-radius: 18px;
  }

  .acb-content p {
    font-size: clamp(1.2rem, 6vw, 1.65rem);
  }

  .studio-system-grid {
    border-left: 0;
  }

  .system-card {
    min-height: auto;
    padding: 26px 20px;
    border-left: 1px solid var(--grid-line);
  }

  .system-card h3 {
    font-size: clamp(2rem, 9vw, 3.4rem);
    line-height: 1.02;
  }

  .why-grid {
    gap: 16px;
  }

  .why-card {
    padding: 24px;
    border-radius: 14px;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .pstep {
    align-items: flex-start;
    text-align: left;
    gap: 12px;
  }

  .pstep-node {
    width: 34px;
    height: 34px;
  }

  .process-growth {
    width: 100%;
    margin-top: 44px;
  }

  .process-growth p {
    padding-inline: 8px;
    font-size: clamp(0.95rem, 3.7vw, 1.05rem);
  }

  .tech-logo-loop::before,
  .tech-logo-loop::after {
    width: 36px;
  }

  .tpill {
    min-width: 142px;
    padding: 12px 15px;
    font-size: 13px;
  }

  .tpill-logo {
    width: 24px;
    height: 24px;
  }

  .testimonials .section-header {
    margin-bottom: 24px;
  }

  .tcard,
  .tcard:hover {
    width: min(78vw, 270px);
    flex-basis: min(78vw, 270px);
    min-height: 230px;
    padding: 17px;
  }

  .faq-section {
    padding: 72px 0;
  }

  .faq-card {
    border-radius: 24px;
    padding: 26px 16px;
  }

  .faq-header h2 {
    font-size: clamp(2.15rem, 10vw, 3.35rem);
    line-height: 1.02;
  }

  .faq-header p {
    font-size: clamp(0.95rem, 3.7vw, 1.05rem);
  }

  .faq-question {
    min-height: 68px;
    gap: 14px;
  }

  .faq-question span:first-child {
    font-size: clamp(1rem, 4.4vw, 1.2rem);
  }

  .contact {
    overflow: hidden;
  }

  .laser-flow-canvas {
    opacity: 0.45;
  }

  .contact-left {
    text-align: center;
  }

  .contact-brand-logo {
    justify-content: center;
    width: 100%;
  }

  .contact-brand-logo .brand-logo-img {
    height: 44px;
  }

  .contact-illustration {
    width: clamp(138px, 44vw, 190px);
    margin: -24px auto 22px;
  }

  .contact-details {
    gap: 12px;
  }

  .contact-detail-item {
    justify-content: center;
    word-break: break-word;
  }

  .social-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .contact-form-wrap {
    padding: 24px 18px;
    border-radius: 18px;
    gap: 16px;
  }

  .form-input {
    min-height: 48px;
    font-size: 16px;
  }

  .btn-submit {
    min-height: 52px;
    padding: 14px 18px;
  }

  .footer {
    padding: 58px 0 30px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-links-col {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

}

@media (max-width: 480px) {
  :root {
    --section-pad: 64px;
  }

  .container {
    padding-inline: 16px;
  }

  .section-heading {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .mobile-header {
    width: calc(100vw - 20px);
    min-height: 56px;
  }

  .mobile-brand-pill {
    width: 76px;
    height: 40px;
  }

  .mobile-menu-toggle {
    width: 42px;
    height: 42px;
  }

  .mobile-menu-panel {
    border-radius: 28px;
    padding: 16px 18px 22px;
  }

  .mobile-menu-link {
    grid-template-columns: 36px 1fr;
    gap: 10px;
  }

  .mobile-menu-link strong {
    font-size: clamp(2rem, 12vw, 3.15rem);
  }

  .hero-inner {
    padding-inline: 14px;
  }

  .hero-title-lockup {
    width: min(100%, 360px);
  }

  .brand-billboard {
    font-size: clamp(2.05rem, 12.3vw, 3.45rem);
    letter-spacing: -0.025em;
  }

  .hero-brand-mark {
    height: clamp(34px, 10vw, 48px);
    top: -18px;
  }

  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    min-height: 88px;
    padding: 18px 8px;
  }

  .stat-num {
    font-size: clamp(1.65rem, 10vw, 2.45rem);
  }

  .hero-mockups {
    gap: 12px;
  }

  .intro-heading,
  .s-content-block h2,
  .projects-heading {
    font-size: clamp(2.15rem, 12vw, 3.35rem);
  }

  .s-content-block,
  .services-intro {
    padding-inline: 16px;
  }

  .project-row {
    padding: 42px 0;
  }

  .projects .section-header,
  .projects-editorial-header {
    padding-inline: 16px;
  }

  .pm-screen {
    height: clamp(170px, 58vw, 220px);
  }

  .system-card,
  .why-card,
  .about-card-big {
    padding: 22px 18px;
  }

  .process-steps {
    gap: 14px;
  }

  .process-growth {
    margin-top: 36px;
  }

  .tcard,
  .tcard:hover {
    width: min(82vw, 252px);
    flex-basis: min(82vw, 252px);
  }

  .faq-section .container {
    padding-inline: 12px;
  }

  .faq-card {
    padding: 22px 14px;
  }

  .faq-question {
    padding-inline: 14px;
  }

  .faq-answer {
    padding-inline: 14px;
  }

  .contact-form-wrap {
    padding: 22px 16px;
  }
}

@media (max-width: 360px) {
  .container {
    padding-inline: 14px;
  }

  .brand-billboard {
    font-size: clamp(1.82rem, 12vw, 2.75rem);
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .hero .btn-primary,
  .hero .btn-ghost {
    width: 100%;
  }

  .stat-label {
    font-size: 8.5px;
  }

  .mobile-menu-socials {
    justify-content: flex-start;
  }
}

@media (hover: none) and (pointer: coarse) {
  .proj-mockup:hover,
  .why-card:hover,
  .tpill:hover,
  .hero-mockup-card:hover,
  .tcard:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce), (max-width: 767px) {
  .hero-line-accent,
  .marquee-track,
  .tech-pills,
  .testimonial-carousel-spin {
    animation-duration: 80s;
  }
}

/* --- FINAL HERO SPLIT GUARD --- */
.hero {
  background: #050505 !important;
}

.hero-top {
  background-color: #03140d !important;
  background-image: url("../assets/images/hero-bg-img.png") !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}

.hero-showcase {
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 255, 136, 0.08), transparent 34%),
    linear-gradient(180deg, #050505 0%, #020302 100%) !important;
}

.hero-mockups {
  width: min(100%, 1360px) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr) !important;
  align-items: stretch !important;
}

.hero-mockup-card {
  aspect-ratio: 16 / 9 !important;
}

.hero-mockup-card-mobile {
  aspect-ratio: 4 / 3 !important;
}

@media (max-width: 768px) {
  .hero-top {
    background-position: center top !important;
  }

  .hero-mockups {
    grid-template-columns: 1fr !important;
  }

  .hero-mockup-card,
  .hero-mockup-card-mobile {
    aspect-ratio: 16 / 10 !important;
  }
}
