:root {
  color-scheme: light;
  --ink: #55779d;
  --ink-deep: #2f3740;
  --blue: #5f7f9e;
  --cyan: #7fa9bf;
  --cyan-soft: #dce9ee;
  --paper: #f3f4f2;
  --paper-2: #e7eaec;
  --white: #ffffff;
  --muted: #66727b;
  --muted-light: #9aa5ac;
  --line: #d8dde0;
  --line-dark: rgba(255, 255, 255, 0.14);
  --shell: 1280px;
  --radius-lg: 34px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 26px 80px rgba(7, 27, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink-deep);
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

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

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

::selection {
  background: var(--cyan-soft);
  color: var(--ink-deep);
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink-deep);
  box-shadow: var(--shadow);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(7, 27, 42, 0.08);
  background: rgba(244, 244, 240, 0.9);
  box-shadow: 0 8px 30px rgba(7, 27, 42, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand strong,
.footer-brand strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #445964;
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.site-nav > a {
  position: relative;
  padding: 12px 0;
  transition: color 160ms ease;
}

.site-nav > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms var(--ease);
}

.site-nav > a:hover {
  color: var(--ink-deep);
}

.site-nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-button {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.menu-button > span:not(.sr-only) {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: var(--ink-deep);
  transition: transform 180ms ease;
}

.menu-button > span:nth-child(2) {
  transform: translateY(-4px);
}

.menu-button > span:nth-child(3) {
  transform: translateY(4px);
}

.menu-button[aria-expanded="true"] > span:nth-child(2) {
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] > span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  padding: 84px 0 0;
}

.hero > .shell {
  width: 100%;
  max-width: none;
}

.hero-media {
  position: relative;
  min-height: clamp(680px, 56.25vw, 860px);
  margin: 0;
  border-radius: 0;
  background: #dfe2e4;
  overflow: hidden;
}

.hero-media > picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: clamp(680px, 56.25vw, 860px);
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(1.035);
}

.hero-media::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(118deg, rgba(85, 119, 157, 0.15), transparent 43%),
    linear-gradient(300deg, rgba(127, 169, 191, 0.09), transparent 45%);
  mix-blend-mode: color;
  pointer-events: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(247, 248, 248, 0.18), rgba(247, 248, 248, 0) 58%);
}

.hero-caption {
  position: absolute;
  z-index: 1;
  right: clamp(28px, 6vw, 76px);
  bottom: clamp(34px, 7vw, 82px);
  width: min(650px, calc(100% - 56px));
  color: var(--ink-deep);
}

.hero-caption > span {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 20px 0 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(44px, 4.35vw, 62px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.hero-link {
  width: fit-content;
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(47, 55, 64, 0.5);
  font-size: 13px;
  font-weight: 720;
  transition: transform 180ms var(--ease);
}

.hero-link:hover {
  transform: translateY(-2px);
}

.hero-link svg,
.text-link svg,
.button svg,
.contact-secondary svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.positioning-strip {
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--line);
}

.positioning-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
  align-items: center;
  gap: clamp(36px, 5vw, 76px);
}

.positioning-inner h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink-deep);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(25px, 2.3vw, 33px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.35;
}

.focus-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  color: #657985;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.positioning-inner .focus-list {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 13px 24px;
}

.focus-list i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
}

.section {
  padding: 102px 0 118px;
}

.work-section > .shell {
  width: min(calc(100% - 64px), 1120px);
}

.projects-heading {
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
}

.section-number {
  margin: 0;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.projects-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.project-list {
  display: grid;
  gap: clamp(58px, 7vw, 88px);
}

.project {
  min-height: 620px;
  padding: clamp(28px, 3.4vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  align-items: center;
  gap: clamp(34px, 4vw, 48px);
  border-radius: 28px;
  overflow: hidden;
}

.project-dark {
  background:
    radial-gradient(circle at 80% 10%, rgba(220, 233, 238, 0.18), transparent 34%),
    var(--blue);
  color: var(--white);
}

.project-light {
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 90% 4%, rgba(189, 233, 241, 0.65), transparent 30%),
    #e9ece8;
}

.project-pharma {
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: clamp(34px, 4vw, 52px);
  padding: 22px;
}

.project-pharma .project-content {
  padding: 18px 16px 12px 0;
}

.project-photo {
  height: 100%;
  min-width: 0;
  min-height: 576px;
  margin: 0;
  border: 1px solid rgba(47, 55, 64, 0.1);
  border-radius: 20px;
  background: #dfe2e4;
  overflow: hidden;
}

.project-photo picture {
  width: 100%;
  height: 100%;
  display: block;
}

.project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 36% center;
}

.project-content {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.project-index {
  color: #8298a3;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.74;
}

.project-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4cc8e3;
  box-shadow: 0 0 0 4px rgba(76, 200, 227, 0.12);
}

.project-main-copy {
  margin-top: 34px;
}

.project-category {
  margin: 0 0 11px;
  color: #d5edf3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-light .project-category {
  color: #177d99;
}

.project h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(33px, 3vw, 43px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.17;
}

.project-description {
  margin: 18px 0 0;
  color: #e1e9ed;
  font-size: 14px;
  line-height: 1.78;
}

.project-light .project-description {
  color: #526771;
}

.project-facts {
  margin: 26px 0;
  border-top: 1px solid var(--line-dark);
}

.project-light .project-facts {
  border-color: rgba(7, 27, 42, 0.12);
}

.project-facts div {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 13px;
  border-bottom: 1px solid var(--line-dark);
}

.project-light .project-facts div {
  border-color: rgba(7, 27, 42, 0.12);
}

.project-facts dt {
  color: #bdcbd1;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 0;
  color: #f0f4f5;
  font-size: 12px;
}

.project-light .project-facts dd {
  color: #485f6a;
}

.text-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 750;
  transition: transform 180ms var(--ease);
}

.text-link:hover {
  transform: translateY(-2px);
}

.text-link-light {
  color: var(--white);
}

.project-visual {
  min-width: 0;
  padding: 20px;
  border-radius: 20px;
}

.gait-visual {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(47, 55, 64, 0.08);
  background-size: 32px 32px;
}

.gait-head,
.value-head,
.chart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gait-head span,
.gait-head strong,
.value-head span,
.value-head strong {
  display: block;
}

.gait-head span,
.value-head span {
  color: #8299a4;
  font-size: 8px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gait-head strong,
.value-head strong {
  margin-top: 3px;
  font-size: 13px;
}

.visual-chip {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  color: #91e2f0 !important;
}

.gait-stage {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.72fr);
  align-items: center;
  gap: 18px;
}

.gait-figure {
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(1, 13, 22, 0.24);
}

.gait-grid-lines {
  fill: none;
  stroke: rgba(255, 255, 255, 0.055);
  stroke-width: 1;
}

.gait-ground {
  fill: none;
  stroke: #536f7e;
  stroke-width: 1;
  stroke-dasharray: 4 5;
}

.gait-body {
  fill: none;
  stroke: #f5f8f9;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gait-body circle {
  fill: rgba(245, 248, 249, 0.08);
}

.gait-joints {
  fill: #40c8e4;
  stroke: #071b2a;
  stroke-width: 3;
}

.gait-path {
  fill: none;
  stroke: #59d2e9;
  stroke-width: 2;
  stroke-linecap: round;
}

.gait-score {
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  background: rgba(47, 55, 64, 0.72);
}

.gait-score > span,
.gait-score p {
  color: #8197a2;
  font-size: 9px;
  font-weight: 700;
}

.gait-score > strong {
  display: block;
  margin: 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 55px;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.gait-score > strong small {
  color: #7dcddd;
  font-size: 19px;
}

.score-bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.score-bar i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--cyan);
}

.gait-score p {
  margin: 13px 0 0;
}

.gait-score p span {
  width: 6px;
  height: 6px;
  margin-right: 5px;
  display: inline-block;
  border-radius: 50%;
  background: #5ccf9d;
}

.gait-kpis {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.gait-kpis div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  background: rgba(47, 55, 64, 0.5);
}

.gait-kpis span,
.gait-kpis small {
  display: block;
  color: #8297a1;
  font-size: 8px;
}

.gait-kpis strong {
  display: inline-block;
  margin-top: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.gait-kpis small {
  margin-left: 3px;
  display: inline-block;
}

.clinical-note {
  margin-top: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(76, 200, 227, 0.19);
  border-radius: 12px;
  background: rgba(42, 168, 199, 0.08);
}

.note-mark {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d4f5fa;
  color: var(--ink-deep);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 700;
}

.clinical-note div span,
.clinical-note div strong {
  display: block;
}

.clinical-note div span {
  color: #7493a0;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clinical-note div strong {
  margin-top: 2px;
  font-size: 10px;
}

.value-visual {
  border: 1px solid rgba(7, 27, 42, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 25px 60px rgba(7, 27, 42, 0.08);
}

.value-pill {
  padding: 6px 9px;
  border: 1px solid #d4ddda;
  border-radius: 7px;
  color: #147892 !important;
}

.value-summary {
  margin-top: 19px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #dce3df;
  border-radius: 12px;
  background: #fbfcfa;
}

.value-summary > div {
  padding-right: 12px;
  border-right: 1px solid #e3e8e5;
}

.value-summary span,
.value-summary small {
  display: block;
  color: #84959c;
  font-size: 8px;
}

.value-summary strong {
  display: inline-block;
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.value-summary small {
  margin-left: 4px;
  display: inline-block;
}

.value-summary .value-state {
  padding: 7px 10px;
  border-radius: 99px;
  background: #ddf5ec;
  color: #11745b;
  font-weight: 780;
  white-space: nowrap;
}

.value-chart {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #dce3df;
  border-radius: 12px;
  background: #fbfcfa;
}

.chart-title span {
  color: #314a56;
  font-size: 10px;
  font-weight: 750;
}

.chart-title small {
  color: #8a9aa1;
  font-size: 8px;
}

.value-chart svg {
  margin-top: 10px;
}

.value-grid-lines {
  fill: none;
  stroke: #e7ece9;
  stroke-width: 1;
}

.threshold-line {
  fill: none;
  stroke: #c4925c;
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}

.axis-line {
  fill: none;
  stroke: #a8b5b2;
  stroke-width: 1.2;
}

.scenario-cloud {
  fill: rgba(42, 168, 199, 0.36);
}

.base-scenario {
  fill: var(--cyan);
  stroke: var(--white);
  stroke-width: 4;
}

.value-chart text {
  fill: #46616c;
  font-size: 10px;
  font-family: Inter, "PingFang SC", sans-serif;
}

.value-chart .axis-label {
  fill: #87979d;
  font-size: 8px;
}

.scenario-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.scenario-row div {
  padding: 12px;
  border: 1px solid #dce3df;
  border-radius: 10px;
  background: #fbfcfa;
}

.scenario-row div.is-active {
  border-color: #83cbdb;
  background: #eef9fb;
}

.scenario-row span,
.scenario-row strong,
.scenario-row small {
  display: block;
}

.scenario-row span,
.scenario-row small {
  color: #88989e;
  font-size: 8px;
}

.scenario-row strong {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.project-rag {
  background:
    radial-gradient(circle at 92% 7%, rgba(184, 229, 220, 0.78), transparent 28%),
    linear-gradient(132deg, #e5eeea 0%, #e9eeec 48%, #dce8e5 100%);
}

.project-rag .project-category {
  color: #147764;
}

.rag-visual {
  border: 1px solid rgba(11, 77, 71, 0.24);
  background:
    linear-gradient(rgba(216, 238, 234, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 238, 234, 0.055) 1px, transparent 1px),
    #0f4847;
  background-size: 28px 28px;
  box-shadow: 0 26px 58px rgba(18, 73, 68, 0.18);
  color: #f5fbf8;
}

.rag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rag-head span,
.rag-head strong {
  display: block;
}

.rag-head > div > span {
  color: #9fc8c0;
  font-size: 8px;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rag-head strong {
  margin-top: 3px;
  font-size: 13px;
}

.rag-local-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid rgba(185, 236, 222, 0.24);
  border-radius: 7px;
  color: #b7ead9 !important;
  font-size: 8px !important;
  font-weight: 750;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
}

.rag-local-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ce0a4;
  box-shadow: 0 0 0 4px rgba(108, 224, 164, 0.12);
}

.rag-query-preview {
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(216, 238, 234, 0.18);
  border-radius: 12px;
  background: rgba(2, 27, 27, 0.28);
}

.rag-query-preview span,
.rag-query-preview strong {
  display: block;
}

.rag-query-preview span {
  color: #82ada5;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rag-query-preview strong {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.55;
}

.rag-workflow {
  display: grid;
  grid-template-columns: minmax(145px, 0.68fr) minmax(0, 1.32fr);
  gap: 12px;
  margin-top: 12px;
}

.rag-retrieval-flow {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(216, 238, 234, 0.14);
  border-radius: 12px;
  background: rgba(0, 28, 29, 0.22);
}

.rag-flow-node {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rag-flow-node small,
.rag-flow-node strong {
  display: block;
}

.rag-flow-node small {
  color: #82ada5;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rag-flow-node strong {
  margin-top: 2px;
  font-size: 9px;
}

.rag-node-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(238, 198, 103, 0.18);
  color: #f1cc75;
  font-size: 15px;
}

.rag-node-vector {
  background: rgba(126, 211, 196, 0.18);
  color: #a4e4d7;
}

.rag-flow-arrow {
  margin-left: 8px;
  color: #6fbcb1;
  font-size: 15px;
  line-height: 1;
}

.rag-answer-preview {
  padding: 13px;
  border: 1px solid rgba(216, 238, 234, 0.18);
  border-radius: 12px;
  background: #f8fcf8;
  color: #285250;
}

.rag-answer-label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #137566;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rag-answer-label span {
  color: #d49336;
  font-size: 12px;
}

.rag-answer-preview p {
  margin: 8px 0 0;
  font-size: 9px;
  line-height: 1.65;
}

.rag-citations {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 9px;
}

.rag-citations span {
  padding: 3px 5px;
  border-radius: 4px;
  background: #e1f1eb;
  color: #237464;
  font-size: 7px;
  font-weight: 700;
}

.rag-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.rag-kpis div {
  padding: 10px;
  border: 1px solid rgba(216, 238, 234, 0.14);
  border-radius: 10px;
  background: rgba(0, 27, 28, 0.25);
}

.rag-kpis span,
.rag-kpis strong,
.rag-kpis small {
  display: block;
}

.rag-kpis span,
.rag-kpis small {
  color: #82ada5;
  font-size: 7px;
}

.rag-kpis strong {
  margin-top: 3px;
  color: #f6fcf9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
}

.rag-kpis small {
  margin-top: 2px;
}

.contact-section {
  padding: 36px 0 80px;
  background: #e9ece8;
}

.contact-panel {
  min-height: 380px;
  padding: clamp(34px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: end;
  gap: 70px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 84% 12%, rgba(220, 233, 238, 0.2), transparent 32%),
    var(--blue);
  color: var(--white);
}

.contact-copy .section-number {
  color: #84dcef;
}

.contact-copy h2 {
  margin: 19px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 5.6vw, 76px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.contact-copy > p:last-child {
  max-width: 620px;
  margin: 23px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.contact-actions {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
  transition:
    transform 180ms var(--ease),
    background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-inverse {
  width: 100%;
  justify-content: space-between;
  background: var(--white);
  color: var(--ink-deep);
}

.button-inverse:hover {
  background: #d6f4f9;
}

.contact-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  padding: 30px 0;
  background: var(--ink-deep);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 42px;
}

.footer-brand .brand-mark-image {
  width: 36px;
  height: 36px;
}

.footer-brand strong {
  color: var(--white);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
  color: #78909b;
  font-size: 9px;
  text-align: center;
}

.site-footer > .footer-inner > a:last-child {
  color: #a9bac1;
  font-size: 10px;
  font-weight: 700;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .project {
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    gap: 42px;
  }

  .project h2 {
    font-size: 39px;
  }

  .gait-stage {
    grid-template-columns: 1fr;
  }

  .gait-figure {
    max-height: 310px;
  }
}

@media (max-width: 960px) {
  .menu-button {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: 84px;
    right: 16px;
    left: 16px;
    padding: 20px;
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 180ms ease,
      transform 180ms var(--ease);
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav > a {
    padding: 13px 4px;
    border-bottom: 1px solid #eef1ee;
  }

  .site-nav > a::after {
    display: none;
  }

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

  .project-content {
    min-height: auto;
  }

  .project-pharma .project-content {
    min-height: auto;
    padding: 0 10px 10px;
  }

  .project-photo {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .project-visual {
    width: min(100%, 720px);
    justify-self: center;
  }

  .rag-workflow {
    grid-template-columns: minmax(170px, 0.68fr) minmax(0, 1.32fr);
  }

  .gait-stage {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.72fr);
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 36px), var(--shell));
  }

  .hero-media,
  .hero-media img {
    min-height: 640px;
  }

  .hero-media img {
    object-position: 50% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(243, 244, 242, 0.96) 0%, rgba(243, 244, 242, 0.56) 52%, rgba(243, 244, 242, 0.04) 82%);
  }

  .hero-caption {
    right: auto;
    bottom: 44px;
    left: 28px;
  }

  .hero h1 {
    font-size: clamp(39px, 10vw, 56px);
  }

  .positioning-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .positioning-inner h1 {
    max-width: 620px;
  }

  .positioning-inner .focus-list {
    justify-content: flex-start;
  }

  .section {
    padding: 82px 0 96px;
  }

  .projects-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 50px;
  }

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

  .site-footer p {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 72px;
  }

  .brand-mark-image {
    width: 38px;
    height: 38px;
  }

  .site-nav {
    top: 72px;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-media,
  .hero-media img {
    min-height: 590px;
  }

  .hero-media {
    border-radius: 0;
  }

  .hero-caption {
    left: 24px;
    right: auto;
    bottom: 33px;
    width: calc(100% - 48px);
  }

  .hero-caption > span {
    font-size: 9px;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: clamp(36px, 10.6vw, 49px);
  }

  .hero-link {
    margin-top: 25px;
  }

  .project {
    min-height: auto;
    padding: 24px 18px;
    border-radius: 25px;
  }

  .project-content {
    min-height: auto;
  }

  .project h2 {
    font-size: 34px;
  }

  .project-description {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.72;
  }

  .project-facts {
    margin: 22px 0;
  }

  .project-facts div {
    padding: 9px 0;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .project-visual {
    padding: 12px;
  }

  .gait-stage {
    margin-top: 14px;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 10px;
  }

  .gait-figure {
    max-height: 210px;
  }

  .gait-score {
    padding: 13px 10px;
  }

  .gait-score > strong {
    font-size: 38px;
  }

  .gait-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .rag-workflow {
    grid-template-columns: 1fr;
  }

  .rag-retrieval-flow {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .rag-flow-arrow {
    margin: 0;
    transform: rotate(-90deg);
  }

  .gait-kpis div {
    display: block;
    padding: 10px 8px;
  }

  .gait-kpis strong {
    margin-top: 4px;
    font-size: 18px;
  }

  .gait-kpis small {
    margin: 1px 0 0;
    display: block;
    overflow-wrap: anywhere;
  }

  .scenario-row {
    grid-template-columns: 1fr;
  }

  .scenario-row div {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 5px;
  }

  .scenario-row strong {
    margin: 0;
  }

  .clinical-note {
    margin-top: 10px;
    padding: 10px;
  }

  .value-summary {
    grid-template-columns: 1fr 1fr;
  }

  .value-state {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .contact-panel {
    padding: 32px 24px;
    border-radius: 25px;
  }

  .button-inverse {
    padding: 0 17px;
    font-size: 11px;
  }
}

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

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

