/* ==========================================================================
   Sunme — Responsive (G1)
   File DUY NHẤT chứa @media query trong theme. Quy ước cho mọi giai đoạn:
   thêm breakpoint thì thêm vào đây, không viết @media ở file section/component.
   Breakpoint header/mobile DUY NHẤT: 1024px (sửa lỗi M3).
   - Desktop: > 1024px (giá trị gốc trong tokens.css / base.css).
   - Tablet: <= 1024px (gutter 20px, padding section 64/56, CTA 64).
   - Mobile: <= 767px (gutter 16px, padding section 56/48, CTA 56).
   ========================================================================== */

/* --- G6R: desktop hẹp (1025-1600px): hàng link hero (Hồ sơ/Facebook/Zalo/
   hotline) gọn lại để vừa 1 dòng sau khi cột thu về 1186-1260px. Hàng này
   cần 496px ở cỡ chữ 14px/khe 24px, cột HD chỉ 453px nên hotline rớt
   xuống dòng 2; chữ 13px + khe 12px thì cần ~433px, vừa 1 dòng từ 1319px
   trở lên. Full HD (1920) giữ nguyên 14px/24px như cũ; tablet/mobile
   không đổi. --- */
@media (min-width: 1025px) and (max-width: 1600px) {
  .sunme-hero-social {
    gap: var(--space-12);
  }

  .sunme-hero-social a {
    font-size: 13px;
  }

  .sunme-hero-social .lucide {
    width: 16px;
    height: 16px;
  }
}

/* --- Tablet trở xuống (<= 1024px): chuyển sang menu mobile --- */
@media (max-width: 1024px) {
  :root {
    --container-gutter: 20px;
    /* G6R: tablet/mobile giữ nguyên như trước (cột full width + gutter). */
    --container-min-margin: 0px;
    --header-height: 64px;
    --section-pad: 64px;
    --section-pad-short: 56px;
    --section-pad-cta: 64px;
  }

  /* Header: ẩn nav desktop + nút CTA, hiện hamburger. */
  .sunme-nav-desktop,
  .sunme-header-cta {
    display: none;
  }

  /* G5G: nút tìm kiếm đẩy sang phải, sát hamburger (không đứng cạnh logo). */
  .sunme-search-toggle {
    margin-left: auto;
  }

  /* G5U (Lobe 25/11 07:23): hamburger KHÔNG được margin-left:auto —
     base rule header.css đặt auto lên .sunme-nav-toggle, cộng với auto
     của .sunme-search-toggle thành 2 auto margin chia đều khoảng trống,
     đẩy search ra giữa header (đo được trước sửa: 390 search.left=196,
     gap tới hamburger 90px; 1024 gap 403px). Chỉ search giữ auto →
     cả cụm search + hamburger dồn về phải, logo trái. */
  .sunme-nav-toggle {
    margin-left: 0;
  }

  .sunme-nav-toggle {
    display: flex;
  }

  /* G7-audit (01/12): kính lúp sát hamburger trên mobile. Lobe báo
     kính lúp vẫn xa hamburger (audit đo 32px ở 375px). Gap header
     32px -> 8px ở <=1024px để mép phải kính lúp tới mép trái
     hamburger <=12px (đo 8px ở 375px và 412px); hamburger vẫn cách
     mép phải 16px nhờ gutter container mobile. */
  .sunme-header-inner {
    gap: 8px;
  }

  .sunme-logo img {
    height: 40px;
  }

  /* Footer: 4 cột -> 2 cột. */
  .sunme-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* G2 — Hero: xếp chồng, cụm ảnh xuống dưới, căn giữa, tối đa 420px. */
  .sunme-hero-grid {
    grid-template-columns: 1fr;
  }

  .sunme-hero-visual {
    margin: var(--space-32) auto 0;
    max-width: 420px;
  }

  /* G2 — Giới thiệu: 4 ô số liệu -> 2 cột. */
  .sunme-about-stats {
    grid-template-columns: 1fr 1fr;
  }

  /* G6O — Dải đỏ 2 cột: ô lẻ (đầu hàng) không kẻ trái, 2 ô dưới có kẻ ngang. */
  .sunme-odo-box:nth-child(odd) {
    border-left: none;
  }

  .sunme-odo-box:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* G5V — Giới thiệu: đầu khu vực 2 cột -> xếp chồng (tiêu đề trên,
     mở bài dưới, vẫn căn trái); cột 2 ở tablet quá hẹp cho H2. */
  .sunme-about-head {
    grid-template-columns: 1fr;
    gap: var(--space-16);
  }

  /* G5V — CTA: ẩn họa tiết sóng ở tablet trở xuống (nội dung xếp
     1 cột, sóng sau form chỉ còn là vệt rối). */
  .sunme-cta-waves {
    display: none;
  }

  /* G2 — Giải pháp: 3 thẻ -> 1 cột (thẻ đầy đủ link con, 2 cột lệch hàng). */
  .sunme-solutions-grid {
    grid-template-columns: 1fr;
  }

  /* G3 — Mega menu: chỉ hiện khi header desktop hiện (sửa lỗi M3).
     Ở <= 1024px header đã chuyển sang mobile, panel không bao giờ mở. */
  .sunme-mega {
    display: none;
  }

  /* G3 — Dự án: 3 cột -> 2 cột (fix đợt 1). Tin tức: 3 cột -> 2 cột.
     Mosaic trang chủ (G5O, rebuild G5T-A) cũng về 2 cột; thẻ lớn span
     2 cột x 2 hàng thành hàng full-width xen kẽ cặp thẻ nhỏ (quy tắc
     span ở projects.css giữ nguyên).
     PHẢI dùng double-class cho mosaic: quy tắc desktop 4 cột dùng
     .sunme-projects-grid.sunme-projects-grid--mosaic (0,2,0), cao hơn
     .sunme-projects-grid (0,1,0) nên không có double-class thì tablet
     vẫn 4 cột (bắt được ở ảnh 768px 24/11). */
  .sunme-projects-grid,
  .sunme-news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sunme-projects-grid.sunme-projects-grid--mosaic {
    grid-template-columns: 1fr 1fr;
  }

  /* G5Z1: luật --bento liên quan đã bỏ (xem projects.css) — lưới
     liên quan về 2 cột theo luật chung .sunme-projects-grid ở trên;
     hero chi tiết dự án xếp chồng ở tablet. */

  /* G5Z3 (Lobe 26/11 07:33, ý 3): hero chi tiết dự án dùng padding
     dưới CỐ ĐỊNH 80px trong khi --section-pad ở tablet chỉ còn 64px
     → khoảng hero→Bối cảnh = 80 + 64 = 144px @768, lệch nhịp chuẩn
     128px (+16px). Đưa padding dưới hero về 64px ở tablet để khớp
     nhịp (quy tắc mobile ≤767px đặt lại 32/56 nên không ảnh hưởng). */
  .sunme-pd-hero {
    padding-bottom: var(--space-64);
  }

  .sunme-pd-hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .sunme-pd-hero-text h1 {
    font-size: 36px;
  }

  /* G5Z — Trang chi tiết dự án lưới báo chí: text 2 cột + checklist
     2 cột về 1 cột ở tablet; gallery giữ 2 cột (đủ chỗ); metrics 4 ô
     về 2×2. Không còn stagger/bleed/masonry để gỡ. */
  .sunme-pd-cols {
    column-count: 1;
  }

  .sunme-pd-req .sunme-project-checklist {
    grid-template-columns: 1fr;
  }

  .sunme-project-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* G3 — Đánh giá: cột trái lên trên, slider xuống dưới. */
  .sunme-testi-wrap {
    flex-direction: column;
  }

  .sunme-testi-intro {
    flex: none;
    width: 100%;
  }

  .sunme-testi-swiper {
    width: 100%;
  }

  /* G3 — Đối tác / Hỏi đáp / CTA: 2 cột -> 1 cột. */
  .sunme-clients-wrap,
  .sunme-faq-wrap,
  .sunme-cta-wrap {
    grid-template-columns: 1fr;
  }

  /* G5C — Panel đỏ Đối tác / Hỏi đáp: thu padding, chữ dọc nhỏ lại. */
  .sunme-clients-panel,
  .sunme-faq-panel {
    padding: var(--space-32);
  }

  .sunme-clients-vertical {
    /* G5I: tablet 64px (DIWE 75px; Sunme xếp số ngang nên thu lại để
       panel không cao quá). */
    font-size: 65px;
  }

  /* G5C — Panel Đối tác ở tablet: panel đầy chiều rộng nên số liệu xếp
     ngang (2 số cạnh nhau) và chữ dọc chuyển sang mép phải làm điểm
     nhấn, tránh nửa phải panel trống đỏ. */
  .sunme-clients-panel-bottom {
    justify-content: space-between;
    align-items: center;
  }

  .sunme-clients-vertical {
    order: 2;
  }

  .sunme-clients-stats {
    flex-direction: row;
    gap: var(--space-48);
    flex: none;
  }

  /* G5C — Panel Hỏi đáp ở tablet: 3 hàng liên hệ xếp ngang cho đầy
     chiều rộng panel; dải cam kết 3 ô -> 1 cột (ô hẹp quá thì chữ
     gãy vụn). */
  .sunme-faq-contact {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-24);
  }

  .sunme-faq-commit-grid {
    grid-template-columns: 1fr;
  }

  /* G4 — Trang con: 2 cột -> 1 cột (giới thiệu, nhóm dịch vụ, liên hệ);
     3 thẻ giá trị -> 1 cột. */
  .sunme-about-split,
  .sunme-service-cols,
  .sunme-contact-grid,
  .sunme-value-cards {
    grid-template-columns: 1fr;
  }

  /* Nhóm dịch vụ ở mobile: ảnh lên trước chữ (đồng nhất cả 3 nhóm). */
  .sunme-service-cols .sunme-service-media {
    order: -1;
  }

  .sunme-page-values {
    padding: var(--space-32) var(--space-24);
  }

  /* Touch target tối thiểu 44x44px trên mobile (plan 4.4). */
  .sunme-footer-social a {
    width: 44px;
    height: 44px;
  }

  .sunme-project-tab {
    min-height: 44px;
  }

  /* G5L — Trang Giới thiệu ở tablet: các lưới 2 cột xếp chồng 1 cột,
     timeline 4 -> 2 cột (ẩn đường kẻ nối), đội ngũ 5 -> 3 cột. */
  .sunme-aboutpage-intro-wrap,
  .sunme-aboutpage-statement-wrap,
  .sunme-aboutpage-vision-wrap {
    grid-template-columns: 1fr;
    gap: var(--space-32);
  }

  .sunme-aboutpage-timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sunme-aboutpage-timeline-grid::before {
    display: none;
  }

  .sunme-aboutpage-vertical {
    font-size: 57px;
  }

  /* G5P — Single: sidebar trái xếp dưới nội dung ở tablet trở xuống. */
  .sunme-single-layout--has-sidebar {
    grid-template-columns: 1fr;
  }

  .sunme-single-sidebar {
    order: 2;
  }
}

/* --- Mobile (<= 767px) --- */
@media (max-width: 767px) {
  :root {
    --container-gutter: 16px;
    --section-pad: 56px;
    --section-pad-short: 48px;
    --section-pad-cta: 56px;
    --section-head-gap: var(--space-32);
    /* Thang chữ mobile (plan 4.1): hero 28px, H2 26px. */
    /* G5S-8: token mobile cũng -1px như token desktop (G5N đã +1 cả hai). */
    --fs-hero: 28px;
    --fs-h2: 26px;
    --fs-h2-cta: 26px;
    --fs-h1-page: 30px;
  }

  .sunme-footer-grid {
    grid-template-columns: 1fr;
  }

  /* H2 section: ẩn <br> ép dòng ở mobile để text-wrap: balance cân lại
     toàn bộ tiêu đề (Chrome không cân lại qua <br> — H2 Projects gãy
     thành "thay" lẻ một dòng ở 390px, bắt được khi kiểm chứng G3 24/11).
     LƯU Ý (G4): <br> bị ẩn thì không để lại khoảng trắng, nên tiêu đề
     trong meta PHẢI có khoảng trắng trước <br> ("Từ chiến lược <br>đến
     thực thi") — không thì mobile dính chữ ("lượcđến", bắt được khi soi
     ảnh heading G4 24/11). Khoảng trắng đó vô hình ở desktop. */
  .sunme-section-head h2 br {
    display: none;
  }

  /* G2 — Giới thiệu: media 2 cột -> 1 cột. */
  .sunme-about-media {
    grid-template-columns: 1fr;
  }

  /* G6O — Dải đỏ GIỮ 2x2 ở mobile (1 cột thành dải đỏ dài 4 hàng, quá
     nặng); số thu còn 40px cho vừa ô ~160px ("2.500+" ở 56px tràn). */
  .sunme-about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .sunme-odo-box {
    padding: var(--space-24) var(--space-8);
  }

  .sunme-odo-num {
    font-size: 40px;
  }

  /* G8 — Ghost icon thu nhỏ ở mobile (ô ~160px, icon 112px sẽ lấn số). */
  .sunme-odo-box .sunme-icon-box {
    width: 72px;
    height: 72px;
    top: -14px;
    left: -14px;
  }

  .sunme-odo-box .sunme-icon-box .lucide {
    width: 72px;
    height: 72px;
  }

  /* G2 — Hero: hàng link dưới hero thu khoảng hở cho vừa 390px. */
  .sunme-hero-social {
    gap: var(--space-16);
  }

  /* G5F — Hero mobile: visual nhỏ lại cho vừa 390px, cụm avatar co lại,
     pill subs không tràn mép trái. */
  .sunme-hero-visual {
    max-width: 340px;
  }

  .sunme-hero-card--subs {
    left: 0;
  }

  /* 30/11 (Lobe, demo v3): hien lai icon AI tren mobile — bo display:none
     G6T (do khong chat: icon 54px, ho mat + donut). */

  .sunme-hero-avatar {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .sunme-hero-avatar--count {
    font-size: 8px; /* G6N: "2.500+" 6 ký tự — 9px vẫn tràn vòng 36px mobile (lòng 32px), 8px vừa */
  }

  /* G5G — Overlay tìm kiếm mobile: cụm tìm kiếm thấp xuống một chút,
     nút X nhỏ lại cho vừa 390px. */
  .sunme-search-box {
    margin-top: 8vh;
  }

  .sunme-search-close {
    top: var(--space-16);
    right: var(--space-16);
  }

  /* G3 — Dự án / Tin tức: 1 cột. (Đối tác: G5D đổi thành 2 hàng
     marquee — xem khối G5D dưới đây, sau quy tắc panel đỏ.) */
  .sunme-projects-grid,
  .sunme-news-grid {
    grid-template-columns: 1fr;
  }

  /* G5O — Mosaic mobile cũng 1 cột (double-class, cùng lý do ở tablet). */
  .sunme-projects-grid.sunme-projects-grid--mosaic {
    grid-template-columns: 1fr;
  }

  /* G5O — Mosaic trang chủ ở mobile: 1 cột, thẻ lớn về span 1 x 1
     (span 2 trên lưới 1 cột sẽ sinh cột ẩn gây tràn ngang; span 2
     hàng cũng phải gỡ để các thẻ xếp chồng đều). Vị trí thẻ lớn
     6n+3/6n+4 theo rebuild G5T-A. */
  .sunme-projects-grid--mosaic .sunme-project-card:nth-child(6n + 3),
  .sunme-projects-grid--mosaic .sunme-project-card:nth-child(6n + 4) {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* G5O — Hàng tab + pill Xem thêm được xuống dòng ở mobile. */
  .sunme-project-tabs-row--home {
    flex-wrap: wrap;
  }

  /* G5Z1: luật --bento liên quan đã bỏ (xem projects.css) — lưới
     liên quan về 1 cột theo luật chung .sunme-projects-grid ở trên. */

  /* G5W — Trang chi tiết dự án mobile: hộp thông tin 2 cột, gallery
     1 cột (ảnh 16:9 đủ lớn để xem). Ô số liệu tự co qua auto-fit nên
     không cần luật riêng. */
  .sunme-project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* G5Z — Trang chi tiết dự án lưới báo chí ở mobile: hero 1 cột,
     H1 30px; H2 section 28px; gallery về 1 cột (ảnh wide về 16/9);
     trích dẫn 22px; câu kết 20px. */
  .sunme-pd-hero {
    padding: var(--space-32) 0 var(--space-56);
  }

  .sunme-pd-hero-text h1 {
    font-size: 30px;
  }

  .sunme-project-section h2 {
    font-size: 28px;
  }

  .sunme-pd-gallery {
    grid-template-columns: 1fr;
  }

  .sunme-pd-gallery .sunme-pd-gallery-item--wide {
    grid-column: auto;
  }

  .sunme-pd-gallery .sunme-pd-gallery-item--wide img {
    aspect-ratio: 16 / 9;
  }

  .sunme-pd-quote {
    font-size: 22px;
    padding-left: 40px;
  }

  .sunme-pd-quote-mark {
    font-size: 80px;
  }

  .sunme-pd-closing-text {
    font-size: 20px;
  }

  /* G5S — Đánh giá mobile: slide xếp DỌC lại (trích dẫn trên, tác giả
     dưới, ngăn bằng vạch ngang mờ); trích dẫn giữ 18px như desktop
     (bỏ rule 21px cũ của G5H); icon 36px. */
  .sunme-testi-slide {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-24);
  }

  .sunme-testi-quote-col {
    flex: none;
    width: 100%;
  }

  .sunme-testi-slide .sunme-testi-who {
    width: 100%;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line-on-dark);
    padding-top: var(--space-16);
  }

  .sunme-testi-slide .sunme-quote-icon .lucide {
    width: 36px;
    height: 36px;
  }

  /* G3 — FAQ: đáp án thụt lề ít hơn ở mobile. */
  .sunme-faq-a p {
    padding: 0 var(--space-16) var(--space-16);
  }

  /* G5C — Panel đỏ: thu padding + chữ dọc + số viền rỗng cho vừa 390px. */
  .sunme-clients-panel,
  .sunme-faq-panel {
    padding: var(--space-24) var(--space-24);
  }

  /* G5I: H2 panel 36px -> 26px (DIWE mobile .title-home h2 1.625rem). */
  .sunme-clients-panel h2 {
    font-size: 26px; /* G5S-8: H2 panel mobile -1px */
  }

  .sunme-clients-vertical {
    font-size: 41px;
  }

  .sunme-clients-panel-bottom {
    gap: var(--space-16);
    /* Mobile: về lại bố cục dọc (chữ dọc trái + số liệu xếp cột phải)
       vì panel 390px không đủ chỗ cho hàng số liệu ngang. */
    justify-content: flex-start;
    align-items: flex-start;
  }

  .sunme-clients-vertical {
    order: 0;
  }

  .sunme-clients-stats {
    flex-direction: column;
    gap: var(--space-24);
    flex: 1;
  }

  .sunme-clients-stat-num {
    font-size: 37px;
  }

  /* G5D — Đối tác mobile: lưới 2 cột -> 2 hàng marquee cuộn ngược
     chiều (hàng trên sang phải, hàng dưới sang trái). Hàng là khung
     cắt (overflow hidden), track flex rộng max-content chạy animation
     CSS 36s/vòng, linear. Ô 150px + margin-right 16px: 1 bộ 6 ô =
     996px, track 2 bộ = 1992px nên -50% đúng 1 bộ, vòng lặp không
     giật. Dừng khi hover / chạm giữ / focus trong hàng. */
  .sunme-client-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
  }

  .sunme-client-marquee-row {
    display: block;
    overflow: hidden;
  }

  .sunme-client-marquee-track {
    display: flex;
    width: max-content;
    animation: sunme-clients-marquee-left 36s linear infinite;
  }

  .sunme-client-marquee-row--right .sunme-client-marquee-track {
    animation-name: sunme-clients-marquee-right;
  }

  .sunme-client-logo--dup {
    display: flex;
  }

  .sunme-client-marquee-track .sunme-client-logo {
    flex: none;
    width: 150px;
    /* G5S: ô desktop đã lên 165px — marquee mobile giữ 92px như cũ
       (2 hàng 92px + gap 16px = lưới 200px, không đổi). */
    height: 92px;
    margin-right: var(--space-16);
  }

  .sunme-client-marquee-row:hover .sunme-client-marquee-track,
  .sunme-client-marquee-row:active .sunme-client-marquee-track,
  .sunme-client-marquee-row:focus-within .sunme-client-marquee-track {
    animation-play-state: paused;
  }

  /* G5C — Panel Hỏi đáp ở mobile: hàng liên hệ về lại xếp dọc. */
  .sunme-faq-contact {
    flex-direction: column;
    gap: var(--space-16);
  }

  /* G5C — Tin tức: header xếp dọc (nút Xem thêm xuống dưới H2). */
  .sunme-news-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-16);
    margin-bottom: var(--space-32);
  }

  /* G5C — Dải cam kết: 3 ô -> 1 cột. */
  .sunme-faq-commit {
    padding: var(--space-24);
  }

  .sunme-faq-commit-grid {
    grid-template-columns: 1fr;
  }

  /* G3 — CTA: thu padding hộp form cho vừa 390px. */
  .sunme-cta-form {
    padding: var(--space-24);
  }

  /* REDESIGN RED 01/12 (Lobe duyệt 15:59, gộp v1.2.0): 4 card số liệu về
     lưới 2×2 lấp đầy cột (trước: flex 118px vỡ 3+1 ở 412px, hàng 2 chỉ còn
     1 ô + 262px trắng bên phải). */
  .sunme-cta-stats {
    grid-template-columns: 1fr 1fr;
  }

  /* G4 — Hero trang con: thu padding, số 404 nhỏ lại, form tìm kiếm
     xếp dọc nút dưới ô nhập. */
  .sunme-page-hero {
    padding-block: var(--space-48);
  }

  .sunme-not-found-code {
    font-size: 73px;
  }

  .sunme-search-form {
    flex-direction: column;
  }

  .sunme-search-submit {
    width: 100%;
  }

  .sunme-footer-bottom-inner {
    flex-direction: column;
  }

  /* G5-fix — Nút nổi mobile (<= 767px): thu còn 46px như theme cũ để
     đỡ che nội dung ở màn hẹp (390px: nút 52px che mất đuôi dòng chữ
     khi cuộn — ảnh g5b-float-probe-390-y4000.png). G5T: nút
     back-to-top xếp chồng trên widget liên hệ (nút chính mobile 52px),
     sát mép 12px. */
  .sunme-to-top {
    width: 46px;
    height: 46px;
  }

  .sunme-to-top .lucide {
    width: 21px;
    height: 21px;
  }

  .sunme-to-top .sunme-ring {
    width: 46px;
    height: 46px;
  }

  .sunme-to-top {
    right: var(--space-12);
    bottom: calc(var(--space-12) + 52px + var(--space-12));
  }

  /* G5L — Trang Giới thiệu ở mobile: timeline 1 cột, đội ngũ 2 cột,
     chữ dọc + số năm thu nhỏ, huy hiệu nhân sự gọn lại.
     G5U (Lobe 25/11 07:23): timeline DỌC chuẩn mobile — line dọc bên
     trái, chấm TRÊN line, nội dung bên phải line. Line là border-left
     của từng mốc (gap lưới về 0 để line liền mạch, khoảng cách giữa
     các mốc chuyển sang padding-bottom); mốc cuối border trong suốt
     để line dừng đúng ở chấm cuối, không thừa đoạn dưới. Chấm
     (::before) + vòng pulse (::after) dịch sang trái 9px để tâm chấm
     (rộng 16px) nằm đúng tâm line 2px (tâm line ở x=1 trong padding
     box: 2 - 9 + 8 = 1). Hiệu ứng phát sáng G5S-12 giữ nguyên. */
  .sunme-aboutpage-timeline-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .sunme-aboutpage-milestone {
    padding-top: 0;
    padding-bottom: var(--space-24);
    padding-left: var(--space-32);
    border-left: 2px solid var(--line);
  }

  .sunme-aboutpage-milestone:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
  }

  .sunme-aboutpage-milestone::before,
  .sunme-aboutpage-milestone::after {
    left: -9px;
  }

  .sunme-aboutpage-milestone-year {
    font-size: 33px;
  }

  /* G5U (Lobe 25/11 07:23): ẨN hẳn dải chữ SUNME dọc trên mobile —
     chữ bị cắt ở mép màn hình và đè lên đoạn văn ("Đồng hành",
     "vừa và nhỏ" mất nét). Khối Tầm nhìn/Sứ mệnh dàn full-width.
     Tablet trở lên giữ nguyên (57px ở <=1024px, 85px desktop). */
  .sunme-aboutpage-vertical {
    display: none;
  }

  .sunme-aboutpage-statement-text h3 {
    font-size: 24px; /* G5S-8: H3 statement mobile -1px */
  }

  .sunme-aboutpage-staff-badge {
    left: var(--space-16);
    bottom: var(--space-16);
    padding: var(--space-12) var(--space-16);
  }

  .sunme-aboutpage-staff-badge b {
    font-size: 25px;
  }
}

/* --- Desktop (>= 1025px): panel mobile không bao giờ hiện, kể cả khi
   người dùng mở panel rồi kéo rộng cửa sổ (JS cũng đóng panel khi resize). --- */
@media (min-width: 1025px) {
  .sunme-mobile-nav,
  .sunme-mobile-backdrop {
    display: none;
  }
}

/* --- Tôn trọng prefers-reduced-motion (plan 4.4): tắt animation, chỉ đổi
   trạng thái tức thì. Nội dung KHÔNG được ẩn hẳn khi tắt animation. --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  /* G5Z2: marquee chữ ngành — tắt hẳn (không chạy sang phải).
     Quy tắc * ở trên đã vô hiệu animation, rule riêng này ghi rõ ý
     định (theo mẫu marquee đối tác G5D) để suite đo trực tiếp. */
  .sunme-pd-marquee-track {
    animation: none;
  }
}

/* --- G5D — Marquee đối tác khi giảm chuyển động: tắt cuộn tự động,
   hàng cuộn được bằng vuốt tay (overflow-x auto, ẩn thanh cuộn);
   bản sao ẩn để vùng vuốt chỉ có 6 ô gốc. --- */
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  /* Ghi cả 2 độ đặc hiệu: quy tắc mobile đặt animation-name cho hàng
     phải bằng selector 2 class (0,2,0) nên `animation: none` 1 class
     không thắng được riêng tên animation. */
  .sunme-client-marquee-track,
  .sunme-client-marquee-row--right .sunme-client-marquee-track {
    animation: none;
  }

  .sunme-client-marquee-row {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .sunme-client-marquee-row::-webkit-scrollbar {
    display: none;
  }

  .sunme-client-logo--dup {
    display: none;
  }
}
