/* Mobile public surfaces: shared rails, boxes and text safety. */
@media (max-width: 767.98px) {
    .home-page,
    .services-page,
    .one-page,
    .about-page,
    .portfolio-page,
    .contact-page,
    .faq-page,
    .education-page,
    .security-page,
    .websites-page,
    .blog-page,
    .legal-page {
        overflow-x: hidden;
    }

    .home-page h1,
    .home-page h2,
    .services-page h1,
    .services-page h2,
    .one-page h1,
    .one-page h2,
    .about-page h1,
    .about-page h2,
    .portfolio-page h1,
    .portfolio-page h2,
    .contact-page h1,
    .contact-page h2,
    .faq-page h1,
    .faq-page h2,
    .education-page h1,
    .education-page h2,
    .security-page h1,
    .security-page h2,
    .websites-page h1,
    .websites-page h2,
    .blog-page h1,
    .blog-page h2,
    .legal-page h1,
    .legal-page h2 {
        overflow-wrap: anywhere;
        letter-spacing: 0 !important;
    }

    .home-tag,
    .section-tag,
    .svc-tag,
    .svc-section-tag,
    .one-eyebrow,
    .one-section-tag,
    .about-tag,
    .portfolio-tag,
    .portfolio-section-tag,
    .faq-tag,
    .faq-section-tag,
    .education-section-tag,
    .legal-tag {
        max-width: 100%;
        white-space: normal;
        line-height: 1.35;
        text-align: center;
        justify-content: center;
        letter-spacing: 0.5px !important;
    }

    .hero-actions,
    .cta-band,
    .cta-strip,
    .portfolio-actions,
    .share-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
    }

    .hero-actions > *,
    .cta-band a,
    .cta-strip a,
    .portfolio-actions a,
    .share-row a {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        white-space: normal;
    }

    .pillar-grid,
    .work-grid,
    .hero-kpis,
    .edu-grid,
    .problem-grid,
    .support-grid,
    .segment-grid,
    .pricing-grid,
    .tiers-grid,
    .value-grid,
    .trust-grid,
    .method-grid,
    .community-grid,
    .timeline-grid,
    .portfolio-kpis,
    .portfolio-grid,
    .faq-highlight-grid,
    .route-grid,
    .education-grid,
    .audience-grid,
    .format-grid,
    .step-grid,
    .security-grid,
    .faq-grid,
    .blog-grid,
    .legal-grid,
    .one-grid {
        display: grid !important;
        grid-auto-flow: column;
        grid-auto-columns: minmax(82%, 1fr);
        grid-template-columns: none !important;
        gap: 1rem !important;
        overflow-x: auto;
        overflow-y: visible;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 1rem;
        -webkit-overflow-scrolling: touch;
        padding: 0.125rem 1rem 0.75rem;
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .pillar-grid > *,
    .work-grid > *,
    .hero-kpis > *,
    .edu-grid > *,
    .problem-grid > *,
    .support-grid > *,
    .segment-grid > *,
    .pricing-grid > *,
    .tiers-grid > *,
    .value-grid > *,
    .trust-grid > *,
    .method-grid > *,
    .community-grid > *,
    .timeline-grid > *,
    .portfolio-kpis > *,
    .portfolio-grid > *,
    .faq-highlight-grid > *,
    .route-grid > *,
    .education-grid > *,
    .audience-grid > *,
    .format-grid > *,
    .step-grid > *,
    .security-grid > *,
    .faq-grid > *,
    .blog-grid > *,
    .legal-grid > *,
    .one-grid > * {
        min-width: 0;
        scroll-snap-align: start;
    }

    .tech-panel,
    .pillar-card,
    .work-card,
    .hero-kpi,
    .edu-card,
    .problem-card,
    .support-card,
    .segment-card,
    .pricing-card,
    .tier-block,
    .tier-card,
    .value-card,
    .trust-card,
    .method-card,
    .community-card,
    .timeline-card,
    .portfolio-kpi,
    .portfolio-card,
    .portfolio-note,
    .faq-highlight,
    .route-card,
    .education-card,
    .audience-card,
    .format-card,
    .step-card,
    .security-card,
    .faq-card,
    .blog-card,
    .channel-card,
    .info-card,
    .legal-card,
    .one-card {
        border-radius: 14px !important;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 420px) {
    .pillar-grid,
    .work-grid,
    .hero-kpis,
    .edu-grid,
    .problem-grid,
    .support-grid,
    .segment-grid,
    .pricing-grid,
    .tiers-grid,
    .value-grid,
    .trust-grid,
    .method-grid,
    .community-grid,
    .timeline-grid,
    .portfolio-kpis,
    .portfolio-grid,
    .faq-highlight-grid,
    .route-grid,
    .education-grid,
    .audience-grid,
    .format-grid,
    .step-grid,
    .security-grid,
    .faq-grid,
    .blog-grid,
    .legal-grid,
    .one-grid {
        grid-auto-columns: minmax(88%, 1fr);
    }
}
