/* Branding mobile layout. Desktop rules intentionally remain in their original files. */
@media (max-width: 767px) {
  .lb-page *, .lb-page *::before, .lb-page *::after { box-sizing: border-box; }
  .lb-page :is(.lb-shell, .rf-shell, .sx-shell, .lb-stories-heading),
  .lb-page .rf-dark-reference .rf-shell,
  .lb-page .lb-preview-split .lb-shell,
  .lb-page .lb-impact, .lb-page .lb-faq {
    width: calc(100% - 40px); max-width: 560px; margin-inline: auto;
  }
  .lb-page :is(.lb-shell, .rf-shell, .lb-impact, .lb-process, .lb-toolkit, .lb-faq) {
    padding-block: 56px;
  }
  .lb-page h2, .sr-page.lb-page .rf-shell h2,
  .lb-page .lb-toolkit h2, .lb-page .lb-stories-heading h2,
  .lb-page .lb-faq .lb-heading h2, .lb-page .lb-matters-copy h2 {
    font-size: 28px; line-height: 1.22; letter-spacing: -.035em;
  }
  .lb-page .lb-heading { margin-bottom: 32px; }
  .lb-page .lb-heading > p:last-child:not(.lb-label) { font-size: 15px; }
  .lb-page .lb-label { font-size: 12px; margin-bottom: 16px; }
  .lb-page .lb-hero { padding: 120px 20px 40px; }
  .lb-page .lb-hero h1 { font-size: 32px; line-height: 1.2; margin-bottom: 24px; }
  .lb-page .lb-hero nav { font-size: 10px; gap: 8px; padding: 7px 12px; margin-bottom: 24px; }
  .lb-page .lb-hero > p { font-size: 15px; line-height: 1.6; max-width: 36ch; }
  .lb-page .lb-hero > p br { display: none; }
  .lb-page .lb-hero-actions { flex-direction: column; gap: 18px; margin-top: 28px; }
  .lb-page .lb-hero-actions .rf-button { width: 100%; max-width: 440px; justify-content: center; min-height: 50px; }
  .lb-page .lb-gallery-track > div { width: 180px; padding-right: 12px; }
  .lb-page .lb-gallery { padding-block: 12px 30px; }

  /* Match the reference's mobile sequence without inherited desktop grid tracks. */
  .lb-page .lb-identity-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'team' 'portrait' 'system' 'reach' 'stat' 'clients';
    grid-template-rows: auto 500px auto 290px auto 290px; gap: 16px;
  }
  .lb-page .lb-identity-grid article { padding: 22px; border-radius: 20px; }
  .lb-page .lb-identity-grid h3 { font-size: 20px; line-height: 1.3; }
  .lb-page .lb-identity-grid p { font-size: 14px; line-height: 1.55; }
  .lb-page .lb-id-team { min-height: 200px; }
  .lb-page .lb-id-avatars { margin-bottom: 24px; }
  .lb-page .lb-id-avatars :is(img, span) { width: 48px; height: 48px; }
  .lb-page .lb-identity-grid .lb-id-portrait { padding: 0; }
  .lb-page .lb-id-portrait-top { padding: 22px; }
  .lb-page .lb-id-portrait-top > span { font-size: 20px; margin-bottom: 16px; }
  .lb-page .lb-id-photo { inset: 29% 0 0; }
  .lb-page .lb-id-photo img { width: 165%; left: -32.5%; height: 140%; object-position: 50% 12%; }
  .lb-page .lb-id-portrait-caption { padding: 65px 22px 22px; }
  .lb-page .lb-id-portrait-caption h3 { font-size: 18px; }
  .lb-page .lb-id-system { min-height: 210px; gap: 16px; }
  .lb-page .lb-id-system span { font-size: 13px; padding: 10px 12px; }
  .lb-page .lb-identity-grid .lb-id-stat { min-height: 210px; }
  .lb-page .lb-id-stat strong { font-size: 58px; margin-block: 12px; }
  .lb-page .lb-id-clients > div:first-child { max-width: 80%; }
  .lb-page .lb-id-map-window { inset: 40% 0 0; }
  .lb-page .lb-id-map-window .lb-id-reference-globe { width: 100%; height: auto; max-height: none; left: 0; bottom: 0; }

  .lb-page .lb-expert, .lb-page .lb-matters { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lb-page .lb-expert .lb-expert-copy { padding: 24px 20px; min-height: 0; border-radius: 22px; }
  .lb-page .lb-expert h2 { font-size: 24px; line-height: 1.25; }
  .lb-page .lb-expert .lb-expert-intro { font-size: 15px; margin-bottom: 24px; }
  .lb-page .lb-expert-team { flex-wrap: wrap; flex-direction: row; gap: 12px; }
  .lb-page .lb-expert-team p { flex: 1 1 140px; }
  .lb-page .lb-expert figure { min-height: 0; height: 420px; border-radius: 22px; }
  .lb-page .lb-expert figcaption { left: 14px; right: 14px; bottom: 14px; max-width: none; padding: 16px; }
  .lb-page .lb-expert figcaption strong { font-size: 18px; }
  .lb-page .lb-matters > div:first-child { order: 0; }
  .lb-page .lb-matters-visual { aspect-ratio: auto; height: 420px; }
  .lb-page .lb-matters .lb-matters-benefits { margin: 22px 16px 0; gap: 8px; }
  .lb-page .lb-matters .lb-matters-benefits li { font-size: 12px; padding: 8px 10px; }
  .lb-page .lb-matters-visual > img { width: 85%; height: 66%; left: 3%; bottom: 1%; }
  .lb-page .lb-matters-copy p:not(.lb-label) { font-size: 15px; }
  .lb-page .lb-preview-split .lb-shell { grid-template-columns: minmax(0, 1fr); padding-block: 48px; gap: 32px; }
  .lb-page .lb-preview-split h2 { font-size: 24px; line-height: 1.25; }
  .lb-page .lb-preview-split .lb-shell > div { text-align: center; }
  .lb-page .lb-preview-split h2,
  .lb-page .lb-preview-split .lb-label,
  .lb-page .lb-preview-split .lb-preview-description {
    text-align: center;
    margin-inline: auto;
  }

  /* Full-width, readable process cards; no squeezed timeline column on phones. */
  .lb-page .lb-process-timeline { display: block; }
  .lb-page .lb-process-rail { display: none; }
  .lb-page .lb-process-list { padding-bottom: 0; }
  .lb-page .lb-process-list .lb-process-card {
    position: relative; top: auto; grid-template-columns: minmax(0, 1fr);
    min-height: 0; margin-bottom: 20px; padding: 24px 20px; gap: 0; border-radius: 22px;
  }
  .lb-page .lb-process-list .lb-process-card > img { display: none; }
  .lb-page .lb-process-list h3 { font-size: 20px; margin: 20px 0 16px; }
  .lb-page .lb-process-list p { font-size: 15px; line-height: 1.65; margin-bottom: 24px; }
  .lb-page .lb-process-list .lb-phase { font-size: 13px; }
  .lb-page .lb-process-tags { gap: 8px; }
  .lb-page .lb-process-tags li { font-size: 12px; padding: 6px 10px; }
  .lb-page .rf-dark-reference .rf-benefit-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lb-page .rf-benefits .rf-section-heading {
    text-align: center;
    margin-inline: auto;
  }
  .lb-page .rf-benefits .rf-section-heading :is(.rf-eyebrow, h2) {
    text-align: center;
    margin-inline: auto;
  }
  .lb-page .rf-dark-reference .rf-benefit { padding: 24px; min-height: 0; }
  .lb-page .rf-dark-reference .rf-industry { flex-basis: 85vw; height: 340px; }
  .lb-page .lb-toolkit .lb-heading { margin-bottom: 20px; }
  .lb-page .lb-tool-filters {
    display: flex; flex-wrap: nowrap; justify-content: flex-start;
    gap: 8px; width: 100%; max-width: 100%; box-sizing: border-box;
    margin: 0 auto 38px; padding: 7px; overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .76), rgba(239, 244, 243, .54));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .98), 0 14px 34px rgba(14, 19, 20, .07);
    backdrop-filter: blur(22px) saturate(1.24);
    -webkit-backdrop-filter: blur(22px) saturate(1.24);
    scrollbar-width: none;
  }
  .lb-page .lb-tool-filters::-webkit-scrollbar { display: none; }
  .lb-page .lb-tool-filters button {
    flex: 0 0 auto; width: auto; font-size: 13px; font-weight: 500;
    line-height: 1.4; padding: 0 17px; min-height: 40px;
    white-space: nowrap; text-align: center; border: 1px solid transparent;
    border-radius: 999px; background: transparent; color: #565d61; box-shadow: none;
  }
  .lb-page .lb-tool-filters button[aria-pressed=true] {
    background: #FF2900; border-color: #FF2900; color: #fff; box-shadow: none;
  }
  .lb-page .lb-tool-filters button:focus-visible { outline-offset: -3px; }
  .lb-page .lb-tool-grid {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 12px; width: 100%; margin-inline: auto;
  }
  .lb-page .lb-tool-grid li {
    flex: 0 0 auto; width: auto; min-width: 0; max-width: 100%;
    height: 46px; padding: 2px 6px; border-radius: 4px;
    border-color: #dcdce3; box-shadow: none;
  }
  .lb-page .lb-tool-grid li[hidden] { display: none; }
  .lb-page .lb-tool-grid img { width: auto; height: 40px; max-width: 100%; object-fit: contain; }

  /* Portrait first, quotation beneath, as in the reference's mobile carousel. */
  .lb-page .lb-client-stories { padding-block: 48px; }
  .lb-page .lb-client-stories .lb-story-card { flex: 0 0 calc(100vw - 56px); max-width: 440px; min-height: 0; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .lb-page .lb-client-stories .lb-story-media { grid-row: 1; height: auto; aspect-ratio: 3 / 4; }
  .lb-page .lb-client-stories .lb-story-quote { grid-row: 2; padding: 24px; }
  .lb-page .lb-client-stories .lb-story-quote blockquote { font-size: 16px; line-height: 1.6; }
  .lb-page .lb-client-stories .lb-story-person { left: 20px; bottom: 22px; }
  .lb-page .lb-client-stories .lb-story-person strong { font-size: 20px; }
  .lb-page .lb-client-stories .lb-story-person span { font-size: 13px; }
  .lb-page .lb-stories-track { padding-inline: 20px; gap: 16px; }
  .lb-page .lb-context-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lb-page .lb-faq summary { font-size: 16px; gap: 16px; padding: 22px 0; }
  .lb-page .lb-faq details p { font-size: 14px; padding: 0 0 22px; }
  .sr-page.lb-page .rf-contact { width: calc(100% - 40px); grid-template-columns: minmax(0, 1fr); padding: 28px 20px; gap: 28px; }
  .sr-page.lb-page .rf-contact-intro { min-width: 0; text-align: left; }
  .sr-page.lb-page .rf-contact-intro > .rf-eyebrow { margin-bottom: 18px; }
  .sr-page.lb-page .rf-contact-intro h2 { margin-bottom: 20px; }
  .sr-page.lb-page .rf-contact-intro > p:not(.rf-eyebrow) {
    font-size: 16px; line-height: 1.6; margin: 0 0 20px;
  }
  .lb-page .rf-contact-intro ul { margin: 0 0 28px; }
  .lb-page .rf-contact-intro li {
    position: relative; padding: 7px 0 7px 26px; font-size: 15px; line-height: 1.55;
  }
  .lb-page .rf-contact-intro li::before { position: absolute; left: 0; margin: 0; }
  .lb-page .lb-contact-person { width: 100%; margin: 0 0 16px; }
  .lb-page .lb-contact-person img {
    width: 100%; height: auto; aspect-ratio: 1.08;
    object-fit: cover; object-position: center 22%; border-radius: 20px;
  }
  .lb-page .lb-contact-person figcaption {
    margin-top: 14px; font-size: 20px; line-height: 1.35;
  }
  .lb-page .lb-contact-person figcaption span { font-size: 14px; margin-top: 4px; }
  .lb-page .rf-contact-intro > a { display: inline-block; color: #FF2900; font-size: 16px; overflow-wrap: anywhere; }
  .lb-page .rf-fields { grid-template-columns: minmax(0, 1fr); }
  .lb-page .rf-enquiry, .lb-page .rf-enquiry fieldset { min-width: 0; }
  .lb-page .rf-enquiry input:not([type=radio]), .lb-page .rf-enquiry textarea { font-size: 16px; }
  .lb-page .sx-subscribe { flex-direction: column; }
  .lb-page .sx-subscribe .sx-button { width: 100%; }
  .lb-page .rf-finale-row { align-items: center; }
  .lb-page .rf-finale-inner { padding: 26px 20px; }
  .lb-page .rf-finale h2 { font-size: 28px; }
}
