* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.technology-page {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-main);
  color: var(--text-color);
  background: #f6fbf8;
}

body.en-mode [lang="zh"],
body.zh-mode [lang="en"] { display: none !important; }

.technology-page header { position: fixed; inset: 0 0 auto; z-index: 100; }
.technology-page .logo,
.technology-page .nav-links a,
.technology-page .btn,
.technology-page .footer-logo { text-decoration: none !important; }
.technology-page .nav-links .is-current { color: var(--primary-color); font-weight: 700; }
.technology-page .lang-switch { padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.technology-page main { overflow: hidden; }
.technology-page section { scroll-margin-top: 88px; }

.tech-eyebrow {
  margin: 0 0 18px;
  color: var(--accent-color);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.technology-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(500px, 620px);
  align-items: stretch;
  min-height: min(840px, 100dvh);
  padding: 72px 0 0;
}

.technology-hero-visual {
  --image-side-fade: linear-gradient(90deg, rgba(246, 251, 248, .08) 0%, rgba(246, 251, 248, .12) 62%, rgba(246, 251, 248, .5) 100%);
  position: relative;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  background: #f6fbf8;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 72%, rgba(0, 0, 0, .56) 88%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 72%, rgba(0, 0, 0, .56) 88%, transparent 100%);
}

.technology-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .62) 8%, transparent 20%, transparent 80%, rgba(0, 0, 0, .62) 92%, #000 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .62) 8%, transparent 20%, transparent 80%, rgba(0, 0, 0, .62) 92%, #000 100%);
}

.technology-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, #f6fbf8 0%, rgba(246, 251, 248, .68) 7%, transparent 20%, transparent 80%, rgba(246, 251, 248, .68) 93%, #f6fbf8 100%),
    var(--image-side-fade),
    rgba(246, 251, 248, .04);
}

.technology-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 700px;
  object-fit: cover;
  object-position: 24% center;
  filter: saturate(.76) contrast(.94) brightness(1.06);
  opacity: .94;
  transform: scale(1.005);
  transform-origin: center;
}

.technology-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 6vw, 94px) clamp(38px, 7vw, 104px) clamp(52px, 6vw, 94px) clamp(42px, 5vw, 74px);
}

.technology-hero-copy h1 {
  margin: 0;
  color: var(--primary-color);
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  line-height: .98;
  letter-spacing: 0;
}

.technology-tagline {
  max-width: 24ch;
  margin: 24px 0 0;
  color: #173d37;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 650;
  line-height: 1.2;
}

.technology-lede {
  max-width: 55ch;
  margin: 22px 0 34px;
  color: rgba(22, 48, 44, .72);
  font-size: .98rem;
  line-height: 1.72;
}

.technology-hero-copy .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: max-content;
  min-width: 168px;
  white-space: nowrap;
}

.mechanism-solution-section {
  padding: clamp(96px, 10vw, 148px) clamp(24px, 6vw, 92px) clamp(92px, 9vw, 136px);
}

.technology-intro {
  width: min(100%, 980px);
  margin: 0 auto;
  text-align: center;
}

.technology-intro h2,
.research-experience-copy h2 {
  margin: 0;
  color: var(--primary-color);
  font-size: clamp(2.45rem, 4.6vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.technology-intro > p:not(.tech-eyebrow) {
  max-width: 840px;
  margin: 25px auto 0;
  color: rgba(22, 48, 44, .7);
  font-size: 1.02rem;
  line-height: 1.75;
}

.paired-research-figures {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(72px, 9vw, 124px);
  width: min(100%, 1200px);
  margin: clamp(64px, 8vw, 104px) auto 0;
}

.research-figure {
  display: flex;
  min-width: 0;
  margin: 0;
  flex-direction: column;
}

.figure-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 0;
  padding: 20px 0;
  border-top: 1px solid rgba(22, 79, 71, .2);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.figure-heading span,
.figure-heading h3 {
  font-size: 1em;
  font-weight: 750;
  line-height: 1.18;
}

.figure-heading span {
  align-self: center;
  color: var(--accent-color);
}

.figure-heading h3 {
  margin: 0;
  color: var(--primary-color);
  letter-spacing: 0;
  text-align: left;
}

.paired-image-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: transparent;
}

.paired-image-stage > img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.source-language-mask {
  position: absolute;
  z-index: 2;
  left: 34%;
  top: 45.3%;
  display: flex;
  width: 36%;
  height: 17.2%;
  padding: 1.2% 1.5%;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  color: #121212;
  line-height: 1.28;
  pointer-events: none;
}

.translated-figure-frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 33.6%;
  top: 42.2%;
  width: 6.2%;
  height: 9.5%;
  background: #fff;
  pointer-events: none;
}

.source-language-mask strong {
  font-size: clamp(.5rem, .9vw, .82rem);
  font-weight: 750;
}

.source-language-mask span {
  margin-top: .45em;
  color: #c92118;
  font-size: clamp(.45rem, .72vw, .68rem);
  font-weight: 700;
}

.research-figure figcaption {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 22px 0 0;
  color: rgba(22, 48, 44, .72);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: 600;
  line-height: 1.62;
  text-align: left;
}

.research-experience-section {
  display: grid;
  grid-template-columns: minmax(420px, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(54px, 8vw, 124px);
  padding: clamp(96px, 10vw, 148px) clamp(28px, 8vw, 128px);
  background: rgba(238, 247, 244, .62);
}

.research-experience-copy > p:not(.tech-eyebrow):not(.disease-context) {
  margin: 24px 0 0;
  color: rgba(22, 48, 44, .7);
  font-size: 1rem;
  line-height: 1.75;
}

.experience-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 52px);
  width: 100%;
  margin: 0;
  padding: 0;
}

.experience-metrics div {
  display: flex;
  min-height: 230px;
  padding: 30px 12px 26px;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  border-top: 1px solid rgba(22, 79, 71, .2);
  text-align: left;
}

.experience-metrics .metric-value {
  color: var(--primary-color);
  font-size: clamp(4rem, 5.8vw, 5.3rem);
  font-weight: 760;
  line-height: .9;
  letter-spacing: 0;
  white-space: nowrap;
}

.experience-metrics span {
  display: block;
  margin-top: 22px;
  color: rgba(22, 48, 44, .74);
  font-size: clamp(.98rem, 1.25vw, 1.12rem);
  font-weight: 650;
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .technology-hero { grid-template-columns: minmax(0, 1fr) minmax(440px, 500px); }
  .research-experience-section { grid-template-columns: minmax(360px, .9fr) minmax(0, 1.1fr); }
}

@media (max-width: 900px) {
  .technology-hero { grid-template-columns: 1fr; min-height: auto; }
  .technology-hero-visual {
    order: 1;
    height: clamp(360px, 70vw, 520px);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 82%, rgba(0, 0, 0, .58) 92%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 82%, rgba(0, 0, 0, .58) 92%, transparent 100%);
  }
  .technology-hero-visual img { min-height: 0; object-position: 24% center; }
  .technology-hero-copy { order: 2; align-items: center; padding: 50px 28px 82px; text-align: center; }
  .technology-tagline,
  .technology-lede { margin-inline: auto; }
  .technology-hero-copy .btn { align-self: center; }
  .paired-research-figures { width: min(100%, 720px); }
  .research-experience-section { grid-template-columns: 1fr; }
  .research-experience-copy { width: min(100%, 720px); margin: 0 auto; text-align: center; }
  .experience-metrics { width: min(100%, 720px); margin: 0 auto; }
}

@media (max-width: 768px) {
  .technology-page header { grid-template-columns: auto 1fr auto; }
  .technology-page .logo { --logo-word-size: clamp(1.05rem, 5vw, 1.35rem); }
  .technology-hero-copy h1 { font-size: clamp(3.2rem, 15vw, 4.6rem); }
  .technology-intro h2,
  .research-experience-copy h2 { font-size: clamp(2.1rem, 9vw, 3.15rem); }
}

@media (max-width: 560px) {
  .technology-page header { padding-left: 12px; padding-right: 4px; }
  .technology-page .logo { --logo-word-size: 1.05rem; gap: 6px; }
  .technology-page .lang-switch { padding: 7px 14px; font-size: 14px; }
  .technology-page .logo img { height: 40px !important; }
  .technology-page .logo > span[lang="zh"] { display: none !important; }
  .technology-hero { padding-top: 66px; }
  .technology-hero-visual { height: 320px; }
  .mechanism-solution-section,
  .research-experience-section { padding-inline: 24px; }
  .figure-heading { gap: 12px; font-size: 1.3rem; }
  .paired-research-figures { width: calc(100% + 16px); margin-left: -8px; }
  .research-figure .figure-heading,
  .research-figure figcaption { width: 100%; margin-left: 0; margin-right: 0; }
  .experience-metrics { grid-template-columns: 1fr 1fr; gap: 16px; }
  .experience-metrics div { min-height: 170px; padding: 22px 6px 18px; }
  .experience-metrics .metric-value { font-size: clamp(3rem, 15vw, 4.2rem); }
  .experience-metrics span { margin-top: 16px; font-size: .9rem; }
}

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