/* ============================================================
   about.css — page-specific layout for about.html
   Sections: WHO WE ARE, WHAT WE DO (per person), WHY WE DO IT,
   WHY IT MATTERS (compound), SERIOUS (For/Not For), HOUSTON, CTA
   ============================================================ */

/* ============================================================
   WHO WE ARE — Mauricio + Keith
   ============================================================ */
#who .lbl,
#who .s-title,
#who .s-body { text-align: center; }
#who .s-body { margin-left: auto; margin-right: auto; }

/* ============================================================
   STINGER — short pull-quote rhythm, used in #why-we-do-it
   ============================================================ */
.s-lead {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.45;
  margin: 28px 0;
  max-width: 720px;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.who-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: border-color .25s, background .25s;
}
.who-card:hover {
  border-color: var(--border-md);
  background: var(--bg3);
}
.who-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg3);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}
.who-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Khai's headshot has a thin white strip baked into the bottom — crop it */
.who-photo img[src*="Kh.jpg"] {
  transform: scale(1.04);
  transform-origin: center top;
}
.who-name {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 4px;
}
.who-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 14px;
}
.who-bio {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

/* ============================================================
   WHAT WE DO (per person)
   ============================================================ */
.per-person-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.per-person {
  background: var(--bg2);
  padding: 32px 30px;
}
.pp-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.pp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pp-list li {
  font-size: 14px;
  color: var(--text2);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.55;
}
.pp-list li::before {
  content: '—';
  color: var(--text3);
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 2px;
}

/* ============================================================
   COMPOUND (Why It Matters)
   ============================================================ */
.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.c-card {
  background: var(--bg2);
  padding: 28px 22px;
  transition: background .2s;
  cursor: default;
}
.c-card:hover { background: var(--bg3); }
.c-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 8px;
}
.c-body {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.65;
}

/* ============================================================
   SERIOUS (For / Not For)
   ============================================================ */
.serious-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.serious-col {
  background: var(--bg2);
  padding: 36px;
}
.serious-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.serious-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.serious-prompt {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text3);
  text-align: left;
  font-style: italic;
}
.serious-item {
  font-size: 14px;
  color: var(--text2);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: transparent;
  border: none;
  padding: 6px 8px 6px 0;
  margin: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  border-radius: 6px;
  width: 100%;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.serious-item:hover { color: var(--text); background: rgba(255,255,255,.02); }
.serious-item:focus-visible {
  outline: 2px solid var(--border-hi);
  outline-offset: 2px;
}
.serious-item::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-md);
  border-radius: 4px;
  margin-top: 2px;
  background-color: transparent;
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
  transition: border-color .2s ease, background-color .2s ease;
}
.serious-item.is-checked {
  color: var(--text);
}
.serious-item.is-checked::before {
  border-color: var(--text);
  background-color: var(--text);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8.5l3 3 7-7' fill='none' stroke='%23050505' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.serious-tally {
  margin: 44px auto 0;
  max-width: 520px;
  border: 1px solid var(--border-md);
  border-radius: 12px;
  background: var(--bg2);
  padding: 22px 24px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.serious-tally[hidden] { display: none; }
.serious-tally-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.serious-tally-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text3);
}
.serious-tally-val {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.serious-verdict {
  flex: 1 1 100%;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.55;
  min-height: 1.55em;
}
.serious-verdict[data-verdict="strong-fit"]  { color: var(--text); }
.serious-verdict[data-verdict="poor-fit"]    { color: var(--text3); }
.serious-tally-cta {
  flex: 1 1 100%;
  text-align: center;
  padding: 12px 20px;
  font-size: 13px;
  letter-spacing: .02em;
  margin-top: 4px;
}

/* ============================================================
   HOUSTON MAP — split layout (copy-left, MapLibre map-right).
   Map: Carto Dark Matter base + custom Conroe glow + I-45 highlight
   + city dots and labels. Scroll-triggered fly-out animation lives
   in js/houston-map.js.
   ============================================================ */
.houston-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: start;
}
.houston-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.houston-copy .s-title { margin-bottom: 4px; }
.houston-copy .s-body  { margin-bottom: 8px; }

/* Map container — fixed aspect for stable layout while tiles load. */
.houston-map-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 720px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-md);
  background: #0a0c0f;     /* Pre-tile-load color so the box never flashes white */
  box-shadow: 0 14px 40px -20px rgba(0,0,0,.55);
}
.houston-map {
  position: absolute;
  inset: 0;
}
.houston-map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text2);
}

/* Legend chip in the top-left corner of the map */
.houston-map-legend {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #C9A961;
  background: rgba(8,10,14,.78);
  border: 1px solid rgba(201,169,97,.35);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.hml-hub {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #C9A961;
  box-shadow: 0 0 8px rgba(201,169,97,.85);
}

/* Leaflet chrome — dark background behind tiles (never a white flash)
   and attribution toned to match the dark UI */
.houston-map.leaflet-container {
  background: #0a0c0f;
  font: inherit;
}
.houston-map .leaflet-control-attribution {
  background: rgba(8,10,14,.55);
  color: rgba(255,255,255,.7);
  font-size: 10px;
}
.houston-map .leaflet-control-attribution a { color: rgba(255,255,255,.85); }

/* City pill-tags beneath the copy — keep the SEO fallback content */
.houston-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.houston-list li {
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
  letter-spacing: .03em;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg2);
}
.houston-list .houston-list__hub {
  color: #C9A961;
  border-color: rgba(201,169,97,.45);
  background: rgba(201,169,97,.08);
  font-weight: 700;
}

@media (max-width: 960px) {
  .houston-split { grid-template-columns: 1fr; gap: 32px; }
  .houston-map-wrap { aspect-ratio: 4 / 4; }
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 960px) {
  .who-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .per-person-grid { grid-template-columns: repeat(3, 1fr); }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .serious-grid { grid-template-columns: 1fr; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .per-person-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  /* Why It Matters — stay 2×2 instead of collapsing to single column */
  .grid4 { grid-template-columns: 1fr 1fr; }
  .c-card { padding: 20px 16px; }

  /* Headshots — 3-col grid with bios visible; shrink to fit 360px */
  .who-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .who-card { padding: 10px; border-radius: 10px; }
  .who-photo { margin-bottom: 10px; border-radius: 6px; }
  .who-name { font-size: 13px; line-height: 1.2; margin-bottom: 2px; }
  .who-role { font-size: 9px; letter-spacing: .1em; margin-bottom: 0; padding-bottom: 0; }
  .who-role .role-extra { display: none; }
  .who-bio { display: none; }

  /* Per-person bullets — strict 3-col grid; equal width, height, spacing */
  .per-person-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    align-items: stretch;
  }
  .per-person {
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
  }
  .pp-name {
    font-size: 9px;
    letter-spacing: .1em;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }
  .pp-list {
    gap: 8px;
    flex: 1;
  }
  .pp-list li {
    font-size: 10px;
    gap: 6px;
    line-height: 1.4;
  }
  .pp-list li::before {
    font-size: 9px;
  }

  .city-label { font-size: 9px; }
  .city-label--hub { font-size: 11px; }
}
