/* A single visual and interaction contract across all seven pages. */
:root { --page-gutter: clamp(20px, 4.4vw, 56px); --line: #dce2eb; }
html { scroll-padding-top: 106px; }
body { overflow-wrap: break-word; }
button, [role="button"], summary { -webkit-user-select: none; user-select: none; }
input, select, textarea { font: inherit; font-size: 16px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #1687ef; outline-offset: 4px; }
section[id], article[id] { scroll-margin-top: 110px; }
[hidden] { display: none !important; }
.site-header { border-bottom: 1px solid #edf0f466; padding-top: env(safe-area-inset-top, 0px); }
.site-header .nav-wrap { height: 80px; gap: 20px; max-width: 1200px; width: calc(100% - 112px); }
.desktop-nav { gap: clamp(17px, 2.2vw, 30px); white-space: nowrap; }
.desktop-nav a { position: relative; }
.desktop-nav a[aria-current="page"] { color: var(--blue); }
.desktop-nav a[aria-current="page"]::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; left: calc(50% - 2px); }
.nav-consult { white-space: nowrap; }
.menu-button { transform: none; }
.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; padding: 12px var(--page-gutter) 24px; padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px #1733530b; max-height: calc(100svh - 80px); overflow-y: auto; overscroll-behavior: contain; transform-origin: top center; opacity: 1; transform: translateY(0) scale(1); transition: transform 230ms var(--ease-out), opacity 230ms var(--ease-out); }
.mobile-menu a { display: flex; align-items: center; min-height: 49px; padding: 9px 4px; font-size: 1rem; font-weight: 550; border-bottom: 1px solid #eef1f6; }
.mobile-menu a[aria-current="page"] { color: var(--blue); }
.mobile-menu a:last-child { border: 0; }
.mobile-menu[data-closing] { transform: translateY(-6px) scale(.99); opacity: 0; transition-duration: 170ms; }
@starting-style { .mobile-menu:not([hidden]) { transform: translateY(-8px) scale(.99); opacity: 0; } }
.nojs-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 14px var(--page-gutter); border-bottom: 1px solid var(--line); font-size: .9rem; }
.nojs-nav a { padding-block: 8px; }
.p-enter { animation-duration: 480ms; }
.reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out); }
.reveal-ready.is-revealed { opacity: 1; transform: none; }
.site-footer { margin-top: 60px; padding: 62px var(--page-gutter) max(24px, env(safe-area-inset-bottom, 0px)); background: #f7f8fa; border-top: 1px solid #e9edf2; }
.site-footer-inner { max-width: 1200px; margin: auto; }
.site-footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-bottom: 42px; }
.site-footer-brand p { color: var(--muted); font-size: .86rem; line-height: 1.85; margin: 22px 0 15px; }
.site-footer-brand > a:last-child { color: #33465d; font-size: .84rem; overflow-wrap: anywhere; padding-block: 8px; display: inline-block; }
.site-footer h2 { font-size: .75rem; font-weight: 550; color: #687789; margin-bottom: 14px; }
.site-footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.site-footer-nav a, .site-footer-guides a { min-height: 44px; display: flex; align-items: center; font-size: .875rem; }
.site-footer-guides { display: flex; flex-direction: column; }
.site-footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; color: #667486; font-size: .7rem; }
.site-footer-bottom a { color: #465b73; }
/* Hover is a mouse enhancement; touch always has immediate press feedback. */
@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover, .desktop-nav a:hover { color: var(--blue); }
  .mobile-menu a:hover { color: var(--blue); }
}
@media (min-width: 981px) { .menu-button { display: none !important; } .desktop-nav { display: flex !important; } .mobile-menu { display: none; } }
@media (max-width: 980px) {
  .desktop-nav { display: none !important; }
  .site-header .nav-wrap { height: 72px; width: calc(100% - 48px); }
  .menu-button { display: flex !important; width: 44px; height: 44px; min-width: 44px; padding: 13px 10px; flex-direction: column; justify-content: center; gap: 6px; border-radius: 50%; background: #f1f3f6; }
  .menu-button span { display: block; width: 22px; height: 1.5px; background: #28384b; transition: transform 220ms var(--ease-out); }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .site-footer-top { grid-template-columns: 1.1fr 1fr; gap: 36px; }
  .site-footer-brand { grid-column: 1 / -1; }
  .site-footer-brand p br { display: none; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 40px); }
  .site-header .nav-wrap { width: calc(100% - 32px); gap: 10px; height: 66px; }
  .nav-wrap .brand img { width: 117px; height: auto; }
  .nav-actions { gap: 7px; }
  .nav-consult { padding: 10px 13px; font-size: .74rem; }
  .site-footer { margin-top: 36px; padding-top: 40px; }
  .site-footer-top { gap: 28px 20px; padding-bottom: 30px; }
  .site-footer-bottom { font-size: .68rem; line-height: 1.7; }
  .site-footer-nav { gap: 3px 12px; }
  .p-hero { padding-top: 62px; padding-bottom: 45px; }
  .p-lead, .p-media-copy > p, .p-case-copy > p, .p-feature-grid article > p:last-child, .p-process p, .p-values p, .p-boundaries p, .p-journey-panel p, .p-journey-panel ul, .p-scenario-advice-grid p { font-size: .9rem; line-height: 1.85; }
  .p-note { font-size: .76rem; line-height: 1.8; }
  .p-tags li { font-size: .7rem; }
  .p-filters button, .p-journey-buttons button { min-height: 44px; font-size: .8rem; }
  .p-contact-methods strong { overflow-wrap: anywhere; }
  .p-cta h2, .resource-cta h2 { font-size: clamp(1.8rem, 8vw, 2.8rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-ready { opacity: 1; transform: none; transition: none; }
  .mobile-menu, .mobile-menu[data-closing] { transform: none; transition: opacity 120ms var(--ease-out); }
  .menu-button span { transition: none; }
}
:root[data-input="keyboard"] *, :root[data-input="keyboard"] *::before, :root[data-input="keyboard"] *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
@media (prefers-reduced-transparency: reduce) { .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-contrast: more) { :root { --muted: #3c4756; } .site-header, .site-footer { background: #fff; } .site-footer h2, .site-footer-bottom { color: #334155; } }
@media print { .site-header, .site-footer, .skip-link, button { display: none !important; } .wrap { width: 100%; } .reveal-ready { opacity: 1; transform: none; } }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.p-contact-methods small, .p-source-line, .p-note, .p-media-copy > p, .p-case-copy > p { color: #596a7f; }
.p-contact-methods small { font-size: .72rem; }
.p-regions p, .p-offices p { overflow-wrap: anywhere; }
@media (orientation: landscape) {
  .nav-wrap { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
  .wrap { max-width: min(1200px, calc(100% - max(40px, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px)))); }
}
.mobile-menu { transform-origin: calc(100% - 38px) 0; }
.p-filters button { transition: transform 160ms var(--ease-out); }
.language-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 10px; font-size: .76rem; color: #56657a; white-space: nowrap; border-radius: 20px; border: 1px solid #dfe5ed; }
.language-switch span { color: #253d58; font-weight: 650; }
.breadcrumbs { display: flex; align-items: center; gap: 11px; padding-top: 20px; font-size: .72rem; color: #6b7a8d; }
.breadcrumbs a { padding-block: 8px; color: #42628a; }
.breadcrumbs + .p-hero { padding-top: 40px; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { overflow-wrap: normal; }
html[lang="en"] .hero h1 { white-space: normal; font-size: clamp(2.8rem,4.7vw,4.3rem); letter-spacing: -.055em; }
html[lang="en"] .p-hero h1 { font-size: clamp(2.7rem,4.5vw,4.25rem); line-height: 1.12; }
html[lang="en"] .resource-hero h1 { font-size: clamp(2.9rem,4.8vw,4.5rem); }
html[lang="en"] .desktop-nav { gap: 20px; font-size: .8rem; }
html[lang="en"] .nav-wrap { gap: 16px; }
html[lang="en"] .nav-consult { font-size: .76rem; }
html[lang="en"] .p-lead { line-height: 1.75; max-width: 600px; }
html[lang="en"] .p-journey-buttons { flex-wrap: wrap; }
html[lang="en"] .contact-letter strong { font-size: 1.4rem; }
html[lang="en"] .sheet-front > p { font-size: 1.7rem; }
html[lang="en"] .sheet-list { font-size: .58rem; }
html[lang="en"] .site-footer-nav { grid-template-columns: 1fr; }
html[lang="en"] .site-footer-top { grid-template-columns: 1.3fr .8fr 1fr; }
@media (min-width: 981px) and (max-width: 1120px) {
  html[lang="en"] .desktop-nav { gap: 12px; font-size: .73rem; }
  html[lang="en"] .nav-wrap { width: calc(100% - 40px); gap: 10px; }
  html[lang="en"] .nav-consult { padding-inline: 12px; }
  html[lang="en"] .brand img { width: 115px; height: auto; }
  html[lang="en"] .nav-actions { gap: 6px; }
}
@media (max-width: 980px) { html[lang="en"] .site-footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .nav-actions { gap: 7px; }
  html[lang="en"] .hero h1, html[lang="en"] .p-hero h1 { font-size: clamp(2.15rem,8.5vw,3rem); }
  html[lang="en"] .resource-hero h1 { font-size: clamp(2.5rem,9vw,3.5rem); }
  html[lang="en"] .p-hero h1 br { display: none; }
  html[lang="en"] .p-lead br, html[lang="en"] .resource-lead br { display: none; }
  html[lang="en"] .scene-world h2, html[lang="en"] .scene-connect h2 { font-size: clamp(2rem,8vw,3rem); }
  html[lang="en"] .scene-brand h2 { font-size: clamp(1.8rem,7vw,2.7rem); }
  html[lang="en"] .story-controls { gap: 8px; }
  html[lang="en"] .story-hint { max-width: 130px; font-size: .6rem; }
  html[lang="en"] .hero-actions { flex-wrap: wrap; gap: 8px 20px; }
  html[lang="en"] .brief-fields { grid-template-columns: 1fr; }
  html[lang="en"] .guide-directory nav { grid-template-columns: 1fr; }
  html[lang="en"] .sheet-front > p { font-size: 1.5rem; }
}
@media (max-width: 480px) { .nav-wrap .nav-consult { display: none; } .language-switch { font-size: .73rem; padding-inline: 11px; } }
/* English responsive QA: preserve word boundaries and allow longer editorial copy. */
html[lang="en"] .p-hero h1 br,
html[lang="en"] .p-lead br,
html[lang="en"] .resource-lead br { display: initial; }
html[lang="en"] .b-connection-top h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
html[lang="en"] .b-connection-card strong { font-size: 1.25rem; line-height: 1.3; }
html[lang="en"] .b-connection-card > span:last-child { line-height: 1.6; }
html[lang="en"] .b-case-library-top h2 { line-height: 1.3; }
html[lang="en"] .sc-showcase-head > * { min-width: 0; }
@media(max-width:600px) {
  html[lang="en"] .p-hero h1 { font-size: clamp(2rem, 8.5vw, 3rem); line-height: 1.16; }
  html[lang="en"] .b-connection-top h2 { font-size: clamp(1.8rem, 7.5vw, 2.3rem); }
  html[lang="en"] .b-connection-card strong { font-size: 1.13rem; }
  html[lang="en"] .p-hero .p-lead { font-size: 1rem; }
}
@media(max-width:820px) {
  html[lang="en"] .sc-process-art { height: auto; min-height: 390px; padding-block: 42px 46px; }
}
@media(max-width:600px) {
  html[lang="en"] .sc-media-showcase .sc-tabs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  html[lang="en"] .sc-media-showcase .sc-tabs button { font-size: .875rem; gap: 8px; }
  html[lang="en"] .sc-process-copy { position: relative; z-index: 2; }
}
/* Keep authored English line breaks as word boundaries, including section copy. */
html[lang="en"] body br { display: initial; }
html[lang="en"] .service-tabs { grid-template-columns: repeat(4,minmax(0,1fr)); }
html[lang="en"] .service-tabs button { min-width: 0; white-space: normal; min-height: 48px; line-height: 1.35; }
html[lang="en"] .industry-layout > * { min-width: 0; }
html[lang="en"] .guide-next .text-link { white-space: normal; }
html[lang="en"] .b-connection-top > p:last-child br { display: initial; }
html[lang="en"][data-input="keyboard"] .p-enter,
html[lang="en"][data-input="keyboard"] .hero-enter { animation: none !important; }
/* CSS-generated fallback labels must follow the English document language too. */
html[lang="en"] .motion-keyboard .story-hint::after { content: 'Motion paused · Keep exploring'; }
html[lang="en"] .motion-static .story-hint::after { content: 'Global media connection illustration'; }
/* English large-text resilience (200% text at phone widths). */
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3 { overflow-wrap: break-word; hyphens: auto; }
html[lang="en"] .p-feature-grid > * { min-width: 0; }
@media(max-width:600px) {
  html[lang="en"] .billing-lanes { grid-template-columns: minmax(0,1fr); gap: 0; }
  html[lang="en"] .billing-lanes > span { display: none; }
  html[lang="en"] .billing-lanes > div { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 9px; padding-block: 18px; }
  html[lang="en"] .billing-lanes h3,
  html[lang="en"] .billing-lanes p { margin: 0; }
}
/* Text-size stress cases: let controls and editorial grids grow with their text. */
.service-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-tabs button { min-width: 0; white-space: normal; line-height: 1.35; overflow-wrap: anywhere; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { overflow-wrap: break-word; hyphens: auto; }
html[lang="en"] .p-feature-grid > * { min-width: 0; }
@media (max-width: 420px) {
  html[lang="en"] .billing-lanes > div { grid-template-columns: 1fr; gap: 8px; }
  html[lang="en"] .guide-directory summary { gap: 12px; }
}

/* Apple layout review: keep one content grid and a readable type hierarchy. */
.site-header .nav-wrap { max-width: 1200px; }
.hero > *, .resource-hero > *, .contact-hero > *, .site-footer-top > * { min-width: 0; }
.hero h1, .p-hero h1, .resource-hero h1 { text-wrap: balance; }
html[lang="zh-CN"] .hero h1 { font-size: clamp(3rem, 4.2vw, 4.25rem); letter-spacing: -.025em; white-space: normal; }
html[lang="zh-CN"] .p-hero h1, html[lang="zh-CN"] .resource-hero h1 { letter-spacing: -.025em; }
@media (max-width: 600px) {
  html[lang="zh-CN"] .hero h1,
  html[lang="zh-CN"] .p-hero h1,
  html[lang="zh-CN"] .resource-hero h1 { font-size: clamp(2rem, 9.4vw, 2.5rem); line-height: 1.25; }
  .hero-description, .p-lead, .resource-lead,
  .p-media-copy > p, .p-case-copy > p, .p-feature-grid article > p:last-child,
  .p-process p, .p-values p, .p-boundaries p, .p-journey-panel p,
  .p-journey-panel ul, .p-scenario-advice-grid p { font-size: 1rem; line-height: 1.8; letter-spacing: 0; }
  .p-note, .p-source-line { font-size: .8125rem; line-height: 1.75; }
}

/* A square indicator stays inside its row when the directory chevron rotates. */
.guide-directory summary > span { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; flex: 0 0 1.5rem; line-height: 1; transform-origin: center; }
