/* =====================================================================
   VEO PANEL — responsive.css (v2)
   Desktop: 4-col alternating grid · Tablet: 2-col · Mobile: 1-col
   ===================================================================== */

@media (max-width: 1099px){
  :root{ --header-h: 74px; }
  .nav-desktop__links{ display: none; }
  .menu-toggle{ display: flex; }
  .portfolio-grid{ grid-template-columns: repeat(2, 1fr); }
  .project-gallery__grid{ grid-template-columns: repeat(2, 1fr); }

  /* Homepage hero has no ancestor .shell, so it needs its own edge
     padding below the width where max-width:880px stops providing it. */
  .hero{ padding-left: var(--edge); padding-right: var(--edge); }

  /* Touch-friendly hit areas (visual size unchanged via border-box
     padding math / negative-margin technique — nothing is redesigned). */
  .menu-toggle{ width: 44px; height: 44px; padding: 15px 9px; justify-content: center; }
  .lang-trigger{ min-height: 44px; }
  .lang-option{ min-height: 44px; }
  .brand{ display: inline-flex; padding: 9px 0; margin: -9px 0; }
  .back-link{ display: inline-flex; padding: 10px 0; margin: -10px 0; }
  .vplayer-btn{ padding: 14px; margin: -14px; }
  .vplayer--small .vplayer-btn{ padding: 11px; margin: -11px; }
  .site-footer__nav a{ display: inline-block; padding: 9px 0; margin: -9px 0; }
}

@media (max-width: 699px){
  :root{ --header-h: 66px; --edge: 18px; }
  .brand__name{ font-size: 13px; letter-spacing: .14em; }
  .brand__tagline{ font-size: 8.5px; margin-top: 4px; }

  .hero{ padding-top: calc(var(--header-h) + 60px); padding-bottom: 44px; }
  .hero h1{ font-size: 26px; }
  .hero p{ font-size: 14px; }

  .portfolio-grid{ grid-template-columns: 1fr; }
  .card-title{ font-size: 16px; }

  .project-gallery__grid{ grid-template-columns: 1fr; }

  .site-footer__top{ flex-direction: column; gap: 22px; }
  .site-footer__bottom{ flex-direction: column; align-items: flex-start; gap: 8px; }

  .mobile-menu__links a{ font-size: 24px; display: inline-block; padding: 6px 0; margin: -6px 0; }
  .contact-card{ padding: 18px 18px; min-height: 44px; }
  .btn{ padding: 15px 22px; }

  .vplayer-controls{ opacity: 1; padding: 10px 12px; gap: 10px; }
  .vplayer-timeline{ height: 28px; }
}

@media (max-width: 380px){
  .lang-trigger .lang-code{ display: none; }
}

@media (hover: none){
  .vplayer-controls{ opacity: 1; }
  .card-overlay, .card-title, .card-focusline{ transition-duration: var(--dur-fast); }
}

/* ---------------------------------------------------------------------
   Featured website demos — the marquee keeps running on every size,
   only the card size, gutters and cycle length change.
   ------------------------------------------------------------------- */
@media (max-width: 1099px){
  .website-demos{ --wdemo-card: clamp(268px, 52vw, 420px); --wdemo-gap: 20px; --wdemo-dur: 44s; padding-bottom: 52px; }
  .wdemo-track{ padding: 28px 0; }
}

@media (max-width: 699px){
  .website-demos{ --wdemo-card: min(78vw, 340px); --wdemo-gap: 14px; --wdemo-dur: 34s; padding-bottom: 40px; }
  .wdemo-head{ margin-bottom: 22px; }
  .wdemo-head h2{ letter-spacing: .2em; }
  .wdemo-track{ padding: 22px 0; }
  .wdemo-card__frame{ padding: 7px; border-radius: 16px; }
  .wdemo-card__shot{ border-radius: 10px; }
  .wdemo-viewport{
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  }
}
