/* ─────────────────────────────────────────────────────────────────────────
   Section: About — Header
   Figma: 2001:2196 (Synemi-Marketing-Clone-for-Dev › About › Header)

   Frame: 1440w × 800h, gradient bg (219.22deg, #00804D → #004C98)
   Layout: full-width, two-column at lg (left: heading + Synemi wordmark +
     "We support" block; right: yellow ribbons + body + arrow)
   ───────────────────────────────────────────────────────────────────────── */

/* ── Container ──────────────────────────────────────────────────────────── */
.section-about-header {
  position: relative;
  background: var(--gradient-hero-about);
  overflow: hidden;
}

/* People background photo — opacity 0.4, full-bleed behind the gradient */
.section-about-header__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.section-about-header__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  z-index: 1;
}

/* ── Top nav (logo + glass pill) ────────────────────────────────────────── */
.section-about-header__nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem clamp(1.5rem, 5vw, 9.25rem) 0;
  z-index: 10;
}

.section-about-header__logo img {
  display: block;
  width: 11.875rem; /* 190px */
  height: auto;
  flex-shrink: 0;
}

/* Nav pill — Figma 500×60, radius 50 */
.section-about-header__nav-pill {
  position: relative;

  /* Lays out its own children now, so the pill HUGS its content exactly like
     .section-hero__nav-pill and .page-header__nav-group. It used to be a fixed
     500px with the links and Sign Up absolutely positioned inside, which left
     28px of slack before Sign Up — the last spacing difference between About
     and every other nav. Height comes from the 40px chips plus 6px padding. */
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0.375rem;
  border-radius: 0.875rem; /* 14px, was a 50px pill */
  flex-shrink: 0;
}

.section-about-header__nav-glass {
  position: absolute;
  inset: 0;
  border-radius: 0.875rem;
  background: var(--gradient-glass);
  border: 1px solid var(--color-white);
  -webkit-backdrop-filter: blur(50px);
  backdrop-filter: blur(50px);
  box-shadow: var(--shadow-glass);
  pointer-events: none;
  z-index: 0;
}

.section-about-header__nav-links {
  /* In flow, not absolute: spacing comes from each chip's own 12px padding,
     matching .section-hero__nav-pill and .page-header__nav-group. */
  display: flex;
  align-items: center;
  gap: 0;
  z-index: 1;
}

.section-about-header__nav-link {
  /* Same chip geometry as every other nav: h 40, px 12, radius 8. */
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding-inline: 0.75rem;
  border-radius: 0.5rem;
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.8125rem; /* 13px */
  line-height: 1;
  letter-spacing: var(--tracking-rock);
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.section-about-header__nav-link:hover {
  opacity: 0.7;
}

.section-about-header__nav-signup {
  /* A flex sibling of the links now, so it sits immediately after them with
     no gap, as on every other nav. */
  height: 2.5rem; /* 40px — same chip as every other page */
  padding: 0 1.25rem;
  background: var(--color-yellow);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy-bg);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: var(--tracking-rock);
  text-decoration: none;
  white-space: nowrap;
  z-index: 2;
  transition: opacity 0.2s;
}
.section-about-header__nav-signup:hover {
  opacity: 0.88;
}

/* Mobile hamburger — hidden on desktop */
.section-about-header__nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile nav drawer */
.section-about-header__mobile-nav {
  position: absolute;
  top: 5.5rem;
  left: 0;
  right: 0;
  background: var(--color-navy-bg);
  z-index: 20;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.section-about-header__mobile-link {
  color: var(--color-white);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
  padding: 0.5rem 0;
}
.section-about-header__mobile-link--cta {
  background: var(--color-yellow);
  color: var(--color-navy-bg);
  border-radius: 0.5rem;
  padding: 0.75rem 2rem;
  text-align: center;
}

/* ── Hero content area — anchor box at left:148, top:144 in Figma ───────── */
.section-about-header__content {
  position: relative;
  padding: 2rem clamp(1.5rem, 5vw, 9.25rem) 4rem;
}

/* ── Left column ────────────────────────────────────────────────────────── */
.section-about-header__left {
  position: relative;
}

/* Headline: "WE BUILT     to a broken system." */
.section-about-header__heading {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 2.5rem;
  line-height: 1.05;
  letter-spacing: var(--tracking-headline);
  text-transform: uppercase;
  color: var(--color-white);
}

.section-about-header__heading-line {
  display: block;
}

/* "Fix" Rock Salt — yellow accent overlay */
.section-about-header__fix {
  display: inline-block;
  font-family: var(--font-accent);
  font-weight: 400;
  text-transform: none;
  color: var(--color-yellow);
  letter-spacing: var(--tracking-rock);
}

/* "Synemi" wordmark — green-on-cream image overlay */
.section-about-header__wordmark {
  display: block;
  margin-top: -0.25rem;
}
.section-about-header__wordmark img {
  display: block;
  width: 12rem;
  height: auto;
}

/* ── "We support" Rock Salt block (left col, below heading) ─────────────── */
.section-about-header__support {
  position: relative;
  margin-top: 3rem;
}

.section-about-header__support-rock {
  margin: 0;
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: var(--tracking-rock);
  color: var(--color-yellow);
}

.section-about-header__support-body {
  margin: 0.75rem 0 0;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.375;
  letter-spacing: var(--tracking-body);
  color: var(--color-white);
  max-width: 30rem;
}

/* "We support" underline SVG — decorative, lg only */
.section-about-header__support-underline {
  display: none;
}

/* ── Right column ───────────────────────────────────────────────────────── */
.section-about-header__right {
  position: relative;
  margin-top: 3rem;
}

/* Yellow ribbons stack */
.section-about-header__ribbons {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  align-items: flex-start;
}

.section-about-header__ribbon {
  margin: 0;
  background: var(--color-yellow);
  color: var(--color-navy-bg);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.375;
  letter-spacing: var(--tracking-body);
  padding: 0.0625rem 0.625rem;
}

/* Body copy */
.section-about-header__body {
  margin: 1.5rem 0 0;
  font-family: var(--font-primary);
  font-weight: 400;
  color: var(--color-white);
  letter-spacing: var(--tracking-body);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 36rem;
}
.section-about-header__body p {
  margin: 0 0 1rem;
}
.section-about-header__body p:last-child {
  margin-bottom: 0;
}

/* Decorative arrow — lg only */
.section-about-header__arrow {
  display: none;
}

/* ── Focus rings ────────────────────────────────────────────────────────── */
.section-about-header__nav-link:focus-visible,
.section-about-header__nav-signup:focus-visible,
.section-about-header__nav-toggle:focus-visible {
  outline: 3px solid var(--color-yellow);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

/* ── xl: 1440 Figma frame layout ────────────────────────────────────────── */
/* From 80rem: the two columns need 1041 of content width (the left column
   up to the end of "Fix" 528, the 505 ribbon block), which 1280 - 2x120
   just holds. Narrower screens use the stacked layout. */
@media (width >= 80rem) {
  /* Figma 5/15 Hero (2225:1676), 1440x803: a 1200 content column at x120
     (padding-driven), two equal columns vertically centred on each other.
     Heading top at y149 (the site nav ends at 76, so the row starts 73 below
     it); the left column (595 tall) sets the row; bottom padding 58. */
  .section-about-header {
    min-height: 50.1875rem; /* 803 */
  }

  .section-about-header__content {
    display: flex;
    align-items: center;
    padding: 4.5625rem 7.5rem 3.625rem; /* 73 / 120 / 58 */
  }

  .section-about-header__left {
    position: relative;
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    gap: 6.625rem; /* 106 */
    min-width: 33rem; /* keeps "Fix" (ends at 525) clear of the ribbons at 1280 */
    min-height: 37.1875rem; /* Figma's left column box is 595 tall (149 to 744) */
  }

  .section-about-header__heading {
    /* Inter SemiBold 80/75, -0.024em, uppercase — 4 lines in the 600 column:
       "We built" / [Synemi wordmark] "to" / "a broken" / "system." */
    font-size: 5rem; /* 80 */
    line-height: 4.6875rem; /* 75 */
  }

  /* Holds line 2's start for the Synemi wordmark (262 wide) */
  .section-about-header__heading-gap {
    display: inline-block;
    width: 16.375rem; /* 262 */
  }

  /* Synemi wordmark: Figma x120 y224, 262x88 = line 2 of the heading */
  .section-about-header__wordmark {
    position: absolute;
    top: 4.6875rem; /* 75 */
    left: 0;
    margin-top: 0;
  }

  .section-about-header__wordmark img {
    width: 16.375rem; /* 262 */
    height: 5.5rem; /* 88 */
  }

  /* "Fix": Rock Salt 65/100 at Figma x531.58 y196 = heading x411.58 y47 */
  .section-about-header__fix {
    position: absolute;
    top: 2.9375rem; /* 47 */
    left: 25.7238rem; /* 411.58 */
    font-size: 4.0625rem; /* 65 */
    line-height: 6.25rem; /* 100 */
  }

  /* Underline under "Fix": rotated bbox 126.5x33.7 at heading x384 y131.3;
     the 126x26 image is centred in it (rotation is about the centre). */
  .section-about-header__fix-underline {
    display: block;
    position: absolute;
    top: 8.4563rem; /* 131.3 + 3.97 */
    left: 24.0125rem; /* 384.2 */
    width: 7.875rem; /* 126 */
    height: 1.625rem; /* 26 */
    transform: rotate(-3.62deg) skewX(-2.04deg);
    pointer-events: none;
  }

  /* "We support" (Rock Salt 38/46) + 11 + body 30/33 (w-465) */
  .section-about-header__support {
    position: relative;
    margin-top: 0;
  }

  .section-about-header__support-rock {
    font-size: 2.375rem; /* 38 */
    line-height: 2.875rem; /* 46 */
  }

  .section-about-header__support-body {
    max-width: 29.0625rem; /* 465 */
    margin-top: 0.6875rem; /* 11 */
    font-size: 1.875rem; /* 30 */
    line-height: 2.0625rem; /* 33 */
    letter-spacing: -0.019em;
  }

  /* Underline under "complete ownership": rotated bbox 262.1x42.3 at
     support-block x90.06 y147; the 262x26 image is centred in it. */
  .section-about-header__support-underline {
    display: block;
    position: absolute;
    top: 9.7044rem; /* 147 + 8.27 */
    left: 5.6288rem; /* 90.06 */
    width: 16.375rem; /* 262 */
    height: 1.625rem;
    transform: rotate(-3.62deg) skewX(-2.04deg);
    pointer-events: none;
  }

  /* Right column: ribbons (5 apart, w-505 box) + 63 + body copy */
  .section-about-header__right {
    position: relative;
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    gap: 3.9375rem; /* 63 */
    min-width: 0;
    margin-top: 0;
  }

  .section-about-header__ribbons {
    width: 31.5625rem; /* 505 */
    gap: 0.3125rem; /* 5 */
  }

  .section-about-header__ribbon {
    /* Figma 30/33, -0.57px, navy-bg on yellow, padding 1px 10px */
    font-size: 1.875rem; /* 30 */
    line-height: 2.0625rem; /* 33 */
    padding: 0.0625rem 0.625rem;
    white-space: nowrap; /* each Figma ribbon is one line */
  }

  .section-about-header__body {
    margin-top: 0;
    font-size: 1.625rem; /* 26 */
    line-height: 2.125rem; /* 34 */
    letter-spacing: -0.024em;
  }

  .section-about-header__body p {
    margin-bottom: 2.125rem; /* one blank line of leading */
  }

  .section-about-header__body p:last-child {
    margin-bottom: 0;
  }

  /* Arrow: Figma bbox 106.07x124.69 at x1227.03 y247.94 = right column
     x507 / y60.44 (column top at 187.5: the 518-tall column centred on the
     595-tall left column from y149). The 118.47x52.98 export is centred in
     that box and transformed as in Figma. */
  .section-about-header__arrow {
    display: block;
    position: absolute;
    top: 6.0188rem; /* 60.44 + 35.86 */
    left: 31.3013rem; /* 507 - 6.2 */
    width: 7.4044rem; /* 118.47 */
    height: 3.3113rem; /* 52.98 */
    transform: rotate(60.98deg) scaleY(-1) skewX(-5.56deg);
    pointer-events: none;
  }
}

/* ── Mobile / tablet: compact nav below lg ──────────────────────────────── */
@media (width < 64rem) {
  .section-about-header__nav-pill {
    display: none;
  }
  .section-about-header__nav-toggle {
    display: flex;
  }
}

/* ── Mobile / tablet (< xl): stacked, simpler ───────────────────────────── */
@media (width < 80rem) {
  .section-about-header {
    padding-bottom: 3rem;
  }

  /* Inline "Fix" sits right after "to" on its own line */
  .section-about-header__fix {
    margin-left: 0.5rem;
    font-size: 2.5rem;
    line-height: 1;
  }
  .section-about-header__heading-gap {
    display: inline;
    width: auto;
  }

  /* Hide decorative underline SVGs and arrow on mobile */
  .section-about-header__fix-underline,
  .section-about-header__support-underline,
  .section-about-header__arrow {
    display: none;
  }
}

/* Mid range: scale headline up between 768 and 1280 */
@media (width >= 48rem) and (width < 80rem) {
  .section-about-header__heading {
    font-size: 3.5rem;
    line-height: 1.05;
  }
  .section-about-header__fix {
    font-size: 3rem;
  }
  .section-about-header__support-rock {
    font-size: 2.25rem;
  }
  .section-about-header__support-body,
  .section-about-header__ribbon {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  .section-about-header__body {
    font-size: 1.25rem;
    line-height: 1.6;
  }
}
