/* About page refinements: dark partner cards, chaptered history and leadership */
.grad {
  /* Keep descenders such as g, j, p, q and y inside the gradient paint area. */
  display: inline;
  padding-bottom: .14em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.about-hero h1,
.section-title,
.mv-card h3,
.timeline .tl-item h3,
.team-copy h2,
.leadership-heading h2,
.svc-cta-card h2 {
  overflow: visible;
}

.partner-marquee {
  padding-top: 30px;
  padding-bottom: 34px;
  background: linear-gradient(180deg, rgba(3, 34, 53, 0) 0%, rgba(0, 224, 150, 0.035) 48%, rgba(3, 34, 53, 0) 100%);
}

.partner-marquee .marquee-track {
  animation-duration: 38s;
}

.partner-marquee .marquee-chip {
  position: relative;
  min-width: 220px;
  height: 86px;
  padding: 14px 28px;
  overflow: hidden;
  background: linear-gradient(145deg, #0b4058, #072d43);
  border: 1px solid rgba(105, 255, 203, 0.2);
  box-shadow: 0 18px 42px -24px rgba(0, 0, 0, 0.9), inset 0 1px rgba(255, 255, 255, 0.05);
}

.partner-marquee .marquee-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 224, 150, 0.1), transparent 62%);
  pointer-events: none;
}

.partner-marquee .marquee-chip img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 175px;
  max-height: 56px;
  object-fit: contain;
}

.timeline [data-phase="origin"] { --phase: var(--accent); }
.timeline [data-phase="scale"] { --phase: #3dd6ff; }
.timeline [data-phase="clinical"] { --phase: #f5c451; }
.timeline [data-phase="ai"] { --phase: #b98cff; }

.timeline {
  position: relative;
  display: block;
  max-width: 980px;
  margin: 0 auto;
  padding: 8px 0 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 22px;
  bottom: 20px;
  width: 2px;
  display: block;
  background: linear-gradient(180deg, var(--accent) 0 28%, #3dd6ff 38% 50%, #f5c451 60% 78%, #b98cff 88% 100%);
  box-shadow: 0 0 18px rgba(0, 224, 150, .2);
}

.timeline .tl-item {
  --phase: var(--accent);
  position: relative;
  isolation: isolate;
  min-height: 0;
  padding: 16px 24px 62px 104px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.timeline .tl-item::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 34px 76px;
  border: 1px solid color-mix(in srgb, var(--phase) 24%, rgba(255,255,255,.08));
  border-left: 3px solid var(--phase);
  border-radius: 0 18px 18px 0;
  background: linear-gradient(100deg, color-mix(in srgb, var(--phase) 9%, #082e43), rgba(7, 42, 61, .38) 72%);
  box-shadow: 0 22px 48px -42px var(--phase);
}

.timeline .tl-item:last-child { padding-bottom: 28px; }
.timeline .tl-item:last-child::after { bottom: 0; }
.timeline .tl-dot {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 10px;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--phase) 55%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--phase) 13%, #082f45);
  color: var(--phase);
  font: 700 24px/1 var(--f-display);
  box-shadow: 0 0 0 8px #052b40, 0 0 24px color-mix(in srgb, var(--phase) 32%, transparent);
}
.timeline .tl-year {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--phase);
  transform-origin: left center;
}
.timeline .tl-item.in .tl-year { animation: yearSwipe .75s cubic-bezier(.16,1,.3,1) both; }
.timeline .tl-year .tag { border-color: color-mix(in srgb, var(--phase) 35%, transparent); color: var(--bone-2); }
.timeline .tl-item h3 { margin-top: 16px; font-size: clamp(22px, 2.5vw, 29px); }
.timeline .tl-item p { color: var(--bone-2); }

@keyframes yearSwipe {
  from { opacity: 0; transform: translateX(-42px); filter: blur(5px); }
  to { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.team-footnote {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(0, 224, 150, .06);
  color: var(--bone-2);
}
.team-footnote strong { color: var(--bone); }

.leadership-section {
  position: relative;
  padding: 20px var(--gutter) 118px;
  overflow: hidden;
}
.leadership-section::before {
  content: "";
  position: absolute;
  inset: 18% -20% auto;
  height: 360px;
  background: radial-gradient(ellipse, rgba(0,224,150,.08), transparent 68%);
  pointer-events: none;
}
.leadership-heading { position: relative; max-width: 720px; margin-bottom: 40px; }
.leadership-heading h2 { margin-top: 22px; font: 700 clamp(38px, 5vw, 64px)/.98 var(--f-display); letter-spacing: -.045em; }
.leadership-heading p { max-width: 620px; margin-top: 20px; color: var(--bone-2); font-size: 17px; line-height: 1.65; }
.leadership-grid { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.leader-card { overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: 22px; background: linear-gradient(160deg, #0d4058, #072b40); transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease; }
.leader-card:hover { transform: translateY(-8px); border-color: rgba(0,224,150,.48); box-shadow: 0 28px 60px -34px rgba(0,224,150,.55); }
.leader-photo { position: relative; aspect-ratio: 1 / 1; margin: 12px 12px 0; overflow: hidden; border-radius: 16px; background: #072d43; }
.leader-photo::after { content: ""; position: absolute; inset: auto 0 0; height: 35%; background: linear-gradient(transparent, rgba(3,30,45,.32)); pointer-events: none; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.leader-card:hover .leader-photo img { transform: scale(1.035); }
.leader-copy { padding: 20px 22px 24px; }
.leader-copy h3 { font: 700 22px/1.1 var(--f-display); color: var(--bone); }
.leader-copy p { margin-top: 7px; color: var(--accent-2); font: 600 12px/1.3 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; }

@media (max-width: 1180px) {
  .leadership-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .leadership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .timeline::before { left: 22px; }
  .timeline .tl-item { padding: 10px 4px 50px 70px; }
  .timeline .tl-item::after { inset: 0 0 26px 58px; }
  .timeline .tl-item:last-child::after { bottom: 0; }
  .timeline .tl-dot { width: 46px; height: 46px; border-radius: 14px; font-size: 18px; box-shadow: 0 0 0 6px #052b40, 0 0 20px color-mix(in srgb, var(--phase) 30%, transparent); }
  .timeline .tl-year { align-items: flex-start; flex-direction: column; gap: 7px; }
  .leadership-grid { grid-template-columns: 1fr; }
  .leader-card { display: grid; grid-template-columns: 124px 1fr; align-items: center; }
  .leader-photo { aspect-ratio: 1; margin: 10px; }
  .leader-copy { padding: 16px 14px; }
  .partner-marquee .marquee-chip { min-width: 184px; height: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  .leader-card, .leader-photo img { transition: none; }
  .timeline .tl-item.in .tl-year { animation: none; }
}
