/* BEAT — mobile layout, version 1.1.0, 2026-10-14.
 * Append AFTER site.css. The desktop rules remain untouched.
 * Selectors are taken from the 42 delivered pages.
 * This file refines responsive layout; it cannot repair a missing base CSS request.
 */
@media (max-width: 900px) {
  /* Portrait and landscape safe areas; the header remains usable on an iPhone. */
  .hdr .wrap {
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  }
  .hdr .wrap > a:first-child { flex: 0 0 auto; display: flex; align-items: center; min-height: 44px; }
  .burger { flex: 0 0 46px; touch-action: manipulation; }
  .mnav {
    max-height: 100vh;
    max-height: 100dvh;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  }
  .mnav > a { font-size: clamp(30px, 7.6vw, 50px); line-height: 1.08; min-height: 56px; }
  .mnav .mcta { flex-wrap: wrap; flex-shrink: 0; }
  .mnav .mcta .btn { font-family: var(--f-text); font-size: 15px; letter-spacing: 0; line-height: 1.25; min-height: 50px; padding: 14px 16px; }
  body.menu-open .mbar { visibility: hidden; pointer-events: none; }

  /* WebKit form defaults can otherwise enlarge grids and zoom the viewport. */
  .form, .form .step, .form .row, .form label, .form fieldset { min-width: 0; }
  .form fieldset { max-width: 100%; }
  .form input:not([type="radio"]):not([type="checkbox"]),
  .form select, .form textarea { min-width: 0; max-width: 100%; font-size: 16px; line-height: 1.4; }
  .form textarea { resize: vertical; }
  .form .legal { font-size: 13px; line-height: 1.5; }
  .form .legal input { flex-shrink: 0; width: 19px; height: 19px; margin: 2px 0 0; }

  /* Overrides two inline desktop grids present in the delivered HTML. */
  .smosaic.g2[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .smosaic.g2[style*="grid-template-columns"] .scard { grid-column: 1 / -1 !important; }
  .pillars[style*="grid-template-columns"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 767px) {
  :root { --gutter: clamp(18px, 5vw, 30px); --hdr: 66px; --beat-bar-height: 74px; }
  html { scroll-padding-top: calc(var(--hdr) + 18px + env(safe-area-inset-top, 0px)); }
  body { padding-bottom: calc(var(--beat-bar-height) + env(safe-area-inset-bottom, 0px)); }
  main, section, .wrap { min-width: 0; }
  .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
  .hdr { padding-top: env(safe-area-inset-top, 0px); }
  .hdr .wrap { gap: 16px; }
  .hdr .wm { width: 84px; height: 26px; }
  .mnav { padding-top: calc(var(--hdr) + 20px + env(safe-area-inset-top, 0px)); }
  .mbar { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .mbar .btn { min-width: 0; min-height: 52px; font-size: 15px; padding: 13px 18px; line-height: 1.25; }
  .mbar .wa { flex: 0 0 52px; padding: 0; }
  .beat-preview-bar { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

  /* Shorter line lengths preserve the bold art direction without broken words. */
  .claim, .claim.s { font-size: clamp(38px, 11vw, 62px); line-height: .99; letter-spacing: -.04em; }
  .h1, .h1.m, .hero-b .h1 { font-size: clamp(34px, 9.2vw, 50px); line-height: 1.04; }
  .h2 { font-size: clamp(30px, 8.4vw, 44px); line-height: 1.06; }
  .h2.m { font-size: clamp(28px, 7.8vw, 38px); line-height: 1.08; }
  .h3 { font-size: 23px; line-height: 1.18; }
  .k { font-size: 10.5px; letter-spacing: .13em; line-height: 1.5; gap: 10px; margin-bottom: 16px; }
  .lead { font-size: 17px; line-height: 1.55; }
  .h1-seo { font-size: 17px; line-height: 1.45; margin-top: 22px; }
  .crumbs { line-height: 1.5; font-size: 12px; margin-bottom: 24px; overflow-wrap: anywhere; }
  .crumbs > * { min-width: 0; }
  .sec { padding-block: 60px; }
  .sec-t { padding-block: 32px; }
  .sec-head { gap: 20px; margin-bottom: 30px; }
  .two, .intro .wrap, .bea, .offer-g, .pcred-g { gap: 30px; }
  .btn { min-height: 50px; font-size: 15px; line-height: 1.3; padding: 14px 20px; text-align: center; }
  .hcta { gap: 10px; margin-top: 26px; }
  .hcta .btn { flex: 1 1 160px; }

  /* Height is a minimum only, so enlarged text never gets clipped. */
  .hero-a { min-height: calc(100vh - 74px); min-height: calc(100svh - 74px); }
  .hero-a.short, .team-hero { min-height: min(760px, 88svh); }
  .hero-a .wrap { padding-top: calc(var(--hdr) + 40px + env(safe-area-inset-top, 0px)); padding-bottom: 38px; }
  .hbot { margin-top: 24px; gap: 20px; }
  .hbot .lead { font-size: 17px; }
  .hero-b .wrap { padding-top: calc(var(--hdr) + 36px + env(safe-area-inset-top, 0px)); }
  .hero-b .pic { margin-top: 30px; aspect-ratio: 4 / 3; }
  .hero-c .wrap, .hero-d .wrap { padding-top: calc(var(--hdr) + 40px + env(safe-area-inset-top, 0px)); }
  .hero-c .wrap { padding-bottom: 42px; }
  .hero-d .win, .hero-d .win.tall { aspect-ratio: 4 / 3; margin-top: 30px; }
  .hero-d .wrap + .wrap { padding-top: 0; }
  .hero-c .card { padding: 22px; margin-top: 30px; }
  .case-hero { min-height: min(740px, 84svh); }
  .case-hero .wrap { padding-top: calc(var(--hdr) + 50px + env(safe-area-inset-top, 0px)); padding-bottom: 36px; }
  .case-hero .h1.m { font-size: clamp(32px, 8.6vw, 46px); line-height: 1.06; }
  .feature, .nextp { min-height: 520px; min-height: min(620px, 78svh); }
  .feature.pad { min-height: 460px; aspect-ratio: auto; }
  .feature .wrap, .nextp .wrap { padding-block: 34px; gap: 24px; }

  /* Make every service useful on touch devices, without hover-only descriptions. */
  .smosaic { gap: 16px; }
  .smosaic .scard, .smosaic .scard:nth-child(n) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .scard .sc { padding: 22px; gap: 10px; }
  .scard .sc b { font-size: clamp(23px, 6.5vw, 30px); line-height: 1.05; }
  .scard .sc span { opacity: 1; transform: none; font-size: 14px; line-height: 1.45; }
  .scard .go { opacity: 1; transform: none; width: 36px; height: 36px; }
  .scard .n { left: 22px; }
  .egrid { row-gap: 34px; }
  .piece .pmeta { padding-top: 16px; }
  .piece h3 { font-size: clamp(25px, 7vw, 34px); line-height: 1.1; max-width: none; }
  .piece .res { font-size: 15px; line-height: 1.55; }
  .piece .link { line-height: 1.4; }
  .tcards, .exprogs, .arts { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tcard { padding: 24px; }
  .tcard.wide { flex-direction: column; align-items: flex-start; }
  .tcard.wide p { flex: 0 1 auto; }
  .tcard .link { line-height: 1.4; }
  .tests { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 30px; }
  .tests blockquote { min-width: 0; padding: 24px 22px; }
  .tests p { font-size: 18px; line-height: 1.5; }
  .intro .big { font-size: clamp(25px, 6.6vw, 34px); line-height: 1.2; }
  .proof, .facts, .cfig { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pstats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .pst-n { font-size: clamp(42px, 12vw, 64px); overflow-wrap: anywhere; }
  .pst-l { font-size: 11px; letter-spacing: .08em; }
  .proc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .proc b { margin-top: 10px; }
  .offer-steps li { grid-template-columns: 42px minmax(0, 1fr); gap: 4px 14px; }
  .offer-steps li::before { font-size: 30px; }
  .offer-n, .mtbb-n, .pcred-n { font-size: clamp(90px, 27vw, 160px); }
  .wall .cols, .wall-terms, .ext .spec { gap: 20px; }
  .ext > div { padding-block: 44px; }
  .ext .claim { font-size: clamp(36px, 10vw, 50px); }

  /* Filters remain visible and easy to tap, with no off-screen hidden tabs. */
  .depts, .filters, .cats { gap: 0 18px; margin-bottom: 28px; }
  .depts button, .filters button, .cats button { min-height: 46px; font-size: 11px; line-height: 1.4; letter-spacing: .08em; }
  .tmosaic { gap: 28px 16px; align-items: start; }
  .tmosaic .card, .tmosaic .card.lead { min-width: 0; grid-column: span 6; }
  .tmosaic .card .nm, .tmosaic .card.lead .nm { font-size: 20px; line-height: 1.12; }
  .card .rl { font-size: 10px; letter-spacing: .08em; line-height: 1.5; }
  .card .ar { font-size: 12px; line-height: 1.5; }
  .tcta { padding: 26px; }
  .cgal .gal { row-gap: 24px; }
  .cgal figcaption { font-size: 13px; line-height: 1.5; }
  .blocks .r { gap: 18px; padding-block: 32px; }
  .blocks h2 { font-size: 31px; line-height: 1.06; }
  .blocks p, .prose p, .local .prose p, .art p { font-size: 17px; line-height: 1.65; }
  .faq summary { padding: 20px 0; font-size: 18px; line-height: 1.35; min-height: 58px; }
  .faq summary::after { flex: 0 0 18px; text-align: center; line-height: 1.2; }
  .faq .a { font-size: 16px; line-height: 1.65; }
  .art h2 { font-size: 28px; line-height: 1.15; margin-top: 38px; }
  .art .answer { padding: 18px; font-size: 18px; line-height: 1.6; }
  .art ul, .art ol { font-size: 16px; line-height: 1.65; }
  .art .meta { font-size: 12px; gap: 8px 14px; }
  .art .author { align-items: flex-start; }
  .art .author img { flex: 0 0 56px; width: 56px; height: 56px; }
  .tblwrap { max-width: 100%; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  .tbl.cmp td { overflow-wrap: anywhere; }
  .tbl.cmp td::before { line-height: 1.5; }

  /* The form takes the full available width; persistent CTA never covers fields. */
  .cta-cine { min-height: 0; }
  .cta-cine .wrap { gap: 28px; padding-block: 48px; }
  .cta-cine .veil { background: rgba(14, 15, 17, .87); }
  .quick { gap: 8px 20px; font-size: 16px; }
  .quick a { min-height: 44px; line-height: 1.4; overflow-wrap: anywhere; }
  .form { padding: 22px 18px; gap: 18px; }
  .form .row { grid-template-columns: minmax(0, 1fr); }
  .form .chips { gap: 8px; }
  .form .chips label { max-width: 100%; min-height: 46px; padding: 10px 12px; line-height: 1.35; font-size: 14px; }
  .form .chips input { flex: 0 0 16px; width: 16px; height: 16px; }
  .form .prog { font-size: 10px; letter-spacing: .06em; line-height: 1.4; }
  .form .prog i { flex-shrink: 0; width: 22px; }
  .form .btn { min-height: 52px; }
  .form .fnote { overflow-wrap: anywhere; }
  .form input, .form select, .form textarea { scroll-margin-block: 100px; }
  .csplit .l { padding-top: calc(var(--hdr) + 36px + env(safe-area-inset-top, 0px)); padding-bottom: 32px; }
  .csplit .l .claim { font-size: clamp(36px, 10vw, 50px); }
  .csplit .l .lead { margin-top: 20px; }
  .csplit .r { padding-top: 30px; padding-bottom: 48px; }
  .who { align-items: flex-start; gap: 14px; margin-top: 26px; }
  .who img { flex: 0 0 62px; width: 62px; height: 62px; }
  .who b { font-size: 19px; }
  .who span { font-size: 13px; line-height: 1.5; }

  .logos-band .k { white-space: normal; }
  .brand-row { gap: 18px 24px; justify-content: flex-start; }
  .brands .brand-grid { gap: 22px 14px; }
  .brand-grid img { max-width: 100%; max-height: 22px; }
  .ticker { padding-block: 16px; }
  .ticker span { font-size: 16px; letter-spacing: .02em; }
  .foot { padding-top: 52px; padding-bottom: 28px; }
  .foot .top { gap: 24px; margin-bottom: 34px; padding-bottom: 34px; }
  .foot .top .claim { font-size: clamp(34px, 9.5vw, 48px); line-height: 1.04; }
  .foot .cols { gap: 28px; }
  .foot li { padding: 0; }
  .foot li a { display: inline-flex; align-items: center; min-height: 42px; line-height: 1.45; overflow-wrap: anywhere; }
  .foot .legal { gap: 8px 18px; line-height: 1.6; }
  .foot .legal a { min-height: 36px; display: inline-flex; align-items: center; }

  /* Content stays readable if animation JS is deferred or fails to load. */
  .rv { opacity: 1; }
  .rv.in { animation: none; }
  .xfade .pic.on img { animation: none; }
}

@media (max-width: 560px) {
  .pillars[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  .hero-b .pic { aspect-ratio: 4 / 3; }
}
@media (max-width: 359px) {
  .tmosaic .card, .tmosaic .card.lead { grid-column: 1 / -1; }
  .wall .cols, .ext .spec, .timeline { grid-template-columns: minmax(0, 1fr); }
  .mnav .mcta .btn { flex-basis: 100%; }
  .form .chips label { width: 100%; }
}
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .mnav > a { font-size: 26px; min-height: 42px; padding-block: 10px; }
  .mnav .mcta { padding-top: 16px; }
}

@media (max-width: 960px) {
  .mnav .mcta .btn-s { color: var(--white); border: 1px solid rgba(247,247,244,.6); }
  .mbar .btn-p { color: var(--white); }
  .csplit .l .lead { color: rgba(247,247,244,.82); }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 960px) {
  body:has(form.form:focus-within) .mbar { visibility: hidden; pointer-events: none; }
  form.form { scroll-margin-top: calc(var(--hdr) + 20px); }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .ticker .tk { display: flex; width: auto; flex-wrap: wrap; gap: 12px 20px; padding-inline: var(--gutter); }
  .ticker .tk span { white-space: nowrap; }
  .ticker .tk span:nth-child(n+4) { display: none; }
}
