/* ================================================================
   mobile.css — Global mobile overrides for dohki.ca
   Loaded LAST on every page — wins by source order.
   Philosophy: strip what doesn't translate, keep content readable,
   zero horizontal overflow, consistent spacing.
   ================================================================ */

@media (max-width: 768px) {

  /* ── GLOBAL OVERFLOW PREVENTION ────────────────────────────── */
  body { overflow-x: hidden; }

  img,
  video {
    max-width: 100%;
    height: auto;
  }

  /* All iframes: full width, 16:9 aspect ratio */
  iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
  }

  /* ── HERO BACKGROUND IMAGES ────────────────────────────────── */
  /* Case study heroes (NS, UCL, GGVegas, PRISM) — keep the bg img,
     just shrink it for mobile so it stays bottom-right atmospheric */
  .cs-hero__bg-img {
    width: clamp(260px, 80vw, 420px);
    opacity: 0.5;
  }

  /* Home page hero — uses ::before pseudo, strip it on mobile */
  .hero::before { display: none !important; }

  /* Campaign page hero background */
  .bb-hero__bg { display: none !important; }

  /* ── NAV ────────────────────────────────────────────────────── */
  .section-nav { display: none; }

  /* ── HOME PAGE ──────────────────────────────────────────────── */
  .hero {
    padding: 80px 20px 48px;
    min-height: auto;
  }

  .hero__sub {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .hero__scroll-caret { display: none; }

  /* "See the work" scroll cue — pull out of absolute positioning,
     sit as a centered block in normal flow below hero content */
  .hero__scroll {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 32px;
    padding-bottom: 8px;
  }

  .cards-section { padding: 60px 20px; }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ── CASE STUDY — HERO ──────────────────────────────────────── */
  .cs-hero {
    padding: 90px 0 200px;
    min-height: 60vh;
  }

  /* ── CASE STUDY — 2-COL SECTION ────────────────────────────── */
  .cs-section-2col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* ── CASE STUDY — SECTIONS ──────────────────────────────────── */
  .cs-section { padding-block: 60px; }

  /* ── CASE STUDY — STATS ROW ─────────────────────────────────── */
  .cs-section-stats-row { margin-top: 32px; }
  .cs-stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── CASE STUDY — PHASES ────────────────────────────────────── */
  .cs-phases { grid-template-columns: 1fr; }

  /* ── GGPOKER PAGE ───────────────────────────────────────────── */
  .showcase { grid-template-columns: 1fr; }

  .ceiling__stat-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .mm-block__inner { grid-template-columns: 1fr; }

  /* Campaign section grid on GGPoker page */
  .campaigns-grid { grid-template-columns: 1fr; }

  /* ── MOTIONMIND PAGE ────────────────────────────────────────── */
  .mm-proof-row {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .mm-proof-video {
    width: min(260px, 55vw);
  }

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

  /* MotionMind region cards: already scroll horizontally, keep */
  .mm-region-scroll {
    -webkit-overflow-scrolling: touch;
  }

  /* ── PORTFOLIO PAGE ─────────────────────────────────────────── */
  /* Already handled in portfolio.css (1-col at 600px) */
  /* Marquee header: add padding so label isn't flush to screen edge */
  .pf-reel__header { padding-left: 20px; padding-right: 20px; }

  /* Ensure marquee track doesn't overflow */
  .pf-reel { overflow: hidden; }

  /* ── PRISM CASE STUDY ───────────────────────────────────────── */
  .prism-work-block__media--3col {
    grid-template-columns: 1fr;
  }

  .prism-work-block__media--mix {
    grid-template-columns: 1fr;
  }

  .prism-work-block__media.prism-work-block__media--gho {
    flex-direction: column;
    align-items: flex-start;
  }

  .prism-work-block__media--gho > .prism-work-block__img--sq {
    width: 100%;
    max-width: 320px;
  }

  /* PRISM brand book opener */
  .prism-book-open { max-width: 100%; }

  /* ── CAMPAIGN PAGES ─────────────────────────────────────────── */
  /* Hero: single column, no video sidebar */
  .bb-hero__inner {
    grid-template-columns: 1fr;
    padding: 32px 0 60px;
  }

  .bb-hero__video-wrap { display: none; }

  .bb-hero__stats { gap: 16px; flex-wrap: wrap; }

  .bb-hero__stat-rule { display: none; }

  /* Formats section */
  .bb-formats__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bb-formats__regions {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Section inner: single column */
  .bb-section__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* More grid: single column */
  .bb-more__grid { grid-template-columns: 1fr; }

  /* Callout box */
  .bb-callout { padding-left: 20px; padding-right: 20px; }

  /* ── GG VEGAS CASE STUDY ────────────────────────────────────── */
  /* Uses case-study.css — 2col already collapses above */

  /* The 3-video strip on GGVegas */
  .ggv-vid-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ── FOOTER ─────────────────────────────────────────────────── */
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 20px;
  }

  /* ── SECTION LABELS / HEADINGS ──────────────────────────────── */
  .cs-heading {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

}

/* Extra-small screens ≤ 480px */
@media (max-width: 480px) {

  .hero {
    padding: 72px 16px 40px;
  }

  .cs-hero { padding: 80px 0 40px; }
  .cs-section { padding-block: 48px; }

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

  iframe { aspect-ratio: 16 / 9; }

  .bb-formats__regions {
    grid-template-columns: repeat(3, 1fr);
  }

}
