@charset "UTF-8";
/* Mobile CSS — flavrdesign.com */

/* -----------------------------------------------
   Touch Device Overrides
   Fires on all touch devices regardless of width.
   Kills parallax, 100vh, and scroll-snap.
----------------------------------------------- */
@media (hover: none) and (pointer: coarse) {

  body {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
  }

  /* Kill fixed attachment — scroll lets bg cover the full section */
  .parallax-container,
  .parallax-container2,
  .parallax-container3,
  .parallax-container4,
  .parallax-container5,
  .parallax-container6,
  .brands-section,
  .nk-pitch-section {
    background-attachment: scroll !important;
    background-size: cover !important;
    background-position: center !important;
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
    scroll-snap-align: none !important;
  }

  /* Hero keeps some height */
  .parallax-container.hero {
    min-height: 85vh !important;
  }

  /* Sections get padding instead of 100vh */
  .parallax-container2,
  .parallax-container3,
  .parallax-container4,
  .parallax-container5 {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  .parallax-container6 {
    padding: 60px 20px !important;
  }

  .buffer {
    min-height: auto !important;
    height: auto !important;
    scroll-snap-align: none !important;
  }
}


/* -----------------------------------------------
   Phone Layout (max-width: 768px)
----------------------------------------------- */
@media screen and (max-width: 768px) {

  /* Header */
  .site-header {
    padding: 0.4rem 1rem;
  }

  .header-name {
    font-size: 1.3rem;
  }

  .header-tagline {
    font-size: 0.6rem;
  }

  .header-cta {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Hero */
  .important-text {
    font-size: 12vw;
  }

  .subtext {
    font-size: 4.5vw;
  }

  /* Corner plus signs — tighter on mobile */
  .corner-plus {
    font-size: 14px !important;
  }

  .corner-plus.bottom-left,
  .corner-plus.bottom-right {
    bottom: 10px !important;
  }

  /* Buffer Sections */
  .buffer {
    padding: 50px 1.5rem;
  }

  .buffer-header {
    font-size: 13vw;
    text-align: center;
    display: block;
    width: 100%;
    line-height: 1.1;
  }

  .buffer-subtext {
    font-size: 4vw;
  }

  /* ---- Brands Section ---- */
  .brands-section {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 40px 1rem;
    overflow: visible !important;
  }

  .brands-panel {
    max-width: 95vw;
    max-height: none !important;
    padding: 1.5rem 1rem;
    width: 95vw;
  }

  .brands-headline {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
  }

  .brands-subline {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: auto !important;
    gap: 0.75rem;
  }

  .brand-logo {
    padding: 0.5rem;
  }

  .brand-logo img {
    width: 80% !important;
    max-width: none !important;
    max-height: 50px !important;
  }

  /* ---- NK Pitch Section ---- */
  .nk-pitch-section {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 30px 1rem;
    overflow: visible !important;
  }

  .nk-wrapper {
    max-width: 95vw;
    width: 95vw;
    padding: 1.5rem 1rem;
  }

  .nk-intro-content {
    flex-direction: column !important;
    text-align: center;
    gap: 0.75rem;
  }

  .nk-vert-divider {
    display: none !important;
  }

  .nk-headline {
    font-size: 1.5rem;
  }

  .nk-subhead {
    font-size: 0.9rem;
  }

  .nk-logo img {
    max-width: 140px;
  }

  .nk-grid,
  .nk-grid-row2 {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem;
  }

  .nk-box-title {
    font-size: 1rem;
  }

  .nk-quote {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  /* ---- Identity Section (parallax-container2) ---- */
  .image-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
    padding: 0 10px;
  }

  .image-grid img {
    width: 100%;
  }

  /* ---- Processo / End-to-End (parallax-container3) ---- */
  .white-box-wrapper {
    max-width: 95vw !important;
    padding: 20px;
  }

  .white-box-header {
    font-size: 1.5rem;
    text-align: left;
  }

  .white-box-subheadline {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .white-box-para {
    font-size: 0.95rem;
    padding: 0 !important;
    line-height: 1.6;
    text-align: left;
  }

  .white-box-para2 {
    max-width: 90vw;
    font-size: 0.95rem;
  }

  .skills {
    font-size: 13px;
  }

  .skills-used {
    font-size: 11px;
    margin-bottom: 1rem;
  }

  /* Exec grid — override inline styles */
  .exec-grid-layout {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .exec-grid-item {
    grid-column: span 1 !important;
  }

  /* ---- Handmade (parallax-container5) ---- */
  .image-grid-main-lrg {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }

  .image-block-main {
    width: 100%;
  }

  .image-headers {
    font-size: 0.8rem;
  }

  /* ---- Sono Io (parallax-container6) ---- */
  .sono-io-wrapper {
    max-width: 90vw !important;
    padding: 1.5rem !important;
  }

  .sono-io-headline {
    font-size: 1.5rem;
  }

  .sono-io-content p {
    font-size: 0.95rem;
  }

  .cta-button {
    font-size: 0.85rem;
    padding: 10px 20px;
  }

  .social-icon img {
    width: 28px;
    height: 28px;
  }

  /* Modals */
  .section-modal {
    align-items: flex-start;
    overflow-y: auto;
    padding: 15px;
  }

  .section-modal video,
  .section-modal img {
    max-width: 100%;
    max-height: 70vh;
  }

  .esecuzione-modal-content {
    padding: 30px 20px;
    margin: 20px;
  }

  .esecuzione-modal-content h3 {
    font-size: 1.5rem;
  }

  /* Scroll Track */
  .scroll-track {
    animation: scroll-left 50s linear infinite;
  }

  .tile-wrapper {
    width: 80vw;
  }

  .slider div img {
    max-width: 80vw;
  }
}

/* ---- Extra Small (480px) ---- */
@media screen and (max-width: 480px) {

  .buffer-header {
    font-size: 11vw;
  }

  .exec-grid-layout {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .nk-grid,
  .nk-grid-row2 {
    grid-template-columns: 1fr !important;
  }

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

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