@media (max-width: 768px) {

  :root {
    /* Mobile spacing scale */
    --mobile-section-pad: 56px 20px;
    --mobile-section-gap: 64px;
    --mobile-card-pad: 20px;
    --mobile-container-pad: 0 20px;

    /* Mobile typography scale */
    --mobile-hero-title: clamp(36px, 10vw, 52px);
    --mobile-section-title: clamp(28px, 8vw, 40px);
    --mobile-subtitle: clamp(14px, 4vw, 18px);
    --mobile-body: 16px;
    --mobile-small: 13px;
    --mobile-micro: 11px;

    /* Touch targets */
    --mobile-touch-min: 44px;
    --mobile-btn-height: 52px;
    --mobile-input-height: 52px;

    /* Border radius — softer on mobile */
    --mobile-radius-sm: 8px;
    --mobile-radius-md: 12px;
    --mobile-radius-lg: 16px;
    --mobile-radius-xl: 20px;
  }

  /* ── MOBILE NAV ── */
  .nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 12px 20px;
    background: rgba(10, 6, 4, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .nav-header.scrolled {
    background-color: rgba(10, 6, 4, 0.98);
  }

  .nav-container {
    gap: 0;
  }

  /* Logo: icon + wordmark, compact */
  .nav-logo {
    gap: 6px;
    height: 28px;
  }

  .nav-logo-icon {
    width: 28px;
    height: 28px;
  }

  .nav-logo-img {
    height: 14px;
  }

  /* Hide desktop menu */
  .nav-menu {
    display: none !important;
  }

  /* Hamburger: always visible — override .has-bottom-rail hiding */
  .nav-hamburger,
  .has-bottom-rail .nav-hamburger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    z-index: 10001;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Hamburger lines — visible and properly sized */
  .hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--munk-cream);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* Hide bottom rail on mobile — use hamburger instead */
  .bottom-rail {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Mobile overlay menu */
  .nav-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 10000;
    background: rgba(10, 6, 4, 0.97);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 100px 32px 80px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-mobile-menu.is-open,
  .nav-mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-mobile-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .nav-mobile-link {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(24px, 7vw, 36px);
    font-weight: 600;
    color: var(--munk-cream);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-mobile-link:hover,
  .nav-mobile-link:active {
    color: var(--munk-amber);
  }

  .nav-mobile-menu.is-open .nav-mobile-link,
  .nav-mobile-menu.active .nav-mobile-link {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger delay for link entrance */
  .nav-mobile-link:nth-child(1) { transition-delay: 0.05s; }
  .nav-mobile-link:nth-child(2) { transition-delay: 0.10s; }
  .nav-mobile-link:nth-child(3) { transition-delay: 0.15s; }
  .nav-mobile-link:nth-child(4) { transition-delay: 0.20s; }
  .nav-mobile-link:nth-child(5) { transition-delay: 0.25s; }
  .nav-mobile-link:nth-child(6) { transition-delay: 0.30s; }
  .nav-mobile-link:nth-child(7) { transition-delay: 0.35s; }

  /* Hide section counter on mobile */
  .nav-counter {
    display: none;
  }

  /* Shrink CTA on larger mobile (481-768px) */
  .nav-cta,
  .nav-header .btn--primary {
    font-size: 12px;
    padding: 8px 16px;
    min-height: 36px;
  }

  /* ── MOBILE FOOTER ── */

  /* CHANGE 01 — Single column stacked layout with safe-area */
  .footer {
    padding: 48px 20px calc(32px + env(safe-area-inset-bottom));
  }

  .footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .footer-column {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  /* CHANGE 02 — Brand column: centered logo + tagline */
  .footer-column-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .footer-logo-icon {
    width: 28px;
    height: 28px;
  }

  .footer-logo-img {
    height: 16px;
  }

  .footer-tagline {
    font-size: 14px;
    text-align: center;
    color: var(--munk-bark);
  }

  /* CHANGE 03 — Nav links: 2-column grid, 44px targets */
  .footer-nav-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    -webkit-tap-highlight-color: transparent;
  }

  /* CHANGE 04 — Contact column: touch targets + centered socials */
  .footer-contact-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--munk-amber);
    margin-bottom: 16px;
  }

  .footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .footer-contact-link,
  .footer-contact-text {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
  }

  .footer-social-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 24px;
  }

  .footer-social-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    -webkit-tap-highlight-color: transparent;
  }

  /* CHANGE 05 — Footer bottom: stacked, bordered, legal links */
  .footer-bottom {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(82, 60, 31, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }

  .footer-copyright {
    font-size: 13px;
    color: var(--munk-bark);
  }

  .footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
  }

  .footer-legal a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .footer-credit {
    font-size: 11px;
    color: var(--munk-bark);
    opacity: 0.6;
  }

  /* CHANGE 06 — Back-to-top: fixed, 44px, safe-area aware */
  .footer-back-to-top {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom));
    right: 20px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: rgba(26, 20, 16, 0.8);
    border: 1px solid rgba(82, 60, 31, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
  }

  /* ── MOBILE LOADER ── */
  .loader,
  .page-loader {
    padding: 20px;
  }

  /* Hide any canvas inside loader (if 3D logo used) */
  .page-loader canvas {
    display: none !important;
  }

  /* ── MOBILE TYPOGRAPHY ── */
  h1, .text-8xl, .text-7xl {
    font-size: var(--mobile-hero-title);
    line-height: 1.05;
    letter-spacing: -0.02em;
  }

  h2, .text-6xl, .text-5xl {
    font-size: var(--mobile-section-title);
    line-height: 1.1;
  }

  h3, .text-4xl, .text-3xl {
    font-size: clamp(20px, 5vw, 28px);
    line-height: 1.15;
  }

  p, .body-text {
    font-size: var(--mobile-body);
    line-height: 1.65;
    max-width: 100%;
  }

  /* Smaller text elements */
  .small-text,
  figcaption,
  .meta,
  time {
    font-size: var(--mobile-small);
    line-height: 1.5;
  }

  .label, .overline, .tag {
    font-size: var(--mobile-micro);
    letter-spacing: 0.15em;
  }

  /* ── TEXT OVERFLOW PROTECTION ── */
  h1, h2, h3, h4, h5, h6,
  .hero-title,
  .hero__title,
  .cta-heading,
  .about-hero .hero-title,
  .services-hero__title,
  .creators-hero__title,
  .contact-title {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    max-width: 100%;
  }

  /* Prevent horizontal overflow anywhere */
  main,
  section,
  .footer,
  [class*="__inner"],
  [class*="-inner"] {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Prevent iOS zoom on inputs */
  input,
  textarea,
  select,
  button,
  [type="text"],
  [type="email"],
  [type="tel"],
  [type="url"],
  [type="search"],
  [type="password"],
  [type="number"] {
    font-size: 16px !important;
    -webkit-appearance: none;
    border-radius: var(--mobile-radius-sm);
  }

  /* ── MOBILE BUTTONS ── */
  .btn,
  .cta-btn,
  button[type="submit"],
  .btn--primary,
  .btn--secondary,
  .btn--ghost,
  [class*="btn"] {
    min-height: var(--mobile-btn-height);
    padding: 14px 28px;
    font-size: 15px;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--mobile-radius-md);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Side-by-side buttons stack vertically */
  .btn-group,
  .cta-group,
  .cta-buttons,
  .hero__cta-buttons,
  .about-cta .cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  /* ── MOBILE FORM INPUTS ── */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  textarea,
  select {
    min-height: var(--mobile-input-height);
    padding: 14px 16px;
    font-size: 16px !important;
    border-radius: var(--mobile-radius-sm);
    background: rgba(26, 20, 16, 0.8);
    border: 1px solid rgba(82, 60, 31, 0.3);
    color: var(--munk-cream);
    width: 100%;
  }

  select {
    min-height: var(--mobile-input-height);
    padding: 12px 16px;
  }

  textarea {
    min-height: 120px;
    resize: vertical;
  }

  label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  /* ── MOBILE BLOCKQUOTES ── */
  blockquote {
    font-size: clamp(16px, 4.5vw, 20px);
    line-height: 1.6;
    padding: 0 0 0 16px;
    margin: 0;
    border-left: 2px solid var(--munk-amber);
  }

  blockquote cite {
    display: block;
    margin-top: 12px;
    font-size: var(--mobile-small);
  }

  /* ── MOBILE GRID ── */
  .grid, [class*="grid--"] {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .grid--2-col {
    grid-template-columns: 1fr;
  }

  .grid--3-col {
    grid-template-columns: 1fr;
  }

  /* 2-col grid for stats/numbers on mobile */
  .grid--stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .split, [class*="split"] {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* ── Kill ScrollTrigger pin-spacers on mobile ── */
  .pin-spacer,
  [data-scroll-trigger-pin] {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    overflow: visible !important;
  }

  /* Ensure pinned elements become static on mobile */
  [style*="position: fixed"],
  .is-pinned {
    position: relative !important;
  }

  /* ── Convert horizontal scroll tracks to vertical ── */
  .origin-track,
  .sb-track,
  .cases__track,
  .testimonials-track {
    position: static !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
  }

  .origin-track > *,
  .sb-track > *,
  .cases__track > * {
    width: 100% !important;
    flex: none !important;
    position: relative !important;
  }

  /* Section spacing */
  section, [class*="section"] {
    padding: var(--mobile-section-pad);
    min-height: auto;
    box-sizing: border-box;
  }

  /* Reduce excessive gaps between sections */
  main > section + section {
    margin-top: 0;
  }

  .container, [class*="container"] {
    padding: var(--mobile-container-pad);
    max-width: 100%;
  }

  /* ── GLOBAL TOUCH TARGETS ── */
  .nav-logo {
    min-height: var(--mobile-touch-min);
    min-width: var(--mobile-touch-min);
    display: flex;
    align-items: center;
  }

  .contact-link,
  .social-link {
    min-height: var(--mobile-touch-min);
    display: inline-flex;
    align-items: center;
    padding: 10px 0;
  }

  .footer-back-to-top {
    min-width: var(--mobile-touch-min);
    min-height: var(--mobile-touch-min);
  }

  /* ── MOBILE UTILITIES ── */
  .desktop-only { display: none !important; }
  .mobile-only { display: block !important; }
  .hide-mobile { display: none !important; }

  /* Hide custom cursor on touch */
  .cursor-dot, .cursor-ring { display: none !important; }

  /* Hide film grain, glow, and noise overlays */
  .film-grain,
  .noise-overlay,
  .hero-grain,
  .creators-voices__grain,
  .founder-glow,
  [class*="paper-grain"]::before {
    display: none !important;
  }

  /* Disable Three.js canvases */
  canvas.webgl,
  .three-canvas,
  #hero-canvas,
  #hero-3d-canvas,
  #contact-canvas,
  .hero canvas,
  .contact-section canvas,
  main canvas {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    pointer-events: none !important;
  }

  /* Scroll indicator */
  .scroll-indicator {
    bottom: 20px;
  }

  .scroll-indicator__line {
    height: 40px;
  }

  /* Glass morphism — lighter blur on mobile for performance */
  [class*="glass"] {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  /* Safe area for notch devices */
  body {
    font-size: 16px;
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
  }

  /* ============================================
     GSAP VISIBILITY OVERRIDES — ALL PAGES
     Forces GSAP-animated container/child elements
     visible on mobile. Elements that get scroll
     animations (mob-fade-up, mob-stagger, etc.)
     are NOT listed here — they start hidden and
     are revealed by mobile-animations.js.
     See: docs/mobile/MOB-00-MOBILE-SCROLL-ANIMATIONS.md
     ============================================ */

  /* Homepage containers & child elements */
  .hero-content,
  .hero__cta-buttons,
  .hero__phase-4,
  .manifesto-left,
  .manifesto-right,
  .pillar-text,
  .values-card-title,
  .values-card-description,
  .sb-panel,
  .sb-panel__content,
  .sb-panel__media,
  .method-card,
  .method-card__text,
  .method-card__media,
  .metric-number,
  .metric-label,
  .counter,
  .team-phase,
  .team-spotlight-name,
  .team-spotlight-title,
  .team-spotlight-quote,
  .team-stats-grid,
  .contact-cta-form,

  /* Services page containers & child elements */
  .services-hero__content,
  .impact__number,
  .impact__label,
  .svc__title,
  .svc__description,
  .svc__features,
  .svc__media,
  .cases__content,
  .proof__quote,
  .services-faq details,
  .svc-cta__inner,

  /* About page containers & child elements */
  .about-hero .hero-phases,
  .founder-text,
  .founder-bio,
  .founder-bio p,
  .founder-name,
  .founder-role-tag,
  .founder-socials,
  .origin-panel,
  .origin-caption,
  .origin-heading,
  .origin-text,
  .origin-manifesto-text,
  .origin-today,
  .impact-number,
  .impact-label,
  .value-title,
  .value-text,
  .timeline-content,
  .timeline-year,
  .timeline-desc,
  .about-cta .cta-heading,
  .about-cta .cta-subtext,
  .about-cta .cta-buttons,

  /* Creators page containers & child elements */
  .creators-hero__content,
  .creators-manifesto__text,
  .creators-manifesto__sub,
  .creators-stats__number,
  .creators-stats__label,
  .creators-benefits__title,
  .creators-benefits__text,
  .creators-gallery__card,
  .creators-gallery__info,
  .creators-spotlight__name,
  .creators-voices__title,

  /* Blog page child elements */
  .featured-post__content,
  .blog-card__content,
  .newsletter__title,

  /* Contact page containers */
  .contact-section,
  .contact-info,
  .contact-item,
  .contact-form,
  .contact-faq details,

  /* Legal pages (no animations) */
  .legal-hero,
  .legal-hero h1,
  .legal-content,
  .error-section {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    filter: none !important;
  }

  /* ============================================
     MOBILE SCROLL ANIMATION — INITIAL STATES
     Elements start hidden, JS reveals them on scroll.
     If JS fails, the failsafe animation covers them.
     See: docs/mobile/MOB-00-MOBILE-SCROLL-ANIMATIONS.md
     ============================================ */

  /* fadeUp elements — start invisible, shifted down */
  .mob-fade-up {
    opacity: 0;
    transform: translateY(30px);
    will-change: opacity, transform;
  }

  /* stagger card elements — same as fadeUp but applied per card */
  .mob-stagger {
    opacity: 0;
    transform: translateY(24px);
    will-change: opacity, transform;
  }

  /* lineDraw elements — start collapsed */
  .mob-line-draw {
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
  }

  /* imageReveal elements — start clipped from edges */
  .mob-img-reveal {
    clip-path: inset(8% 0 8% 0);
    opacity: 0.3;
    will-change: clip-path, opacity;
  }

  /* heroEntrance — starts hidden, animated on page load */
  .mob-hero-enter {
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
  }

  /* Parallax backgrounds */
  .mob-parallax {
    will-change: transform;
  }

  /* JS FAILSAFE: if mobile-animations.js doesn't load,
     show everything after 3 seconds */
  @keyframes mob-failsafe-show {
    to {
      opacity: 1;
      transform: none;
      clip-path: inset(0);
    }
  }

  .mob-fade-up,
  .mob-stagger,
  .mob-line-draw,
  .mob-img-reveal,
  .mob-hero-enter {
    animation: mob-failsafe-show 0s 3s forwards;
  }

  /* ── Parallax-ready hero backgrounds ── */
  .hero__bg-image__img,
  .section-bg-image,
  .about-hero .hero-bg img {
    height: 120% !important;
    object-fit: cover;
  }

  /* ── Breakpoint: Small phones ── */
  @media (max-width: 480px) {
    :root {
      --mobile-section-pad: 40px 16px;
      --mobile-card-pad: 16px;
      --mobile-container-pad: 0 16px;
    }

    .nav-header {
      padding: 10px 16px;
    }

    .nav-logo-icon {
      width: 24px;
      height: 24px;
    }

    .nav-logo-img {
      height: 12px;
    }

    /* Hide CTA on phones — too crowded with hamburger */
    .nav-cta,
    .nav-header .btn--primary {
      display: none !important;
    }

    .footer {
      padding: 40px 16px 28px;
    }

    .footer-container {
      gap: 32px;
    }

    h1, .text-8xl, .text-7xl {
      font-size: clamp(28px, 8vw, 36px);
    }

    h2, .text-6xl, .text-5xl {
      font-size: clamp(22px, 6vw, 30px);
    }

    h3, .text-4xl, .text-3xl {
      font-size: clamp(16px, 4.5vw, 20px);
    }
  }

  @media (max-width: 375px) {
    :root {
      --mobile-section-pad: 32px 14px;
      --mobile-hero-title: clamp(28px, 8vw, 40px);
    }

    body {
      font-size: 15px;
    }

    .nav-header {
      padding: 8px 12px;
    }

    .nav-logo-img {
      display: none; /* Show only icon on very small screens */
    }

    section, [class*="section"] {
      padding: 32px 12px;
    }

    .btn,
    [class*="btn"] {
      padding: 12px 20px;
      font-size: 14px;
    }
  }

} /* end 768px */
