/* ==========================================================================
   About Us — page styles
   Desktop frame: 1440 (sections padded 96/80), mobile frame: 390
   ========================================================================== */
.page-about {
  --o2: #e8642c;      /* editorial orange used on this page (desktop) */
  --ink2: #1a1714;
  --y2: #f2c94c;
  --sky2: #a8d5e2;
  --paper2: #f5f0e8;
  --line-m: #eadccb;  /* mobile card borders */
}

/* Eyebrow ------------------------------------------------------------------ */
.ab-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-body); font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--o2);
}
.ab-eyebrow__dash { flex: 0 0 auto; width: 12px; height: 2px; background: var(--o2); }

/* Hero --------------------------------------------------------------------- */
.ab-hero { background: var(--paper2); display: flex; align-items: flex-start; gap: 32px; padding: 96px 80px; }
.ab-hero__left { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.ab-hero__title { font-family: var(--f-head); font-weight: 700; font-size: 80px; line-height: 80px; letter-spacing: -2px; color: var(--ink2); }
.ab-hero__copy { font-family: var(--f-body); font-size: 20px; line-height: 32px; color: var(--muted); }
.ab-hero__details { display: flex; gap: 40px; padding-top: 16px; }
.ab-stat { display: flex; flex-direction: column; gap: 4px; }
.ab-stat__value { font-family: var(--f-head); font-weight: 700; font-size: 32px; line-height: 43px; color: var(--o2); white-space: nowrap; }
.ab-stat__label { font-family: var(--f-body); font-weight: 600; font-size: 12px; line-height: 16px; color: var(--ink2); white-space: nowrap; }

.ab-hero__visual { position: relative; flex: 0 0 515px; width: 515px; height: 540px; }
.ab-hero__primary { width: 515px; height: 380px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.ab-hero__primary img, .ab-hero__secondary img { width: 100%; height: 100%; object-fit: cover; }
.ab-hero__secondary { position: absolute; left: 23px; bottom: 0; width: 200px; height: 200px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); }
.ab-hero__est {
  position: absolute; right: 24px; bottom: 80px; background: var(--y2); border-radius: 999px; padding: 8px 16px;
  font-family: var(--f-head); font-weight: 700; font-size: 14px; line-height: 19px; color: var(--ink2); white-space: nowrap;
}

/* Company snapshot --------------------------------------------------------- */
.ab-snapshot { background: var(--paper2); padding: 0 80px 80px; }
.ab-snapshot__title { display: none; }
.ab-snapshot__grid { display: flex; align-items: flex-start; gap: 16px; min-height: 160px; }
.ab-cell { flex: 1 1 0; min-width: 0; min-height: 131px; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.ab-cell__num { font-family: var(--f-head); font-weight: 700; font-size: 32px; line-height: 43px; color: var(--ink2); }
.ab-cell__body { display: flex; flex-direction: column; gap: 2px; }
.ab-cell__label { font-family: var(--f-body); font-weight: 700; font-size: 11px; line-height: 14px; color: var(--ink2); opacity: .6; }
.ab-cell__value { font-family: var(--f-head); font-weight: 700; font-size: 18px; line-height: 24px; color: var(--ink2); }
.ab-cell--operator { background: var(--sky2); }
.ab-cell--location { background: var(--y2); }
.ab-cell--scope { background: var(--sand); }
.ab-cell--regulation { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }

/* Our story ---------------------------------------------------------------- */
.ab-story { background: var(--white); display: flex; align-items: flex-start; gap: 32px; padding: 96px 80px; }
.ab-story__left { flex: 0 0 405px; display: flex; flex-direction: column; gap: 16px; }
.ab-story__head { display: flex; align-items: center; gap: 20px; }
.ab-story__num { font-family: var(--f-head); font-weight: 700; font-size: 56px; line-height: 75px; color: var(--o2); }
.ab-story__title { font-family: var(--f-body); font-weight: 700; font-size: 14px; line-height: 18px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink2); }
.ab-story__line { display: block; width: 120px; height: 2px; background: var(--o2); }
.ab-story__right { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ab-story__lead { font-family: var(--f-body); font-weight: 500; font-size: 24px; line-height: 36px; color: var(--ink2); }
.ab-story__text { font-family: var(--f-body); font-size: 16px; line-height: 26px; color: var(--muted); }

/* What we are built for ---------------------------------------------------- */
.ab-built { background: var(--paper2); padding: 96px 80px; display: flex; flex-direction: column; gap: 64px; }
.ab-built__head { display: flex; flex-direction: column; gap: 8px; }
.ab-built__title { font-family: var(--f-head); font-weight: 700; font-size: 48px; line-height: 65px; color: var(--ink2); }
.ab-built__sub { font-family: var(--f-body); font-size: 16px; line-height: 21px; color: var(--muted); }

.ab-chapter { background: var(--white); border-radius: 16px; padding: 32px; display: flex; align-items: center; gap: 48px; }
.ab-chapter__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.ab-chapter__head { display: flex; flex-direction: column; gap: 24px; }
.ab-chapter--prematch .ab-chapter__head { gap: 8px; }
.ab-chapter__label { font-family: var(--f-head); font-weight: 700; font-size: 20px; line-height: 27px; color: var(--o2); }
.ab-chapter__title { font-family: var(--f-head); font-weight: 700; font-size: 36px; line-height: 48px; color: var(--ink2); }
.ab-chapter__desc { font-family: var(--f-body); font-size: 15px; line-height: 24px; color: var(--muted); }
.ab-chapter__cta {
  align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 999px; white-space: nowrap;
  font-family: var(--f-body); font-weight: 700; font-size: 14px; line-height: 18px; letter-spacing: .5px;
  transition: filter .15s ease;
}
.ab-chapter__cta:hover { filter: brightness(.96); }
.ab-chapter__cta--solid { background: var(--o2); color: var(--white); }
.ab-chapter__cta--outline { box-shadow: inset 0 0 0 1px var(--ink2); color: var(--ink2); }

.ab-chapter__media { flex: 0 0 auto; border-radius: 12px; overflow: hidden; }
.ab-chapter__media img { width: 100%; height: 100%; object-fit: cover; }
.ab-chapter--sports .ab-chapter__media { width: 544px; height: 260px; }
.ab-chapter--sports .ab-chapter__media img { width: 624px; max-width: none; } /* Figma: 624px fill clipped to 544 (left-anchored) */
.ab-chapter--racing .ab-chapter__media { width: 515px; height: 320px; }

.ab-chapter--prematch { flex-direction: column; align-items: stretch; gap: 24px; }
.ab-flow {
  display: flex; justify-content: center; align-items: center; gap: 40px; padding: 32px;
  background: var(--paper2); box-shadow: inset 0 0 0 1px var(--line); border-radius: 8px;
}
.ab-flow__box {
  padding: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); border-radius: 6px;
  font-family: var(--f-head); font-weight: 700; font-size: 14px; line-height: 19px; color: var(--ink2); white-space: nowrap;
}
.ab-flow__box--active { background: var(--o2); color: var(--white); box-shadow: none; }
.ab-flow__arrow { font-family: var(--f-body); font-weight: 700; font-size: 18px; line-height: 23px; color: var(--o2); }

/* Mobile flow (2×2 grid) */
.ab-flow-m { flex-direction: column; gap: 8px; color: var(--muted); }
.ab-flow-m__row { display: flex; justify-content: space-between; align-items: center; }
.ab-flow-m__box {
  width: 120px; height: 38px; padding: 10px 16px; display: inline-flex; justify-content: center;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line-m); border-radius: 8px;
  font-family: var(--f-head); font-weight: 700; font-size: 13px; line-height: 18px; color: var(--ink); white-space: nowrap;
}
.ab-flow-m__box--active { background: var(--orange); color: var(--white); box-shadow: none; }
.ab-flow-m__arrow--hot { color: var(--orange); }
.ab-flow-m__down { display: flex; justify-content: space-between; padding: 0 50px; height: 20px; }

/* ==========================================================================
   Fluid desktop (768–1439): scale the 1440 design proportionally
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1439px) {
  .ab-hero, .ab-story, .ab-built { padding-left: max(32px, 5.556vw); padding-right: max(32px, 5.556vw); }
  .ab-snapshot { padding: 0 max(32px, 5.556vw) 80px; }
  .ab-hero__title { font-size: clamp(44px, 5.556vw, 80px); line-height: 1; letter-spacing: -.025em; }
  .ab-hero__copy { font-size: clamp(16px, 1.39vw, 20px); line-height: 1.6; }
  .ab-hero__visual { --vis: clamp(280px, 35.76vw, 515px); flex-basis: var(--vis); width: var(--vis); height: calc(var(--vis) * 540 / 515); }
  .ab-hero__primary { width: 100%; height: calc(var(--vis) * 380 / 515); }
  .ab-hero__secondary { left: calc(var(--vis) * 23 / 515); width: calc(var(--vis) * 200 / 515); height: calc(var(--vis) * 200 / 515); }
  .ab-cell { min-height: 0; gap: 24px; }
  .ab-story__left { flex-basis: clamp(200px, 28.1vw, 405px); }
  .ab-built__title { font-size: clamp(32px, 3.33vw, 48px); line-height: 1.35; }
  .ab-chapter { gap: clamp(24px, 3.33vw, 48px); }
  .ab-chapter__title { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.34; }
  .ab-chapter--sports .ab-chapter__media { width: clamp(260px, 37.8vw, 544px); height: auto; aspect-ratio: 544 / 260; }
  .ab-chapter--sports .ab-chapter__media img { width: 114.7%; }
  .ab-chapter--racing .ab-chapter__media { width: clamp(260px, 35.76vw, 515px); height: auto; aspect-ratio: 515 / 320; }
  .ab-flow { flex-wrap: wrap; gap: clamp(12px, 2.78vw, 40px); }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 767px) {
  /* Hero */
  .ab-hero { background: var(--bg); flex-direction: column; align-items: stretch; gap: 0; padding: 32px 16px; }
  .ab-hero__left { display: contents; }
  .ab-hero .ab-eyebrow { font-size: 13px; line-height: 17px; color: var(--orange); }
  .ab-eyebrow__dash { display: none; }
  .ab-hero__title { margin-top: 12px; font-size: 44px; line-height: 46px; letter-spacing: 0; color: var(--ink); }
  .ab-hero__copy { margin-top: 12px; font-size: 15px; line-height: 23px; }
  .ab-hero__visual { order: 4; flex: 0 0 auto; width: auto; height: 290px; margin-top: 20px; }
  .ab-hero__primary { width: 100%; height: 220px; border: 0; border-radius: 16px; }
  .ab-hero__secondary { left: auto; right: 0; bottom: auto; top: 120px; width: 215px; height: 140px; border: 1px solid var(--line); border-radius: 12px; }
  .ab-hero__est { right: auto; bottom: auto; left: 16px; top: 16px; padding: 6px 10px; border-radius: 600px; font-size: 12px; line-height: 16px; letter-spacing: 1px; color: var(--ink); }
  .ab-hero__details { order: 5; gap: 0; padding-top: 0; }
  .ab-stat:first-child { flex: 1 1 auto; }
  .ab-stat__value { font-size: 36px; line-height: 36px; }
  .ab-stat__label { font-size: 13px; line-height: 17px; }

  /* Snapshot */
  .ab-snapshot { background: var(--bg); padding: 0 16px 32px; display: flex; flex-direction: column; gap: 8px; }
  .ab-snapshot__title { font-family: var(--f-head); font-weight: 700; font-size: 14px; line-height: 19px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); }
  .ab-snapshot__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: start; min-height: 0; }
  .ab-cell { min-height: 0; padding: 16px; justify-content: flex-start; gap: 8px; }
  .ab-cell__num { font-size: 24px; line-height: 32px; color: var(--orange); }
  .ab-cell--location .ab-cell__num { color: var(--ink); }
  .ab-cell__label { font-family: var(--f-head); font-size: 11px; line-height: 15px; letter-spacing: .5px; color: var(--muted); opacity: 1; }
  .ab-cell__value { font-family: var(--f-body); font-size: 14px; line-height: 18px; color: var(--ink); }
  .ab-cell--regulation .ab-cell__value { font-size: 13px; line-height: 17px; }
  .ab-cell--operator { background: var(--sky); }
  .ab-cell--location { background: var(--yellow); }
  .ab-cell--regulation { box-shadow: inset 0 0 0 1px var(--line-m); }

  /* Our story */
  .ab-story { flex-direction: column; align-items: stretch; gap: 0; padding: 40px 16px; box-shadow: inset 0 1px 0 var(--line-m), inset 0 -1px 0 var(--line-m); }
  .ab-story__left { flex: 0 0 auto; gap: 0; }
  .ab-story__head { display: contents; }
  .ab-story__num { order: 0; font-size: 36px; line-height: 48px; color: var(--orange); }
  .ab-story__line { order: 1; width: 40px; height: 3px; margin-top: 6px; background: var(--orange); }
  .ab-story__title { order: 2; margin-top: 16px; font-family: var(--f-head); font-size: 28px; line-height: 38px; letter-spacing: 0; color: var(--ink); }
  .ab-story__right { margin-top: 16px; gap: 16px; }
  .ab-story__lead { font-weight: 700; font-size: 18px; line-height: 25px; color: var(--ink); }
  .ab-story__text { font-size: 14px; line-height: 22px; }

  /* Built for */
  .ab-built { padding: 40px 16px; gap: 24px; }
  .ab-built .ab-eyebrow { color: var(--orange); }
  .ab-built__title { font-size: 30px; line-height: 33px; color: var(--ink); }
  .ab-built__sub { font-size: 15px; line-height: 23px; }

  .ab-chapter { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; box-shadow: inset 0 0 0 1px var(--line-m); }
  .ab-chapter__text { gap: 16px; }
  .ab-chapter__head, .ab-chapter--prematch .ab-chapter__head { gap: 4px; }
  .ab-chapter__label { font-size: 12px; line-height: 16px; letter-spacing: 1px; color: var(--orange); }
  .ab-chapter__title { font-size: 22px; line-height: 30px; color: var(--ink); }
  .ab-chapter--prematch .ab-chapter__title { font-size: 20px; line-height: 27px; }
  .ab-chapter__desc { font-size: 14px; line-height: 21px; }
  .ab-chapter__cta, .ab-chapter__cta--solid, .ab-chapter__cta--outline {
    margin-top: 0; padding: 0; border-radius: 0; background: none; box-shadow: none;
    font-family: var(--f-head); font-size: 14px; line-height: 19px; letter-spacing: 0; color: var(--orange);
  }
  .ab-chapter--sports .ab-chapter__media, .ab-chapter--racing .ab-chapter__media { width: auto; height: 180px; }
  .ab-chapter--sports .ab-chapter__media img { width: 100%; }
  .ab-chapter--prematch { gap: 16px; }
}
