/* About — Figma 88:2414. Shared pieces (hero, eyebrow, h2, sub, buttons, story grid, contact, footer) come
   from styles.css, the centred section head from home.css and the offices map from contact.css; only what
   they cannot express lives here. */

.ab-section {
  padding: 120px 0;
}

/* Some eyebrows here are long enough to wrap: keep the dot beside the first line. */
.ab-page .eyebrow {
  align-items: flex-start;
}

.ab-page .eyebrow::before {
  flex: 0 0 auto;
  margin-top: 4px;
}

/* Headings sit in half-width columns: scale them a little faster than the shared .h2 so they keep
   the design's line breaks on narrower desktops (48px from 1412px up, as in Figma). */
.ab-page .story-text .h2 {
  font-size: clamp(32px, 3.4vw, 48px);
}

/* The two narrowest heading columns: 48px at 1440, then shrinking with the column so the design's
   three lines hold down to the two-column breakpoint. */
@media (min-width: 1101px) {
  .ab-page .ab-diff-grid .h2 {
    font-size: clamp(32px, calc(4.05vw - 10.3px), 48px);
  }

  .ab-page .ab-final-grid .h2 {
    font-size: clamp(32px, calc(3.7vw - 5.3px), 48px);
  }
}

/* Green one-line statements that close a block. */
.ab-tagline {
  margin-top: 32px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--green);
}

.ab-tagline.is-large {
  margin-top: 0;
  font-size: 24px;
  text-wrap: balance;
}

.ab-copy {
  font-size: 18px;
  line-height: 1.6;
  color: var(--gray);
}

/* Statement on the left, button on the right. */
.ab-closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 56px;
}

.ab-closing.is-ruled {
  margin-top: 28px;
  padding-top: 32px;
  border-top: 1px solid #dde2ea;
}

/* ---------- Cards (mission, values, differentiators) ---------- */

.ab-cards {
  display: grid;
  gap: 24px;
}

.ab-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border: 1px solid #e4e8ef;
  border-radius: 16px;
  background: #fff;
}

.ab-card.is-pale {
  background: var(--pale);
}

/* Grey copy on the pale background: --gray is 4.2:1 there, --ab-gray-on-pale reaches AA (4.8:1). */
.ab-page {
  --ab-gray-on-pale: #646d81;
}

.ab-card.is-pale p {
  color: var(--ab-gray-on-pale);
}

.ab-card h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 26px;
  color: var(--navy-deep);
}

.ab-card p {
  font-size: 14px;
  line-height: 22px;
  color: var(--gray);
}

/* ---------- Hero (88:2416) ---------- */

.ab-hero {
  padding: 96px 0 120px;
}

.ab-hero-grid {
  grid-template-columns: minmax(0, 622px) minmax(0, 560px);
  justify-content: start;
  align-items: start;
  gap: 43px;
  min-height: 0;
}

/* Block-level so the badge takes its own 15px line, as in the design. */
.ab-hero .eyebrow {
  display: flex;
}

.ab-hero-title {
  font-size: clamp(40px, 4.4vw, 59px);
  letter-spacing: 0;
}

.ab-hero-lead .lead + .lead {
  margin-top: 16px;
}

/* The photo is wider than its frame; the frame shows the two people at the workbench. */
.ab-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 593;
  object-fit: cover;
  object-position: 38.66% 50%;
  border: 1px solid var(--line);
  border-radius: 24px;
}

/* ---------- Who we are (88:2442) ---------- */

.story-grid.ab-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 96px;
}

.story-body.ab-body {
  margin-top: 0;
}

/* ---------- Mission and vision (88:2466) ---------- */

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

.ab-card .ab-label {
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 1.92px;
  text-transform: uppercase;
  color: var(--green);
}

.ab-card .ab-statement {
  font-family: var(--font-head);
  font-size: clamp(22px, 1.8vw, 26px);
  font-weight: 700;
  line-height: 1.31;
  color: var(--navy-deep);
}

.ab-mission .ab-card p:last-child {
  font-size: 16px;
  line-height: 26px;
}

/* ---------- Values (88:2489) ---------- */

.ab-values-head {
  display: grid;
  grid-template-columns: minmax(0, 577fr) minmax(0, 673fr);
  align-items: end;
}

.ab-values {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 54px;
}

.ab-value-icon {
  position: relative;
  flex: 0 0 auto;
  align-self: flex-start;
  width: auto;
  height: 72px;
  margin-bottom: 16px;
}

.ab-value-icon.is-rocket {
  width: 94px;
}

.ab-value-icon.is-rocket img:first-child {
  width: 100%;
  height: 100%;
}

/* Blue tint on the rocket's porthole, a separate blended layer in the design. */
.ab-value-dot {
  position: absolute;
  left: calc(50% - 0.08px);
  top: 25.27%;
  width: 7.52px;
  height: 7.52px;
  transform: translateX(-50%);
  mix-blend-mode: color-burn;
}

/* ---------- What makes us different (88:2530) ---------- */

.ab-diff-grid {
  display: grid;
  grid-template-columns: minmax(0, 480fr) minmax(0, 724fr);
  align-items: start;
  gap: 44px;
}

.story-body.ab-diff-body {
  gap: 16px;
  margin-top: 32px;
  color: var(--ab-gray-on-pale);
}

.ab-diff-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- Global reach (88:2578): text under the shared offices map ---------- */

/* Where the shared heading wraps, split it evenly instead of leaving one word behind. */
.ab-page .ct-title {
  text-wrap: balance;
}

/* contact.js needs the office list as the source of the map card. Here the design shows the map only,
   so from tablet up the list is left to screen readers and appears when keyboard focus enters it. */
@media (min-width: 761px) {
  .ab-office-list:not(:focus-within) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.ab-global-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px 64px;
  margin-top: 56px;
  font-size: 16px;
  line-height: 26px;
  color: var(--text-light);
}

.ab-global-text div {
  display: grid;
  gap: 16px;
}

/* ---------- Teams (88:2665) ---------- */

.story-grid.ab-team-grid {
  grid-template-columns: minmax(0, 577fr) minmax(0, 606fr);
  align-items: center;
  gap: 67px;
}

.story-img.ab-team-img {
  height: auto;
  aspect-ratio: 606 / 440;
}

.ab-benefits {
  margin-top: 72px;
}

.ab-benefits-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.26;
  color: var(--navy-deep);
  text-wrap: balance;
}

.ab-benefits-list {
  display: grid;
  grid-template-columns: minmax(0, 389fr) minmax(0, 430fr) minmax(0, 430fr);
  margin-top: 28px;
  border-top: 1px solid #e2e8f0;
}

.ab-benefits-list li {
  padding: 40px 40px 0;
}

.ab-benefits-list li:first-child {
  padding-left: 0;
}

.ab-benefits-list li + li {
  border-left: 1px solid #e2e8f0;
}

.ab-benefits-list h4 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.26;
  color: var(--navy-deep);
}

.ab-benefits-list p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ab-gray-on-pale);
}

/* ---------- Final CTA (88:2706) ---------- */

/* The shared contact section follows with its own top padding, so the gap below is shorter. */
.ab-final {
  padding-bottom: 72px;
}

.story-grid.ab-final-grid {
  grid-template-columns: minmax(0, 620fr) minmax(0, 566fr);
  align-items: center;
  gap: 64px;
}

.story-img.ab-final-img {
  height: auto;
  aspect-ratio: 620 / 607;
  border: 1px solid var(--line);
}

.ab-final-body {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: #f1f2f2;
}

.ab-final-cta {
  margin-top: 56px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1300px) {
  .ab-values-head {
    column-gap: 32px;
  }

  .story-grid.ab-split {
    gap: 64px;
  }

  .story-grid.ab-team-grid {
    gap: 48px;
  }

  .ab-benefits-list li {
    padding: 32px 28px 0;
  }
}

@media (max-width: 1100px) {
  .ab-section {
    padding: 96px 0;
  }

  .ab-hero {
    padding: 64px 0 96px;
  }

  .ab-hero-title {
    text-wrap: balance;
  }

  .ab-final {
    padding-bottom: 64px;
  }

  .ab-hero-grid,
  .story-grid.ab-split,
  .ab-values-head,
  .ab-diff-grid,
  .story-grid.ab-team-grid,
  .story-grid.ab-final-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .ab-values-head {
    gap: 20px;
  }

  .ab-hero-img,
  .story-img.ab-team-img,
  .story-img.ab-final-img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .ab-hero-img {
    object-position: 50% 50%;
  }

  .story-img.ab-final-img {
    object-position: 50% 30%;
  }

  .ab-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 40px;
  }

  .ab-br {
    display: none;
  }

  .ab-benefits {
    margin-top: 56px;
  }

  .ab-benefits-list li {
    padding: 28px 20px 0;
  }
}

/* Three benefit columns get too narrow here: stack them, ruled apart. */
@media (max-width: 900px) {
  .ab-benefits-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .ab-benefits-list li,
  .ab-benefits-list li:first-child {
    padding: 24px 0;
  }

  .ab-benefits-list li + li {
    border-left: 0;
    border-top: 1px solid #e2e8f0;
  }

  .ab-benefits-list li:last-child {
    padding-bottom: 0;
  }
}

@media (max-width: 760px) {
  .ab-section {
    padding: 64px 0;
  }

  .ab-hero {
    padding: 40px 0 64px;
  }

  .ab-final {
    padding-bottom: 48px;
  }

  /* Long eyebrows wrap on a phone: tighten the tracking so most fit on one line. */
  .ab-page .eyebrow {
    letter-spacing: 3px;
  }

  .ab-tagline {
    margin-top: 24px;
    font-size: 20px;
  }

  .ab-tagline.is-large {
    font-size: 20px;
  }

  .ab-copy {
    font-size: 16px;
  }

  .ab-mission,
  .ab-values,
  .ab-diff-cards,
  .ab-global-text {
    grid-template-columns: minmax(0, 1fr);
  }

  .ab-cards {
    gap: 16px;
  }

  .ab-card {
    padding: 24px;
  }

  .ab-hero-img,
  .story-img.ab-team-img,
  .story-img.ab-final-img {
    aspect-ratio: 4 / 3;
    border-radius: 16px;
  }

  /* The list is how offices are reached on a phone: give its phone links a taller tap area. */
  .ab-office-list .ct-card-tel {
    margin: -4px 0 -6px;
    padding: 6px 12px;
  }

  .ab-global-text,
  .ab-closing {
    margin-top: 40px;
  }

  .ab-closing.is-ruled {
    margin-top: 28px;
  }

  .ab-closing .btn,
  .ab-final-cta {
    width: 100%;
  }

  .ab-benefits-title,
  .ab-benefits-list h4 {
    font-size: 20px;
  }

  .ab-final-cta {
    margin-top: 32px;
  }
}

@media (max-width: 400px) {
  .ab-closing .btn {
    padding: 0 12px;
    font-size: 15px;
  }
}
