/* r2-read.css: round 2 readability pass (owned by the read pass)
   Rules: body 16–17px / 1.6; display 1.04–1.1; measure 34–38em (~60–75 characters); labels >= 11px;
   section beat 64px on phones, 72–96px on tablets, unchanged on desktop. */

/* ---------- 1. Vertical rhythm ---------- */
@media (max-width: 640px) {
  :root { --section: 64px; }
  .section--tight { padding-block: 48px; }
  .section-head { margin-bottom: 36px; }
  .cta-band .container { gap: 24px; }
}
@media (min-width: 641px) and (max-width: 1024px) {
  :root { --section: clamp(72px, 9.4vw, 96px); }
}
/* two neighbours on the same ground: one gap, not two (the section-head rule still divides them) */
.pd-cases + .pd-howdocs,
.section--paper + .section--paper { padding-top: 0; }

/* ---------- 2. Leading for display type ---------- */
.h1, .page-hero h1, .cta-title { line-height: 1.04; }
.h2 { line-height: 1.08; }

/* ---------- 3. Measure: ~60–75 characters (Inter's 1ch is ~0.6em, so caps are set in em) ---------- */
.lede { max-width: 34em; }
.page-hero .lede { max-width: 34em; }
.prose p, .section-head > p, .section-head .lede, .ax-soon p { max-width: 36em; }
.member p, .ax-rule p, .pd-faq p, .ax-faq-item p, .lg-sec p, .lg-sec li { max-width: 38em; }

/* ---------- 4. Contrast: muted text on navy to >= 4.5:1 ---------- */
.globe-hint, .market .idx { color: rgba(220, 228, 248, 0.68); }
.cta-contact a small { color: rgba(220, 228, 248, 0.7); }
.footer-bottom { color: rgba(220, 228, 248, 0.66); }

/* ---------- 5. About: team cards read as one column on phones (20ch columns were too narrow) ---------- */
@media (max-width: 560px) {
  .team { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .member { gap: 14px; }
  .member-photo { aspect-ratio: 21 / 9; }
  .member-photo b { font-size: 3rem; }
  .member-photo .role-tag { left: 12px; bottom: 12px; height: 26px; padding: 0 10px; font-size: 0.6875rem; }
  .member h3 { font-size: var(--t-xl); min-height: 0; }
  .member p { font-size: var(--t-base); line-height: 1.6; }
}

/* ---------- 6. Contact: the email no longer breaks after "@" on phones ---------- */
@media (max-width: 720px) { .meta-row .meta:has(dd wbr) { grid-column: 1 / -1; } }

/* ---------- 7. Sticky jump-nav: show that it scrolls instead of cutting a tab in half ---------- */
@media (max-width: 560px) {
  .subnav-inner { padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
}

/* ---------- 8. WhatsApp button: smaller footprint over text on phones (still a 48px target) ---------- */
@media (max-width: 560px) {
  .wa-float { height: 48px; padding: 0 12px; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); }
  .wa-float svg { width: 22px; height: 22px; }
}

/* ---------- 9. Photo heroes on phones: the copy sits high, so the scrim must reach the top (sky-lit eyebrow/lede were < 3:1) ---------- */
@media (max-width: 760px) {
  .page-hero:has(.ha)::after { background: linear-gradient(0deg, rgba(var(--o), .94) 0%, rgba(var(--o), .78) 44%, rgba(var(--o), .56) 74%, rgba(var(--o), .5) 100%); }
}

/* ---------- 10. Small-caps label floor: 11px with tracking ---------- */
.mega-flag small { font-size: 0.6875rem; letter-spacing: 0.08em; }

/* ---------- 11. Two-item hero meta (privacy): stack on phones so "asntechnologies.com" can't run into the date ---------- */
@media (max-width: 480px) { .meta-row--2 { grid-template-columns: minmax(0, 1fr); row-gap: 16px; } }

/* ---------- 12. Footer on phones: 44px rows with no extra gap (was 54px a row); keep the space in "WhatsApp · +65…" that inline-flex swallowed ---------- */
@media (max-width: 760px) {
  .footer-col ul { gap: 0; }
  .footer-col a { gap: 0.3em; }
}

/* ---------- 13. APEX-519 application tiles: no tall empty middles on phones ---------- */
@media (max-width: 560px) {
  .ax-app { min-height: 0; gap: 16px; padding: 16px; }
}

/* ---------- 14. Mobile menu: grade chips reach the 44px tap target ---------- */
.mobile-menu .mm-sub a { min-height: 44px; }

/* ---------- 15. Closing cta-band: both buttons full-width and stacked on phones ---------- */
@media (max-width: 640px) {
  .cta-band .btn-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; }
  .cta-band .btn-row .btn { width: 100%; justify-content: center; }
}

/* ---------- 16. Rag: no one-word last lines in list copy either ---------- */
li, dd, figcaption, summary { text-wrap: pretty; }

/* About · ASN GUARD on paper (lead, round 2): breaks the run of four dark sections, so the page breathes before the closing CTA */
#guard .award { background: var(--white); border-color: var(--line-2); color: var(--ink-2); }
#guard .prose strong { color: var(--ink); }
/* Products hub: the path strip and the first family are both white, so drop the doubled padding between them */
.pd-path-sec + .pd-fam:not(.section--paper) { padding-top: clamp(32px, 4vw, 56px); }
