/* Mobile-first refinements for Chinese browsing habits and thumb-friendly actions. */
.mobile-contact-bar { display: none; }

@media (max-width: 640px) {
  :root { --pad: 20px; }
  body { padding-bottom: 64px; font-size: 14px; }
  .site-header { height: 62px; padding: 0 16px; }
  .site-header.scrolled, .catalog-page .site-header { height: 62px; }
  .brand { gap: 8px; font-size: 20px; }
  .brand-logo { width: 126px; max-height: 30px; object-fit: contain; object-position: left center; }
  .menu-button { width: 40px; height: 40px; }
  .main-nav { z-index: 1; padding: 88px 28px 110px; gap: 4px; }
  .main-nav a { width: 100%; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); font: 700 30px/1.15 var(--head); }
  .main-nav a.active { color: var(--lime); }
  .main-nav a:after { display: none; }
  .menu-open .main-nav { transform: none; }
  .mobile-contact-bar { position: fixed; z-index: 45; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); left: 12px; display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 8px 10px 8px 16px; border: 1px solid rgba(16,18,20,.08); border-radius: 11px; background: rgba(255,255,255,.94); box-shadow: 0 8px 30px rgba(16,18,20,.16); color: var(--ink); backdrop-filter: blur(16px); }
  .mobile-contact-bar span { color: var(--muted); font-size: 12px; }
  .mobile-contact-bar strong { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 13px; border-radius: 7px; background: var(--lime); font-size: 12px; }
  .mobile-contact-bar svg { width: 15px; height: 15px; }
  .hero { min-height: 0; height: 780px; }
  .hero-content { padding: 126px 20px 0; }
  .hero .eyebrow { margin-bottom: 14px; font-size: 10px; letter-spacing: 1.5px; }
  .hero h1 { max-width: 330px; margin-bottom: 24px; font-size: clamp(46px, 14vw, 62px); line-height: .9; }
  .hero-copy { max-width: 330px; margin-bottom: 24px; font-size: 14px; line-height: 1.75; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { min-height: 46px; width: 100%; }
  .hero-actions .text-link { padding: 8px 0; }
  .hero-stats { right: 20px; bottom: 22px; left: 20px; }
  .hero-stats div { padding: 12px 5px; text-align: center; }
  .hero-stats strong { font-size: 26px; }
  .hero-stats span { font-size: 10px; white-space: nowrap; }
  .section-pad { padding: 66px 20px; }
  .manifesto { gap: 28px; }
  .section-label { gap: 12px; font-size: 10px; }
  .section-label span { font-size: 34px; }
  .manifesto h2, .section-head h2, .engineering h2, .about-band h2, .contact-band h2, .detail-intro h2, .feature-copy h2, .spec-section h2, .detail-app-copy h2 { font-size: 42px; line-height: .95; }
  .lead { margin-top: 24px; font-size: 16px; line-height: 1.75; }
  .section-head { gap: 20px; margin-bottom: 28px; }
  .stage-controls { width: 100%; justify-content: space-between; }
  .stage-controls .icon-button { width: 42px; height: 42px; }
  .product-showcase { display: flex; flex-direction: column; }
  .product-visual { order: -1; min-height: 310px; }
  .product-visual img { width: 86%; height: 78%; }
  .drag-hint { right: 14px; bottom: 12px; font-size: 9px; }
  .product-copy { padding: 30px 22px 34px; }
  .product-copy h3 { margin-bottom: 14px; font-size: 66px; }
  .product-copy > p:not(.product-kicker) { font-size: 14px; line-height: 1.7; }
  .mini-specs { gap: 10px; margin: 24px 0; padding-top: 16px; }
  .mini-specs dd { font-size: 17px; }
  .product-copy .button { width: 100%; }
  .product-tabs { display: flex; overflow-x: auto; margin: 0 -20px; padding: 0 20px; border-bottom: 0; scrollbar-width: none; }
  .product-tabs::-webkit-scrollbar { display: none; }
  .product-tabs button { flex: 0 0 116px; min-height: 70px; padding: 14px 12px; border-right: 1px solid var(--line); border-bottom: 2px solid transparent; }
  .product-tabs button.active { box-shadow: inset 0 -2px var(--lime); }
  .product-tabs b { font-size: 23px; }
  .product-tabs span { display: block; margin-top: 3px; font-size: 10px; white-space: nowrap; }
  .application-grid { display: flex; overflow-x: auto; gap: 10px; margin: 0 -20px; padding: 0 20px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .application-grid::-webkit-scrollbar { display: none; }
  .application-item { flex: 0 0 82vw; min-height: 420px; border: 0; scroll-snap-align: start; }
  .application-item > div { left: 20px; bottom: 20px; }
  .application-item > svg { right: 20px; bottom: 24px; }
  .engineering { gap: 30px; }
  .engineering-media { min-height: 380px; }
  .media-badge { right: 14px; bottom: 18px; width: 112px; height: 112px; font-size: 10px; }
  .media-badge b { font-size: 17px; }
  .engineering-copy > p:not(.eyebrow) { margin: 22px 0 32px; font-size: 15px; line-height: 1.8; }
  .process-list > div { grid-template-columns: 36px 1fr; column-gap: 12px; padding: 17px 0; }
  .process-list h3 { font-size: 22px; }
  .process-list p { font-size: 13px; line-height: 1.65; }
  .about-band { min-height: 570px; }
  .about-content { padding: 100px 20px 80px; }
  .contact-band { gap: 28px; }
  .contact-circle { width: 132px; height: 132px; }
  .site-footer { gap: 20px; padding: 38px 20px 18px; }
  .site-footer > div { flex-wrap: wrap; gap: 14px 20px; }

  .catalog-hero { height: 500px; margin-top: 62px; }
  .catalog-reference .catalog-hero { height: 430px; }
  .catalog-reference .catalog-hero-copy { padding: 48px 20px 0; }
  .catalog-reference .catalog-hero-copy h1 { max-width: 240px; font-size: 50px; }
  .catalog-reference .catalog-hero-copy > p:not(.eyebrow) { max-width: 280px; font-size: 12px; line-height: 1.7; }
  .catalog-reference .catalog-hero-media { inset: 150px -30% -30px 0; }
  .catalog-hero-index { right: 20px; bottom: 14px; }
  .catalog-hero-index span { font-size: 40px; }
  .catalog-wrap, .catalog-reference .catalog-wrap { width: calc(100% - 28px); padding: 28px 0 80px; }
  .catalog-filter { top: 62px; margin: 0 -6px 18px; padding: 0 6px; border-radius: 8px; overflow-x: auto; scrollbar-width: none; }
  .catalog-filter::-webkit-scrollbar { display: none; }
  .catalog-filter button, .catalog-reference .catalog-filter button { flex: 0 0 auto; min-height: 46px; padding: 12px 14px; font-size: 11px; }
  .catalog-list { gap: 14px; }
  .catalog-card, .catalog-reference .catalog-card { border-radius: 11px; box-shadow: 0 5px 18px rgba(21,25,27,.06); }
  .catalog-product, .catalog-reference .catalog-product { min-height: 250px; }
  .catalog-product img, .catalog-reference .catalog-product img { width: 88%; height: 210px; }
  .catalog-product > span { left: 16px; top: 14px; }
  .catalog-card-copy, .catalog-reference .catalog-card-copy { padding: 24px 20px 26px; }
  .catalog-card-copy h3, .catalog-reference .catalog-card-copy h3 { margin-bottom: 12px; font-size: 44px; }
  .catalog-card-copy > p:not(:first-child), .catalog-reference .catalog-card-copy > p:not(:first-child) { margin-bottom: 20px; font-size: 13px; line-height: 1.75; }
  .catalog-card-copy dl, .catalog-reference .catalog-card-copy dl { justify-content: space-between; gap: 10px; margin-bottom: 20px; padding-top: 14px; }
  .catalog-card-copy dd, .catalog-reference .catalog-card-copy dd { font-size: 17px; }
  .catalog-link { min-height: 40px; padding: 0 2px; }
  .catalog-cta { gap: 30px; }
  .catalog-cta h2, .catalog-reference .catalog-cta h2 { font-size: 48px; }

  .detail-hero { min-height: 0; padding: 96px 20px 92px; }
  .detail-copy h1 { font-size: 88px; }
  .detail-lead { margin: 22px 0; font-size: 17px; }
  .detail-copy .button { width: 100%; }
  .detail-visual { height: 360px; margin-top: 10px; }
  .detail-visual img { width: 94%; height: 92%; }
  .outline-word { font-size: 150px; }
  .detail-metrics { right: 20px; bottom: 0; left: 20px; grid-template-columns: repeat(2, 1fr); }
  .detail-metrics div { min-height: 58px; padding: 9px 10px; }
  .detail-metrics strong { font-size: 21px; }
  .detail-subnav { top: 62px; height: 52px; padding: 0 20px; gap: 18px; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .detail-subnav::-webkit-scrollbar { display: none; }
  .detail-subnav > span { flex: 0 0 auto; font-size: 16px; }
  .detail-subnav div { flex: 0 0 auto; gap: 18px; }
  .detail-subnav a { white-space: nowrap; font-size: 11px; }
  .detail-intro { min-height: 650px; }
  .detail-intro .lead { margin-top: 22px; }
  .scroll-motor { height: 300px; margin-top: 18px; }
  .scroll-motor img { width: 94vw; }
  .feature-copy { padding: 58px 20px; }
  .feature-copy h2 { margin: 16px 0 22px; font-size: 44px; }
  .feature-copy > p { font-size: 15px; line-height: 1.8; }
  .feature-copy dl { gap: 30px; margin-top: 32px; }
  .feature-image { min-height: 360px; }
  .spec-table { padding: 12px 20px; }
  .spec-table > div { gap: 16px; padding: 15px 0; }
  .spec-table span { font-size: 11px; }
  .spec-table b { max-width: 62%; text-align: right; font-size: 16px; }
  .spec-diagram { min-height: 350px; }
  .spec-diagram img { width: 88%; height: 78%; }
  .performance-data .section-head { margin-bottom: 22px; }
  .performance-table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px 10px; }
  .performance-table { min-width: 640px; }
  .detail-app-copy { padding: 64px 20px; }
  .detail-applications > img { min-height: 340px; object-fit: cover; }
  .next-product { gap: 28px; }
  .next-product h2 { font-size: 72px; }
  .content-hero { min-height: 470px; margin-top: 62px; }
  .content-hero-copy { padding: 70px 20px 76px; }
  .content-hero-copy h1 { margin-bottom: 18px; font-size: 68px; }
  .content-hero-copy p:not(.eyebrow) { max-width: 290px; font-size: 14px; line-height: 1.75; }
  .content-hero-index { right: 20px; bottom: 16px; font-size: 10px; }
  .news-intro, .support-intro { display: block; }
  .news-intro h2, .support-intro h2 { margin-bottom: 24px; font-size: 48px; }
  .news-grid { display: flex; flex-direction: column; gap: 12px; padding-top: 0; }
  .news-card, .news-card-feature { min-height: 360px; }
  .news-card-feature > div, .news-card { padding: 24px; }
  .news-card-number { margin-bottom: 60px; }
  .news-card h2, .news-card h3 { font-size: 34px; }
  .news-card .text-link { right: 24px; bottom: 24px; }
  .news-cta { align-items: flex-start; flex-direction: column; gap: 28px; }
  .news-cta h2 { font-size: 54px; }
  .support-grid { display: flex; flex-direction: column; gap: 12px; padding-top: 0; }
  .support-card { min-height: 260px; padding: 24px; }
  .support-card h3 { margin: 48px 0 10px; font-size: 32px; }
  .support-card p { min-height: 0; margin-bottom: 18px; }
  .support-contact { align-items: flex-start; flex-direction: column; gap: 28px; }
  .support-contact h2 { font-size: 52px; }
  .support-contact-links { align-items: flex-start; gap: 12px; }
  .support-contact-links > a:not(.button) { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-contact-bar, .main-nav, .catalog-card, .application-item { transition: none; }
}

/* Keep the dark wordmark readable on product and catalog templates whose legacy CSS sets a dark header. */
.product-page .site-header, .catalog-page .site-header { background: rgba(255,255,255,.96); color: var(--ink); border-bottom-color: rgba(16,18,20,.14); }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* Neutral navigation states: no lime text or underline, with restrained hover/press feedback. */
.main-nav a { color: var(--ink); transition: color .25s ease, transform .25s ease; }
.main-nav a:hover { color: #687075; transform: translateY(-2px); }
.main-nav a:after { background: var(--ink); }
.main-nav a.active { color: var(--ink); }
.main-nav a.active:after { transform: scaleX(1); transform-origin: left; }
.main-nav a:active { transform: translateY(0) scale(.96); }
.site-header .main-nav a.active { color: var(--ink); }
@media (max-width: 980px) {
  .main-nav a, .main-nav a.active, .site-header .main-nav a.active { color: #fff; }
  .main-nav a:hover { color: #c6cbce; transform: translateX(4px); }
}

/* The homepage contact band uses a dedicated tech-blue accent. */
:root { --tech-blue: #1597ff; }
.contact-band { background: var(--tech-blue); }
