/* ============================================================
   ATbio - Home (atbio.html)
   Layout: GLOBAL TOKENS - COMMON HEADER - COMMON LINK FX
           - PAGE-LOCAL - COMMON FOOTER - RESPONSIVE
   Note: footer background image is referenced inline in the HTML for .foot-bg.
   ============================================================ */

@import url("./framework/theme.css");
@import url("./framework/layout.css");
@import url("./framework/component.css");
@import url("./framework/utility.css");
@import url("./framework/responsive.css");

:root {
  --hero-interval: 4s;
}

/* ===========================================================================
   1. GLOBAL — Fonts & Base
   =========================================================================== */

html,
body {
  font-family: 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
}

html:lang(ar),
body:lang(ar) {
  font-family: 'Noto Sans Arabic', 'Traditional Arabic', sans-serif;
}

/* banner 主标题、各栏目大标题、HERITAGE、OUR CULTURE */
.hero h1,
.sec-title h2,
.heritage-left h2 {
  font-weight: 700;
  letter-spacing: 0.02em;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: #fff;
}

.page {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.25s ease,
    background-color 0.3s ease,
    transform 0.3s ease;
}

/* ===========================================================================
   2. COMMON �?Top navigation (header)
   =========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(214, 219, 225, 0.8);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;
}

body.header-scrolled .topbar {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: rgba(214, 219, 225, 0.35);
  box-shadow: 0 16px 36px -24px rgba(16, 33, 50, 0.28);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--ui-header-height-desktop);
  gap: 24px;
  padding: 0 var(--ui-container-padding);
}

.nav .logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.nav .logo img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.header-scrolled .nav .logo img {
  transform: scale(0.97);
}

.desk-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: clamp(22px, 2vw, 34px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desk-nav a {
  cursor: pointer;
  position: relative;
  display: inline-block;
  color: var(--ui-color-ink-700);
  padding: 10px 0;
  transition: color 0.25s ease, transform 0.25s ease;
}

.desk-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ui-color-brand-500), var(--ui-color-brand-300));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.desk-nav a:hover,
.desk-nav a.active {
  color: var(--ui-color-ink-900);
}

.desk-nav a:hover::after,
.desk-nav a.active::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  position: relative;
  flex: 0 0 auto;
}

/* Language pill */
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--ui-color-line-200);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ui-color-ink-700);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.lang-pill:hover,
.lang-pill:focus-visible,
.lang-pill.open {
  border-color: var(--ui-color-brand-300);
  color: var(--ui-color-ink-900);
  background: var(--ui-color-surface-50);
  box-shadow: 0 12px 26px -18px rgba(83, 194, 183, 0.65);
}

.lang-pill .fa-chevron-down {
  transition: transform 0.25s ease;
}

.lang-pill.open .fa-chevron-down {
  transform: rotate(180deg);
}

.lang-pill .lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(214, 219, 225, 0.8);
  border-radius: 16px;
  box-shadow: 0 18px 42px -20px rgba(16, 33, 50, 0.26);
  padding: 8px;
  min-width: 148px;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.lang-pill.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lang-pill .lang-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ui-color-ink-700);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.lang-pill .lang-menu a:hover {
  background: var(--ui-color-surface-100);
  color: var(--ui-color-ink-900);
  transform: translateX(2px);
}

/* PC search reveal */
.search-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.search-wrap form,
.msearch-wrap form {
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 0;
  max-width: 0;
  opacity: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ui-color-surface-100);
  color: var(--ui-color-ink-900);
  font-size: 12px;
  outline: none;
  margin-right: 0;
  overflow: hidden;
  transition:
    width 0.55s cubic-bezier(0.65, 0.05, 0.36, 1),
    max-width 0.55s cubic-bezier(0.65, 0.05, 0.36, 1),
    opacity 0.35s ease,
    padding 0.45s ease,
    margin 0.45s ease,
    border-color 0.35s ease,
    box-shadow 0.45s ease;
}

.search-wrap:hover .search-input,
.search-wrap:focus-within .search-input,
.search-wrap.open .search-input {
  width: 240px;
  max-width: 240px;
  opacity: 1;
  padding: 8px 16px;
  margin-right: 8px;
  border-color: var(--ui-color-brand-300);
  box-shadow: 0 6px 22px -10px rgba(154, 240, 206, 0.6);
}

.search-input::placeholder,
.msearch-input::placeholder {
  color: var(--ui-color-ink-500);
}

.search-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ui-color-line-200);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ui-color-ink-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    color 0.2s,
    border-color 0.2s,
    background 0.3s;
}

.search-pill:hover {
  color: var(--ui-color-ink-900);
  border-color: var(--ui-color-brand-300);
}

.search-wrap:hover .search-pill,
.search-wrap:focus-within .search-pill,
.search-wrap.open .search-pill {
  transform: rotate(90deg);
  background: var(--ui-color-brand-300);
  color: #fff;
  border-color: var(--ui-color-brand-300);
}

/* Mobile nav */
.mnav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ui-color-line-200);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ui-color-ink-700);
  cursor: pointer;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

.mnav-toggle:hover {
  color: var(--ui-color-ink-900);
  border-color: var(--ui-color-brand-300);
  background: var(--ui-color-surface-50);
}

#mnav-chk {
  display: none;
}

.mnav {
  display: flex;
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(83, 194, 183, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(16, 33, 50, 0.98), rgba(10, 20, 31, 0.98));
  z-index: 200;
  flex-direction: column;
  align-items: flex-start;
  padding: 88px clamp(24px, 6vw, 36px) 32px;
  gap: 18px;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(24px);
  transition:
    opacity 0.32s ease,
    visibility 0.32s ease,
    transform 0.32s ease;
  overflow-y: auto;
}

.mnav a {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
  align-self: flex-start;
  position: relative;
  padding: 4px 0;
}

.mnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ui-color-brand-500), var(--ui-color-brand-300));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.mnav a.active {
  color: var(--ui-color-brand-300);
}

.mnav a.active::after {
  transform: scaleX(1);
}

.mnav .mnav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

.mnav .mnav-close:hover {
  border-color: rgba(158, 227, 222, 0.75);
  background: rgba(255, 255, 255, 0.06);
}

.mnav input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  width: 100%;
  font-size: 14px;
}

.mnav .msearch-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.mnav .msearch-input {
  flex: 1 1 auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
  outline: none;
  min-height: 48px;
}

.mnav .msearch-pill {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.25s ease;
}

.mnav .msearch-pill:hover {
  color: var(--ui-color-ink-900);
  border-color: rgba(158, 227, 222, 0.95);
  background: var(--ui-color-brand-300);
}

.mnav .lang-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 40px 10px 16px;
  border-radius: 99px;
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  width: 100%;
  margin-top: 8px;
}

#mnav-chk:checked~.mnav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

body.mnav-open {
  overflow: hidden;
}

html:lang(ar) .desk-nav,
html:lang(ar) .lang-pill,
html:lang(ar) .mnav a {
  letter-spacing: 0;
  text-transform: none;
}

/* ===========================================================================
   3. COMMON �?Unified link / button / card / image interaction (fx-*)
   =========================================================================== */
.fx-link,
.desk-nav a {
  position: relative;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  line-height: 1.15;
  vertical-align: bottom;
}

.fx-btn {
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease,
    letter-spacing 0.25s ease;
}

.fx-btn::after {
  display: none !important;
}

/* A 标签按钮通用 hover：与 pp-pill.active 一致（薄荷绿底 + 深色字） */
.fx-btn:hover,
.pp-pill:hover {
  background: #9EE3DE !important;
  border-color: #9EE3DE;
  box-shadow: 0 14px 32px -12px rgba(154, 240, 198, 0.55);
  transform: translateY(-2px);
  letter-spacing: 0.04em;
}

.enter-btn.fx-btn:hover,
.fx-card:hover .enter-btn {
  background: #9EE3DE;
  letter-spacing: 0.06em;
  transform: translateX(3px);
}

.fx-card {
  display: block;
  color: inherit;
  height: 100%;
}

.fx-card .pp-img img,
.fx-card .ca-img img {
  transition:
    transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1),
    filter 0.4s ease;
}

.fx-card:hover .pp-img img,
.fx-card:hover .ca-img img {
  transform: scale(1.07);
  filter: brightness(1.03);
}

.fx-card h4 {
  transition:
    color 0.3s ease,
    transform 0.3s ease,
    letter-spacing 0.3s ease;
  transform-origin: left center;
  display: inline-block;
}

.fx-card:hover h4 {
  color: #9EE3DE;
  transform: scale(1.1);
  letter-spacing: 0.01em;
}

.fx-card p {
  transition: color 0.3s ease;
}

.fx-img {
  display: block;
  cursor: pointer;
}

.fx-img img,
.fx-img:hover img {
  transition: none;
  transform: none;
  filter: none;
}

/* ===========================================================================
   4. PAGE-LOCAL �?Hero carousel
   =========================================================================== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-pc {
  display: block;
  aspect-ratio: 3420 / 1080;
  height: auto;
}

.hero-mobile {
  display: none;
}

@media (max-width:1024px) {
  .hero-pc {
    display: none;
  }

  .hero-mobile {
    display: block;
    aspect-ratio: 900/1200;
  }
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 1.4s ease,
    transform 7s ease;
  text-decoration: none;
  color: inherit;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide:not(.active) {
   pointer-events: none;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-dots {
  position: absolute;
  right: clamp(16px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.hero-dots button {
  width: 4px;
  height: 5px;
  border-radius: 999px;
  background: rgba(13, 37, 64, 0.22);
  border: 0;
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition:
    height 0.35s,
    background 0.35s;
}

.hero-dots button.active {
  background: rgba(13, 37, 64, 0.18);
  height: 18px;
  width: 5px;
}

.hero-dots button.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background: #0d2540;
  border-radius: 999px;
  animation: dotFill var(--hero-interval) linear forwards;
}

@keyframes dotFill {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}

/* ===========================================================================
   5. PAGE-LOCAL �?About card + particle/shader hosts
   =========================================================================== */
.about-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.07);
  padding: clamp(28px, 3.2vw, 56px);
  margin: 24px clamp(20px, 5vw, 96px) 0;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
}

.about-left h3 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: -0.05em;
}

.about-item {
  display: block;
  text-decoration: none;
  color: inherit;
}
.about-item h4 {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 8px;
}

.about-item p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 0;
  padding-bottom: 36px;
  border-bottom: 1px solid #000;
}

.about-right {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-tag {
  position: absolute;
  background: #e1e1e1;
  border-radius: 14px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.15);
  padding: 30px 38px;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  z-index: 3;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.shader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  border-radius: 18px;
}

@keyframes tagFloat {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(6px, -10px) rotate(-1deg);
  }

  50% {
    transform: translate(-4px, -14px) rotate(0.8deg);
  }

  75% {
    transform: translate(-8px, 4px) rotate(0.5deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

.float-anim {
  animation: tagFloat 12s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-delay: var(--d, 0s);
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .float-anim {
    animation-duration: 24s;
    animation-timing-function: linear;
  }

  .shader-canvas {
    opacity: 0.85;
  }
}

/* P08 Brand Upgrade: preserve the approved homepage structure and assets while
   giving the existing modules a calmer editorial rhythm. */
.home-page .home-main > .ui-section {
  position: relative;
}

.home-page .home-intro {
  background: linear-gradient(180deg, var(--ui-color-surface-0), var(--ui-color-surface-50));
}

.home-page .home-intro__content {
  padding-block: clamp(12px, 2vw, 28px);
}

.home-page .home-intro__links {
  border-top: 1px solid var(--ui-color-line-100);
}

.home-page .home-intro__link {
  padding-block: clamp(18px, 2vw, 26px);
  border-bottom-color: var(--ui-color-line-100);
}

.home-page .home-intro__link strong {
  color: var(--ui-color-ink-900);
  font-weight: var(--ui-font-weight-semibold);
}

.home-page .home-products {
  background: var(--ui-color-surface-0);
}

.home-page .home-product-families {
  padding-bottom: var(--ui-space-8);
  border-bottom: 1px solid var(--ui-color-line-100);
}

.home-page .home-product-card {
  border-color: var(--ui-color-line-100);
  border-radius: var(--ui-radius-md);
  box-shadow: none;
}

.home-page .home-product-card:hover,
.home-page .home-product-card:focus-visible {
  border-color: var(--ui-color-brand-200);
  box-shadow: var(--ui-shadow-sm);
}

.home-page .home-product-card__body {
  padding: clamp(20px, 2vw, 28px);
}

.home-page .home-product-card__body strong {
  font-weight: var(--ui-font-weight-semibold);
}

.home-page .home-expertise {
  background: var(--ui-color-surface-medical);
}

.home-page .home-expertise::before {
  opacity: 0.45;
}

.home-page .home-expertise__media {
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-sm);
}

.home-page .home-expertise__list article {
  padding-block: var(--ui-space-5);
  border-top-color: rgba(24, 93, 90, 0.16);
}

.home-page .home-partner__feature {
  border: 1px solid var(--ui-color-line-100);
  border-radius: var(--ui-radius-lg);
  overflow: hidden;
  background: var(--ui-color-surface-0);
}

.home-page .home-partner__content {
  padding: clamp(32px, 5vw, 72px);
}

.home-page .home-partner__benefits article {
  border-top: 1px solid var(--ui-color-line-100);
}

.home-page :is(.home-learning, .home-news) {
  border-top: 1px solid var(--ui-color-line-100);
}

.home-page .home-story-card {
  border-color: var(--ui-color-line-100);
  border-radius: var(--ui-radius-md);
  box-shadow: none;
}

.home-page .home-story-card:hover,
.home-page .home-story-card:focus-visible {
  border-color: var(--ui-color-brand-200);
  box-shadow: var(--ui-shadow-sm);
}

.home-page .home-contact-cta {
  margin: 0;
  padding: clamp(48px, 6vw, 80px) var(--ui-container-padding);
  border-block: 1px solid var(--ui-color-border-subtle);
  background: var(--ui-color-surface-medical);
}

.home-page .home-contact-cta__inner {
  min-height: 0;
}

@media (max-width: 767px) {
  .home-page .home-partner__feature,
  .home-page .home-expertise__media {
    border-radius: var(--ui-radius-md);
  }

}

/* ===========================================================================
   6. PAGE-LOCAL �?Section titles
   =========================================================================== */
.sec-title {
  text-align: center;
}

.sec-title h2 {
  font-size: clamp(30px, 3vw, 80px);
  font-weight: 700;
  letter-spacing: -0.05em;
  margin-bottom: 0;
}

.sec-title p {
  font-size: clamp(14px, 1vw, 18px);
  margin-top: 0px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===========================================================================
   7. PAGE-LOCAL �?Product portfolio grid
   =========================================================================== */
.pp-pills {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 30px 0 40px;
  flex-wrap: wrap;
}

.pp-pill {
  padding: 5px 22px;
  border-radius: 999px;
  min-width: 50px;
  text-align: center;
  background: #f1f3f5;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  display: inline-block;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.pp-pill.active {
  background: #9EE3DE;
}

.pp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 96px);
}

.pp-card {
  background: #eef1f4;
  border-radius: 14px;
  width: 101%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pp-card .pp-img {
  width: 100%;
  aspect-ratio: 420/300;
  flex: 0 0 auto;
  overflow: hidden;
  background: #e3e3e3;
}

.pp-card .pp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pp-card .pp-meta {
  flex: 1 1 auto;
  padding: 10px 18px 0px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
}

.pp-card .pp-meta h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.pp-card .pp-meta p {
  font-size: 16px;
  margin: 0 0 15px;
}

/* ===========================================================================
   8. PAGE-LOCAL �?Why choose us
   =========================================================================== */
.why-photo {
  display: block;
  padding: 60px 0 30px;
}

.why-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #fff;
}

.why-wrap {
  position: relative;
  padding: 30px clamp(20px, 5vw, 96px) 90px;
  display: flex;
  justify-content: center;
}

.why-cluster {
  position: relative;
  width: min(820px, 100%);
  min-height: 380px;
}

.why-cluster .ani-stage-sm {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 480px;
  height: 280px;
  z-index: 1;
}

.why-card {
  position: absolute;
  background: #E4E4E4;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.15);
  width: 280px;
  z-index: 3;
}

.why-card h4 {
  font-size: 16px;
  font-weight: 400;
  margin-top: 3px;
  margin-bottom: -10px;
}

.why-card p {
  font-size: 14px;
  line-height: 1.55;
}

.wc-1 {
  left: 6%;
  top: 0;
}

.wc-2 {
  right: 6%;
  top: 0;
}

.wc-3 {
  left: 50%;
  top: 42%;
  transform: translateX(-50%);
}

.wc-4 {
  left: 6%;
  bottom: 0;
}

.wc-5 {
  right: 6%;
  bottom: 0;
}

/* ===========================================================================
   9. PAGE-LOCAL �?Partner advantages
   =========================================================================== */
.pa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 30px clamp(20px, 5vw, 96px) 0;
}

.pa-card {
  background: #f5f7f9;
  border: 1px solid #eef0f3;
  border-radius: 14px;
  padding: 32px;
  height: auto;
  display: flex;
  flex-direction: column;
}

.pa-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #9EE3DE;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9EE3DE;
  margin-bottom: 24px;
}

.pa-card h4 {
  font-size: 28px;
  font-weight: 700;
  padding-bottom: 14px;
  border-bottom: 1px solid #d6dbe1;
}

.pa-card p {
  font-size: 16px;
  line-height: 1.8;
  margin-top: 18px;
}

/* ===========================================================================
   10. PAGE-LOCAL �?Heritage block
   =========================================================================== */
.heritage {
  margin: 80px clamp(20px, 5vw, 96px);
  background: #f9f9f9;
  border-radius: 18px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
}

.heritage-left {
  padding: clamp(28px, 3vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.heritage-left h2 {
  letter-spacing: -0.02em;
  font-weight: 700;
  font-size: clamp(30px, 3vw, 80px);
  line-height: 1.1;
}

.heritage-left p {
  font-size: 18px;
  margin: 10% 0 30%;
  line-height: 1.7;
}

.heritage-btn {
  align-self: flex-start;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.heritage-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================================================================
   11. PAGE-LOCAL �?Clinical applications + News (shared 400x260 image box)
   =========================================================================== */
.ca-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 30px clamp(20px, 5vw, 96px) 0;
}

.ca-grid,
.news-grid {
  padding-bottom: 60px;
}

.ca-card,
.news-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: 0px;
  text-decoration: none;
}

.ca-card .ca-img,
.news-card .ca-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #f1f3f5;
  opacity: 0.9;
}

.ca-card .ca-img img,
.news-card .ca-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ca-card .ca-img .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.ca-card .ca-meta,
.news-card .ca-meta {
  flex: 1;
  padding: 1em 1em 1.5em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 15px;
  background: #E9E9E9;
}

.ca-card .ca-meta h4,
.news-card .ca-meta h4 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.news-section {
  padding: 30px 0 0;
}

.enter-btn {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  align-items: center;
  gap: 6px;
}

/* ===========================================================================
   12. COMMON �?Footer
   (.foot-bg background image is set inline on the element in HTML)
   =========================================================================== */
footer {
  --atbio-footer-gutter: max(24px, calc((100% - 1320px) / 2));
  background: #fff;
  padding: 50px var(--atbio-footer-gutter) 0;
}

.foot-top {
  max-width: 1320px;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  border-bottom: 1px solid #eef0f3;
  padding-bottom: 30px;
}

.foot-top h4 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.foot-top p {
  font-size: 18px;
  line-height: 1.65;
}

.socials {
  display: flex;
  gap: 10px;
  align-items: center;
  align-self: flex-end;
}

.socials a {
  width: 32px;
  height: 32px;
  border: 1px solid #000000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: #000000;
  color: #fff;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.socials a:hover {
  background: #fff;
  color: #000000;
  border-color: #000000;
  transform: translateY(-2px);
}

.socials .wechat {
  position: relative;
}

.socials .wechat .qrcode {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 10px;
  width: 120px;
  height: 120px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: none;
  padding: 8px;
}

.socials .wechat .qrcode img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.socials .wechat:hover .qrcode {
  display: block;
}

.foot-bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: auto;
  margin: 0 calc(-1 * var(--atbio-footer-gutter)) 0;
  padding: 0 var(--atbio-footer-gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.foot-cols {
  width: min(100%, 1320px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 60px 0 40px;
}

.foot-cols h5 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.foot-cols a,
.foot-cols p {
  font-size: 18px;
  line-height: 1.5;
  display: block;
}

.foot-cols a {
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.foot-cols a:hover {
  color: #9EE3DE;
  transform: translateX(3px);
}

.foot-bottom {
  width: min(100%, 1320px);
  margin-inline: auto;
  position: relative;
  padding: 60px 0;
  text-align: center;
}

.foot-bottom .big-logo {
  display: inline-block;
  width: 20%;
  max-width: 280px;
  min-width: 120px;
  line-height: 0;
}

.foot-bottom .big-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.foot-bottom small {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ===========================================================================
   14. RESPONSIVE
   =========================================================================== */
@media (max-width: 1280px) {
  .nav {
    padding-inline: clamp(20px, 3vw, 40px);
  }

  .desk-nav {
    gap: 20px;
  }

  .pp-grid,
  .ca-grid,
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .nav {
    min-height: var(--ui-header-height-tablet);
    padding-inline: clamp(20px, 4vw, 30px);
  }

  .nav .logo img {
    height: 38px;
  }

  .desk-nav,
  .nav-right .pc-only {
    display: none;
  }

  .mnav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .about-card {
    grid-template-columns: 1fr;
  }

  .pp-grid,
  .ca-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .foot-cols {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 768px) {
  .nav {
    min-height: var(--ui-header-height-mobile);
    padding-inline: 18px;
  }

  .nav .logo img {
    height: 34px;
  }

  .mnav {
    padding: 82px 20px 28px;
  }

  .hero-inner {
    align-items: flex-start;
  }

  .hero-content {
    align-items: flex-start;
  }

  .hero h1,
  .hero p {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .hero h1 {
    max-width: 100%;
    word-break: normal;
  }
}

@media (max-width: 560px) {

  .pp-grid,
  .ca-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .why-cluster {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: auto;
  }

  .why-card {
    position: static;
    width: 90%;
  }

  .wc-1,
  .wc-2,
  .wc-3,
  .wc-4,
  .wc-5 {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
  }

  .why-cluster .ani-stage-sm {
    display: none;
  }
}

/* ===========================================================================
   P03 HOMEPAGE
   Scoped page composition using the P01 UI tokens and components. Legacy home
   selectors above remain untouched for the phased migration of old templates.
   =========================================================================== */
.home-page {
  background: var(--ui-color-surface-0);
  color: var(--ui-color-ink-900);
  font-family: var(--ui-font-sans);
}

.home-page .home-main {
  overflow: clip;
}

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

.home-page .home-hero {
  background: var(--ui-color-surface-100);
  isolation: isolate;
}

.home-page .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(19, 43, 58, 0.1), transparent 34%), linear-gradient(0deg, rgba(19, 43, 58, 0.12), transparent 28%);
}

.home-page .home-hero::after {
  background: linear-gradient(90deg, var(--ui-color-brand-500), var(--ui-color-brand-300));
  bottom: 0;
  height: 3px;
  inset: auto 0 0;
  z-index: 4;
}

.home-page .home-hero .hero-slide:focus-visible {
  outline: 4px solid var(--ui-color-brand-300);
  outline-offset: -4px;
}

.home-page .home-hero .hero-img {
  object-position: center;
}

.home-page .home-hero__dots {
  right: clamp(18px, 3vw, 52px);
  gap: 10px;
  z-index: 5;
}

.home-page .home-hero__dots button {
  width: 5px;
  height: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 1px 4px rgba(19, 43, 58, 0.14);
}

.home-page .home-hero__dots button.active {
  width: 5px;
  height: 38px;
  background: rgba(255, 255, 255, 0.36);
}

.home-page .home-hero__dots button.active::after {
  background: var(--ui-color-brand-600);
}

.home-page .home-hero__dots button:focus-visible {
  outline: 3px solid var(--ui-color-brand-300);
  outline-offset: 4px;
}

/* Home asset-first conversion layer: all copy, media and targets below are
   sourced from the existing Home/About/Partner content and route structure. */
.home-page .home-trust {
  position: relative;
  background: var(--ui-color-surface-medical);
}

.home-page .home-trust__inner {
  display: grid;
  gap: var(--ui-space-8);
}

.home-page .home-trust__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: var(--ui-space-8);
}

.home-page .home-trust__heading .ui-section-title,
.home-page .home-proof__heading .ui-section-title {
  max-width: 16ch;
}

.home-page .home-trust__heading .ui-section-description {
  max-width: 44ch;
  margin: 0;
  padding-bottom: var(--ui-space-1);
}

.home-page .home-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgb(24 93 90 / 16%);
  border-left: 1px solid rgb(24 93 90 / 16%);
}

.home-page .home-trust__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--ui-space-4);
  min-width: 0;
  padding: clamp(20px, 2.2vw, 30px);
  border-right: 1px solid rgb(24 93 90 / 16%);
  border-bottom: 1px solid rgb(24 93 90 / 16%);
  color: var(--ui-color-ink-900);
  transition: background-color var(--ui-duration-fast) var(--ui-ease-standard), color var(--ui-duration-fast) var(--ui-ease-standard);
}

.home-page .home-trust__item > i,
.home-page .home-proof__item > i {
  color: var(--ui-color-brand-600);
  font-size: 1.125rem;
}

.home-page .home-trust__item > span {
  display: grid;
  gap: var(--ui-space-1);
}

.home-page .home-trust__item strong {
  font-size: var(--ui-font-size-body);
  font-weight: var(--ui-font-weight-semibold);
}

.home-page .home-trust__item small {
  color: var(--ui-color-ink-500);
  font-size: var(--ui-font-size-small);
  line-height: 1.55;
}

.home-page .home-trust__item:hover,
.home-page .home-trust__item:focus-visible {
  background: var(--ui-color-surface-0);
  color: var(--ui-color-ink-900);
}

.home-page .home-trust__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ui-space-3);
}

.home-page .home-section-heading__aside {
  display: grid;
  justify-items: start;
  gap: var(--ui-space-4);
  max-width: 38ch;
}

.home-page .home-section-heading__aside .ui-section-description {
  margin: 0;
}

.home-page .home-proof {
  background: var(--ui-color-surface-50);
}

.home-page .home-proof__inner {
  display: grid;
  gap: var(--ui-space-8);
}

.home-page .home-proof__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: end;
  gap: var(--ui-space-8);
}

.home-page .home-proof__heading .ui-section-description {
  max-width: 45ch;
  margin: 0;
  padding-bottom: var(--ui-space-1);
}

.home-page .home-proof__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ui-space-5);
}

.home-page .home-proof__item {
  display: grid;
  align-content: start;
  gap: var(--ui-space-3);
  min-width: 0;
  padding: clamp(24px, 2.6vw, 36px);
  border: var(--ui-border-subtle);
  border-radius: var(--ui-radius-md);
  background: var(--ui-color-surface-0);
  box-shadow: var(--ui-shadow-xs);
}

.home-page .home-proof__item h3 {
  margin: 0;
  color: var(--ui-color-ink-900);
  font-size: var(--ui-font-size-h5);
}

.home-page .home-proof__item p {
  margin: 0;
  color: var(--ui-color-ink-500);
  font-size: var(--ui-font-size-small);
  line-height: var(--ui-line-height-relaxed);
}

.home-page .home-intro {
  padding-block: clamp(76px, 10vw, 144px) var(--ui-section-space-lg);
}

.home-page .home-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.91fr) minmax(0, 1.09fr);
  align-items: center;
  gap: clamp(40px, 7vw, 112px);
}

.home-page .home-intro__content {
  display: grid;
  gap: var(--ui-space-8);
}

.home-page .home-intro__content .ui-section-title,
.home-page .home-expertise .ui-section-title {
  max-width: 15ch;
}

.home-page .home-intro__links {
  display: grid;
  border-top: var(--ui-border-subtle);
}

.home-page .home-intro__link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--ui-space-4);
  padding-block: var(--ui-space-5);
  color: var(--ui-color-ink-700);
  border-bottom: var(--ui-border-subtle);
  transition: color var(--ui-duration-normal) var(--ui-ease-standard), border-color var(--ui-duration-normal) var(--ui-ease-standard);
}

.home-page .home-intro__link > span {
  display: grid;
  gap: var(--ui-space-1);
}

.home-page .home-intro__link strong {
  color: var(--ui-color-ink-900);
  font-size: var(--ui-font-size-lg);
  font-weight: var(--ui-font-weight-semibold);
}

.home-page .home-intro__link span span {
  max-width: 52ch;
  font-size: var(--ui-font-size-small);
  line-height: var(--ui-line-height-relaxed);
}

.home-page .home-intro__link i {
  align-self: start;
  padding-top: 4px;
  color: var(--ui-color-brand-600);
  transition: transform var(--ui-duration-fast) var(--ui-ease-standard);
}

.home-page .home-intro__link:hover,
.home-page .home-intro__link:focus-visible {
  color: var(--ui-color-ink-900);
  border-color: var(--ui-color-brand-300);
}

.home-page .home-intro__link:hover i,
.home-page .home-intro__link:focus-visible i {
  transform: translate(2px, -2px);
}

.home-page .home-intro__button {
  justify-self: start;
}

.home-page .home-intro__media {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border-radius: var(--ui-radius-xl);
  background: var(--ui-color-ink-900);
  box-shadow: var(--ui-shadow-md);
}

.home-page .home-intro__media::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
}

.home-page .home-intro__media video {
  display: block;
  width: 100%;
  min-height: 460px;
  height: 100%;
  object-fit: cover;
}

.home-page .home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--ui-space-8);
  margin-bottom: var(--ui-space-10);
}

.home-page .home-section-heading .ui-section-title {
  max-width: 23ch;
}

.home-page .home-section-heading > .ui-section-description {
  max-width: 38ch;
  padding-bottom: var(--ui-space-1);
}

.home-page .home-product-families {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ui-space-2);
  margin-bottom: var(--ui-space-8);
}

.home-page .home-product-family {
  min-height: 34px;
  border: 1px solid var(--ui-color-brand-100);
  color: var(--ui-color-brand-700);
  text-transform: uppercase;
  letter-spacing: var(--ui-letter-spacing-eyebrow);
  transition: background-color var(--ui-duration-fast) var(--ui-ease-standard), color var(--ui-duration-fast) var(--ui-ease-standard), transform var(--ui-duration-fast) var(--ui-ease-standard);
}

.home-page .home-product-family:hover,
.home-page .home-product-family:focus-visible {
  background: var(--ui-color-brand-600);
  color: var(--ui-color-surface-0);
  transform: translateY(-1px);
}

.home-page .home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ui-space-5);
}

.home-page .home-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  color: var(--ui-color-ink-900);
}

.home-page .home-product-card__media {
  display: block;
  aspect-ratio: 1.18;
  overflow: hidden;
  background: var(--ui-color-surface-100);
}

.home-page .home-product-card__media img,
.home-page .home-story-card__media img,
.home-page .home-expertise__media img,
.home-page .home-partner__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform var(--ui-duration-slow) var(--ui-ease-emphasized);
}

.home-page .home-product-card:hover .home-product-card__media img,
.home-page .home-story-card:hover .home-story-card__media img {
  transform: scale(1.045);
}

.home-page .home-product-card__body {
  position: relative;
  display: grid;
  flex: 1;
  gap: var(--ui-space-2);
  padding: var(--ui-space-5);
}

.home-page .home-product-card__body strong,
.home-page .home-story-card__body strong {
  font-size: var(--ui-font-size-lg);
  line-height: 1.3;
}

.home-page .home-product-card__body > span {
  padding-right: var(--ui-space-6);
  color: var(--ui-color-ink-500);
  font-size: var(--ui-font-size-small);
  line-height: 1.5;
}

.home-page .home-product-card__body > i {
  position: absolute;
  right: var(--ui-space-5);
  bottom: var(--ui-space-5);
  color: var(--ui-color-brand-600);
  transition: transform var(--ui-duration-fast) var(--ui-ease-standard);
}

.home-page .home-product-card:hover .home-product-card__body > i {
  transform: translateX(3px);
}

.home-page .home-expertise {
  position: relative;
  background: var(--ui-color-surface-50);
}

.home-page .home-expertise::before {
  content: "";
  position: absolute;
  width: min(40vw, 560px);
  aspect-ratio: 1;
  right: -14%;
  top: 6%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 231, 226, 0.58), rgba(184, 231, 226, 0));
  pointer-events: none;
}

.home-page .home-expertise__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(40px, 8vw, 128px);
}

.home-page .home-expertise__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--ui-radius-xl);
  box-shadow: var(--ui-shadow-sm);
}

.home-page .home-expertise__media img {
  position: absolute;
  inset: 0;
  object-position: 26% center;
}

.home-page .home-expertise__content {
  display: grid;
  gap: var(--ui-space-8);
}

.home-page .home-expertise__list {
  display: grid;
  gap: var(--ui-space-3);
}

.home-page .home-expertise__list article {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--ui-space-3);
  padding: var(--ui-space-4) 0;
  border-top: var(--ui-border-subtle);
}

.home-page .home-expertise__list article:last-child {
  border-bottom: var(--ui-border-subtle);
}

.home-page .home-expertise__list article > span {
  color: var(--ui-color-brand-600);
  font-size: var(--ui-font-size-caption);
  font-weight: var(--ui-font-weight-semibold);
  letter-spacing: var(--ui-letter-spacing-eyebrow);
}

.home-page .home-expertise__list h3 {
  margin: 0 0 var(--ui-space-1);
  color: var(--ui-color-ink-900);
  font-size: var(--ui-font-size-body);
  font-weight: var(--ui-font-weight-semibold);
}

.home-page .home-expertise__list p {
  margin: 0;
  color: var(--ui-color-ink-500);
  font-size: var(--ui-font-size-small);
  line-height: var(--ui-line-height-relaxed);
}

.home-page .home-partner__feature {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  overflow: hidden;
  background: var(--ui-color-ink-900);
  border-radius: var(--ui-radius-xl);
  color: var(--ui-color-surface-0);
  box-shadow: var(--ui-shadow-md);
}

.home-page .home-partner__content {
  display: grid;
  align-content: center;
  gap: var(--ui-space-6);
  padding: clamp(36px, 5vw, 80px);
}

.home-page .home-partner__content .ui-section-eyebrow {
  color: var(--ui-color-brand-300);
}

.home-page .home-partner__content h2 {
  max-width: 13ch;
  margin: 0;
  font-size: var(--ui-font-size-h2);
  line-height: var(--ui-line-height-heading);
  letter-spacing: var(--ui-letter-spacing-display);
}

.home-page .home-partner__content p {
  max-width: 47ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: var(--ui-line-height-relaxed);
}

.home-page .home-partner__content .ui-button {
  justify-self: start;
  background: var(--ui-color-surface-0);
  color: var(--ui-color-ink-900);
}

.home-page .home-partner__content .ui-button:hover,
.home-page .home-partner__content .ui-button:focus-visible {
  background: var(--ui-color-brand-200);
}

.home-page .home-partner__media {
  min-height: 490px;
}

.home-page .home-partner__media img {
  object-position: center;
}

.home-page .home-partner__benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ui-space-8);
  margin-top: var(--ui-space-8);
}

.home-page .home-partner__benefits article {
  padding: var(--ui-space-5) 0;
  border-top: var(--ui-border-subtle);
}

.home-page .home-partner__benefits i {
  color: var(--ui-color-brand-600);
  font-size: 20px;
}

.home-page .home-partner__benefits h3 {
  margin: var(--ui-space-5) 0 var(--ui-space-2);
  font-size: var(--ui-font-size-h5);
}

.home-page .home-partner__benefits p {
  margin: 0;
  color: var(--ui-color-ink-500);
  font-size: var(--ui-font-size-small);
  line-height: var(--ui-line-height-relaxed);
}

.home-page .home-learning {
  background: var(--ui-color-surface-50);
}

.home-page .home-story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--ui-space-5);
}

.home-page .home-story-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  color: var(--ui-color-ink-900);
}

.home-page .home-story-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1.35;
  overflow: hidden;
  background: var(--ui-color-surface-100);
}

.home-page .home-story-card__play {
  position: absolute;
  left: var(--ui-space-4);
  bottom: var(--ui-space-4);
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--ui-radius-pill);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ui-color-brand-600);
  box-shadow: var(--ui-shadow-sm);
}

.home-page .home-story-card__play i {
  margin-left: 2px;
  font-size: 12px;
}

.home-page .home-story-card__body {
  display: grid;
  flex: 1;
  align-content: space-between;
  gap: var(--ui-space-5);
  padding: var(--ui-space-5);
}

.home-page .home-story-card__body > span {
  color: var(--ui-color-brand-700);
  font-size: var(--ui-font-size-small);
  font-weight: var(--ui-font-weight-medium);
}

.home-page .home-story-card__body > span i {
  margin-left: 4px;
  transition: transform var(--ui-duration-fast) var(--ui-ease-standard);
}

.home-page .home-story-card:hover .home-story-card__body > span i {
  transform: translateX(3px);
}

.home-page .home-news {
  padding-bottom: var(--ui-section-space-lg);
}

.home-page .home-contact-cta {
  padding-block: clamp(48px, 6vw, 80px);
}

.home-page .home-contact-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  width: min(100%, var(--ui-container-wide));
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-page .home-contact-cta__inner h2 {
  max-width: none;
  margin: var(--ui-space-2) 0 var(--ui-space-3);
  font-size: var(--ui-font-size-h3);
  line-height: var(--ui-line-height-heading);
  letter-spacing: var(--ui-letter-spacing-display);
}

.home-page .home-contact-cta__inner p {
  max-width: 62ch;
  margin: 0;
  color: var(--ui-color-ink-500);
  line-height: var(--ui-line-height-relaxed);
}

.home-page .home-contact-cta__inner .ui-button {
  flex: 0 0 auto;
}

/* Motion is progressive enhancement only: Home content is always visible
   before IntersectionObserver runs, avoiding an empty page on slow clients. */
.home-motion-ready .home-page .home-reveal {
  opacity: 1;
  transform: none;
  transition: background-color var(--ui-duration-normal) var(--ui-ease-standard);
}

html:lang(ar) .home-page .home-intro__link i,
html:lang(ar) .home-page .home-product-card__body > i {
  right: auto;
  left: var(--ui-space-5);
}

html:lang(ar) .home-page {
  direction: rtl;
}

html:lang(ar) .home-page .home-hero__dots {
  right: auto;
  left: clamp(18px, 3vw, 52px);
}

html:lang(ar) .home-page .home-product-card__body > span {
  padding-right: 0;
  padding-left: var(--ui-space-6);
}

html:lang(ar) .home-page .home-story-card__body > span i {
  margin-left: 0;
  margin-right: 4px;
}

html:lang(ar) .home-page .home-product-card:hover .home-product-card__body > i,
html:lang(ar) .home-page .home-story-card:hover .home-story-card__body > span i {
  transform: translateX(-3px);
}

@media (max-width: 1200px) {
  .home-page .home-product-grid,
  .home-page .home-story-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-page .home-intro__media,
  .home-page .home-intro__media video { min-height: 400px; }
  .home-page .home-expertise__media { aspect-ratio: 1; }
}

@media (max-width: 1024px) {
  .home-page .home-intro__grid,
  .home-page .home-expertise__grid,
  .home-page .home-partner__feature { grid-template-columns: 1fr; }
  .home-page .home-intro__content .ui-section-title,
  .home-page .home-expertise .ui-section-title { max-width: 21ch; }
  .home-page .home-intro__media { order: -1; min-height: 390px; }
  .home-page .home-intro__media video { min-height: 390px; }
  .home-page .home-expertise__media { aspect-ratio: 1; }
  .home-page .home-partner__media { min-height: 420px; }
  .home-page .home-product-grid,
  .home-page .home-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .home-trust__heading,
  .home-page .home-proof__heading { grid-template-columns: 1fr; gap: var(--ui-space-4); }
  .home-page .home-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .home-proof__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .home-page .home-hero::before { background: linear-gradient(0deg, rgba(19, 43, 58, 0.18), transparent 28%); }
  .home-page .home-hero__dots { right: 14px; gap: 8px; }
  .home-page .home-hero__dots button { width: 4px; height: 14px; }
  .home-page .home-hero__dots button.active { width: 4px; height: 28px; }
  .home-page .home-intro { padding-top: var(--ui-section-space-md); }
  .home-page .home-intro__grid,
  .home-page .home-expertise__grid { gap: var(--ui-space-8); }
  .home-page .home-intro__media,
  .home-page .home-intro__media video { min-height: 280px; }
  .home-page .home-section-heading { align-items: flex-start; flex-direction: column; }
  .home-page .home-section-heading { gap: var(--ui-space-5); margin-bottom: var(--ui-space-8); }
  .home-page .home-section-heading .ui-section-title { max-width: 18ch; }
  .home-page .home-product-grid,
  .home-page .home-story-grid,
  .home-page .home-partner__benefits,
  .home-page .home-trust__grid { grid-template-columns: 1fr; }
  .home-page .home-product-grid,
  .home-page .home-story-grid { gap: var(--ui-space-4); }
  .home-page .home-product-card__body,
  .home-page .home-story-card__body { padding: var(--ui-space-4); }
  .home-page .home-product-card__body > i { right: var(--ui-space-4); bottom: var(--ui-space-4); }
  .home-page .home-expertise__media { aspect-ratio: 1; }
  .home-page .home-partner__content { padding: var(--ui-space-8); }
  .home-page .home-partner__media { min-height: 300px; }
  .home-page .home-partner__benefits { gap: var(--ui-space-3); margin-top: var(--ui-space-6); }
  .home-page .home-partner__benefits article { padding: var(--ui-space-4) 0; }
  .home-page .home-contact-cta__inner { grid-template-columns: 1fr; gap: var(--ui-space-6); }
  .home-page .home-trust__inner,
  .home-page .home-proof__inner { gap: var(--ui-space-6); }
  .home-page .home-trust__item { padding: var(--ui-space-5); }
  html:lang(ar) .home-page .home-intro__link i,
  html:lang(ar) .home-page .home-product-card__body > i { left: var(--ui-space-4); }
  html:lang(ar) .home-page .home-hero__dots { left: 14px; }
}

@media (max-width: 420px) {
  .home-page .home-product-card__body strong,
  .home-page .home-story-card__body strong { font-size: 1rem; }
  .home-page .home-product-card__body > span { font-size: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-product-card__media img,
  .home-page .home-story-card__media img,
  .home-motion-ready .home-page .home-reveal { transition: none; transform: none; }
}
