/* c.mobile.css — responsive/@media rules for Direction C.
   Loaded AFTER c.css so these overrides win at narrow widths. */
@media (max-width: 980px) {
  .c-hero h1 { font-size: 40px; }
  .c-work { grid-template-columns: 1fr; }
  .c-cta-grid { grid-template-columns: 1fr; }
  .c-cta-l { border-right: 0; border-bottom: 1px solid var(--line); }
  .c-work-l { border-right: 0; border-bottom: 1px solid var(--line); }
  .c-burger { display: flex; }
  .c-navmenu { position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none; z-index: 20; }
  body.nav-open .c-navmenu { display: flex; }
  .c-navlinks { flex-direction: column; gap: 0; }
  .c-navlinks a { padding: 16px 48px; border-top: 1px solid var(--line-2); }
}
@media (max-width: 640px) {
  .c-nav, .c-hero-in, .c-sec-head, .c-work-l, .c-work-r,
  .c-post, .c-cta-l, .c-cta-r, .c-foot, .c-prod-intro {
    padding-left: 24px;
    padding-right: 24px;
  }
  .c-founder-in { grid-template-columns: auto 1fr; gap: 20px; padding: 28px 24px; }
  .c-founder-sig { grid-column: 1 / -1; }
  .c-hero-in { padding-top: 40px; padding-bottom: 36px; }
  .c-hero h1 { font-size: 34px; margin-top: 16px; }
  .c-strip { flex-direction: column; }
  .c-strip .si { border-right: 0; border-bottom: 1px solid var(--line); }
  .c-post { grid-template-columns: 1fr auto; gap: 12px 20px; padding: 28px 24px; }
  .c-post-no { display: none; }
  .c-foot { flex-direction: column; gap: 24px; align-items: flex-start; }
  /* Stacked: no brand line to align to, and a 365px copyright cannot
     stay on one line inside a phone column. */
  .c-foot-brand { white-space: normal; }
  .c-foot-links { gap: 20px; padding-top: 0; }
  .c-sec-head { flex-direction: column; align-items: flex-start;
    gap: 10px; }
  .c-sec-head .sh-r { white-space: normal; }
}

/* multi-page responsive */
@media (max-width: 980px) {
  .c-case { grid-template-columns: 1fr; }
  .c-case-l { border-right: 0; border-bottom: 1px solid var(--line); }
  .c-case.flip .c-case-r { border-right: 0; }
}
@media (max-width: 640px) {
  .c-page-head { padding: 44px 24px 32px; }
  .c-case-l, .c-case-r { padding: 28px 24px; }
  .c-case-l :is(h2,h3) { font-size: 25px; }
  .c-cta-band { padding: 44px 24px; }
  .c-cta-band h2 { font-size: 32px; }
}

/* topic cards (writing page): one column on a phone, where three
   240px cards no longer fit side by side. The cards exist so the
   newest piece is close to the top, so on a phone they shrink to
   label, title and count: the description would push the feed a
   full screen down. No hover lift on a surface with no hover. */
@media (max-width: 780px) {
  .c-topics {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px;
  }
  .c-topic { padding: 16px 18px 14px; }
  .c-topic:hover { transform: none; box-shadow: none; }
  .c-topic-t { margin-top: 8px; font-size: 19px; }
  .c-topic-b { display: none; }
  .c-topic-foot { margin-top: 12px; padding-top: 10px; }
}
