/* About — v3 page extensions (tokens from home-v3.css) */

#our-story {
  scroll-margin-top: calc(var(--hv3-header-h) + 0.75rem);
}

.ab-split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .ab-split {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 3rem;
  }
}

.ab-prose {
  color: var(--hv3-gray-700);
  font-size: 1.05rem;
  line-height: 1.65;
}

.ab-prose p {
  margin: 0 0 1rem;
}

.ab-prose p:last-of-type {
  margin-bottom: 0;
}

.ab-prose__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

.ab-shot {
  margin: 0;
  border-radius: var(--hv3-radius);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--hv3-gray-200);
  box-shadow: var(--hv3-shadow-md);
  transition:
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease;
}

.ab-shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 900px) {
  .ab-media {
    position: sticky;
    top: calc(var(--hv3-header-h) + 1.25rem);
  }
}

@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  .ab-shot:hover {
    transform: translateY(-6px);
    box-shadow: var(--hv3-shadow-lg);
    border-color: var(--hv3-gray-300);
  }

  .ab-shot:hover img {
    transform: scale(1.04);
  }
}

@media (max-width: 959px) {
  .ab-split.is-revealed .ab-shot {
    box-shadow: var(--hv3-shadow-lg);
    border-color: var(--hv3-gray-300);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-shot,
  .ab-shot img {
    transition: none;
  }

  .ab-shot:hover,
  .ab-split.is-revealed .ab-shot {
    transform: none;
  }

  .ab-shot:hover img {
    transform: none;
  }
}
