/* About page. Desktop first; mobile (< 720px) overrides at the end. Tokens come from site.css. */

/* The design sets line-height per element and leaves the rest at 'normal'; match that inside main. */
main { line-height: normal; }
main h2 { margin: 0; }
main h3 { margin: 0; }
main ul { list-style: none; margin: 0; padding: 0; }
/* Desktop: the design only balances H1/H2; body copy and card text wrap normally (no 'pretty'). */
@media (min-width: 720px) { main h3, main p { text-wrap: wrap; } }

/* ---------- 1. Hero ---------- */
.ab-hero {
  padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: 1fr; column-gap: 64px;
  grid-template-areas: "text" "btns" "grid";
}
@media (min-width: 980px) {
  .ab-hero { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto 1fr; grid-template-areas: ". grid" "text grid" "btns grid" ". grid"; }
  .ab-grid { align-self: center; margin-top: 0 !important; }
}
.ab-hero__text { grid-area: text; }
.ab-hero .eyebrow { margin-bottom: 10px; }
.ab-hero h1 { font: 800 clamp(36px, 5vw, 54px)/1.04 var(--font); font-stretch: 108%; letter-spacing: -.025em; margin: 0 0 22px; }
.ab-hero__text p:not(.eyebrow) { margin: 0 0 18px; font-size: 18px; line-height: 1.6; color: var(--text); }
.ab-hero__text p:last-child { margin-bottom: 30px; }
.ab-hero__btns { grid-area: btns; display: flex; flex-wrap: wrap; gap: 14px; }
.ab-hero__btns .btn { font-size: 17px; line-height: normal; border-radius: 9px; padding: 16px 26px; }
.ab-hero__btns .btn--outline { padding: 14px 22px; }
.ab-grid { grid-area: grid; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 260px 220px; gap: 16px; margin-top: 48px; min-width: 0; }
.ab-grid > div { border-radius: 18px; overflow: hidden; background: var(--line-2); min-width: 0; }
.ab-grid__main { grid-row: 1 / 3; }
.ab-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 2. Credentials ---------- */
.creds { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.creds .container { padding-top: 64px; padding-bottom: 64px; }
.creds h2 { font: 800 34px/1.1 var(--font); font-stretch: 108%; letter-spacing: -.02em; margin-bottom: 8px; }
.creds__lead { margin: 0 0 30px; font-size: 16.5px; color: var(--muted); }
.creds__lead a { color: var(--copper); text-underline-offset: 3px; }
.creds__lead a:hover { color: var(--copper-dark); }
.creds__cards { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.cred { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: var(--surface-2); }
.cred dt { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.cred dd { margin: 0; font: 600 22px var(--mono); color: var(--ink); }
.cred dd.cred__money { font: 800 22px var(--font); }
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-top: 18px !important; }
.brand-row { display: flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; }
.brand-row__logo {
  width: 120px; height: 56px; flex: none; border-radius: 8px; background: var(--neutral-bg);
  display: grid; place-items: center; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.3;
}
.brand-row__txt { display: flex; flex-direction: column; min-width: 0; }
.brand-row__title { font-weight: 700; font-size: 17px; }
.brand-row__sub { font-size: 15px; color: var(--muted); }

/* ---------- 3. Values ---------- */
.values { padding-top: 64px; padding-bottom: 64px; }
.values__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px; }
.values h3 { font: 700 21px var(--font); font-stretch: 105%; margin: 0 0 10px; }
.values p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ---------- 4. Ink CTA band ---------- */
.cta-ink { background: var(--ink); color: #fff; }
.cta-ink__in { padding-top: 52px; padding-bottom: 52px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px; }
.cta-ink h2 { font: 800 32px var(--font); font-stretch: 108%; margin-bottom: 6px; }
.cta-ink p { margin: 0; font-size: 17px; color: var(--on-dark); }
.cta-ink__btns { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-ink__btns .btn { font-size: 17px; line-height: normal; border-radius: 9px; padding: 16px 26px; }
.cta-ink__btns .btn--outline-light { padding: 14px 22px; }

/* =====================================================================
   Mobile (< 720px): from QPG Mobile.dc.html (page = about)
   ===================================================================== */
@media (max-width: 719.98px) {
  .ab-hero { padding-top: 28px; padding-bottom: 30px; grid-template-areas: "text" "grid" "btns"; }
  .ab-hero .eyebrow { margin-bottom: 8px; }
  .ab-hero h1 { font-size: 34px; line-height: 1.06; font-stretch: 105%; letter-spacing: -.02em; margin-bottom: 14px; }
  .ab-hero__text p:not(.eyebrow) { font-size: 16.5px; margin-bottom: 14px; }
  .ab-hero__text p:last-child { margin-bottom: 20px; }
  .ab-grid { grid-template-rows: 150px 120px; gap: 10px; margin: 0 0 22px; }
  .ab-grid > div { border-radius: 14px; }
  .ab-hero__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ab-hero__btns .btn, .ab-hero__btns .btn--outline { min-height: 54px; border-radius: 10px; padding: 0 10px; font-size: 16px; }

  .creds .container { padding: 32px 16px; }
  .creds h2 { font-size: 25px; line-height: 1.12; font-stretch: 105%; letter-spacing: 0; margin-bottom: 6px; }
  .creds__lead { font-size: 15px; margin-bottom: 16px; }
  .creds__cards { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
  .cred { border-radius: 12px; padding: 14px; }
  .cred dt { font-size: 13px; margin-bottom: 4px; }
  .cred dd, .cred dd.cred__money { font-size: 17px; }
  .brands { grid-template-columns: 1fr; gap: 10px; margin-top: 0 !important; }
  .brand-row { gap: 14px; border-radius: 12px; padding: 14px; }
  .brand-row__logo { width: 80px; height: 44px; border-radius: 7px; font-size: 11px; }
  .brand-row__title { font-size: 15.5px; }
  .brand-row__sub { font-size: 13.5px; }

  .values { padding-top: 32px; padding-bottom: 32px; }
  .values__list { grid-template-columns: 1fr; gap: 20px; }
  .values h3 { font-size: 18px; font-stretch: 100%; margin-bottom: 6px; }
  .values p { font-size: 15px; line-height: 1.55; }

  /* The mobile design closes About with the same copper band as Home ("Have a job in mind?"). */
  .cta-ink { background: var(--copper); }
  .cta-ink__in { padding: 30px 16px; display: block; }
  .cta-ink h2 { font-size: 26px; line-height: 1.12; font-stretch: 105%; }
  .cta-ink p { font-size: 16px; margin-bottom: 16px; color: #fff; }
  .cta-ink__btns { display: block; }
  .cta-ink__btns .cta-ink__primary {
    display: flex; width: 100%; min-height: 54px; border-radius: 10px; padding: 0 16px;
    background: #fff; color: var(--copper-dark); font-weight: 800;
  }
  .cta-ink__btns .cta-ink__primary:hover { background: var(--page); color: var(--copper-dark); }
}
