/* ==========================================================================
   About page
   Implements the "about" design handoff: hero, alternating story blocks and
   the values grid. The contact section and footer are shared with the
   homepage, so they keep their hp-/sc- styles. Prefixed `ab-`.
   ========================================================================== */

.ab-hero,
.ab-story-section,
.ab-values {
  --ab-pad-x: clamp(24px, 5vw, 80px);
  --ab-max: 1280px;
}

.ab-hero *,
.ab-story-section *,
.ab-values * {
  box-sizing: border-box;
}

.ab-inner,
.ab-hero-inner {
  max-width: var(--ab-max);
  margin: 0 auto;
}

/* ---- hero ---------------------------------------------------------------- */

.ab-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: 66px var(--ab-pad-x) clamp(56px, 7vw, 96px);
  background: #ffffff;
  background-image: linear-gradient(rgba(39, 44, 205, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 44, 205, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
}

.ab-hero-inner {
  width: 100%;
}

.ab-eyebrow {
  font-family: "Roboto Mono", monospace;
  font-size: 12px;
  letter-spacing: 2px;
  color: #272ccd;
  margin-bottom: 34px;
}

.ab-h1 {
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -2px;
  text-transform: uppercase;
  color: #333333;
  margin: 0;
}

.ab-caret {
  color: #ff6237;
  animation: ab-caret 1.1s step-end infinite;
}

@keyframes ab-caret {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.ab-lead {
  font-family: "Ubuntu", Helvetica, sans-serif;
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.35;
  max-width: 720px;
  color: #333333;
  margin: 22px 0 0;
}

.ab-lead span {
  color: #272ccd;
}

.ab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.ab-chip {
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  color: #333333;
  border: 1px solid rgba(39, 44, 205, 0.3);
  border-radius: 4px;
  padding: 8px 14px;
}

.ab-scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #272ccd;
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.ab-arrow {
  font-size: 14px;
  animation: ab-bob 1.6s ease-in-out infinite;
}

@keyframes ab-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* ---- story blocks -------------------------------------------------------- */

.ab-story-section {
  background: #ffffff;
  padding: clamp(30px, 4vw, 50px) var(--ab-pad-x) clamp(70px, 9vw, 120px);
}

.ab-story-section .ab-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 7vw, 104px);
}

.ab-story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}

/* Blocks 2 and 4 put the photo on the right, but only while the grid has two
   columns — it collapses at 690px, and stacked the photo always leads. The
   source order is photo-then-text, so single column needs no reordering. */
@media (min-width: 700px) {
  .ab-story-flip .ab-photo {
    order: 2;
  }
}

.ab-photo {
  border: 1px solid #b4b4be;
  border-radius: 4px;
  overflow: hidden;
}

.ab-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.ab-story-label {
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  letter-spacing: 2px;
  color: #ff6237;
  margin-bottom: 14px;
}

.ab-story-text h2 {
  font-family: "Ubuntu", Helvetica, sans-serif;
  font-weight: 500;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.15;
  color: #272ccd;
  margin: 0 0 16px;
}

.ab-story-text p {
  font-family: "Urbanist", sans-serif;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.6;
  color: #333333;
  margin: 0;
  text-wrap: pretty;
}

/* ---- values -------------------------------------------------------------- */

.ab-values {
  background: #eeeef1;
  padding: clamp(70px, 9vw, 120px) var(--ab-pad-x);
}

.ab-head {
  margin-bottom: 52px;
}

.ab-label {
  font-family: "Roboto Mono", monospace;
  font-size: 13px;
  letter-spacing: 2px;
  color: #ff6237;
  margin-bottom: 12px;
}

.ab-h2 {
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -1px;
  text-transform: uppercase;
  color: #333333;
  margin: 0;
}

/* the site's 1px-gap-over-grey divider technique */
.ab-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 1px;
  background: #b4b4be;
  border: 1px solid #b4b4be;
  border-radius: 4px;
  overflow: hidden;
}

.ab-value {
  background: #ffffff;
  padding: 30px 28px 40px;
}

.ab-value-num {
  font-family: "Roboto Mono", monospace;
  font-size: 15px;
  color: #ff6237;
  margin-bottom: 22px;
}

.ab-value h3 {
  font-family: "Ubuntu", Helvetica, sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: #272ccd;
  margin: 0 0 8px;
}

.ab-value p {
  font-family: "Urbanist", sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: #333333;
  margin: 0;
}

@media (max-width: 699px) {
  /* extra room above each photo, so stacked blocks read as separate */
  .ab-photo {
    margin-top: 32px;
  }
}

@media (max-width: 900px) {
  /* The chips wrap to two or three lines on a narrow screen and ran into the
     absolutely positioned scroll cue — overlapping it by 12px at 360px wide.
     Deeper bottom padding keeps the content clear of it. */
  .ab-hero {
    padding-bottom: 104px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ab-caret,
  .ab-arrow {
    animation: none;
  }
}
