/* Shared visual refinement. Loaded after the existing interaction styles. */
:root {
  --ui-ink: #15384c;
  --ui-muted: #556c79;
  --ui-paper: #f4f6f3;
  --ui-line: #dbe3e3;
  --ui-gutter: clamp(24px, 5vw, 80px);
  --ui-header: 72px;
}

html { scroll-padding-top: calc(var(--ui-header) + 24px); }
body { font-weight: 400; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline-offset: 5px; }
.primary-navigation a { min-height: 44px; font-weight: 600; }
.nav-link.is-current { text-decoration: underline; text-underline-offset: 9px; }


/* One visual stage, with room to grow on short screens and enlarged text. */
body.home-page--single { overflow-x: hidden; overflow-y: auto; }
body.home-page--single .fullpage,
body.home-page--single .fullpage-section { height: auto; min-height: 100svh; overflow: visible; }
.home-visual--single { align-items: center; }
.home-visual-content {
  position: relative;
  top: auto;
  width: min(calc(100% - var(--ui-gutter) * 2), 1500px);
  min-height: 100svh;
  margin-inline: auto;
  padding: calc(var(--ui-header) + 52px) 0 36px;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  align-content: center;
  gap: clamp(32px, 4vw, 64px);
}
.home-intro { min-width: 0; }
.home-kicker {
  padding: 0;
  margin-bottom: 22px;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
}
.home-visual h1 { margin-bottom: 18px; font-size: clamp(48px, 5.4vw, 76px); font-weight: 650; letter-spacing: .02em; }
.home-position { max-width: 780px; font-size: clamp(22px, 2.1vw, 30px); font-weight: 500; line-height: 1.5; }
.home-description { margin-top: 18px; max-width: 620px; color: #d4dfe3; font-size: 16px; line-height: 1.9; }
.home-cta-group { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.home-cta-group .section-link { min-height: 50px; gap: 32px; padding: 0 24px; border-radius: 6px; font-weight: 600; box-shadow: none; }
.home-cta-group .section-link--primary { color: #102c3e; background: #e0c080; border-color: #e0c080; }
.home-cta-group .section-link:hover { background: #f0d6a3; color: #102c3e; border-color: #f0d6a3; }
.home-values { gap: 24px; margin-top: 32px; width: auto; }
.home-values span { grid-template-columns: 20px auto; gap: 8px; min-height: 28px; padding: 0; border: 0; }
.home-values svg { width: 20px; height: 20px; padding: 0; border: 0; background: none; box-shadow: none; color: #b9c9cf; }
.home-values strong { font-size: 12px; font-weight: 500; color: #c8d5db; }
.home-overview { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; border: 0; }
.home-overview a {
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  min-height: clamp(112px, 9vw, 140px);
  gap: clamp(12px, 1.3vw, 22px);
  padding: 24px;
  border: 1px solid rgb(219 236 248 / .4);
  border-radius: 10px;
  color: #f4f9fc;
  background: rgb(31 77 109 / .48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
}
.home-overview a::before, .home-overview a::after { display: none; }
.home-overview a:hover, .home-overview a:focus-visible { background: rgb(47 99 133 / .65); border-color: rgb(232 244 252 / .75); }
.home-overview-copy { min-width: 0; }
.home-overview strong { color: inherit; font-size: clamp(16px, 1.45vw, 22px); font-weight: 600; }
.home-overview small { display: block; margin-top: 10px; color: inherit; font-size: 11px; font-weight: 400; line-height: 1.5; letter-spacing: .12em; }
.home-overview-icon { width: 44px; height: 44px; color: inherit; border: 0; background: none; box-shadow: none; }
.home-overview-icon svg { width: 42px; height: 42px; stroke-width: 1.6; }
.home-overview-arrow, .home-cta-chevron { display: inline-flex; align-items: center; justify-content: center; color: inherit; }
.home-overview-arrow svg, .home-cta-chevron svg { width: 20px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.direction-chevron { display: block; width: 20px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-method-arrow .direction-chevron { width: 24px; height: 30px; }
.site-menu-toggle { width: 44px; height: 44px; right: 16px; bottom: 16px; opacity: .8; }

/* Preserve the original page backgrounds and cloud-shaped footer bands. */
body.primary-page--screen .primary-screen-main { padding-top: var(--ui-header); }
.primary-screen-main > .primary-screen-section { min-height: calc(100svh - var(--ui-header)); display: block; overflow: hidden; }
.primary-screen-section--wave > :is(.about-content, .technology-content, .projects-content, .research-content, .consulting-content, .contact-content) {
  width: min(calc(100% - var(--ui-gutter) * 2), 1200px);
  margin-inline: auto;
  padding: 56px 0 clamp(142px, 17vh, 184px);
}
.page-kicker { margin: 0 0 14px; color: #80612e; font-size: 11px; font-weight: 600; letter-spacing: .2em; }
.projects .page-kicker { color: #e0c080; }
.page-heading { margin-bottom: 32px; }
.page-heading h1, .projects-content > h1 { margin: 0 0 16px; font-size: clamp(32px, 3.4vw, 46px); font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.page-heading > p:last-child { margin: 0; color: var(--ui-muted); font-size: 16px; line-height: 1.8; }
.section-intro { margin: 0 0 32px; line-height: 1.8; }
.section-link { min-height: 48px; border-radius: 6px; box-shadow: none; }

/* Technical directory on the original photographic background. */
.technology .page-kicker { color: var(--color-accent); }
.technology .page-heading > p:last-child { color: rgb(255 255 255 / .82); }
.technology-content [role="tablist"] { gap: 10px; margin-bottom: 28px; }
.technology-content [role="tab"] { grid-template-columns: 42px minmax(0, 1fr) 16px; min-height: 72px; padding-right: 14px; border: 1px solid var(--ui-line); background: #fff; color: var(--ui-ink); box-shadow: none; font-size: 14px; font-weight: 500; }
.technology-tab-index { font-size: 14px; font-weight: 500; color: #6e828e; background: none; }
.technology-tab-title { padding-inline: 8px; }
.technology-tab-arrow { font-size: 22px; color: #6e828e; }
.technology-content [role="tab"]:hover { border-color: #9aaeb8; background: #e9eeee; color: var(--ui-ink); }
.technology-content [role="tab"][aria-selected="true"] { border-color: #15384c; background: #15384c; color: #fff; box-shadow: inset 3px 0 #e0c080; }
.technology-content [role="tab"][aria-selected="true"] :is(.technology-tab-index, .technology-tab-arrow) { color: #e0c080; background: none; }
.technology-card-panel article { min-height: 340px; padding: 40px; border-radius: 12px; box-shadow: none; }
.technology-panel-copy { max-width: 58%; }
.technology-card-panel h2 { font-size: clamp(24px, 2.3vw, 32px); line-height: 1.5; font-weight: 600; }
.technology-card-panel p { font-size: 16px; color: #dce5e9; line-height: 1.95; }

/* Editorial company page keeps the complete supplied business description. */
.about-content { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: 64px; }
.about-label { font-size: 42px; font-weight: 600; margin-bottom: 28px; letter-spacing: 0; }
.about-kicker { color: var(--color-accent); }
.about-content > p:not(.about-kicker):not(.about-label):not([data-about-status]) { max-width: 680px; margin-bottom: 20px; font-size: 16px; color: rgb(255 255 255 / .82); line-height: 2; }
.about-content > .section-link { margin-top: 8px; border-color: var(--ui-ink); background: var(--ui-ink); color: #fff; }
.about-links { gap: 16px; }
.about-links a { min-height: 220px; padding: 24px; border-color: var(--ui-line); border-radius: 12px; background: #fff; box-shadow: none; color: var(--ui-ink); }
.about-links a:hover { background: #e9eeee; border-color: #a8bac0; }
.about-links strong { color: var(--ui-ink); font-size: 20px; }
.about-links a > span:not(.about-card-icon) { color: var(--ui-muted); font-size: 14px; line-height: 1.8; }
.about-card-icon { width: 48px; height: 48px; margin-bottom: 20px; color: var(--ui-ink); background: #edf3f2; box-shadow: none; border: 0; }
.about-card-icon svg { width: 30px; height: 30px; stroke-width: 2; }
.about-links small { color: #738893; font-size: 22px; }

/* Project controls remain distinct from the photographic stage. */
.projects-content [data-carousel] { grid-template-columns: 44px minmax(60px, .2fr) minmax(0, 1fr) minmax(60px, .2fr) 44px; gap: 20px; }
.project-current { border-radius: 12px; box-shadow: 0 16px 40px rgb(0 0 0 / .12); }
.project-current figcaption { padding: 54px 24px 22px; font-weight: 500; }
.project-case-nav { gap: 12px; margin-top: 24px; }
.project-case-nav button { padding: 16px; min-height: 68px; font-size: 14px; font-weight: 500; border-radius: 8px; line-height: 1.6; box-shadow: none; }
.projects-content [data-carousel-prev], .projects-content [data-carousel-next] { width: 44px; height: 44px; }

/* Calmer research and news cards, with readable titles and fewer ornaments. */
.research-content, .consulting-content { grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.research-copy, .consulting-copy { padding-top: 24px; }
.research-label, .consulting-label, .contact-label { font-size: clamp(34px, 3.5vw, 46px); font-weight: 600; line-height: 1.3; margin-bottom: 24px; text-shadow: none; }
.research-intro, .consulting-copy > p:not(.consulting-label):not(.consulting-kicker) { font-size: 16px; line-height: 1.9; }
.research-cards, .consulting-cards { gap: 16px; }
.research-card, .consulting-card { padding: 24px; min-height: 190px; border-radius: 10px; border-color: rgb(255 255 255 / .2); background: rgb(9 36 55 / .75); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.research-card strong, .consulting-card-copy strong { font-size: 18px; font-weight: 550; line-height: 1.6; }
.research-card { padding-bottom: 76px; }
.research-card-icon { margin-bottom: 18px; }
.research-card-arrow { left: auto; right: 24px; bottom: 20px; width: 32px; height: 32px; border: 0; background: none; font-size: 24px; }
.research-proof { margin-top: 40px; gap: 18px; }
.research-proof-item { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.research-proof-item strong { font-size: 13px; font-weight: 500; }
.research-proof-item small { font-size: 12px; line-height: 1.65; }
.consulting-card { grid-template-columns: minmax(0, 1fr) 20px; min-height: 126px; gap: 14px; }
.consulting-card-icon, .research-card-icon { width: 40px; height: 40px; border: 0; background: none; box-shadow: none; }
.consulting-card-icon svg, .research-card-icon svg { width: 32px; height: 32px; }
.consulting-card-copy span:empty { display: none; }

/* Contact details: one clear presentation of each phone number. */
.contact-content { grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: 64px; align-items: start; }
.contact-copy { padding-top: 24px; }
.contact-intro { max-width: 360px; font-size: 17px; line-height: 1.9; }
.contact-topics { gap: 12px; margin-top: 28px; font-size: 13px; }
.contact-topics span + span::before { margin-right: 12px; }
.contact-method { grid-template-columns: 32px minmax(0, 1fr) 24px; gap: 18px; min-height: 116px; }
.contact-method-index { font-size: 20px; }
.contact-method-copy { padding-left: 20px; }
.contact-method-copy strong { font-size: 14px; font-weight: 500; }
.contact-method-copy span { font-size: clamp(24px, 2.8vw, 38px); font-weight: 500; letter-spacing: .02em; }
.contact-meta-grid { margin-top: 28px; gap: 24px; }
.contact-meta { font-size: 14px; }
.contact-actions { margin-top: 28px; }
.contact-actions .section-link--primary { background: #e0c080; border-color: #e0c080; }
.phone-sheet__close { width: 44px; height: 44px; }

/* Long-form pages use a quiet reading surface. */
.detail-page:not(.primary-page) .detail-hero { min-height: 0; padding: calc(var(--ui-header) + 64px) var(--ui-gutter) 56px; }
.detail-hero > div { width: min(100%, 1040px); margin-inline: auto; }
.detail-hero h1 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.45; font-weight: 600; }
.detail-hero p:last-child { max-width: 740px; font-size: 16px; line-height: 1.9; }
.detail-layout { width: min(calc(100% - var(--ui-gutter) * 2), 1200px); gap: 32px; margin-block: 40px 72px; }
.detail-content, .aside-card { border-radius: 10px; box-shadow: none; border-color: var(--ui-line); }
.detail-content { padding: 40px; font-size: 17px; line-height: 2; }
.detail-content p { color: #435c68; }
.aside-card nav a { min-height: 44px; font-size: 14px; line-height: 1.7; }

@media (max-width: 1100px) and (min-width: 901px) {
  .home-overview { gap: 12px; }
  .home-overview a { grid-template-columns: 30px minmax(0, 1fr) 16px; padding: 18px 14px; gap: 10px; }
  .home-overview-icon, .home-overview-icon svg { width: 30px; height: 30px; }
  .home-overview small { font-size: 10px; letter-spacing: .06em; }
  .research-content, .consulting-content, .contact-content { gap: 32px; }
  .consulting-card { grid-template-columns: minmax(0, 1fr) 20px; }
  .consulting-card-icon { display: none; }
  .about-content { column-gap: 32px; }
  .about-links { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --ui-header: 64px; --ui-gutter: 24px; }
  .site-header { min-height: var(--ui-header); }
  .primary-navigation { max-height: calc(100dvh - var(--ui-header) - 24px); overflow-y: auto; }
  .home-visual-content { position: relative; top: auto; min-height: 100svh; padding: calc(var(--ui-header) + 40px) 0 32px; grid-template-columns: 1fr; align-content: start; gap: 36px; }
  .home-visual h1 { font-size: 46px; margin-bottom: 16px; }
  .home-position { font-size: 21px; line-height: 1.6; }
  .home-description { margin-top: 16px; font-size: 15px; }
  .home-cta-group { margin-top: 24px; gap: 12px; }
  .home-cta-group .section-link { gap: 18px; padding-inline: 18px; }
  .home-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin-top: 28px; }
  .home-values span { grid-template-columns: 20px auto; min-height: 24px; justify-content: start; }
  .home-values strong { font-size: 12px; }
  .home-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; gap: 14px; }
  .home-overview a { grid-template-columns: 34px minmax(0, 1fr) 20px; min-height: 108px; padding: 20px; gap: 14px; }
  .home-overview-icon, .home-overview-icon svg { width: 34px; height: 34px; }
  .home-overview strong { font-size: 18px; }
  .primary-screen-section--wave > :is(.about-content, .technology-content, .projects-content, .research-content, .consulting-content, .contact-content) { padding: 36px 0 0; }
  .page-heading { order: -1; margin-bottom: 20px; }
  .page-heading h1, .projects-content > h1 { font-size: 32px; }
  .page-heading > p:last-child { font-size: 15px; }
  .technology-content [role="tab"] { min-height: 68px; }
  .technology-content [role="tabpanel"] { min-height: 0; }
  .technology-card-panel article { min-height: 0; padding: 28px 24px; }
  .technology-panel-copy { max-width: 100%; }
  .technology-card-panel h2 { font-size: 23px; }
  .technology-card-panel p { font-size: 15px; }
  .technology-card-panel article::before { background: linear-gradient(90deg, rgb(7 39 65 / .96), rgb(7 39 65 / .86)), var(--technology-panel-image); background-size: cover; }
  .about-content, .research-content, .consulting-content, .contact-content { grid-template-columns: 1fr; gap: 24px; }
  .about-content { grid-template-rows: none; }
  .about-label { font-size: 34px; margin-bottom: 4px; }
  .about-content > p:not(.about-kicker):not(.about-label):not([data-about-status]) { margin-bottom: 0; }
  .about-links { grid-column: auto; grid-row: auto; margin-top: 12px; gap: 12px; }
  .about-links a { min-height: 208px; padding: 20px; }
  .research-copy, .consulting-copy, .contact-copy { padding-top: 0; }
  .projects-content [data-carousel] { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px; }
  .projects-content .project-preview { display: none; }
  .project-case-nav { grid-template-columns: 1fr; margin-top: 24px; }
  .research-card { min-height: 180px; }
  .contact-intro { max-width: 100%; font-size: 16px; }
  .contact-method { min-height: 104px; gap: 12px; grid-template-columns: 24px minmax(0, 1fr) 20px; }
  .contact-method-copy { padding-left: 12px; }
  .contact-method-copy span { font-size: clamp(22px, 6.2vw, 30px); letter-spacing: 0; }
  .contact-meta-grid { grid-template-columns: 1fr; }
  .detail-page:not(.primary-page) .detail-hero { padding-top: calc(var(--ui-header) + 40px); padding-bottom: 36px; }
  .detail-layout { grid-template-columns: 1fr; gap: 24px; margin-block: 24px 40px; }
  .detail-content { padding: 24px; font-size: 16px; }
  .detail-aside { position: static; }
}

@media (max-width: 520px) {
  .home-overview { grid-template-columns: 1fr; gap: 12px; }
  .home-overview a { min-height: 96px; }
  .home-visual h1 { font-size: 40px; }
  .home-kicker { font-size: 10px; letter-spacing: .18em; }
  .home-position { max-width: 300px; font-size: 21px; }
  .home-position > span { display: block; }
  .home-description br { display: none; }
  .home-cta-group .section-link { gap: 12px; font-size: 14px; padding-inline: 16px; }
  .about-links, .research-cards, .consulting-cards { grid-template-columns: 1fr; }
  .about-links a { min-height: 180px; }
  .projects-content [data-carousel] { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .project-current { grid-column: 1 / -1; grid-row: 1; }
  .projects-content [data-carousel-prev] { grid-column: 1; grid-row: 2; }
  .projects-content [data-carousel-next] { grid-column: 3; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .home-overview a, .home-cta-group a, .technology-content [role="tab"] { transition: none; transform: none; }
}

/* Photographic entry cards, matching the six-panel reference. */
.home-page--single .home-visual-content { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.home-page--single .home-overview { gap: 16px; }
.home-page--single .home-overview a {
  position: relative; isolation: isolate; display: block; min-height: 184px;
  padding: 24px; overflow: hidden; border-radius: 5px;
  border-color: rgb(204 230 238 / .36); background: #123649;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.home-card-photo {
  position: absolute; inset: 0; z-index: -1;
  background-image: url("huacheng_assets/home-cards-atlas.png");
  background-size: 200% 300%; background-position: var(--tile-x) var(--tile-y);
  transition: transform .35s ease;
}
.home-card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(5 36 51 / .62), rgb(5 36 51 / .15) 75%); }
.home-page--single .home-overview a:hover .home-card-photo { transform: scale(1.035); }
.home-page--single .home-overview-copy { position: relative; display: block; z-index: 1; }
.home-card-number { display: block; margin-bottom: 12px; font-size: 12px; color: #c5dce3; letter-spacing: .08em; }
.home-page--single .home-overview strong { display: block; font-size: clamp(21px, 1.8vw, 28px); font-weight: 600; line-height: 1.3; letter-spacing: .06em; }
.home-page--single .home-overview small { margin-top: 7px; font-size: 10px; letter-spacing: .2em; color: #d6e6ec; }
.home-card-description { display: block; margin-top: 17px; padding-right: 20px; font-size: 12px; line-height: 1.6; color: #d6e6ec; }
.home-card-description::before { content: ""; display: block; width: 23px; height: 1px; margin-bottom: 12px; background: #a6c5d0; }
.home-page--single .home-overview-arrow { position: absolute; right: 20px; bottom: 22px; width: 24px; height: 24px; z-index: 2; color: #fff; }
.home-page--single .home-overview-arrow svg { width: 24px; height: 24px; stroke-width: 1.8; }
@media (max-width: 1100px) and (min-width: 901px) {
  .home-page--single .home-overview a { padding: 18px; min-height: 178px; }
  .home-page--single .home-overview strong { font-size: 21px; }
  .home-card-description { font-size: 11px; }
}
@media (max-width: 900px) {
  .home-page--single .home-visual-content { grid-template-columns: 1fr; }
  .home-page--single .home-overview a { min-height: 192px; }
}
@media (max-width: 520px) {
  .home-page--single .home-overview { grid-template-columns: 1fr; gap: 14px; }
  .home-page--single .home-overview a { min-height: 188px; padding: 22px 24px; }
  .home-page--single .home-overview strong { font-size: 26px; }
  .home-page--single .home-overview small { font-size: 11px; }
  .home-card-description { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-card-photo { transition: none; }
  .home-page--single .home-overview a:hover .home-card-photo { transform: none; }
}

.home-card-number, .home-card-description { font-weight: 400; }

/* Complete supplied company mark, including its original slogan. */
:root { --ui-header: 128px; }
.site-header { min-height: var(--ui-header); }
.brand-mark { gap: 0; }
.brand-filter-defs { position: absolute; pointer-events: none; }
.brand-full-logo { display: block; width: 118px; height: 118px; object-fit: contain; }
.site-header--home .brand-full-logo { filter: url("#brand-white"); clip-path: inset(1.5% 0); }
.detail-page .brand-full-logo { filter: url("#brand-color"); clip-path: inset(1.5% 0); }
.about-links a { padding-bottom: 80px; }
.about-links .about-card-chevron {
  position: absolute; right: 24px; bottom: 22px; display: grid;
  place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: #12385b; background: #e4f0f8; font-size: inherit;
}
.about-card-chevron .direction-chevron { width: 17px; height: 21px; stroke-width: 1.8; }
@media (max-width: 900px) {
  :root { --ui-header: 104px; }
  .brand-full-logo { width: 96px; height: 96px; }
}
@media (max-width: 520px) {
  :root { --ui-header: 96px; }
  .brand-full-logo { width: 88px; height: 88px; }
}
