@media (max-width: 768px) {

  /* ========================================
     LAYOUT: full-screen scroll-snap slides
     ======================================== */
  body {
    overflow: hidden !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: 100% !important;
  }

  /* ========================================
     HIDE NAV, HAMBURGER, PROGRESS
     ======================================== */
  .nav, .nav * { display: none !important; }
  .mobile-hamburger { display: none !important; }
  .mobile-next-hint { display: none !important; }
  .progress-bar { display: none !important; }

  /* ========================================
     MAIN: scroll-snap container
     ======================================== */
  #main {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    perspective: none !important;
  }

  /* ========================================
     PANELS: each one fills the viewport
     ======================================== */
  .panel {
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    filter: none !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: auto !important;
    overflow: hidden !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex !important;
  }

  .panel.exiting {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  /* Subtle divider between slides */
  .panel + .panel {
    border-top: 2px solid #2E75B6;
  }

  /* ========================================
     PANEL INNER: compact mobile padding
     ======================================== */
  .panel-inner {
    padding: 28px 20px !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    hyphens: none !important;
    width: 100% !important;
  }

  /* ========================================
     TITLE: own the screen
     ======================================== */
  .title-qr { display: none !important; }

  /* ========================================
     TYPOGRAPHY
     ======================================== */
  .hero-title { font-size: 22px !important; }
  h2 { font-size: 18px !important; }
  .lead { font-size: 14px !important; max-width: 100% !important; }
  .big-question { font-size: 18px !important; }
  .section-label { font-size: 9px !important; }
  .footnote { font-size: 11px !important; }

  /* About slide: stack words */
  .trajectory {
    font-size: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
  }
  .trajectory .arrow { display: none !important; }

  /* ========================================
     DATA SLIDE: prevent word breaks
     ======================================== */
  .kv-key {
    font-size: 11px !important;
    white-space: nowrap !important;
  }
  .kv-val {
    font-size: 13px !important;
    white-space: normal !important;
    word-break: normal !important;
  }
  .kv-row {
    grid-template-columns: 80px 1fr !important;
    gap: 8px !important;
  }

  /* ========================================
     GRIDS: mobile-friendly columns
     ======================================== */

  /* Variables: single column */
  .var-grid-clean { grid-template-columns: 1fr !important; gap: 16px !important; }
  .var-list-clean { font-size: 13px !important; }
  .var-group-header { font-size: 12px !important; }

  /* Gap stats */
  .stat-row { gap: 20px !important; }
  .stat-number { font-size: 40px !important; }
  .stat-suffix { font-size: 24px !important; }

  /* Outcome */
  .outcome-rationale { gap: 10px !important; }
  .outcome-point { font-size: 13px !important; }
  .outcome-stat { font-size: 14px !important; }

  /* Bivariate: stack each item */
  .bivar-grid { gap: 6px !important; }
  .bivar-item {
    grid-template-columns: 1fr auto !important;
    gap: 2px 8px !important;
    padding: 8px 12px !important;
    align-items: center !important;
  }
  .bivar-name { font-size: 13px !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  .bivar-result { font-size: 11px !important; grid-column: 2 !important; grid-row: 1 !important; }
  .bivar-badge { font-size: 9px !important; grid-column: 1 / -1 !important; justify-self: start !important; }

  /* Control choice */
  .control-comparison { gap: 10px !important; }
  .control-test { grid-template-columns: 1fr !important; gap: 4px !important; padding: 10px 14px !important; }
  .control-test-label { font-size: 10px !important; }
  .control-candidate { font-size: 13px !important; }

  /* Age comparison */
  .compare-row { flex-direction: column !important; gap: 12px !important; }
  .compare-number { font-size: 40px !important; }
  .compare-unit { font-size: 12px !important; }
  .compare-vs { font-size: 12px !important; }
  .age-problem-detail { gap: 6px !important; }
  .age-point { font-size: 13px !important; }

  /* Approach */
  .approach-steps { gap: 12px !important; }
  .approach-step { padding: 12px 14px !important; }
  .approach-label { font-size: 10px !important; }
  .approach-detail { font-size: 13px !important; }

  /* Screening: 4 columns for tighter fit */
  .screen-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 4px !important; }
  .screen-card { padding: 6px 8px !important; border-radius: 4px !important; }
  .screen-name { font-size: 9px !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
  .screen-p { font-size: 8px !important; }
  .screen-or { font-size: 8px !important; }

  /* Breadth / stages */
  .stage-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; }
  .stage-name { font-size: 12px !important; }
  .stage-or { font-size: 11px !important; }
  .stage-p { font-size: 10px !important; }

  /* Forward selection */
  .fwd-answer { font-size: 18px !important; }
  .fwd-nearest { padding: 10px 14px !important; }
  .fwd-observation { padding: 10px 14px !important; }
  .fwd-detail { grid-template-columns: 1fr !important; gap: 12px !important; }
  .fwd-nearest-label, .fwd-obs-label { font-size: 10px !important; }
  .fwd-nearest-var { font-size: 14px !important; }
  .fwd-nearest-stat { font-size: 12px !important; }
  .fwd-obs-text { font-size: 13px !important; }

  /* Framework: 2x2 grid */
  .framework-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .framework-domain { padding: 12px !important; }

  /* Domain results */
  .domain-stack { gap: 8px !important; }
  .domain-row { grid-template-columns: 1fr !important; gap: 2px !important; padding: 10px 14px !important; }
  .domain-name { font-size: 14px !important; }
  .domain-vars { font-size: 11px !important; }
  .domain-result { font-size: 12px !important; }
  .domain-badge { font-size: 9px !important; }

  /* Nulls */
  .null-grid.triple { grid-template-columns: 1fr !important; gap: 10px !important; }
  .null-title { font-size: 14px !important; }
  .null-note { font-size: 12px !important; }

  /* Interpretation */
  .obs-list { gap: 16px !important; }
  .obs { gap: 10px !important; }
  .obs-num { font-size: 16px !important; width: 32px !important; height: 32px !important; min-width: 32px !important; }
  .obs-text { font-size: 13px !important; }
  .obs-note { font-size: 12px !important; }

  /* Limitations */
  .limit-list { gap: 8px !important; }
  .limit-list li { font-size: 13px !important; padding: 10px 14px !important; }

  /* Forward / thank you */
  .forward-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .forward-label { font-size: 10px !important; }
  .forward-text { font-size: 15px !important; }
  .forward-note { font-size: 12px !important; }
  .thanks-footer { flex-direction: column !important; gap: 12px !important; }
  .thanks-inline { font-size: 24px !important; }
  .contact-inline { flex-direction: column !important; gap: 6px !important; font-size: 12px !important; }

  /* Insight text */
  .insight { font-size: 13px !important; max-width: 100% !important; }

  /* ========================================
     ANIMATION OVERRIDES: show everything
     ======================================== */
  .hero-title .line,
  .kv-row,
  .bivar-item,
  .screen-card,
  .stage-test,
  .domain-row,
  .forest-row,
  .deploy-stage,
  .robust-row,
  .limit-list li,
  .compare-number,
  .compare-block,
  .insight,
  .big-question .word,
  .obs,
  .null-card,
  .forward-q {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .compare-block::before {
    width: 100% !important;
  }

  /* Particle canvas: constrain to title slide */
  #particleCanvas {
    max-height: 100vh !important;
    max-height: 100dvh !important;
  }

}
