/* YMC Investment — breakpoints: 1100px (navigation), 900px (tablet), 640px (phone). */

@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: var(--bg);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: var(--s-7);
    padding: var(--s-6) var(--gutter) var(--s-8);
    overflow-y: auto;
    visibility: hidden; opacity: 0;
    transition: opacity var(--dur) var(--ease);
  }
  .nav.is-open { visibility: visible; opacity: 1; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { font-family: var(--font-display); font-size: 2.125rem; font-weight: 400; padding-block: var(--s-2); }
  .nav .btn { min-height: 52px; }

  .points--4, .steps, .people, .companies--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  .split__head, .split__body, .split__body--wide,
  .hero__body, .hero__aside, .featured__cover, .featured__body,
  .page-hero h1, .page-hero .lead,
  .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: 1 / -1; }
  .hero__aside { margin-top: var(--s-6); }
  .hero__mark { width: 78vw; top: auto; bottom: 2rem; right: -18vw; }
  .points, .stages, .companies, .articles, .advisors, .topics, .people--3, .steps--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row { grid-template-columns: 3rem minmax(0, 1fr); }
  .row__text { grid-column: 2; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col, .footer__col--wide { grid-column: span 4; }
  .choices { grid-template-columns: minmax(0, 1fr); }
  #forms .split__body { order: -1; }   /* form before contact details on small screens */
}

@media (max-width: 639px) {
  :root { --header-h: 64px; }
  .brand img { width: 148px; }
  .points, .points--2, .points--4, .stages, .stats, .companies, .companies--4, .steps, .steps--3,
  .features, .people, .people--3, .articles, .advisors, .topics { grid-template-columns: minmax(0, 1fr); }
  .stats { gap: var(--s-6); }
  .companies, .people, .articles { gap: var(--s-7); }
  .row { grid-template-columns: minmax(0, 1fr); gap: var(--s-2); padding-block: var(--s-5); }
  .row__text { grid-column: 1; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .field--half { grid-column: 1 / -1; }
  .newsletter { grid-template-columns: minmax(0, 1fr); }
  .newsletter .btn { width: 100%; }
  .footer__col, .footer__col--wide { grid-column: 1 / -1; }
  .actions .btn { width: 100%; }
  .hero__mark { width: 96vw; right: -30vw; bottom: 0; }
}

/* Line break used only on small screens, where a hero line would otherwise sit on the edge of wrapping */
.br-sm { display: none; }
@media (max-width: 640px) { .br-sm { display: inline; } }
