/* ============================================================
   Clearcost — about.css
   Styles used only by about.html. Load after global.css.
   ============================================================ */

/* Hero image treatment */
.hero--about .hero-img { object-position: center bottom; transform: scale(1.18); transform-origin: center bottom; }

/* ============================================================
   ABOUT
   ============================================================ */

.about-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 48px;
}
.about-intro .kicker { margin: 0; }
.about-intro-text { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 1100px) { .about-intro-text { grid-column: span 2; } }
.about-intro h2 { margin: 0; font-size: clamp(24px, 2.8vw, 40px); line-height: 1.12; font-weight: 400; letter-spacing: -0.03em; text-wrap: pretty; }
.about-intro h2 strong { font-weight: 600; color: var(--accent); }
.about-intro p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 720px; text-wrap: pretty; }

.pillars { border-top: 0.5px solid var(--hairline); }
.pillars-grid {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.pillar { padding: 48px 32px 56px 0; display: flex; flex-direction: column; gap: 20px; }
.pillar-kicker { font-family: var(--mono); font-size: 13px; text-transform: uppercase; }
.pillar h3 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; text-wrap: pretty; }

.founder { padding: clamp(80px, 9vw, 130px) 2.5rem; display: flex; justify-content: center; }
.founder-grid {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.founder-img { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; }
.founder-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.founder-text { display: flex; flex-direction: column; gap: 2rem; }
.founder-text .tag { align-self: flex-start; }
.founder-text p { margin: 0; font-size: 1.125rem; line-height: 1.6; color: var(--ink-2); max-width: 560px; text-wrap: pretty; }
/* The quote is a <p> too — this rule must out-rank the general paragraph rule above. */
.founder-text .quote {
  margin: 0;
  max-width: none;
  font-size: clamp(24px, 2.4vw, 2.25rem);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: pretty;
}
.founder-text .quote strong { font-weight: 700; color: var(--accent); }
.founder-sig { display: flex; flex-direction: column; gap: 6px; padding-top: 1.5rem; border-top: 0.5px solid var(--hairline); }
.founder-name { font-size: 1.375rem; font-weight: 500; letter-spacing: -0.02em; }
.founder-role { font-family: var(--mono); font-size: 0.875rem; text-transform: uppercase; color: var(--muted); }

.directors { padding: 0 2.5rem clamp(80px, 9vw, 130px); display: flex; flex-direction: column; align-items: center; gap: 5rem; }
.directors .h2 { max-width: 900px; }
.directors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 1200px;
}
.director { display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; padding: 0.75rem; }
.director-img { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; }
.director-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.director-body { display: flex; flex-direction: column; gap: 0.75rem; padding: 1.5rem 1rem 1rem; }
.director-role { font-family: var(--mono); font-size: 0.875rem; text-transform: uppercase; color: var(--muted); }
.director h3 { margin: 0; font-size: 1.625rem; line-height: 1.1; font-weight: 400; letter-spacing: -0.03em; }
.director p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

#consultants { padding-top: 0; }
.consultants-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.consultants-head p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 420px; }
.team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 32px 24px;
}
.member { display: flex; flex-direction: column; gap: 12px; }
.member-img { aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--surface-grey); }
.member-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.member-name { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.member-role { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--muted); }


/* ---------- responsive ---------- */
/* keep three-across on tablets instead of leaving one card orphaned */
@media (min-width: 700px) and (max-width: 1100px) {
  .pillars-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pillar { padding-right: 20px; }
}
/* founder photo goes full-width once stacked — keep it from getting too tall */
@media (max-width: 900px) {
  .founder-img { aspect-ratio: 1 / 1; }
}
@media (max-width: 640px) {
  .pillar { padding: 32px 0 36px; }
  .founder { padding: 5rem 1.25rem; }
  .founder-grid { gap: 2rem; }
  .founder-text { gap: 1.5rem; }
  .directors { padding: 0 1.25rem 5rem; gap: 3rem; }
  .director h3 { font-size: 1.375rem; }
  .consultants-head { margin-bottom: 28px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .member-name { font-size: 1rem; }
  .member-role { font-size: 11px; }
}

/* directors: 2 x 2 on tablets, odd last card centred */
@media (min-width: 560px) and (max-width: 1100px) {
  .directors-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .directors-grid > .director { grid-column: span 2; }
  .directors-grid > .director:last-child:nth-child(odd) { grid-column: 2 / span 2; }
}
