/* About page */

.about-hero {
  background: var(--color-bg-soft);
  padding: 80px var(--page-pad-x);
}

.about-hero__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}

.about-hero__left {
  flex: 1 1 452px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-hero__title {
  margin: 0;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text);
  white-space: nowrap;
  overflow: visible;
}

.about-hero__title.m-split {
  overflow: visible;
  clip-path: none;
}

.about-hero__title .m-word {
  white-space: nowrap;
}

.about-hero__mockup {
  flex: 0 1 460px;
  width: 460px;
  min-width: 420px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 367px;
  padding: 24px 28px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  box-shadow: 0 16px 16px rgba(0, 0, 0, 0.05);
}

.about-hero__mockup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.2;
}

.about-hero__mockup-line {
  height: 1px;
  background: var(--color-border);
  flex-shrink: 0;
}

.about-hero__mockup-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.about-hero__mockup-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  background: #f4f6fc;
  border-left: 1px solid var(--color-primary);
}

.about-hero__mockup-num {
  color: var(--color-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.about-hero__mockup-label {
  color: var(--color-text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

/* Position / values */
.about-position {
  background: #fff;
  padding: 80px var(--page-pad-x);
}

.about-position__inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.about-position__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.about-position__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 36px;
  height: 206px;
  min-height: 206px;
  padding: 24px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-sizing: border-box;
}

.about-position__label {
  margin: 0;
  font-size: 24px;
  line-height: 1.6;
  color: var(--color-primary);
}

.about-position__title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text);
  white-space: nowrap;
}

/* Journey */
.about-journey {
  position: relative;
  overflow: hidden;
  background: var(--color-bg-soft);
  padding: 80px var(--page-pad-x);
}

.about-journey__bg {
  position: absolute;
  inset: 0;
  bottom: -40px;
  height: auto;
  opacity: 0.1;
  pointer-events: none;
  overflow: hidden;
}

.about-journey__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.about-journey__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.about-journey__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-journey__years,
.about-journey__items {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 36px;
}

.about-journey__year {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  padding-bottom: 28px;
}

.about-journey__year span {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text);
}

.about-journey__year::after {
  content: "";
  width: 1px;
  flex: 1;
  min-height: 48px;
  border-left: 1px dashed #c5cdd8;
}

.about-journey__axis {
  position: relative;
  height: 0;
  margin: 0 0 24px;
  border-top: 1px dashed #c5cdd8;
}

.about-journey__years .about-journey__year::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text);
  transform: translate(-50%, 50%);
  margin-left: 0.5px;
  z-index: 1;
}

.about-journey__item h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
}

.about-journey__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
  opacity: 0.8;
}

/* Founders */
.about-founders {
  background: #fff;
  padding: 80px var(--page-pad-x);
}

.about-founders__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.about-founders__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.about-founders .section-title,
.about-founders .section-title .m-word {
  white-space: nowrap;
}

.about-founder {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.about-founder__portrait {
  width: 100%;
  max-width: 280px;
  height: 180px;
  overflow: hidden;
}

.about-founder__portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
}

.about-founder__role {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 1.6px;
  color: var(--color-primary);
}

.about-founder__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.about-founder__list li {
  position: relative;
  padding-left: 14px;
  font-size: 16px;
  line-height: 2.4;
  color: var(--color-text);
}

.about-founder__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text);
  transform: translateY(-50%);
}

/* Institute */
.about-institute {
  background: var(--color-bg-soft);
  padding: 80px var(--page-pad-x);
}

.about-institute__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.about-institute__diagram {
  width: 100%;
}

.about-institute__diagram img {
  width: 100%;
  height: auto;
}

/* Team */
.about-team {
  background: #fff;
  padding: 80px var(--page-pad-x);
}

.about-team__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}

.about-team__left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-team__title {
  margin: 0;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

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

.about-team__metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.about-team__metric + .about-team__metric {
  border-left: 1px solid var(--color-border);
  padding-left: 24px;
}

.about-team__metric-value {
  margin: 0;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.about-team__metric-value span {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
}

.about-team__metric-value em {
  font-style: normal;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-primary);
}

.about-team__metric-label {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
  color: var(--color-text-muted);
}

.about-team__photo {
  width: 452px;
  flex-shrink: 0;
  height: 315px;
  overflow: hidden;
}

.about-team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Recognition */
.about-recog {
  background: var(--color-bg-soft);
  padding: 60px var(--page-pad-x) 0;
}

.about-recog__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: center;
}

.about-recog .section-title,
.about-recog .section-title .m-word {
  white-space: nowrap;
}

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

.about-recog__awards img {
  height: 70px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.about-recog__certs {
  margin-top: 0;
  width: 100%;
  overflow: hidden;
}

.about-recog__certs img {
  width: 100%;
  height: auto;
  display: block;
}

/* Influence */
.about-influence {
  background: #fff;
  padding: 60px var(--page-pad-x);
}

.about-influence__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.about-influence__highlights {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.about-influence__highlight {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.about-influence__highlight h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text);
}

.about-influence__highlight h3 span {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--color-primary);
}

.about-influence__highlight p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  opacity: 0.5;
}

.about-influence__showcase {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
}

.about-influence__list-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 464px;
  height: 265px;
  overflow: hidden;
}

.about-influence__list {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.about-influence__item {
  width: 100%;
  flex: 0 0 auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-left: 1px solid transparent;
  opacity: 0.8;
  cursor: pointer;
  transition: background-color 0.25s ease, opacity 0.25s ease, font-size 0.25s ease;
}

.about-influence__item.is-active {
  min-height: 72px;
  background: var(--color-bg-soft);
  border-left: 1px solid var(--color-text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 1;
}

.about-influence__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
  pointer-events: none;
}

.about-influence__divider {
  width: 1px;
  background: var(--color-border-strong);
  flex-shrink: 0;
  align-self: stretch;
}

.about-influence__media {
  position: relative;
  width: 472px;
  height: 265px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f2f3f5;
}

.about-influence__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.35s ease;
}

/* CTA / contact */
.about-cta {
  background: var(--color-bg-soft);
  padding: 60px var(--page-pad-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  scroll-margin-top: 96px;
}

.about-cta__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

@media (max-width: 1100px) {
  .about-hero {
    padding: 48px var(--page-pad-x);
  }

  .about-hero__inner,
  .about-team__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  /* column layout: desktop flex-basis becomes unwanted height */
  .about-hero__left {
    flex: 0 0 auto;
    width: 100%;
    gap: 20px;
  }

  .about-hero__title,
  .about-team__title {
    font-size: 36px;
  }

  .about-hero__mockup {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    padding: 20px;
    box-sizing: border-box;
  }

  .about-hero__mockup-head {
    flex-wrap: wrap;
  }

  .about-hero__mockup-label {
    white-space: normal;
  }

  .about-team__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 452 / 301;
  }

  .about-founders__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-journey__years,
  .about-journey__items {
    gap: 16px;
  }

  .about-journey__year span {
    font-size: 20px;
  }

  .about-journey__item h3 {
    font-size: 16px;
  }

  .about-journey__item p {
    font-size: 12px;
  }

  .about-influence__showcase {
    flex-direction: column;
  }

  .about-influence__list-wrap {
    max-width: none;
    height: auto;
  }

  .about-influence__divider {
    display: none;
  }

  .about-influence__media {
    width: 100%;
    height: auto;
    aspect-ratio: 472 / 266;
  }

  .about-influence__img {
    position: absolute;
  }
}

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

  .about-position__card {
    height: auto;
    min-height: auto;
    gap: 16px;
  }

  .about-position__title {
    white-space: normal;
  }

  /* mobile: stack timeline so all years/items stay fully visible */
  .about-journey__timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    padding-bottom: 0;
  }

  .about-journey__axis {
    display: none;
  }

  .about-journey__years,
  .about-journey__items {
    display: contents;
    width: auto;
    min-width: 0;
  }

  .about-journey__year,
  .about-journey__item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .about-journey__year {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 0 0 8px 20px;
    border-left: 1px dashed #c5cdd8;
  }

  .about-journey__year::after {
    display: none;
  }

  .about-journey__year::before {
    left: 0;
    top: 0.85em;
    bottom: auto;
    transform: translate(-50%, -50%);
  }

  .about-journey__year span {
    font-size: 20px;
    line-height: 1.3;
  }

  .about-journey__item {
    padding: 0 0 28px 20px;
    border-left: 1px dashed #c5cdd8;
  }

  .about-journey__item:last-child {
    padding-bottom: 0;
  }

  .about-journey__year:nth-child(1) { order: 1; }
  .about-journey__item:nth-child(1) { order: 2; }
  .about-journey__year:nth-child(2) { order: 3; }
  .about-journey__item:nth-child(2) { order: 4; }
  .about-journey__year:nth-child(3) { order: 5; }
  .about-journey__item:nth-child(3) { order: 6; }
  .about-journey__year:nth-child(4) { order: 7; }
  .about-journey__item:nth-child(4) { order: 8; }
  .about-journey__year:nth-child(5) { order: 9; }
  .about-journey__item:nth-child(5) { order: 10; }
  .about-journey__year:nth-child(6) { order: 11; }
  .about-journey__item:nth-child(6) { order: 12; }

  .about-team__metrics {
    flex-wrap: wrap;
  }

  .about-team__metric {
    flex: 1 1 40%;
  }

  .about-team__metric + .about-team__metric {
    border-left: none;
    padding-left: 0;
  }

  .about-recog__awards {
    flex-wrap: wrap;
    justify-content: center;
  }

  .about-influence__highlights {
    flex-direction: column;
    gap: 24px;
  }

  .about-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .about-cta__actions .btn {
    width: 100%;
  }

  .about-hero__title,
  .about-team__title,
  .about-founders .section-title,
  .about-founders .section-title .m-word,
  .about-recog .section-title,
  .about-recog .section-title .m-word {
    white-space: normal;
  }

  .about-position__card h3,
  .about-influence__list button,
  .section-desc {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .about-hero,
  .about-position,
  .about-journey,
  .about-founders,
  .about-institute,
  .about-team,
  .about-recog,
  .about-influence,
  .about-cta {
    padding-left: var(--page-pad-x);
    padding-right: var(--page-pad-x);
  }

  .about-hero {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .about-hero__inner {
    gap: 24px;
  }

  .about-hero__title,
  .about-team__title {
    font-size: 28px;
  }

  .about-hero__mockup-row {
    gap: 12px;
    padding: 12px 16px;
  }

  .about-influence__list button {
    white-space: normal;
    text-align: left;
    line-height: 1.4;
  }
}
