/* =========================================================
   兰州华帜天成官网 V12
   视觉来源：微生态研发平台图文替换版
   内容与路由：公司网页原站
   ========================================================= */

:root {
  --brand: #1268ed;
  --brand-strong: #0752bd;
  --brand-deep: #073b91;
  --navy: #03245e;
  --ink: #073374;
  --text: #284a78;
  --muted: #647c9d;
  --canvas: #f5f8ff;
  --tint: #edf5ff;
  --surface: #ffffff;
  --line: #d8e6fb;
  --line-strong: #bdd4f8;
  --success: #0f8a69;
  --max-w: 1210px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 8px 25px rgba(26, 77, 146, 0.09);
  --shadow: 0 16px 42px rgba(18, 76, 154, 0.12);
  --shadow-hover: 0 22px 52px rgba(18, 76, 154, 0.18);
  --ease: cubic-bezier(.2, .75, .25, 1);
  --header-h: 80px;

  /* 兼容原站变量 */
  --primary: var(--brand);
  --primary-hover: var(--brand-strong);
  --accent-blue: var(--brand);
  --paper: var(--canvas);
  --paper-alt: var(--tint);
  --paper-warm: var(--tint);
  --ash: var(--muted);
  --sp-xs: 8px;
  --sp-sm: 16px;
  --sp-md: 32px;
  --sp-lg: 64px;
  --sp-xl: 112px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC",
    "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::after {
  display: none !important;
}

body.menu-open {
  overflow: hidden;
}

main {
  display: block;
  overflow: clip;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 40px), var(--max-w));
  max-width: var(--max-w);
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  border-bottom: 1px solid rgba(18, 104, 237, 0.09);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 18px rgba(7, 51, 116, 0.07);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  transition: height .25s var(--ease), box-shadow .25s ease,
    background-color .25s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 9px 30px rgba(7, 51, 116, 0.12);
}

.header-inner {
  width: min(calc(100% - 40px), var(--max-w));
  max-width: var(--max-w);
  height: 100%;
  margin-inline: auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  padding: 0;
  text-decoration: none;
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  box-shadow: none;
  transform: none;
}

.header-logo:hover,
.footer-logo:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}

.header-logo {
  transition: opacity .2s ease;
}

.header-logo:hover {
  opacity: .86;
}

.brand-emblem {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #2379f4, #0759d3);
  box-shadow: 0 9px 20px rgba(18, 104, 237, 0.22);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: #7b8798;
  font-size: 10px;
  letter-spacing: .07em;
}

.header-nav {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.nav-item {
  position: relative;
  min-height: var(--header-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 0;
  color: #202a39;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  transition: color .2s ease;
}

.nav-item > a {
  color: inherit;
  text-decoration: none;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 13px;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform .25s var(--ease);
}

.nav-item:hover,
.nav-item.active {
  color: var(--brand);
  background: transparent;
}

.nav-item:hover::before,
.nav-item.active::before {
  transform: translateX(-50%) scaleX(1);
}

.nav-item.has-dropdown {
  cursor: default;
  gap: 5px;
}

.nav-item.has-dropdown::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 0 4px 1px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.nav-item.has-dropdown:hover::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.nav-item.has-dropdown.open::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.dropdown {
  position: absolute;
  top: calc(100% - 6px);
  left: 50%;
  z-index: 30;
  min-width: 176px;
  padding: 9px;
  border: 1px solid rgba(18, 104, 237, .12);
  border-radius: 15px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 44px rgba(7, 51, 116, .15);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .2s ease, transform .25s var(--ease),
    visibility .2s;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.dropdown a {
  display: block;
  padding: 10px 13px;
  border-radius: 9px;
  color: #314d73;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease,
    transform .2s ease;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  color: var(--brand);
  background: var(--tint);
  transform: translateX(2px);
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions::before {
  display: none;
}

.header-search {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 104, 237, .1);
  border-radius: 50%;
  background: #eef5ff;
  color: var(--brand-deep);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease,
    transform .2s ease;
}

.header-search:hover {
  color: #fff;
  background: var(--brand);
  transform: translateY(-1px);
}

.header-search-icon {
  display: grid;
  place-items: center;
  opacity: 1;
}

.header-cta {
  min-height: 42px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #287cf2, #0759d3);
  box-shadow: 0 8px 20px rgba(18, 104, 237, 0.24);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease,
    box-shadow .2s ease;
}

.header-cta:hover {
  background: var(--brand-strong);
  box-shadow: 0 11px 25px rgba(18, 104, 237, 0.27);
  transform: translateY(-2px);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: #eef5ff;
  cursor: pointer;
}

.nav-toggle span {
  width: 21px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Type, sections and buttons ---------- */

.section {
  position: relative;
  padding: 76px 0;
  background: var(--canvas);
}

.section--tint,
.section.section--tint {
  background:
    radial-gradient(circle at 92% 10%, rgba(77, 155, 255, .10), transparent 28%),
    var(--tint);
}

.section-heading {
  position: relative;
  max-width: 780px;
  margin: 0 0 34px;
  padding-left: 20px;
}

.section-heading::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 5px;
  left: 0;
  width: 5px;
  min-height: 28px;
  border-radius: 4px;
  background: var(--brand);
}

.section-heading--sub {
  margin-top: 54px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: .10em;
}

.section-heading h2,
.cta-band h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.26;
  font-weight: 800;
  letter-spacing: -.02em;
}

.section-heading > p:last-child {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--text);
  line-height: 1.75;
}

h3 {
  color: var(--ink);
}

.cta-button {
  min-height: 46px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 9px 23px rgba(18, 104, 237, .22);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .22s var(--ease), background-color .2s ease,
    box-shadow .22s ease;
}

.cta-button:hover {
  color: #fff;
  background: var(--brand-strong);
  box-shadow: 0 13px 30px rgba(18, 104, 237, .28);
  transform: translateY(-2px);
}

.cta-button--ghost {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(3, 36, 94, .25);
  box-shadow: none;
  backdrop-filter: blur(5px);
}

.cta-button--ghost:hover {
  background: rgba(255, 255, 255, .16);
}

.text-link {
  color: var(--brand-strong);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cta-button:focus-visible,
.header-cta:focus-visible,
.header-search:focus-visible,
.nav-toggle:focus-visible,
.nav-item:focus-visible,
.text-link:focus-visible,
.home-card:focus-visible,
.news-entry a:focus-visible {
  outline: 3px solid rgba(18, 104, 237, .28);
  outline-offset: 4px;
}

/* ---------- Home hero ---------- */

.home-hero-shell {
  padding: 22px 0 18px;
  background: var(--canvas);
}

.home-hero {
  position: relative;
  width: min(calc(100% - 40px), var(--max-w));
  height: clamp(480px, 43vw, 535px);
  max-height: 535px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
}

.home-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .75s ease, visibility .75s;
}

.home-hero__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.home-hero__media {
  position: absolute;
  inset: 0;
}

.home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  transition: transform 6s linear;
}

.home-hero__slide.is-active .home-hero__media img {
  transform: scale(1.045);
}

.home-hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg,
      rgba(2, 25, 72, .08) 0%,
      rgba(2, 26, 76, .40) 20%,
      rgba(1, 24, 72, .82) 36%,
      rgba(1, 23, 70, .68) 54%,
      rgba(0, 18, 61, .12) 78%,
      rgba(0, 14, 48, .04) 100%);
}

.home-hero__slide--test::before {
  background:
    linear-gradient(90deg, rgba(2, 25, 72, .88) 0%,
      rgba(2, 25, 72, .74) 42%, rgba(2, 25, 72, .20) 75%),
    linear-gradient(0deg, rgba(3, 36, 94, .15), rgba(3, 36, 94, .15));
}

.home-hero__slide--test .home-hero__media img {
  object-position: center 47%;
}

.home-hero__content {
  position: absolute;
  top: 50%;
  left: clamp(32px, 16vw, 225px);
  z-index: 2;
  width: min(550px, 46%);
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 20, 65, .42);
  transform: translateY(calc(-50% + 18px));
  opacity: 0;
  transition: opacity .7s ease .14s, transform .7s var(--ease) .14s;
}

.home-hero__slide.is-active .home-hero__content {
  opacity: 1;
  transform: translateY(-50%);
}

.home-hero__content .eyebrow {
  color: rgba(255, 255, 255, .82);
}

.home-hero__content h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(35px, 3.5vw, 48px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: .015em;
}

.home-hero__content > p:not(.eyebrow) {
  max-width: 540px;
  margin: 16px 0 24px;
  color: rgba(255, 255, 255, .92);
  font-size: 15px;
  line-height: 1.85;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 10;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.home-hero__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: width .25s ease, border-radius .25s ease,
    background-color .25s ease;
}

.home-hero__dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: #fff;
}

/* ---------- Home sections ---------- */

.home-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.home-card {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.home-tech-card {
  position: relative;
  min-height: 248px;
  padding: 24px 20px;
  overflow: hidden;
  border: 1px solid rgba(190, 216, 250, .7);
  border-radius: var(--radius-lg);
  background-color: #eaf3ff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s ease,
    border-color .3s ease;
}

.home-tech-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(245, 249, 255, .97) 0%,
    rgba(245, 249, 255, .90) 33%, rgba(245, 249, 255, .42) 56%,
    rgba(245, 249, 255, 0) 78%);
}

.home-tech-card--resource {
  background-image: url("../img/v12-tech-resource.webp");
}

.home-tech-card--platform {
  background-image: url("../img/v12-tech-platform.webp");
}

.home-tech-card--product {
  background-image: url("../img/v12-tech-product.webp");
}

.home-tech-card__content {
  width: 58%;
  max-width: 245px;
}

.home-tech-card h3 {
  margin: 0 0 14px;
  color: var(--brand-deep);
  font-size: 22px;
  line-height: 1.3;
  font-weight: 800;
}

.home-tech-card p {
  margin: 0;
  color: #244d84;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 600;
}

.home-card__link {
  width: max-content;
  margin: 14px 0 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 800;
}

.home-card:hover .home-tech-card {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.home-card:hover .home-card__link span {
  transform: translateX(3px);
}

.home-card__link span {
  transition: transform .2s ease;
}

.home-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-service-card {
  position: relative;
  min-height: 244px;
  padding: 22px 18px;
  overflow: hidden;
  border: 1px solid rgba(190, 216, 250, .72);
  border-radius: var(--radius-lg);
  background-color: #eef5ff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s ease;
}

.home-service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(245, 249, 255, .96) 0%,
    rgba(245, 249, 255, .82) 42%, rgba(245, 249, 255, .15) 78%);
}

.home-service-card:nth-child(1) {
  background-image: url("../img/v12-tech-resource.webp");
}

.home-service-card:nth-child(2) {
  background-image: url("../img/v12-tech-platform.webp");
}

.home-service-card:nth-child(3) {
  background-image: url("../img/v12-tech-product.webp");
}

.home-service-card:nth-child(4) {
  background-image: url("../img/茶饮.webp");
}

.home-service-card h3 {
  width: 80%;
  margin: 0;
  color: var(--brand-deep);
  font-size: 19px;
  line-height: 1.45;
}

.home-service-card span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 800;
}

.home-service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.home-about-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: stretch;
}

.home-about-copy,
.home-about-media,
.home-news-feature,
.home-news-side {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.home-about-copy {
  padding: clamp(28px, 4vw, 48px);
}

.home-about-copy h3 {
  margin: 0 0 16px;
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.35;
}

.home-about-copy > p {
  margin: 0 0 24px;
}

.home-stat-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-stat {
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--tint);
  text-align: center;
}

.home-stat strong {
  display: block;
  color: var(--brand);
  font-size: 26px;
  line-height: 1.2;
}

.home-stat span {
  color: var(--muted);
  font-size: 12px;
}

.home-about-media {
  position: relative;
  min-height: 410px;
}

.home-about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-about-media__caption {
  position: absolute;
  inset: auto 18px 18px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 13px;
  background: rgba(3, 36, 94, .78);
  backdrop-filter: blur(8px);
  color: #fff;
}

.home-about-media__caption strong {
  display: block;
  font-size: 18px;
}

.home-about-media__caption span {
  font-size: 13px;
  opacity: .86;
}

.home-news-list {
  display: grid;
  gap: 18px;
}

.home-news-list .news-entry {
  grid-template-columns: minmax(220px, 34%) 1fr;
}

.home-news-more {
  margin-top: 24px;
}

/* ---------- Page hero ---------- */

.page-hero {
  position: relative;
  width: min(calc(100% - 40px), var(--max-w));
  min-height: 390px;
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow-sm);
  color: #fff;
  isolation: isolate;
}

.page-hero--rd {
  background-image: url("../img/rd-banner.webp");
  background-position: center;
}

.page-hero--products {
  background-image: url("../img/products-banner.webp");
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(1, 28, 78, .92) 0%,
    rgba(2, 37, 101, .76) 43%, rgba(2, 33, 90, .26) 78%,
    rgba(2, 33, 90, .12) 100%);
}

.page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 64px), 1080px);
  max-width: 620px;
  margin-left: clamp(30px, 7vw, 95px);
  color: #fff;
}

.page-hero > .container .page-hero__content {
  width: min(620px, 58%);
  margin-left: clamp(20px, 5vw, 72px);
}

.page-hero__content .eyebrow {
  width: max-content;
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  letter-spacing: .08em;
}

.page-hero__content h1 {
  margin: 12px 0 14px;
  color: #fff;
  font-size: clamp(36px, 4.3vw, 52px);
  line-height: 1.24;
  font-weight: 800;
  letter-spacing: .01em;
  text-shadow: 0 3px 18px rgba(0, 18, 61, .34);
}

.page-hero__content > p:last-child {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, .90);
  font-size: 16px;
  line-height: 1.8;
}

/* ---------- Shared cards and layouts ---------- */

.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.split-layout--story {
  grid-template-columns: .9fr 1.1fr;
}

.content-card,
.product-panel,
.contact-card,
.process-card,
.mission-card,
.patent-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.content-card,
.product-panel {
  padding: clamp(24px, 3vw, 36px);
}

.content-card p,
.product-panel p {
  margin: 0 0 16px;
}

.content-card p:last-child,
.product-panel p:last-child {
  margin-bottom: 0;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #dfeaf9;
}

.media-frame img,
.resource-showcase__media img,
.product-showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}

.media-frame:hover img,
.resource-showcase__media:hover img,
.product-showcase__media:hover img {
  transform: scale(1.035);
}

.resource-showcase__media,
.product-showcase__media {
  min-height: 380px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.resource-showcase .content-card,
.product-showcase .product-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-showcase--reverse .product-showcase__media {
  order: 2;
}

.product-showcase--reverse .product-panel {
  order: 1;
}

.bullet-list {
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-left: 27px;
  color: var(--ink);
  font-weight: 600;
}

.bullet-list li::before {
  content: "✓";
  position: absolute;
  top: 1px;
  left: 0;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e5f0ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.number-badge,
.mission-card__index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #2379f4, #0759d3);
  box-shadow: 0 8px 18px rgba(18, 104, 237, .20);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

/* ---------- R&D ---------- */

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.platform-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s ease,
    border-color .3s ease;
}

.platform-card__media {
  height: 190px;
  overflow: hidden;
  background: #dbe9fb;
}

.platform-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.platform-card__body {
  position: relative;
  min-height: 184px;
  padding: 26px 22px 24px;
}

.platform-card__body .number-badge {
  position: absolute;
  top: -23px;
  left: 22px;
}

.platform-card h3 {
  margin: 7px 0 10px;
  font-size: 20px;
}

.platform-card p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.platform-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
}

.platform-card:hover .platform-card__media img {
  transform: scale(1.06);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.advantage-card {
  min-height: 235px;
  display: grid;
  grid-template-columns: 42% 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}

.advantage-card__media {
  min-height: 235px;
  overflow: hidden;
}

.advantage-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.advantage-card__body {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.advantage-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.advantage-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.advantage-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.advantage-card:hover img {
  transform: scale(1.05);
}

.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  gap: 18px;
}

.facility-grid figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e7eff9;
  box-shadow: var(--shadow-sm);
}

.facility-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.facility-grid figure:hover img {
  transform: scale(1.04);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.partner-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s ease, transform .25s var(--ease),
    box-shadow .25s ease;
}

.partner-card__logo {
  height: 82px;
  padding: 12px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #f4f8ff;
}

.partner-card__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partner-card h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

.partner-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

.partner-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* ---------- Products ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-card {
  position: relative;
  min-height: 225px;
  padding: 26px 22px;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s ease;
}

.process-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(18, 104, 237, .10), transparent 70%);
}

.process-card h3 {
  margin: 22px 0 9px;
  font-size: 20px;
}

.process-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.process-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.gut-test-panel {
  padding: clamp(26px, 4vw, 46px);
  overflow: hidden;
  border: 1px solid #bcd4f8;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 96% 4%, rgba(88, 166, 255, .22), transparent 28%),
    linear-gradient(145deg, #ffffff, #eaf3ff);
  box-shadow: var(--shadow);
}

.gut-test-panel__heading {
  margin-bottom: 28px;
}

.gut-test-panel__heading h3 {
  margin: 0;
  font-size: 26px;
}

.test-timeline {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.test-step {
  position: relative;
  padding: 18px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  text-align: center;
}

.test-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -13px;
  z-index: 3;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  transform: translateY(-50%);
}

.test-step__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 9px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--tint);
  color: var(--brand);
  font-size: 22px;
}

.test-step strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.test-step span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.trust-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.trust-item {
  min-height: 50px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .78);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.gut-test-panel__action {
  margin-top: 26px;
}

/* ---------- About ---------- */

.mission-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mission-card {
  min-height: 205px;
  padding: 25px 22px;
  transition: transform .3s var(--ease), box-shadow .3s ease;
}

.mission-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.mission-card p {
  margin: 0;
  color: var(--muted);
}

.mission-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 74px;
  width: 2px;
  background: linear-gradient(var(--brand), #a7c8f6);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 30px;
}

.timeline-item time {
  position: relative;
  z-index: 2;
  width: 76px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(18, 104, 237, .20);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.timeline-item > div {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.timeline-item h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.timeline-item p {
  margin: 0;
}

.team-grid {
  display: grid;
  gap: 26px;
}

.team-card {
  padding: clamp(24px, 4vw, 38px);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.team-card__profile {
  align-self: start;
}

.team-card__portrait {
  height: 300px;
  margin: 0 0 20px;
}

.team-card__portrait img {
  object-position: center top;
}

.team-card__identity h3 {
  margin: 0;
  font-size: 28px;
}

.team-card__identity p:not(.eyebrow) {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.team-bio {
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
}

.team-bio p {
  margin: 0;
}

.project-list {
  display: grid;
  gap: 15px;
}

.project-list__item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  align-items: start;
}

.project-list__item time {
  color: var(--brand);
  font-size: 20px;
  font-weight: 900;
}

.project-list__item h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.patent-card {
  margin-top: 22px;
  padding: 26px 30px;
  border-left: 5px solid var(--brand);
}

.patent-card h3 {
  margin: 0 0 7px;
}

.patent-card p {
  margin: 0;
}

.honor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.honor-card {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.honor-card .media-frame {
  height: 240px;
  display: grid;
  place-items: center;
  background: #f1f6ff;
}

.honor-card .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.honor-card figcaption {
  padding: 13px 6px 3px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.honor-card--gallery .media-frame {
  height: 190px;
}

/* ---------- About: image-first layout and lossless framing ---------- */
.page-hero--about .page-hero__media img {
  object-position: center 42%;
}

.split-layout--story {
  grid-template-columns: 1fr;
  gap: 24px;
}

.split-layout--story > .media-frame {
  width: 100%;
  aspect-ratio: 1421 / 565;
  min-height: 0;
  background: #edf4fc;
  box-shadow: var(--shadow-sm);
}

.split-layout--story > .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.split-layout--story > .media-frame:hover img {
  transform: none;
}

.team-card {
  grid-template-columns: 180px 1fr;
  align-items: center;
}

.team-card__portrait {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  aspect-ratio: 1;
  padding: 4px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, #fff 0%, #edf4fc 72%);
  box-shadow: 0 0 0 1px rgba(18,104,237,.14), 0 10px 24px rgba(7,52,112,.12);
}

.team-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  border-radius: 50%;
}

.team-card:nth-child(2) .team-card__portrait img {
  object-position: center 18%;
}

.team-card__portrait:hover img {
  transform: scale(1.025);
}

.team-card__identity {
  text-align: center;
}

.patent-card {
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  align-items: center;
}

.patent-card .media-frame {
  min-height: 210px;
  background: #f4f8fd;
}

.patent-card .media-frame img {
  object-fit: contain;
}

.honor-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: none;
  margin-inline: auto;
  gap: 18px;
}

.honor-card {
  display: flex;
  flex-direction: column;
}

.honor-card .media-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  padding: 10px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, #f8fbff, #eaf2fc);
  cursor: zoom-in;
}

.honor-card .media-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.honor-card .media-frame:hover img {
  transform: none;
}

.honor-card--fit-tall .media-frame img {
  width: auto;
  height: 86%;
  max-width: 82%;
  max-height: 86%;
  object-fit: contain;
  object-position: center;
  transform: none !important;
}

.honor-card figcaption {
  flex: 1;
  padding: 13px 6px 3px;
  text-align: center;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.honor-card--gallery .media-frame {
  height: auto;
  aspect-ratio: 3 / 2;
  padding: 0;
  background: #eaf2fc;
}

.honor-card--gallery .media-frame img {
  object-fit: contain;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  min-height: 230px;
  padding: 25px 22px;
  transition: transform .3s var(--ease), box-shadow .3s ease;
}

.contact-card__icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--tint);
  color: var(--brand);
}

.contact-card h3 {
  margin: 0 0 7px;
  font-size: 18px;
  line-height: 1.45;
}

.contact-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-card a {
  color: var(--ink);
  text-decoration: none;
}

.contact-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  gap: 24px;
  justify-content: center;
}

.qr-card {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.qr-card .media-frame {
  width: min(100%, 240px);
  aspect-ratio: 1;
  margin-inline: auto;
  border: 8px solid #f3f7ff;
}

.qr-card .media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-card figcaption h3 {
  margin: 17px 0 3px;
  font-size: 19px;
}

.qr-card figcaption p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.map-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.map-card__visual {
  height: 420px;
  display: block;
  border-radius: 0;
}

.map-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-card__overlay {
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(3, 36, 94, .86);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.map-card__body {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.map-card__body h3 {
  margin: 0 0 4px;
}

.map-card__body p {
  margin: 0;
  color: var(--muted);
}

.map-card__actions,
.cta-band__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ---------- News ---------- */

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 30px;
  align-items: start;
}

.news-list {
  display: grid;
  gap: 20px;
}

.news-entry,
.news-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s ease,
    border-color .3s ease;
}

.news-entry[hidden],
.news-item[hidden] {
  display: none !important;
}

.news-thumb {
  width: calc(100% - 20px);
  min-height: 208px;
  margin: 10px auto;
  align-self: stretch;
  overflow: hidden;
  border: 1px solid rgba(18, 104, 237, .10);
  border-radius: 14px;
  background: #edf4fc;
}

.news-thumb a {
  width: 100%;
  height: 100%;
  display: block;
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .35s var(--ease);
}

.news-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-date,
.news-tag {
  width: max-content;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7f1ff;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

.news-body h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.45;
}

.news-body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.news-excerpt {
  margin: 11px 0 14px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.news-entry:hover,
.news-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.news-entry:hover .news-thumb img,
.news-item:hover .news-thumb img {
  transform: scale(1.055);
}

.news-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.news-sidebar h3 {
  margin: 0 0 16px;
}

.news-filter-list {
  display: grid;
  gap: 8px;
}

.news-filter {
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-radius: 10px;
  background: #f2f6fc;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.news-filter:hover,
.news-filter.is-active {
  background: var(--brand);
  color: #fff;
}

.article-shell {
  width: min(calc(100% - 40px), 940px);
  margin-inline: auto;
}

.article-card {
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.article-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.article-header h1 {
  max-width: 820px;
  margin: 14px auto 10px;
  color: var(--ink);
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.35;
}

.article-meta {
  margin: 0;
  color: var(--muted);
}

.article-body {
  padding-top: 30px;
  color: #27466e;
  font-size: 16px;
  line-height: 1.9;
}

.article-hero {
  width: calc(100% - 32px);
  max-height: 540px;
  margin: 30px auto 0;
  padding: 8px;
  border: 1px solid rgba(18, 104, 237, .10);
  border-radius: var(--radius);
  background: #edf4fc;
  box-shadow: var(--shadow-sm);
}

.article-hero img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 6px);
}

.article-body h2,
.article-body h3 {
  margin: 34px 0 12px;
  color: var(--ink);
}

.article-body p {
  margin: 0 0 18px;
}

.article-body img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 26px auto;
  border-radius: 14px;
}

.article-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: var(--tint);
}

.article-nav {
  margin-top: 38px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.article-nav a {
  color: var(--brand-strong);
  font-weight: 700;
  text-decoration: none;
}

.article-return {
  margin-top: 28px;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 20%, rgba(66, 145, 255, .38), transparent 27%),
    linear-gradient(125deg, #052d70, #0a56bd);
  box-shadow: 0 18px 45px rgba(3, 36, 94, .22);
  color: #fff;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
}

.cta-band > * {
  position: relative;
  z-index: 2;
}

.cta-band .eyebrow,
.cta-band h2,
.cta-band p {
  color: #fff;
}

.cta-band h2 {
  margin: 0 0 7px;
}

.cta-band p {
  max-width: 680px;
  margin: 0;
  opacity: .86;
}

.cta-band .cta-button {
  flex: 0 0 auto;
  border-color: #fff;
  background: #fff;
  box-shadow: none;
  color: var(--brand-strong);
}

.cta-band .cta-button:hover {
  background: #eef5ff;
  color: var(--brand-strong);
}

.cta-band .text-link {
  color: #fff;
}

/* ---------- Footer ---------- */

.footer {
  padding: 58px 0 0;
  border-top: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 112, 226, .20), transparent 30%),
    var(--navy);
  color: #fff;
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max-w));
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.7fr .72fr .72fr 1.05fr;
  gap: 46px;
}

.brand-emblem--footer {
  background: rgba(255, 255, 255, .12);
  box-shadow: none;
}

.brand-copy--footer strong {
  color: #fff;
}

.brand-copy--footer small {
  color: #aab4c3;
}

.footer-brand .footer-logo {
  margin-bottom: 18px;
}

.footer-brand > p {
  max-width: 390px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, .70);
  font-size: 14px;
  line-height: 1.75;
}

.footer-consult {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.footer-col h4 {
  margin: 6px 0 17px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .06em;
}

.footer-col a {
  margin-bottom: 10px;
  display: block;
  color: rgba(255, 255, 255, .69);
  font-size: 13px;
  line-height: 1.65;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

.footer-col a:hover {
  padding-left: 0;
  color: #fff;
  transform: translateX(3px);
}

.footer-bottom {
  width: min(calc(100% - 40px), var(--max-w));
  max-width: var(--max-w);
  margin: 42px auto 0;
  padding: 20px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  text-align: left;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, .56);
  font-size: 12px;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ---------- Search and back-to-top ---------- */

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  padding: 110px 20px 30px;
  display: none;
  align-items: flex-start;
  justify-content: center;
  background: rgba(1, 19, 55, .82);
}

.search-overlay.open {
  display: flex;
}

.search-panel {
  width: min(100%, 720px);
  max-height: calc(100vh - 150px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 16, 48, .28);
}

.search-input-wrap {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 18px;
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.search-input {
  min-width: 0;
  flex: 1;
  height: 50px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faff;
  color: var(--ink);
  outline: none;
}

.search-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(18, 104, 237, .12);
}

.search-close {
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--tint);
  color: var(--ink);
  cursor: pointer;
}

.search-results {
  padding: 8px 18px 18px;
}

.search-result-item {
  padding: 16px 4px;
  display: block;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.result-title {
  color: var(--ink);
  font-weight: 800;
}

.result-excerpt,
.result-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.search-no-results,
.search-loading,
.search-error {
  padding: 26px 0;
  color: var(--muted);
  text-align: center;
}

#backToTop {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 900;
  width: 48px;
  height: 48px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 12px 26px rgba(18, 104, 237, .28);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .25s ease, visibility .25s,
    transform .25s var(--ease), background-color .2s ease;
}

#backToTop.is-visible,
#backToTop[style*="opacity: 1"] {
  opacity: 1 !important;
  visibility: visible;
  transform: translateY(0) !important;
}

#backToTop:hover {
  background: var(--brand-strong);
  transform: translateY(-3px) !important;
}

/* ---------- Reveal motion ---------- */

.reveal,
.stagger-children > .stagger-item,
.stagger-children > .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s var(--ease);
}

.reveal.visible,
.stagger-children.visible > .stagger-item,
.stagger-children.visible > .reveal,
.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > :nth-child(2) { transition-delay: .04s; }
.stagger-children > :nth-child(3) { transition-delay: .08s; }
.stagger-children > :nth-child(4) { transition-delay: .12s; }
.stagger-children > :nth-child(5) { transition-delay: .16s; }
.stagger-children > :nth-child(6) { transition-delay: .20s; }
.stagger-children > :nth-child(7) { transition-delay: .24s; }
.stagger-children > :nth-child(8) { transition-delay: .28s; }
.stagger-children > :nth-child(9) { transition-delay: .32s; }

/* ---------- Responsive ---------- */

@media (min-width: 1121px) {
  .header-nav {
    padding: 5px;
    gap: 2px;
    border: 1px solid rgba(18, 104, 237, .07);
    border-radius: 16px;
    background: rgba(242, 247, 255, .72);
  }

  .nav-item {
    min-height: 42px;
    padding-inline: 13px;
    border-radius: 11px;
    font-size: 14px;
  }

  .nav-item::before {
    bottom: 5px;
    width: 18px;
    height: 2px;
  }

  .nav-item:hover {
    background: rgba(255, 255, 255, .82);
  }

  .nav-item.active {
    color: var(--brand-deep);
    background: #fff;
    box-shadow: 0 4px 13px rgba(7, 51, 116, .09);
  }

  .dropdown {
    top: calc(100% + 11px);
  }

  .header-actions {
    position: relative;
    padding-left: 13px;
  }

  .header-actions::before {
    content: "";
    position: absolute;
    left: 0;
    width: 1px;
    height: 25px;
    display: block;
    background: rgba(7, 51, 116, .12);
  }
}

@media (max-width: 1120px) {
  :root {
    --header-h: 74px;
  }

  .header-inner {
    width: min(calc(100% - 32px), var(--max-w));
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-emblem {
    width: 45px;
    height: 45px;
    flex-basis: 45px;
  }

  .header-nav {
    position: fixed;
    top: var(--header-h);
    right: 16px;
    left: 16px;
    max-height: calc(100vh - var(--header-h) - 16px);
    margin: 0;
    padding: 13px;
    display: none;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 0 0 18px 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .header-nav.open {
    display: flex;
  }

  .nav-item {
    min-height: 48px;
    padding: 0 14px;
    justify-content: flex-start;
    border-radius: 10px;
  }

  .nav-item::before {
    display: none;
  }

  .nav-item:hover,
  .nav-item.active {
    background: var(--tint);
  }

  .nav-item.has-dropdown {
    position: relative;
    min-height: 48px;
    padding-right: 42px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .nav-item.has-dropdown::after {
    position: absolute;
    top: 19px;
    right: 18px;
    margin: 0;
  }

  .nav-item.has-dropdown > a {
    flex: 1;
  }

  .dropdown {
    position: static;
    width: 100%;
    min-width: 100%;
    margin: 0;
    padding: 7px 0 0 12px;
    display: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item.has-dropdown.open .dropdown,
  .dropdown.open {
    display: block;
  }

  .nav-item.has-dropdown:hover .dropdown {
    transform: none;
  }

  .nav-toggle {
    display: flex;
  }

  .home-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .test-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .test-step:nth-child(3)::after {
    display: none;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .honor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .section {
    padding: 62px 0;
  }

  .home-hero {
    height: 470px;
  }

  .home-hero__content {
    left: 34px;
    width: min(580px, calc(100% - 68px));
  }

  .home-hero__slide::before {
    background: linear-gradient(90deg, rgba(1, 24, 72, .86) 0%,
      rgba(1, 24, 72, .74) 58%, rgba(1, 24, 72, .26) 100%);
  }

  .home-tech-grid {
    grid-template-columns: 1fr;
  }

  .home-tech-card {
    min-height: 230px;
  }

  .home-about-layout,
  .split-layout,
  .split-layout--story,
  .news-layout {
    grid-template-columns: 1fr;
  }

  .home-about-media {
    min-height: 340px;
  }

  .product-showcase--reverse .product-showcase__media,
  .product-showcase--reverse .product-panel {
    order: initial;
  }

  .advantage-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .facility-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }

  .facility-grid figure:first-child {
    grid-column: auto;
  }

  .mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-card {
    grid-template-columns: 220px 1fr;
    gap: 26px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-sidebar {
    position: static;
  }

  .news-filter-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .news-filter {
    text-align: center;
  }

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

  .footer-contact {
    grid-column: 2 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --header-h: 68px;
  }

  body {
    font-size: 15px;
  }

  .container,
  .header-inner,
  .footer-inner,
  .footer-bottom {
    width: min(calc(100% - 28px), var(--max-w));
  }

  .header-inner {
    gap: 8px;
  }

  .brand-emblem {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 10px;
    font-size: 24px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy small {
    font-size: 8px;
  }

  .header-actions {
    flex-direction: row;
  }

  .header-search {
    width: 40px;
    height: 40px;
    display: grid;
  }

  .header-cta {
    display: none;
  }

  .header-nav {
    right: 8px;
    left: 8px;
  }

  .home-hero-shell {
    padding-top: 12px;
  }

  .home-hero {
    width: calc(100% - 20px);
    height: 430px;
    border-radius: 14px;
  }

  .home-hero__media img {
    object-position: 58% center;
  }

  .home-hero__slide--test .home-hero__media img {
    object-position: 58% center;
  }

  .home-hero__content {
    left: 22px;
    width: calc(100% - 44px);
  }

  .home-hero__content h1 {
    font-size: clamp(29px, 9vw, 38px);
  }

  .home-hero__content > p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.72;
  }

  .home-hero__actions {
    gap: 10px;
  }

  .home-hero__actions .cta-button {
    min-height: 42px;
    padding-inline: 18px;
    font-size: 14px;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading {
    margin-bottom: 27px;
    padding-left: 16px;
  }

  .section-heading h2,
  .cta-band h2 {
    font-size: 27px;
  }

  .home-tech-card__content {
    width: 68%;
  }

  .home-service-grid,
  .platform-grid,
  .process-grid,
  .contact-grid,
  .mission-grid,
  .trust-grid,
  .honor-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .home-service-card {
    min-height: 220px;
  }

  .home-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero {
    width: calc(100% - 20px);
    min-height: 360px;
    margin-top: 12px;
    border-radius: 14px;
  }

  .page-hero__content,
  .page-hero > .container .page-hero__content {
    width: calc(100% - 32px);
    margin-left: 16px;
  }

  .page-hero__content h1 {
    font-size: 35px;
  }

  .page-hero__content > p:last-child {
    font-size: 14px;
    line-height: 1.7;
  }

  .resource-showcase__media,
  .product-showcase__media {
    min-height: 270px;
  }

  .advantage-card {
    grid-template-columns: 1fr;
  }

  .advantage-card__media {
    min-height: 200px;
  }

  .facility-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .facility-grid figure:first-child {
    grid-column: auto;
  }

  .partner-card {
    grid-template-columns: 84px 1fr;
    gap: 15px;
    padding: 17px;
  }

  .partner-card__logo {
    height: 70px;
  }

  .test-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .test-step:nth-child(3)::after {
    display: grid;
  }

  .test-step:nth-child(2n)::after {
    display: none;
  }

  .team-card {
    grid-template-columns: 1fr;
  }

  .team-card__portrait {
    width: 112px;
    height: 112px;
    margin-inline: auto;
    aspect-ratio: 1;
  }

  .team-card__identity {
    text-align: center;
  }

  .patent-card {
    grid-template-columns: 1fr;
  }

  .patent-card .media-frame {
    min-height: 0;
    aspect-ratio: 3709 / 1518;
  }

  .timeline::before {
    left: 28px;
  }

  .timeline-item {
    grid-template-columns: 58px 1fr;
    gap: 14px;
  }

  .timeline-item time {
    width: 58px;
    height: 40px;
    font-size: 12px;
  }

  .project-list__item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .qr-grid {
    grid-template-columns: 1fr;
  }

  .map-card__visual {
    height: 300px;
  }

  .map-card__body,
  .cta-band,
  .cta-band__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-band .cta-button {
    width: 100%;
  }

  .news-entry,
  .news-item,
  .home-news-list .news-entry {
    grid-template-columns: 1fr;
  }

  .news-thumb {
    width: calc(100% - 16px);
    min-height: 210px;
    margin: 8px auto 0;
  }

  .news-body {
    padding: 17px 16px 20px;
  }

  .news-filter-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-card {
    padding: 24px 18px;
  }

  .article-hero {
    width: 100%;
    padding: 6px;
  }

  .article-nav {
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 22px;
  }

  .footer-brand,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  #backToTop {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small {
    font-size: 7px;
    letter-spacing: .03em;
  }

  .home-tech-card__content {
    width: 76%;
  }

  .test-timeline {
    grid-template-columns: 1fr;
  }

  .test-step::after {
    display: none !important;
  }

  .team-card__portrait {
    height: 310px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .reveal,
  .stagger-children > .stagger-item,
  .stagger-children > .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Restrained interaction motion */
@media (hover: hover) {
  .home-service-card:hover,
  .home-tech-card:hover,
  .platform-card:hover,
  .advantage-card:hover,
  .process-card:hover,
  .mission-card:hover,
  .partner-card:hover,
  .news-card:hover,
  .product-card:hover {
    transform: translateY(-2px);
  }

  .media-frame:hover img,
  .platform-card:hover .platform-card__media img,
  .advantage-card:hover img,
  .facility-grid figure:hover img,
  .news-card:hover img,
  .product-card:hover img {
    transform: scale(1.02);
  }
}
