/* ============================================================
   Company hub identity layer.

   Inherits tokens + base + sections from the institutional canon.
   This file adds the company-hub-only register: the leadership
   people grid, grouped footer columns, the pull-quote grammar,
   and per-product accent overrides so Aura, Orchestrate, and
   Bajwa Writes each carry the same accent used for their pillar
   in the CG-04 ecosystem visual.
   ============================================================ */

html, body { overflow-x: clip; }

h1, h2, h3, h4,
.hero__title, .hero__lead,
.flagship-section__title, .flagship-section__lead,
.page-header__title, .page-header__lead,
.pull-quote, .person__desc, p {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Active nav link */
.nav__links a[aria-current="page"] {
  color: var(--text-primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

/* Literary register for Bajwa Writes surfaces */
.register-literary {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}
.register-literary .lead,
.register-literary p {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 19px;
  line-height: 1.65;
}
@media (min-width: 1024px) {
  .register-literary .lead,
  .register-literary p { font-size: 21px; }
}

/* Per-product accent — mirrors the CG-04 pillar colors */
[data-product="aura"]        { --accent: #16C2B0; }
[data-product="orchestrate"] { --accent: #0A7A6F; }
[data-product="bajwa-writes"]{ --accent: #176B5D; }

/* Typography — calmer than the token defaults. tokens.css sizes
   (72px h1) are tuned for the founder/member one-pagers; the hub
   carries more pages and more sections per page, so headings are
   dialed down to establish hierarchy without shouting. */
.hero__title {
  font-size: clamp(30px, 4vw, 52px);
  max-width: 18ch;
}
.hero__lead {
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 54ch;
}
.flagship-section__title {
  font-size: clamp(22px, 2.6vw, 30px);
}
.flagship-section__lead {
  font-size: clamp(15px, 1.2vw, 17px);
}

/* Page header — shared secondary-page title grammar */
.page-header {
  padding-top: var(--s12);
  padding-bottom: var(--s8);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s8);
}
.page-header__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--type-mono-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s3) 0;
}
.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 var(--s4) 0;
  max-width: 22ch;
}
.page-header__lead {
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: var(--lh-body);
  color: var(--text-primary);
  opacity: 0.8;
  margin: 0;
  max-width: 58ch;
}

/* Section pacing — sparse sections (a single figure, a single
   quote, a closing CTA) default to the same 96px rhythm as
   content-heavy ones, which reads as oversized empty blocks.
   Applied to any section holding one focal element. */
.section--tight {
  padding-top: var(--s12);
  padding-bottom: var(--s12);
}

/* Pull quote — a calm editorial statement, not a poster. Width
   and size are tuned together: capping max-width alone at this
   font size forces 2-3 words per line and reads as shouting. */
.pull-quote {
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.45;
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  max-width: 46ch;
  margin: 0;
}
.pull-quote--accent {
  border-left: 2px solid var(--accent);
  padding-left: var(--s6);
}

/* Flagship diagram frame — these SVGs are dense reference
   diagrams (deck-grade detail, small internal labels), not hero
   art. Contained, capped, and elevated so they read as a cited
   figure rather than a full-bleed background. */
.flagship-figure {
  max-width: 640px;
  margin: 0 auto;
}
.flagship-figure__caption {
  text-align: center;
  margin: 0 0 var(--s4) 0;
}
.flagship-section__visual {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--s5);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.6);
}
.flagship-section__visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}
.substrate-zoom__visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
}

/* Leadership grid — reuses the product-card grammar so the
   institution and its leadership read as one visual family. */
.people {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s4);
}
@media (min-width: 768px) {
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.person {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s8);
}
.person__name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 var(--s2) 0;
  white-space: nowrap;
}
.person__role {
  font-family: var(--font-mono);
  font-size: var(--type-mono-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s4) 0;
}
.person__desc {
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: var(--lh-body);
  color: var(--text-secondary);
  margin: 0 0 var(--s5) 0;
}
.person__link {
  font-family: var(--font-body);
  font-size: var(--type-body-small);
  font-weight: var(--weight-medium);
  color: var(--accent);
}
.person__link::after { content: ' →'; }

/* Grouped footer columns — the company hub carries more links
   than a single-person surface, so they group under short labels
   rather than running as one long flat list. */
.footer__cols {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--s8);
}
@media (max-width: 767px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
}
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: var(--type-mono-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 var(--s4) 0;
  font-weight: var(--weight-medium);
}
.footer__col a {
  display: block;
  font-size: var(--type-body-small);
  color: var(--text-secondary);
  margin: 0 0 var(--s3) 0;
}
.footer__col a:hover { color: var(--text-primary); }
.footer__brand {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: 18px;
  color: var(--text-primary);
  margin: 0 0 var(--s2) 0;
}
.footer__tagline {
  font-family: var(--font-body);
  font-size: var(--type-body-small);
  color: var(--text-secondary);
  max-width: 32ch;
  margin: 0 0 var(--s4) 0;
}
.footer__people {
  font-family: var(--font-mono);
  font-size: var(--type-mono-small);
  color: var(--text-secondary);
  margin: 0;
}
.footer__people a {
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
}
.footer__people a:hover {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}
/* Pitch intake form — powers scripts/pitch-inquiry.js */
.form {
  display: grid;
  gap: var(--s5);
  max-width: 720px;
  margin-top: var(--s8);
}
.form__row {
  display: grid;
  gap: var(--s2);
}
.form label {
  font-family: var(--font-mono);
  font-size: var(--type-mono-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.form input,
.form textarea,
.form select {
  width: 100%;
  padding: var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  font: inherit;
  font-family: var(--font-body);
}
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus,
.form textarea:focus,
.form select:focus { outline: none; border-color: var(--accent); }
.form__status {
  font-family: var(--font-body);
  font-size: var(--type-body-small);
  color: var(--text-secondary);
  min-height: 1.4em;
}
.form__status[data-state="error"] { color: var(--co-rose); }
.form__status[data-state="success"] { color: var(--co-verdant); }

.footer__bottom {
  max-width: var(--content-max);
  margin: var(--s10) auto 0 auto;
  padding-top: var(--s6);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  font-family: var(--font-mono);
  font-size: var(--type-mono-small);
  color: var(--text-secondary);
}
@media (max-width: 639px) {
  .footer__bottom { flex-direction: column; gap: var(--s2); }
}
