/* =====================================================================
   Phones and small tablets only (max-width 900px).
   Desktop and laptop layouts are untouched: every rule below sits inside
   the media query, except hiding the phone-only Experts card on desktop.
   ===================================================================== */
.sa-net-m { display: none; }

@media (max-width: 900px) {

  /* ---- home hero: the project titles come before the illustration */
  html body .sa-xh-left { order: 2; margin-top: 24px; }
  html body .sa-xh-right { order: 3; margin-top: 24px; }

  /* ---- Experts in: industries as chips, one card with what the wires would show */
  html body .sa-net { padding-block: 56px; }
  html body .sa-net-stage { gap: 0; }
  html body .sa-net-col.is-mid,
  html body .sa-net-col.is-out,
  html body .sa-net-note,
  html body .sa-net-wires { display: none !important; }
  html body .sa-net-col.is-in { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  html body .sa-net-col.is-in .sa-net-col-title { flex-basis: 100%; margin-bottom: 4px; }
  html body .sa-net-col.is-in .sa-net-node { min-height: 44px; padding: 10px 14px; border: 1px solid rgba(207, 217, 238, .28); background: transparent; color: #CFD9EE; opacity: 1; font-size: 15px; font-weight: 600; }
  html body .sa-net-col.is-in .sa-net-node .sa-net-mark { display: none; }
  html body .sa-net-col.is-in .sa-net-node,
  html body .sa-net-col.is-in .sa-net-node.is-dim,
  html body .sa-net-col.is-in .sa-net-node .sa-net-label { opacity: 1 !important; filter: none !important; color: #CFD9EE; box-shadow: none; }
  html body .sa-net-col.is-in .sa-net-node.is-active { background: #FFFFFF; border-color: #FFFFFF; color: #101B37; }
  html body .sa-net-col.is-in .sa-net-node.is-active .sa-net-label { color: #101B37; }
  html body .sa-net-m { display: block; margin-top: 16px; padding: 20px; background: rgba(207, 217, 238, .08); border: 1px solid rgba(207, 217, 238, .18); color: #FFFFFF; }
  .sa-net-m-t { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
  .sa-net-m-p { margin: 8px 0 0; font-size: 15px; font-weight: 300; line-height: 1.6; color: rgba(255, 255, 255, .82); }
  .sa-net-m-k { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: #6F8FC9; }
  .sa-net-m-l { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
  .sa-net-m-l:not(.is-p) { display: block; font-size: 14px; font-weight: 600; line-height: 1.55; color: #E6ECF7; }
  .sa-net-m-l:not(.is-p) li { display: inline; }
  .sa-net-m-l:not(.is-p) li + li::before { content: " · "; color: #6F8FC9; }
  .sa-net-m-l.is-p li { margin: 0; padding: 6px 10px; font-size: 13px; font-weight: 600; }
  .sa-net-m-l:not(.is-p) li { margin: 0; padding: 0; background: none; }
  .sa-net-m-l.is-p li { background: #E6ECF7; color: #101B37; }
  html body .sa-net .sa-fdt { margin-top: 32px; padding-top: 0; }

  /* ---- Track record: smaller award lines, closer together */
  html body .sa-proof { padding-block: 48px; }
  html body .sa-proof-award-list { gap: 8px; }
  html body .sa-proof-award-item { margin-block: 0; gap: 4px 10px; }
  html body .sa-proof-award-title { font-size: 15px; line-height: 1.35; }
  html body .sa-proof-award-for, html body .sa-proof-award-year { font-size: 13px; }
  html body .sa-proof-award-badge { font-size: 12px; }

  /* ---- client logos: one straight line, closer together */
  html body .sa-hero-ticker-item { translate: none !important; rotate: none !important; margin-right: 28px !important; }
  html body .sa-proof .sa-logos .sa-hero-ticker,
  html body .sa-proof .sa-logos .sa-hero-ticker.sa-hero-ticker { padding: 24px 0 8px !important; }
  html body .sa-hero-ticker-track { align-items: center; }

  /* ---- Get in touch: three questions, a tighter form */
  html body .sa-cta { padding-block: 48px; }
  html body .sa-cta-left .sa-cta-question:nth-of-type(n+4) { display: none; }
  html body .sa-cta .sa-cta-h2 { margin-bottom: 16px; }
  html body .sa-cta-inner { row-gap: 24px; }
  html body .sa-cta-left { margin-bottom: 0; }
  html body .sa-cta-form { padding-top: 0; }
  html body .sa-cta .sa-form-input { margin-bottom: 12px; }
  html body .sa-cta .sa-form-textarea { min-height: 96px; height: 96px; margin-bottom: 12px; }
  html body .sa-cta .sa-form-recaptcha { margin-bottom: 12px; }
  /* the reCAPTCHA box appears once someone starts filling the form, so the button sits right under the fields */
  html body .sa-cta form:not(.is-started) .sa-form-recaptcha { height: 0; margin: 0; overflow: hidden; }
  html body .sa-cta-inner { padding-top: 0; }
  html body .sa-cta .sa-form-submit { margin-top: 0; }

  /* ---- About: people cards two in a row, smaller */
  html body .sa-team .sa-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
  html body .sa-team .sa-team-media { width: 72px; margin: 14px 14px 0; }
  html body .sa-team .sa-team-body { gap: 3px; padding: 10px 14px 14px; }
  html body .sa-team .sa-team-name { font-size: 14px; }
  html body .sa-team .sa-team-role { font-size: 12px; }
  html body .sa-team .sa-team-in { margin-top: 4px; font-size: 12px; }
  html body .sa-team .sa-team-link { height: 100%; }

  /* ---- About, Founding and quality: a vertical map — institute, its two labs, Solvesall — joined by lines */
  html body .sa-wv.is-found .sa-wv-stage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; justify-items: center; }
  html body .sa-wv.is-found .sa-wv-col { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 0; gap: 0; }
  html body .sa-wv.is-found .sa-wv-col:nth-of-type(3) { display: none; }
  html body .sa-wv.is-found .sa-wv-col-title { display: none; }
  html body .sa-wv.is-found .sa-wv-node { position: relative; z-index: 1; margin: 0; padding: 12px 16px; min-height: 44px; text-align: center; justify-content: center; background: #101B37; border: 1px solid rgba(111, 143, 201, .55); }
  html body .sa-wv.is-found .sa-wv-node.is-core { padding: 14px 28px; border-color: #FFFFFF; }
  /* the two labs side by side */
  html body .sa-wv.is-found .sa-wv-col:nth-of-type(2) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: 28px; }
  html body .sa-wv.is-found .sa-wv-col:nth-of-type(2) .sa-wv-node { width: 100%; padding: 12px 6px; font-size: clamp(12.5px, 3.6vw, 14px); hyphens: auto; text-wrap: balance; height: 100%; }
  html body .sa-wv.is-found .sa-wv-col:nth-of-type(2) { align-items: stretch; }
  html body .sa-wv.is-found .sa-wv-col:nth-of-type(1) .sa-wv-node,
  html body .sa-wv.is-found .sa-wv-col:nth-of-type(4) .sa-wv-node { align-self: center; width: auto; margin-inline: auto; }
  /* lines: drawn by sa-found-m.js as an SVG behind the boxes; they draw in, then a light runs down to Solvesall */
  html body .sa-wv.is-found .sa-wv-stage { position: relative; }
  html body .sa-wv.is-found .sa-wv-col:nth-of-type(1) { padding-bottom: 20px; }
  html body .sa-wv.is-found .sa-wv-col:nth-of-type(4) { padding-top: 20px; }
  .sa-fm-lines { position: absolute; left: 0; top: 0; z-index: 0; overflow: visible; pointer-events: none; }
  .sa-fm-lines path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
  .sa-fm-base { stroke: rgba(111, 143, 201, .75); stroke-width: 2; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1s cubic-bezier(.4, 0, .2, 1); }
  .sa-fm-base.is-2 { transition-delay: .9s; }
  .is-fm-drawn .sa-fm-base { stroke-dashoffset: 0; }
  .sa-fm-pulse { stroke: #FFFFFF; stroke-width: 3; stroke-dasharray: 9 200; stroke-dashoffset: 9; opacity: 0; filter: drop-shadow(0 0 4px rgba(207, 217, 238, .9)); }
  .is-fm-on .sa-fm-pulse { animation: sa-fm-run 3.6s cubic-bezier(.45, 0, .55, 1) infinite; }
  @keyframes sa-fm-run { 0% { stroke-dashoffset: 9; opacity: 0; } 6% { opacity: 1; } 36% { opacity: 1; } 40% { stroke-dashoffset: -100; opacity: 0; } 100% { stroke-dashoffset: -100; opacity: 0; } }
  @media (prefers-reduced-motion: reduce) { .sa-fm-base { transition: none; stroke-dashoffset: 0; } .sa-fm-pulse { display: none; } }
  html body .sa-wv.is-found .sa-wv-iso { margin-top: 14px; text-align: center; }


  /* ---- footer: links close together, groups side by side */
  html body .sa-foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  html body .sa-foot-list li { margin: 0; }
  html body .sa-foot-list .sa-foot-a { padding-block: 5px; line-height: 1.35; }
  html body .sa-foot-bh { margin-bottom: 6px; }
}
