:root {
  color-scheme: light;
  --ink: #08242d;
  --ink-soft: #385760;
  --muted: #6d8187;
  --line: #dce7e9;
  --paper: #f7fbfb;
  --white: #ffffff;
  --teal: #086d78;
  --teal-deep: #063e49;
  --teal-light: #d9f2ef;
  --cyan: #44b7bd;
  --amber: #c9923d;
  --shadow: 0 24px 70px rgba(4, 45, 55, 0.16);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

.scroll-progress {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(6, 45, 54, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.1);
  padding: 8px 16px;
}

.brand img {
  width: 220px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
  font-weight: 600;
}

.main-nav a {
  opacity: 0.88;
}

.main-nav a:hover {
  opacity: 1;
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: currentColor;
}

.site-header.is-scrolled .nav-toggle,
.site-header.is-open .nav-toggle {
  border-color: var(--line);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 99px;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
  background: var(--teal-deep);
  color: var(--white);
}

.hero-media,
.hero-fallback,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media,
.hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
  transform: scale(calc(1.04 + var(--hero-progress, 0) * 0.06)) translateY(calc(var(--hero-progress, 0) * 38px));
  transform-origin: center;
  transition: transform 120ms linear;
}

.hero-media {
  z-index: -2;
}

.hero-fallback {
  z-index: -3;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 28, 35, 0.92) 0%, rgba(4, 45, 54, 0.82) 33%, rgba(4, 45, 54, 0.38) 65%, rgba(2, 28, 35, 0.16) 100%),
    linear-gradient(180deg, rgba(3, 31, 39, 0.32) 0%, rgba(3, 31, 39, 0.05) 55%, rgba(3, 31, 39, 0.76) 100%);
}

.hero-content {
  width: min(660px, calc(100% - 40px));
  padding: 138px 0 170px;
  margin-left: clamp(20px, 7vw, 96px);
  transform: translateY(calc(var(--hero-progress, 0) * 28px));
  transition: transform 120ms linear;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.contact h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6.2vw, 5.9rem);
}

.hero-copy {
  max-width: 590px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.4vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(36px) scale(0.985);
  transition:
    opacity 750ms ease,
    transform 750ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-index, 0) * 80ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Directional variants */
.reveal--left {
  transform: translateX(-48px) scale(0.97);
}
.reveal--right {
  transform: translateX(48px) scale(0.97);
}
.reveal--left.is-visible,
.reveal--right.is-visible {
  transform: translateX(0) scale(1);
}

.section-heading.reveal {
  transform: translateY(44px);
}

.study-hero-figure.reveal,
.study-data-figure.reveal,
.news-card.reveal,
.study-card.reveal,
.feature-card.reveal,
.pipeline-board.reveal {
  transform: translateY(48px) scale(0.96);
}

.study-hero-figure.reveal.is-visible,
.study-data-figure.reveal.is-visible,
.news-card.reveal.is-visible,
.study-card.reveal.is-visible,
.feature-card.reveal.is-visible,
.pipeline-board.reveal.is-visible {
  transform: translateY(0) scale(1);
}

/* Feature cards: left → up → right */
.feature-card.reveal:nth-child(1) { transform: translateX(-48px) scale(0.97); }
.feature-card.reveal:nth-child(3) { transform: translateX(48px) scale(0.97); }
.feature-card.reveal:nth-child(1).is-visible,
.feature-card.reveal:nth-child(3).is-visible { transform: translateX(0) scale(1); }

/* Science flow articles: left → up → right */
.science-flow article.reveal:nth-child(1) { transform: translateX(-52px); }
.science-flow article.reveal:nth-child(3) { transform: translateX(52px); }
.science-flow article.reveal:nth-child(1).is-visible,
.science-flow article.reveal:nth-child(3).is-visible { transform: translateX(0); }

/* Team grid: alternate left/right */
.team-grid article.reveal:nth-child(odd)  { transform: translateX(-40px); }
.team-grid article.reveal:nth-child(even) { transform: translateX(40px); }
.team-grid article.reveal:nth-child(odd).is-visible,
.team-grid article.reveal:nth-child(even).is-visible { transform: translateX(0); }

/* Image zoom-in on cards */
.news-card.reveal .news-photo,
.study-card.reveal img {
  transform: scale(1.06);
  transition: transform 950ms cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card.reveal.is-visible .news-photo,
.study-card.reveal.is-visible img {
  transform: scale(1);
}

/* Metric counter pop */
.metric.reveal strong {
  transform: translateY(12px);
  transition: transform 750ms cubic-bezier(0.16, 1, 0.3, 1);
}

.metric.reveal.is-visible strong {
  transform: translateY(0);
}

/* Parallax on study hero image */
.study-hero-figure img {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* Hero panel items slide in from the right */
.hero-panel > div.reveal {
  transform: translateX(40px);
}
.hero-panel > div.reveal.is-visible {
  transform: translateX(0);
}

/* Intro section: kicker from left, text from right */
.intro .section-grid > *:first-child.reveal {
  transform: translateX(-36px);
}
.intro .section-grid > *:last-child.reveal {
  transform: translateX(36px);
}
.intro .section-grid > *.reveal.is-visible {
  transform: translateX(0);
}

.button.primary {
  background: var(--white);
  color: var(--teal-deep);
  box-shadow: 0 16px 36px rgba(1, 18, 24, 0.18);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.46);
  color: var(--white);
}

.contact-card .button.primary {
  background: var(--teal-deep);
  color: var(--white);
  box-shadow: none;
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 72px);
  bottom: 30px;
  display: grid;
  width: min(760px, calc(100% - 40px));
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(4, 34, 42, 0.58);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  transform: translateY(calc(var(--hero-progress, 0) * -18px));
  transition: transform 120ms linear;
}

.hero-panel div {
  padding: 18px;
}

.hero-panel div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-panel strong {
  display: block;
  font-size: 1.18rem;
}

.hero-panel span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.45;
}

.section {
  padding: 96px clamp(20px, 5vw, 72px);
}

.section-grid,
.section-heading,
.translation,
.contact,
.site-footer {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.intro {
  background: var(--white);
}

.intro h2,
.section-heading h2,
.translation h2,
.contact h2 {
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 4.4rem);
}

.intro p:not(.section-kicker),
.section-heading p:not(.section-kicker),
.translation p,
.contact p,
.feature-card p,
.study-card p,
.news-card p,
.science-flow p,
.team-grid p,
.pipeline-program span,
.pipeline-legend p,
.timeline p {
  color: var(--ink-soft);
}

.intro p:not(.section-kicker) {
  max-width: 800px;
  margin: 24px 0 0;
  font-size: 1.18rem;
}

.platform-band {
  background: linear-gradient(180deg, #edf7f7 0%, #f7fbfb 100%);
}

.section-heading {
  margin-bottom: 44px;
}

.section-heading p:not(.section-kicker) {
  max-width: 760px;
  margin: 22px 0 0;
  font-size: 1.08rem;
}

.section-heading.narrow {
  max-width: 850px;
  margin-left: 0;
}

.feature-grid,
.team-grid {
  display: grid;
  width: min(var(--max), 100%);
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 auto;
}

.feature-card,
.team-grid article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.feature-card {
  min-height: 310px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(6, 68, 78, 0.08);
}

.feature-icon {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  font-weight: 800;
}

.feature-card h3,
.science-flow h3,
.team-grid h3,
.contact-card h3 {
  margin: 26px 0 10px;
  color: var(--ink);
  font-size: 1.32rem;
  line-height: 1.2;
}

.science {
  overflow: hidden;
  background: var(--white);
}

.science-flow {
  display: grid;
  width: min(var(--max), 100%);
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.science-flow article {
  position: relative;
  min-height: 270px;
  padding: 34px;
  background: var(--white);
}

.science-flow article::after {
  content: "";
  position: absolute;
  top: 41px;
  right: -14px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--white);
  transform: rotate(45deg);
}

.science-flow article:last-child::after {
  display: none;
}

.science-flow span,
.study-card span,
.timeline span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.concept-study {
  background:
    linear-gradient(180deg, #f7fbfb 0%, #ffffff 48%, #eef8f7 100%);
}

.study-hero-figure,
.study-grid,
.study-data-figure {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.study-hero-figure,
.study-data-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 22px 60px rgba(6, 68, 78, 0.1);
}

.study-hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1409 / 705;
  object-fit: contain;
  padding: clamp(8px, 1.5vw, 16px);
  background: var(--white);
}

.study-hero-figure figcaption {
  margin: 0;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.study-data-figure {
  margin-top: 24px;
}

.study-data-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 1810 / 1032;
  object-fit: contain;
  padding: clamp(8px, 1.4vw, 16px);
  background: var(--white);
}

.study-data-figure figcaption {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 24px;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(247, 251, 251, 0.98), rgba(255, 255, 255, 0.98));
}

.study-data-figure span {
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.study-data-figure strong {
  max-width: 900px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  line-height: 1.18;
}

.study-data-figure p {
  max-width: 980px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.study-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.study-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 45px rgba(6, 68, 78, 0.08);
}

.study-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.study-card div {
  padding: 22px;
}

.study-card h3 {
  margin: 10px 0;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.25;
}

.study-card p {
  margin: 0;
  font-size: 0.95rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--teal-deep);
}

.metric {
  padding: 54px clamp(24px, 4vw, 58px);
  color: var(--white);
}

.metric + .metric {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.metric strong {
  display: block;
  color: var(--white);
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1;
}

.metric span {
  display: block;
  max-width: 360px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
}

.translation {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.78fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
}

.translation-copy p:not(.section-kicker) {
  max-width: 680px;
  margin-top: 24px;
  font-size: 1.08rem;
}

.timeline {
  border-left: 2px solid var(--teal-light);
}

.timeline-item {
  position: relative;
  padding: 0 0 32px 30px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 5px;
  width: 16px;
  height: 16px;
  border: 4px solid var(--paper);
  border-radius: 50%;
  background: var(--teal);
}

.timeline p {
  margin: 7px 0 0;
}

.timeline a {
  display: inline-flex;
  margin-left: 6px;
  color: var(--teal);
  font-weight: 800;
}

.news {
  background: var(--white);
}

.news-grid {
  display: grid;
  width: min(var(--max), 100%);
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 auto;
}

.news-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(6, 68, 78, 0.07);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.news-card:hover {
  border-color: rgba(8, 109, 120, 0.28);
  box-shadow: 0 24px 60px rgba(6, 68, 78, 0.13);
  transform: translateY(-3px);
}

.news-card.featured {
  grid-row: auto;
  background:
    linear-gradient(160deg, rgba(6, 62, 73, 0.97), rgba(8, 109, 120, 0.88)),
    radial-gradient(circle at 88% 10%, rgba(68, 183, 189, 0.35), transparent 32%);
  color: var(--white);
}

.news-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--white);
  border-bottom: 1px solid rgba(8, 109, 120, 0.12);
}

.news-card.featured .news-photo {
  aspect-ratio: 1.55 / 1;
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.news-photo.logo-photo {
  object-fit: contain;
  padding: 32px;
  background: var(--white);
}

.news-meta {
  display: flex;
  width: auto;
  align-items: center;
  flex-wrap: nowrap;
  overflow: hidden;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 26px 18px;
}

.news-meta span,
.news-meta time {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-meta span {
  color: var(--amber);
}

.news-meta time {
  color: var(--muted);
}

.news-card.featured .news-meta time,
.news-card.featured p {
  color: rgba(255, 255, 255, 0.72);
}

.news-card h3 {
  margin: 0 26px 28px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.16;
}

.news-card.featured h3 {
  color: var(--white);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.news-card p {
  margin: 18px 26px 0;
}

.team {
  background: var(--white);
}

.team-grid {
  grid-template-columns: repeat(4, 1fr);
}

.team-grid article {
  padding: 24px;
}

.team-grid h3 {
  margin-top: 0;
  font-size: 1.08rem;
}

.team-grid p {
  margin-bottom: 0;
  font-size: 0.93rem;
}

.pipeline {
  background:
    linear-gradient(180deg, #f7fbfb 0%, #ffffff 100%);
}

.pipeline-board {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 20px 60px rgba(6, 68, 78, 0.08);
}

.pipeline-axis,
.pipeline-row {
  display: grid;
  grid-template-columns: 190px repeat(4, minmax(0, 1fr));
  gap: 0;
}

.pipeline-axis {
  margin-bottom: 12px;
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline-axis span:not(:first-child) {
  padding: 0 18px 12px;
  border-bottom: 1px solid var(--line);
}

.pipeline-row {
  min-height: 92px;
  align-items: center;
  border-bottom: 1px solid rgba(220, 231, 233, 0.84);
}

.pipeline-board.reveal .pipeline-row {
  opacity: 0;
  transform: translateX(-18px);
  transition:
    opacity 620ms ease,
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(180ms + var(--pipeline-row-index, 0) * 120ms);
}

.pipeline-board.reveal.is-visible .pipeline-row {
  opacity: 1;
  transform: translateX(0);
}

.pipeline-row:nth-of-type(2) { --pipeline-row-index: 0; }
.pipeline-row:nth-of-type(3) { --pipeline-row-index: 1; }
.pipeline-row:nth-of-type(4) { --pipeline-row-index: 2; }

.pipeline-row:last-of-type {
  border-bottom: 0;
}

.pipeline-program {
  padding-right: 22px;
}

.pipeline-program strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.18;
}

.pipeline-program span {
  display: block;
  margin-top: 5px;
  font-size: 0.88rem;
}

.pipeline-track {
  position: relative;
  grid-column: 2 / -1;
  min-height: 46px;
  border-left: 1px solid rgba(220, 231, 233, 0.82);
  background:
    linear-gradient(90deg, rgba(220, 231, 233, 0.82) 1px, transparent 1px) 0 0 / 25% 100%;
}

.pipeline-track::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 10px;
  border-radius: 999px;
  background: #edf4f5;
  transform: translateY(-50%);
}

.pipeline-progress {
  position: absolute;
  top: 50%;
  left: 0;
  width: var(--progress);
  height: 14px;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  box-shadow: 0 10px 22px rgba(8, 109, 120, 0.18);
  transform: translateY(-50%);
}

.pipeline-board.reveal .pipeline-progress {
  width: 0;
  transition:
    width 900ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 900ms ease;
  transition-delay: calc(360ms + var(--pipeline-row-index, 0) * 140ms);
}

.pipeline-board.reveal.is-visible .pipeline-progress {
  width: var(--progress);
}

.pipeline-progress::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 20px solid var(--cyan);
  transform: translateY(-50%);
}

.pipeline-progress-soft {
  background: linear-gradient(90deg, var(--teal-deep), var(--amber));
}

.pipeline-progress-soft::after {
  border-left-color: var(--amber);
}

.pipeline-stage {
  position: absolute;
  top: 50%;
  left: min(calc(var(--progress) + 30px), calc(100% - 116px));
  z-index: 1;
  padding: 6px 10px;
  border: 1px solid rgba(8, 109, 120, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(6, 68, 78, 0.08);
  transform: translateY(-50%);
}

.pipeline-board.reveal .pipeline-stage {
  opacity: 0;
  transform: translateY(-50%) translateX(-8px);
  transition:
    opacity 480ms ease,
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(760ms + var(--pipeline-row-index, 0) * 140ms);
}

.pipeline-board.reveal.is-visible .pipeline-stage {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.pipeline-stage-soft {
  border-color: rgba(201, 146, 61, 0.28);
  color: #835f29;
}

.pipeline-mobile-axis {
  display: none;
}

.pipeline-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legend-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(68, 183, 189, 0.16);
}

.pipeline-legend p {
  margin: 0;
  font-size: 0.92rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.9fr);
  gap: clamp(28px, 7vw, 96px);
  align-items: center;
  margin-bottom: 82px;
  padding: clamp(42px, 6vw, 72px);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(217, 242, 239, 0.92), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at 88% 8%, rgba(68, 183, 189, 0.22), transparent 28%);
  box-shadow: var(--shadow);
}

.contact p {
  max-width: 700px;
  font-size: 1.08rem;
}

.social-links {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin-top: 28px;
}

.social-links a {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 13px 16px;
  border: 1px solid rgba(8, 109, 120, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 35px rgba(6, 68, 78, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.social-links a:hover {
  border-color: rgba(8, 109, 120, 0.34);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(6, 68, 78, 0.12);
  transform: translateY(-2px);
}

.social-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

.social-links strong,
.social-links small {
  display: block;
}

.social-links strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.social-links small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.contact-card {
  padding: 28px;
  box-shadow: 0 18px 45px rgba(6, 68, 78, 0.08);
}

.contact-card h3 {
  margin-top: 0;
}

.contact-card p {
  margin-bottom: 22px;
  font-size: 0.98rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-form label.full,
.contact-form .button,
.form-note {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.96rem;
  outline: 0;
  padding: 12px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-form textarea {
  min-height: 136px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(8, 109, 120, 0.55);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(68, 183, 189, 0.14);
}

.contact-form .button {
  width: 100%;
  margin-top: 4px;
  border: 0;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.form-note.is-success {
  color: var(--teal);
  font-weight: 800;
}

.source-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--teal);
  font-size: 0.94rem;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 34px clamp(20px, 5vw, 72px) 46px;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  color: var(--ink);
  font-weight: 800;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-social a {
  color: var(--teal);
  font-weight: 800;
}

.footer-social a:hover {
  color: var(--teal-deep);
}

.detail-page {
  background: linear-gradient(180deg, #eef8f7 0%, #ffffff 38%, #f7fbfb 100%);
}

.detail-header {
  display: flex;
  width: min(var(--max), calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 26px 0;
}

.detail-header .brand {
  box-shadow: 0 12px 30px rgba(6, 68, 78, 0.1);
}

.detail-back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--teal-deep);
  font-weight: 800;
  padding: 9px 16px;
}

.news-detail {
  width: min(920px, calc(100% - 40px));
  margin: 36px auto 90px;
}

.news-detail h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 1.02;
}

.detail-hero-image {
  width: 100%;
  max-height: 620px;
  margin: 34px 0;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* Slideshow */
.slideshow {
  position: relative;
  width: 100%;
  margin: 34px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.slideshow-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.slideshow-track img {
  min-width: 100%;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  display: block;
}
.slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}
.slideshow-btn:hover { background: rgba(0,0,0,0.7); }
.slideshow-btn.prev { left: 12px; }
.slideshow-btn.next { right: 12px; }
.slideshow-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.slideshow-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.slideshow-dots .dot.active { background: #fff; }

.detail-hero-image.logo-detail {
  max-height: 320px;
  padding: clamp(36px, 8vw, 80px);
  background: var(--white);
  object-fit: contain;
}

.news-detail p {
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}

.news-detail .detail-lead {
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.detail-facts div {
  min-height: 132px;
  background: var(--white);
  padding: 22px;
}

.detail-facts strong {
  display: block;
  color: var(--teal-deep);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1;
}

.detail-facts span {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.detail-button {
  margin-top: 16px;
  background: var(--teal-deep);
  color: var(--white);
}

@media (max-width: 980px) {
  .site-header {
    padding: 14px 20px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    position: fixed;
    inset: 70px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px;
  }

  .nav-cta {
    border-color: var(--line);
    border-radius: var(--radius);
  }

  .hero {
    min-height: 740px;
  }

  .hero-content {
    padding-top: 136px;
    padding-bottom: 245px;
    margin-left: 20px;
  }

  .hero-panel {
    left: 20px;
    right: 20px;
    bottom: 24px;
    grid-template-columns: 1fr;
  }

  .hero-panel div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .section-grid,
  .translation,
  .contact {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .science-flow,
  .study-grid,
  .news-grid,
  .team-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .pipeline-axis,
  .pipeline-row {
    grid-template-columns: 160px repeat(4, minmax(120px, 1fr));
  }

  .pipeline-board {
    overflow-x: auto;
  }

  .pipeline-axis,
  .pipeline-row,
  .pipeline-legend {
    min-width: 760px;
  }

  .news-card.featured {
    grid-row: auto;
  }

  .science-flow article::after {
    top: auto;
    right: calc(50% - 14px);
    bottom: -14px;
    transform: rotate(135deg);
  }

  .metric + .metric {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

  .contact {
    padding: 28px 22px;
    width: calc(100% - 40px);
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .detail-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .brand {
    border-radius: 16px;
    padding: 7px 12px;
  }

  .brand img {
    width: 174px;
  }

  .hero {
    min-height: auto;
    padding-bottom: 20px;
  }

  .hero-content {
    width: auto;
    padding: 132px 20px 26px;
    margin-left: 0;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    margin: 0 20px;
  }

  .hero-media,
  .hero-fallback {
    object-position: 66% center;
  }

  .section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .intro h2,
  .section-heading h2,
  .translation h2,
  .contact h2 {
    font-size: 2.25rem;
  }

  .feature-card,
  .science-flow article,
  .team-grid article,
  .contact-card {
    padding: 22px;
  }

  .pipeline-board {
    padding: 18px;
  }

  .pipeline-axis {
    display: none;
  }

  .pipeline-axis,
  .pipeline-row,
  .pipeline-legend {
    min-width: 0;
  }

  .pipeline-row {
    display: block;
    min-height: auto;
    padding: 18px 0;
  }

  .pipeline-program {
    padding-right: 0;
    margin-bottom: 16px;
  }

  .pipeline-track {
    min-height: 58px;
    grid-column: auto;
    border-left: 0;
    background:
      linear-gradient(90deg, rgba(220, 231, 233, 0.82) 1px, transparent 1px) 0 0 / 33.333% 100%;
  }

  .pipeline-mobile-axis {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.1;
  }

  .pipeline-mobile-axis span {
    min-width: 0;
  }

  .pipeline-mobile-axis span:nth-child(n + 3) {
    text-align: center;
  }

  .pipeline-mobile-axis span:last-child {
    text-align: right;
  }

  .pipeline-stage {
    top: 13px;
    left: auto;
    right: 0;
    transform: none;
  }

  .pipeline-board.reveal .pipeline-stage {
    transform: translateY(-6px);
  }

  .pipeline-board.reveal.is-visible .pipeline-stage {
    transform: translateY(0);
  }

  .study-hero-figure figcaption,
  .study-card div {
    padding: 18px;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
