/* ===== aigensia Page ===== */

.about-page {
  padding-bottom: 0;
}

/* ===== Project hero ===== */
.about-project-hero {
  padding: 76px 0 90px;
}

.about-project-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: clamp(46px, 7vw, 92px);
  align-items: center;
}

.about-project-hero-copy h1 {
  max-width: 780px;
  margin: 16px 0 24px;
  color: var(--dark);
  font-size: var(--font-size-page-title);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.about-project-hero-copy h1 span {
  color: var(--accent);
}

.about-project-hero-copy > p {
  max-width: 680px;
  color: var(--dark-60);
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-project-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.about-project-hero-actions .btn-primary,
.about-project-hero-actions .btn-secondary {
  flex: 0 0 auto;
  min-width: 210px;
  justify-content: center;
}

.about-project-visual {
  position: relative;
  min-height: 350px;
}

.about-project-bridge-line {
  position: absolute;
  top: 50%;
  right: 11%;
  left: 11%;
  height: 2px;
  background: linear-gradient(90deg, rgba(58, 110, 104, 0.12), rgba(58, 110, 104, 0.48), rgba(58, 110, 104, 0.12));
}

.about-project-side,
.about-project-center {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  transform: translateY(-50%);
}

.about-project-side {
  width: 122px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(44, 38, 30, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 36px rgba(44, 38, 30, 0.07);
}

.about-project-side--people {
  left: 0;
  transform: translateY(-50%) rotate(-3deg);
}

.about-project-side--tech {
  right: 0;
  transform: translateY(-50%) rotate(3deg);
}

.about-project-side span {
  color: var(--dark-60);
  font-size: 0.68rem;
}

.about-project-side strong {
  color: var(--dark);
  font-size: 0.9rem;
}

.about-project-center {
  left: 50%;
  z-index: 2;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(58, 110, 104, 0.13);
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  box-shadow: 0 18px 48px rgba(58, 110, 104, 0.15), 0 0 0 18px rgba(58, 110, 104, 0.035);
  transform: translate(-50%, -50%);
  animation: about-center-float 5s ease-in-out infinite;
}

.about-project-dialog-icon {
  width: 66px;
  height: 66px;
  color: var(--accent);
  overflow: visible;
}

.about-project-chip {
  position: absolute;
  padding: 8px 11px;
  border: 1px solid rgba(58, 110, 104, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.90);
  color: var(--accent-dark);
  font-size: 0.68rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(44, 38, 30, 0.06);
}

.about-project-chip--ai {
  top: 17%;
  left: 39%;
  transform: rotate(-5deg);
}

.about-project-chip--safe {
  right: 9%;
  bottom: 16%;
  transform: rotate(4deg);
}

.about-project-chip--auto {
  bottom: 13%;
  left: 8%;
  transform: rotate(-3deg);
}

@keyframes about-center-float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 7px)); }
}

/* ===== Origin story ===== */
.about-story-section {
  padding: 76px 0 96px;
  border-top: 1px solid rgba(58, 110, 104, 0.08);
  border-bottom: 1px solid rgba(58, 110, 104, 0.08);
  background: linear-gradient(180deg, rgba(58, 110, 104, 0.045), rgba(58, 110, 104, 0.02));
}

.about-story-heading {
  max-width: 860px;
  margin-bottom: 46px;
}

.about-story-heading h2 {
  margin-top: 16px;
  color: var(--dark);
  font-size: var(--font-size-section-title);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.about-story-heading h2 span {
  color: var(--accent);
}

.about-story-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(40px, 7vw, 86px);
  align-items: start;
}

.about-story-path {
  position: sticky;
  top: 110px;
  display: grid;
}

.about-story-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  min-height: 74px;
  padding-bottom: 22px;
}

.about-story-step::before {
  content: '';
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 14px;
  width: 1px;
  background: rgba(58, 110, 104, 0.18);
}

.about-story-step:last-child::before {
  display: none;
}

.about-story-step > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(58, 110, 104, 0.20);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
}

.about-story-step strong {
  padding-top: 4px;
  color: var(--dark-60);
  font-size: 0.86rem;
  line-height: 1.4;
}

.about-story-step--final > span {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0 0 6px rgba(58, 110, 104, 0.08);
}

.about-story-step--final strong {
  color: var(--accent-dark);
  font-weight: 800;
}

.about-story-copy {
  max-width: 790px;
}

.about-story-copy > p {
  margin-bottom: 24px;
  color: var(--dark-60);
  font-size: 1.02rem;
  line-height: 1.82;
}

.about-story-copy > p:first-child {
  color: var(--dark);
  font-size: 1.08rem;
}

.about-story-copy .about-story-final {
  margin: 38px 0 0;
  padding: 7px 0 7px 22px;
  border-left: 3px solid var(--accent);
  color: var(--dark);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.about-story-final span {
  color: var(--accent);
}

.about-credentials-block {
  margin-top: 78px;
  padding-top: 72px;
  border-top: 1px solid rgba(58, 110, 104, 0.12);
}

.about-credentials-block--surface {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.about-credentials-block .trust-header {
  margin-bottom: 32px;
}

.about-credentials-block .credential-wall {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-credentials-block .credential-badge--ibm img {
  max-width: 76px;
  max-height: 76px;
}

/* ===== Philosophy and principles ===== */
.about-values-section {
  padding: 88px 0 96px;
}

.about-values-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.about-values-heading h2 {
  margin-top: 14px;
  color: var(--dark);
  font-size: var(--font-size-section-title);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.about-values-heading h2 span {
  color: var(--accent);
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.about-values-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Separate the shared contact CTA from the principles section on this page. */
.about-page + .consultation-section {
  padding: 76px 0 80px;
  border-top: 1px solid rgba(58, 110, 104, 0.08);
  border-bottom: 1px solid rgba(58, 110, 104, 0.08);
  background: linear-gradient(180deg, rgba(58, 110, 104, 0.045), rgba(58, 110, 104, 0.02));
}

.about-value-card {
  position: relative;
  min-height: 225px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid rgba(44, 38, 30, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 9px 30px rgba(44, 38, 30, 0.045);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.about-value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 110, 104, 0.22);
  box-shadow: 0 15px 38px rgba(44, 38, 30, 0.075);
}

.about-value-card::after {
  content: '';
  position: absolute;
  right: -54px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--accent-light);
  opacity: 0.62;
}

.about-value-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 34px;
  border-radius: 15px;
  background: var(--accent-light);
  color: var(--accent);
}

.about-value-icon svg {
  width: 30px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about-value-card > span {
  position: absolute;
  top: 27px;
  right: 24px;
  color: rgba(58, 110, 104, 0.40);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.about-value-card h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--dark);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.about-value-card p {
  position: relative;
  z-index: 1;
  margin: 12px 0 0;
  color: var(--dark-60);
  font-size: 0.92rem;
  line-height: 1.62;
}

.about-value-card p a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(58, 110, 104, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.about-value-card p a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.about-values-grid--three .about-value-icon {
  margin-bottom: 24px;
}

@media (max-width: 820px) {
  .about-project-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-project-visual {
    width: min(100%, 470px);
    min-height: 300px;
    justify-self: center;
  }

  .about-story-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-story-path {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .about-story-step {
    min-height: 0;
    padding: 12px;
    border: 1px solid rgba(58, 110, 104, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
  }

  .about-story-step::before {
    display: none;
  }

  .about-values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-credentials-block .credential-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .about-project-hero {
    padding: 48px 0 64px;
  }

  .about-project-hero-actions {
    flex-direction: column;
  }

  .about-project-hero-actions .btn-primary,
  .about-project-hero-actions .btn-secondary {
    width: 100%;
  }

  .about-project-visual {
    min-height: 270px;
    transform: scale(0.9);
  }

  .about-project-chip--auto {
    left: 1%;
  }

  .about-story-section {
    padding: 48px 0 68px;
  }

  .about-story-heading {
    margin-bottom: 32px;
  }

  .about-story-path {
    grid-template-columns: 1fr;
  }

  .about-story-copy > p,
  .about-story-copy > p:first-child {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .about-credentials-block {
    margin-top: 56px;
    padding-top: 52px;
  }

  .about-credentials-block .credential-wall {
    grid-template-columns: 1fr;
  }

  .about-values-section {
    padding: 64px 0 72px;
  }

  .about-values-grid {
    grid-template-columns: 1fr;
  }

  .about-value-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-project-center {
    animation: none;
  }
}

.about-principles-section {
  padding: 0 0 80px;
}

.about-principles-panel {
  padding: 34px;
}

.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-principle-card {
  min-height: 0;
}

.about-principle-card h3 {
  font-size: 1rem;
}

.about-me-section {
  padding: 0 0 80px;
}

.about-challenges-section {
  padding: 0 0 80px;
}

.about-benefits-section {
  padding: 0 0 80px;
}

.about-divider-section {
  padding: 0 0 80px;
}

.about-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  color: var(--dark);
}

.about-divider-copy {
  display: grid;
  gap: 14px;
  justify-items: center;
  max-width: 860px;
}

.about-divider-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}

.about-divider h2 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.about-divider h2 span {
  color: var(--accent);
}

.about-divider-quote {
  margin: 0;
  position: relative;
  max-width: 720px;
  padding: 0 18px;
  font-size: 1.06rem;
  line-height: 1.8;
  font-style: italic;
  color: var(--dark-60);
}

.about-divider-quote::before,
.about-divider-quote::after {
  position: absolute;
  color: rgba(58, 110, 104, 0.28);
  font-size: 2.2rem;
  line-height: 1;
  font-style: normal;
}

.about-divider-quote::before {
  content: "“";
  left: -2px;
  top: -10px;
}

.about-divider-quote::after {
  content: "”";
  right: -2px;
  bottom: -22px;
}

.about-divider-star {
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
  transform: translateY(-1px);
}

.about-me-panel {
  padding: 34px;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(44, 38, 30, 0.10);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.about-me-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(58,110,104,0.08) 0%, transparent 42%);
  pointer-events: none;
}

.about-me-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(160px, 0.5fr);
  gap: 18px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.about-me-text {
  max-width: none;
}

.about-me-text .why-header {
  margin-bottom: 18px;
}

.about-me-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--dark-60);
}

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.about-me-badges-row {
  margin-top: 22px;
  flex-wrap: nowrap;
  width: 100%;
  overflow: visible;
}

.about-me-icons-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}

.about-me-info-card {
  padding: 18px 18px 16px;
}

.about-me-info-card--large {
  align-items: flex-start;
}

.about-me-info-body {
  display: grid;
  gap: 10px;
}

.about-me-info-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--dark);
  font-weight: 700;
}

.about-cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.about-cert-list li {
  display: grid;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px solid rgba(58, 110, 104, 0.10);
}

.about-cert-en {
  font-size: 0.85rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--dark);
}

.about-cert-ru {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--dark-60);
}

.about-badges .task-badge {
  background: rgba(58, 110, 104, 0.06);
  border-color: rgba(58, 110, 104, 0.12);
}

.about-me-badges-row .task-badge {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 9px 13px;
  font-size: 0.83rem;
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.about-me-photo-wrap {
  display: flex;
  justify-content: flex-end;
  align-self: flex-start;
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.about-me-photo {
  width: 100%;
  max-width: 214px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  border: 1px solid rgba(44, 38, 30, 0.10);
}

.about-section-header {
  margin-bottom: 24px;
}

.about-challenges-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.about-challenge-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.about-challenge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 10px;
  background: rgba(58, 110, 104, 0.08);
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1;
  margin-top: 2px;
}

.about-challenge-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--dark);
  font-weight: 700;
}

.about-benefits-panel {
  padding: 34px;
}

.about-benefit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-benefit-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(44, 38, 30, 0.08);
  box-shadow: 0 10px 24px rgba(44, 38, 30, 0.04);
}

.about-benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 10px;
  background: rgba(58, 110, 104, 0.08);
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1;
}

.about-benefit-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--dark);
  font-weight: 700;
}

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

  .about-me-grid {
    grid-template-columns: 1fr;
  }

  .about-me-photo-wrap {
    justify-content: flex-start;
  }

  .about-me-photo {
    max-width: 196px;
  }

  .about-me-panel {
    padding: 24px;
    border-radius: 22px;
  }

  .about-me-icons-grid {
    grid-template-columns: 1fr;
  }

  .about-challenges-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-benefit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1025px) {
  .about-me-icons-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    gap: 8px;
  }

  .about-me-icons-grid > .about-me-info-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .about-me-icons-grid > .about-me-info-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .about-me-icons-grid > .about-me-info-card:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 768px) {
  .about-principles-section {
    padding-bottom: 64px;
  }

  .about-principles-panel {
    padding: 24px;
    border-radius: 22px;
  }

  .about-principles-grid {
    grid-template-columns: 1fr;
  }

  .about-me-section {
    padding-bottom: 64px;
  }

  .about-challenges-section {
    padding-bottom: 64px;
  }

  .about-benefits-section {
    padding-bottom: 64px;
  }

  .about-divider-section {
    padding-bottom: 64px;
  }

  .about-divider {
    gap: 12px;
  }

  .about-divider-copy {
    gap: 10px;
  }

  .about-divider-title-row {
    gap: 10px;
  }

  .about-divider h2 {
    font-size: 1.02rem;
  }

  .about-divider-quote {
    font-size: 0.98rem;
    line-height: 1.7;
    padding: 0 12px;
  }

  .about-divider-quote::before,
  .about-divider-quote::after {
    font-size: 1.8rem;
  }

  .about-me-grid {
    gap: 24px;
  }

  .about-me-photo {
    max-width: 100%;
  }

  .about-me-badges-row {
    flex-wrap: wrap;
  }

  .about-me-panel {
    padding: 20px;
  }

  .about-section-header {
    margin-bottom: 18px;
  }

  .about-challenges-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .about-challenge-card {
    gap: 10px;
  }

  .about-benefits-panel {
    padding: 20px;
  }

  .about-benefits-columns {
    gap: 12px;
  }

  .about-benefit-card {
    padding: 14px 16px;
  }

  .about-benefit-list {
    grid-template-columns: 1fr;
  }
}

/* ===== About origin timeline ===== */
.about-story-timeline {
  position: relative;
  display: grid;
  gap: 20px;
  max-width: 1120px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-story-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 17px;
  width: 1px;
  background: rgba(58, 110, 104, 0.20);
}

.about-story-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: start;
}

.about-story-entry-rail {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 18px 0;
}

.about-story-entry-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(58, 110, 104, 0.22);
  border-radius: 50%;
  background: #f8faf8;
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.about-story-entry-rail strong {
  color: var(--dark-60);
  font-size: 0.92rem;
  line-height: 1.42;
}

.about-story-entry-body {
  padding: 27px 30px 29px;
  border: 1px solid rgba(58, 110, 104, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(44, 38, 30, 0.045);
}

.about-story-entry-index,
.about-story-entry-label {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-story-entry-body h3 {
  margin: 9px 0 14px;
  color: var(--dark);
  font-size: 1.28rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.about-story-entry-body > p:not(.about-story-entry-index):not(.about-story-entry-label) {
  margin: 0;
  color: var(--dark-60);
  font-size: 1rem;
  line-height: 1.72;
}

.about-story-entry-label {
  margin-top: 21px;
}

.about-story-entry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.about-story-entry-chips li {
  padding: 7px 10px;
  border: 1px solid rgba(58, 110, 104, 0.13);
  border-radius: 999px;
  background: rgba(58, 110, 104, 0.055);
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.about-story-entry--final .about-story-entry-number {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0 0 6px rgba(58, 110, 104, 0.08);
}

.about-story-entry--final .about-story-entry-rail strong,
.about-story-entry--final .about-story-entry-body h3 {
  color: var(--accent-dark);
}

.about-story-entry--final .about-story-entry-body {
  border-color: rgba(58, 110, 104, 0.24);
}

@media (max-width: 820px) {
  .about-story-timeline {
    gap: 16px;
  }

  .about-story-entry {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-story-entry-rail {
    min-height: 54px;
    padding: 9px 0;
  }

  .about-story-entry-body {
    margin-left: 52px;
  }
}

@media (max-width: 520px) {
  .about-story-timeline::before {
    top: 24px;
    bottom: 24px;
  }

  .about-story-entry-body {
    margin-left: 48px;
    padding: 22px 20px 23px;
    border-radius: 16px;
  }

  .about-story-entry-rail {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 13px;
  }

  .about-story-entry-number {
    width: 32px;
    height: 32px;
    font-size: 0.64rem;
  }

  .about-story-entry-rail strong {
    font-size: 0.84rem;
  }

  .about-story-entry-body h3 {
    font-size: 1.14rem;
  }

  .about-story-entry-body > p:not(.about-story-entry-index):not(.about-story-entry-label) {
    font-size: 0.96rem;
  }
}

/* ===== About timeline compact cards ===== */
.about-story-entry-body {
  margin-top: 50px;
}

.about-story-entry-rail h3 {
  margin: 0;
  color: var(--dark-60);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.42;
}

.about-story-entry-chips {
  margin-top: 17px;
}

.about-story-entry-chips li {
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 500;
}

.about-story-entry--final .about-story-entry-rail h3 {
  color: var(--accent-dark);
}

@media (max-width: 820px) {
  .about-story-entry-body {
    margin-top: 0;
  }
}
/* Match homepage chip typography */
 .about-story-entry-chips li { font-size: 0.78rem !important; font-weight: 500 !important; }
/* Place each stage card directly below its timeline heading */
.about-story-entry { display: block; }
.about-story-entry-rail { min-height: 36px; padding: 0; }
.about-story-entry-body { margin: 12px 0 0 52px; }
@media (max-width: 820px) { .about-story-entry { display: block; } .about-story-entry-body { margin: 12px 0 0 52px; } }
@media (max-width: 520px) { .about-story-entry-body { margin: 12px 0 0 45px; } }
/* ===== About timeline travelling dot ===== */
.about-story-timeline::after {
  content: "";
 position: absolute;
 z-index: 2;
 top: 30px;
 left: 13px;
 width: 9px;
 height: 9px;
 border-radius: 50%;
 background: var(--accent);
 box-shadow: 0 0 0 5px rgba(58, 110, 104, 0.08);
 animation: about-story-timeline-travel 8s ease-in-out infinite;
}
@keyframes about-story-timeline-travel {
 0%, 8% { top: 30px; opacity: 0.55; }
 46% { opacity: 1; }
 92%, 100% { top: calc(100% - 39px); opacity: 0.75; }
}
@media (prefers-reduced-motion: reduce) {
 .about-story-timeline::after {
 top: calc(100% - 39px);
 animation: none;
 }
}
/* ===== About timeline editorial cards ===== */
.about-story-entry-body {
  padding: 22px 24px 23px;
  border: 1px solid rgba(58, 110, 104, 0.11);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 2px 10px rgba(44, 38, 30, 0.018);
}
@media (max-width: 520px) {
  .about-story-entry-body {
    padding: 18px 18px 19px;
    border-radius: 10px;
  }
}
/* ===== About timeline dot layering ===== */
.about-story-entry-rail { z-index: 3; }
.about-story-entry-number { position: relative; z-index: 4; }

/* ===== About timeline text-stage refinement ===== */
.about-story-entry-body {
  border-color: rgba(58, 110, 104, 0.08);
  background: rgba(255, 255, 255, 0.46);
}

/* Keep the About page CTA transition to one separator */
.about-page + .consultation-section {
  border-top: 0;
}

/* Match the home page CTA surface on About */
.about-page + .consultation-section {
  background: none;
}
