/* Team section treatments */

.q-team-wrap { background: var(--qd-paper-50); }
.q-team-wrap.on-dark { background: var(--qd-navy-900); color: var(--fg-inverse); }

.q-team-head { padding: 120px 0 48px; }
.q-team-head.on-dark .q-section-head h2 { color: var(--fg-inverse); }
.q-team-head.on-dark .q-section-head p { color: rgba(250,247,241,0.72); }

/* Treatment labels */
.q-treatment-label { padding: 64px 0 24px; background: var(--qd-paper-100); border-top: 1px solid var(--qd-paper-300); border-bottom: 1px solid var(--qd-paper-300); }
.q-treatment-label .tag { font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--qd-brass-700); }
.q-treatment-label h2 { margin: 14px 0 10px; font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 300; letter-spacing: -.02em; color: var(--fg-1); }
.q-treatment-label p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--fg-2); max-width: 62ch; }

/* =========================================================
   Treatment A — Editorial portrait grid (About page main)
   Warm paper, large square portraits, name + hand-written role,
   two-line "what they do here" copy, a "currently thinking about" line.
   ========================================================= */
.q-team-a { padding: 80px 0 140px; background: var(--qd-paper-50); }
.q-team-a-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px;
}
@media (max-width: 900px) { .q-team-a-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; } }
@media (max-width: 600px) { .q-team-a-grid { grid-template-columns: 1fr; } }
.q-team-a-card { display: flex; flex-direction: column; }
.q-team-a-portrait {
  aspect-ratio: 1 / 1; width: 100%;
  background: var(--qd-paper-200);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.q-team-a-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  filter: saturate(0.92) contrast(1.02);
  transition: transform var(--dur-slow) var(--ease-out);
}
.q-team-a-card:hover .q-team-a-portrait img { transform: scale(1.02); }
.q-team-a-name {
  margin: 20px 0 0; font-size: 1.375rem; font-weight: 500;
  color: var(--fg-1); letter-spacing: -.01em;
}
.q-team-a-role {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 15px; color: var(--qd-brass-700); margin-top: 4px;
}
.q-team-a-dek {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--qd-paper-300);
  font-size: 15px; line-height: 1.6; color: var(--fg-1); font-weight: 400;
  text-wrap: pretty;
}
.q-team-a-aside {
  margin: 14px 0 0;
  font-size: 13px; line-height: 1.55; color: var(--fg-3);
}
.q-team-a-aside .label { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--qd-slate-500); margin-bottom: 4px; }

/* =========================================================
   Treatment B — Dark ledger (condensed, for homepage)
   Circular portraits on navy in a single horizontal row,
   name + one-liner beneath, a single statement runs across the top.
   ========================================================= */
.q-team-b { padding: 120px 0 140px; background: var(--qd-navy-900); color: var(--fg-inverse); position: relative; overflow: hidden; }
.q-team-b::before {
  content:""; position: absolute; inset: 0;
  background: radial-gradient(1000px 500px at 80% 10%, rgba(48,163,217,0.06), transparent 60%);
  pointer-events: none;
}
.q-team-b-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .q-team-b-top { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; } }
.q-team-b h2 { margin: 14px 0 0; font-size: clamp(1.75rem, 3.2vw, 2.75rem); font-weight: 300; line-height: 1.1; letter-spacing: -.02em; color: var(--fg-inverse); max-width: 20ch; text-wrap: balance; }
.q-team-b h2 em { font-style: normal; font-weight: 600; }
.q-team-b .side { font-size: 16px; line-height: 1.65; color: rgba(250,247,241,0.72); max-width: 52ch; }

.q-team-b-row {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 24px;
  border-top: 1px solid rgba(250,247,241,0.16); padding-top: 40px;
}
@media (max-width: 1100px) { .q-team-b-row { grid-template-columns: repeat(4, 1fr); row-gap: 40px; } }
@media (max-width: 700px) { .q-team-b-row { grid-template-columns: repeat(2, 1fr); row-gap: 32px; } }

.q-team-b-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.q-team-b-portrait {
  width: 100%; aspect-ratio: 1/1;
  border-radius: 999px;
  overflow: hidden;
  background: var(--qd-navy-800);
  border: 1px solid rgba(250,247,241,0.12);
  position: relative;
}
.q-team-b-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  filter: grayscale(0.15) saturate(0.8) contrast(0.98);
  mix-blend-mode: luminosity;
  opacity: 0.92;
  transition: filter var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out);
}
.q-team-b-cell:hover .q-team-b-portrait img {
  filter: none; mix-blend-mode: normal; opacity: 1;
}
.q-team-b-name { font-size: 15px; font-weight: 500; color: var(--fg-inverse); letter-spacing: -.005em; }
.q-team-b-role { font-size: 12px; color: rgba(250,247,241,0.6); line-height: 1.4; }

.q-team-b-bottom {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(250,247,241,0.16);
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap;
}
.q-team-b-bottom .stat { font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--qd-brass-300); }

/* =========================================================
   Treatment C — Masthead index (alternative About layout)
   A two-column running list: small portraits left, name + bio paragraphs right,
   print-masthead feel. One big leading statement.
   ========================================================= */
.q-team-c { padding: 80px 0 140px; background: var(--qd-paper-50); }
.q-team-c-lede {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 300; line-height: 1.25; letter-spacing: -.015em;
  color: var(--fg-1); max-width: 28ch; margin: 0 0 64px;
  text-wrap: balance;
}
.q-team-c-lede em { font-style: normal; font-weight: 600; }

.q-team-c-list { border-top: 1px solid var(--qd-paper-300); }
.q-team-c-item {
  display: grid; grid-template-columns: 160px 1.2fr 1.4fr; gap: 48px;
  padding: 40px 0; border-bottom: 1px solid var(--qd-paper-300);
  align-items: start;
}
@media (max-width: 900px) { .q-team-c-item { grid-template-columns: 96px 1fr; gap: 24px; } .q-team-c-item .q-team-c-bio { grid-column: 1 / -1; } }
@media (max-width: 500px) { .q-team-c-item { grid-template-columns: 1fr; } }
.q-team-c-portrait {
  width: 100%; aspect-ratio: 4/5;
  border-radius: 3px; overflow: hidden;
  background: var(--qd-paper-200);
}
.q-team-c-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  filter: grayscale(1) contrast(1.05);
  transition: filter var(--dur-med) var(--ease-out);
}
.q-team-c-item:hover .q-team-c-portrait img { filter: none; }

.q-team-c-name { font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; color: var(--fg-1); margin: 0; line-height: 1.2; }
.q-team-c-role {
  margin-top: 8px; font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 16px; color: var(--qd-brass-700);
}
.q-team-c-meta {
  margin-top: 18px; font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3);
}
.q-team-c-meta .dot { margin: 0 8px; opacity: 0.4; }
.q-team-c-bio p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--fg-1); max-width: 52ch; text-wrap: pretty; }
.q-team-c-bio p:last-child { margin-bottom: 0; }
.q-team-c-bio .quote {
  font-family: var(--font-serif); font-style: italic; color: var(--fg-2);
  font-size: 15px; margin-top: 16px; padding-left: 16px; border-left: 2px solid var(--qd-brass-500);
  line-height: 1.55;
}

.q-team-c-footer { margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--fg-3); }
