/* ============================================================
   about.html — light-mode About page styles
   Fully data-driven: content comes from content/pages/about.yaml.
   Scoped to .pg-* to avoid collisions with shared CSS.
   Visual treatment follows about-prototypes/skeleton.html:
   left-aligned hero, two-column splits, a single proof band
   (stats + logos + left-border quote), numbered value cards.
   ============================================================ */

/* ---- Shared measures ---- */
.pg-wrap { max-width: 1120px; margin: 0 auto; }

/* ---- Section eyebrow + heading ---- */
.pg-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cobalt-400);
  margin: 0 0 14px;
}
.pg-section {
  padding: 88px 32px;
  background: var(--paper);
}
.pg-section--rose {
  background: var(--paper-2);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}
.pg-section__inner {
  max-width: 1120px;
  margin: 0 auto;
}
.pg-section__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(29px, 3.2vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.pg-section-head {
  max-width: 640px;
  margin: 0 0 40px;
}
.pg-section-head__body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 16px 0 0;
}

/* ---- Hero section (left-aligned) ---- */
.pg-hero {
  padding: 104px 32px 84px;
  background: var(--paper);
}
.pg-hero__inner { max-width: 1120px; margin: 0 auto; }
.pg-hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-cobalt-400);
  margin: 0 0 18px;
}
.pg-hero__heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(39px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  max-width: 14ch;
}
.pg-hero__accent { color: var(--color-cobalt-400); }
.pg-hero__lead {
  margin: 22px 0 0;
  max-width: 660px;
  font-size: clamp(17px, 1.7vw, 20.5px);
  line-height: 1.58;
  color: var(--ink-2);
}
.pg-hero__actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
/* Split hero: copy on the left, a plain image (no device frame) on the right. */
.pg-hero--split .pg-hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.pg-hero--split .pg-hero__heading { max-width: 18ch; }
.pg-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--paper-line);
}
@media (max-width: 860px) {
  .pg-hero--split .pg-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .pg-hero--split .pg-hero__heading { max-width: 14ch; }
}

/* ---- Buttons ---- */
.pg-btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: filter 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.pg-btn--primary { background: var(--color-cobalt-400); color: #fff; }
.pg-btn--primary:hover { filter: brightness(1.08); }
.pg-btn--ghost { background: transparent; color: var(--color-cobalt-400); border-color: var(--paper-line); }
.pg-btn--ghost:hover { border-color: var(--color-cobalt-400); }

/* ---- Two-column split (text + media) ---- */
.pg-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.pg-split--rev .pg-split__copy { order: 2; }
.pg-split__copy p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 1rem;
}
.pg-split__copy p:last-child { margin-bottom: 0; }
.pg-split__copy a {
  color: var(--color-cobalt-400);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pg-split__copy a:hover { text-decoration: none; }
.pg-split__media {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius-lg);
  display: block;
  border: 1px solid var(--paper-line);
  background: var(--paper-2);
}

/* Full-width prose (when a section has no media column) */
.pg-prose p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 760px;
  margin: 0 0 1rem;
}
.pg-prose p:last-child { margin-bottom: 0; }

/* ---- Proof band: stats · logos · quote ---- */
.pg-stats__grid {
  display: grid;
  grid-template-columns: repeat(var(--pg-stat-cols, 2), 1fr);
  gap: 28px;
  text-align: center;
  max-width: 760px;
  margin: 8px auto 0;
}
.pg-stats__number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 4.5vw, 54px);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.pg-stats__label {
  font-size: 15px;
  color: var(--ink-3);
  margin-top: 10px;
}
.pg-logos {
  display: grid;
  grid-template-columns: repeat(var(--pg-logo-cols, 5), 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 48px;
}
.pg-logos img {
  width: 100%;
  height: 48px;
  object-fit: contain;
  object-position: center;
  opacity: 0.8;
  filter: grayscale(100%);
  mix-blend-mode: multiply;
}
/* Quote = the lavender proof-quote treatment (shared with /pricing):
   cobalt rule down the left, soft lavender tint, a Manrope quote, and a
   single quiet mono "Name, Role" attribution (no quote marks). */
.pg-quote {
  max-width: 820px;
  margin: 56px auto 0;
  border-left: 3px solid var(--color-accent);
  background: var(--color-cobalt-50);
  padding: 28px 32px;
  border-radius: 0 6px 6px 0;
}
.pg-quote__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: normal;
  font-size: 1.22rem;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ink-2);
  margin: 0 0 14px;
  text-wrap: pretty;
}
/* Attribution collapses to one quiet mono line: "Name, Role". */
.pg-quote__by {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  font-style: normal;
  margin: 0;
}
.pg-quote__name {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  line-height: 1.4;
}
.pg-quote__role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--ink-3);
  line-height: 1.4;
}
.pg-quote__role::before {
  content: ", ";
  white-space: pre;
  color: var(--ink-3);
}

/* Centered proof header + cobalt stat numbers */
.pg-section-head--center {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.pg-stats .pg-stats__number { color: var(--color-cobalt-400); }

/* Cross-fading quote carousel: all quotes share one grid cell, so the band
   is as tall as the tallest quote and never jumps as it cycles. */
.pg-quote-cycle {
  display: grid;
  max-width: 820px;
  margin: 56px auto 0;
}
.pg-quote--cycle {
  grid-area: 1 / 1;
  margin: 0;
  /* The band is sized to the tallest quote; center shorter ones vertically
     so they never cling to the top leaving a gap below. */
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease;
}
.pg-quote--cycle.is-active {
  opacity: 1;
  visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
  .pg-quote--cycle { transition: none; }
}

/* ---- Team grid: people cards ---- */
.pg-teamgrid__people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.pg-team-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-control);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.pg-team-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  border-color: var(--color-cobalt-400);
}
.pg-team-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--paper-2);
}
.pg-team-card__body { padding: 14px 16px; }
.pg-team-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.pg-team-card__role {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* ---- Values: numbered cards ---- */
.pg-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.pg-value {
  background: #ffffff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-control);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pg-value:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.pg-value__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-cobalt-400);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pg-value__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--ink);
}
.pg-value__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

/* ---- Tiles: label + sentence (grey problem, cobalt-tinted belief payoff) ---- */
.pg-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
  align-items: stretch;
}
.pg-tile {
  background: #ffffff;
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.pg-tile__label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-cobalt-400);
  margin: 0 0 16px;
}
.pg-tile__body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}
.pg-tile__body a {
  color: var(--color-cobalt-400);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--color-cobalt-400) 30%, transparent);
}
.pg-tile__body a:hover { border-bottom-color: var(--color-cobalt-400); }
/* The problem: grey, so the dull old world stands apart from the independents */
.pg-tile--problem {
  /* warm grey, mixed from tokens: ink-3 over the rose paper */
  background: color-mix(in srgb, var(--ink-3) 10%, var(--paper-2));
  border-color: color-mix(in srgb, var(--ink-3) 22%, var(--paper-2));
}
.pg-tile--problem .pg-tile__label { color: var(--ink-3); }
/* What we believe: a solid cobalt card, the payoff the sequence lands on */
.pg-tile--belief {
  background: var(--color-cobalt-400);
  border-color: var(--color-cobalt-400);
}
.pg-tile--belief .pg-tile__label { color: rgba(255, 255, 255, 0.78); }
.pg-tile--belief .pg-tile__body { color: #ffffff; }
.pg-tile--belief .pg-tile__body a { color: #ffffff; border-bottom-color: rgba(255, 255, 255, 0.5); }
.pg-tile--belief .pg-tile__body a:hover { border-bottom-color: #ffffff; }

/* ---- Legacy section types (image / mission / culture) kept for reuse ---- */
.pg-hero-img { padding: 0 32px 72px; background: var(--paper); }
.pg-hero-img__frame {
  display: block; max-width: 1120px; margin: 0 auto; width: 100%;
  aspect-ratio: 16 / 7; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--paper-line); background: var(--paper-2);
}
.pg-hero-img__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pg-mission { padding: 96px 32px; background: var(--paper); text-align: center; }
.pg-mission__inner { max-width: 880px; margin: 0 auto; }
.pg-mission__statement {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12; letter-spacing: -0.03em; color: var(--ink); margin: 0; text-wrap: balance;
}
.pg-culture__intro { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 640px; margin: 0 0 36px; }
.pg-culture__intro a { color: var(--color-cobalt-400); text-decoration: none; font-weight: 600; }
.pg-culture__intro a:hover { color: var(--color-cobalt-500); }

/* ---- Founding-story montage (one frame that cross-fades through the arc) ---- */
.pg-flipwrap { width: 100%; }
.pg-flip {
  display: grid;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--paper-line);
  background: var(--paper-2);
}
.pg-flip__slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
}
.pg-flip__slide.is-active { opacity: 1; visibility: visible; }
.pg-flip__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.pg-flip__caps { display: grid; margin-top: 14px; min-height: 1.1em; }
.pg-flip__cap {
  grid-area: 1 / 1;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
}
.pg-flip__cap.is-active { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .pg-flip__slide, .pg-flip__cap { transition: none; }
}

/* Responsive */
@media (max-width: 860px) {
  .pg-section { padding: 64px 20px; }
  .pg-hero { padding: 64px 20px 48px; }
  .pg-split { grid-template-columns: 1fr; gap: 28px; }
  .pg-split--rev .pg-split__copy { order: 0; }
  .pg-split__media { height: 300px; }
  .pg-stats__grid { grid-template-columns: 1fr; gap: 34px; }
  .pg-logos { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .pg-teamgrid__people { grid-template-columns: repeat(2, 1fr); }
  .pg-values { grid-template-columns: 1fr; }
  .pg-tiles { grid-template-columns: 1fr; }
  .pg-hero-img { padding: 0 20px 48px; }
}
