/* ============================================================
   quGradient · company + contact primitives
   Team cards, founding facts, principles, open roles, IR band,
   contact form. Light-first, gradient accents.
   ============================================================ */

/* --- team cards -------------------------------------------- */
.teamcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-5); }
.tcard { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease); }
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tcard__photo { aspect-ratio: 4/3; background: var(--soft-2); overflow: hidden; }
.tcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.tcard__photo--placeholder { display: grid; place-items: center; background: var(--grad-soft); }
.tcard__photo--placeholder .mono-big { font-family: var(--font-mono); font-size: 1.8rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* duotone treatment: unifies mixed-quality source photos into one look */
.tcard__photo--duo { position: relative; background: var(--soft-2); }
.tcard__photo--duo img { filter: grayscale(1) contrast(1.04) brightness(1.02); }
.tcard__photo--duo::after { content: ""; position: absolute; inset: 0; background: #0A1F44; opacity: 0.16; mix-blend-mode: color; pointer-events: none; }
.tcard__body { padding: var(--s-4) var(--s-5) var(--s-5); }
.tcard__name { font-family: var(--font-display); font-size: var(--fs-h4); color: var(--ink); margin: 0; }
.tcard__role { font-size: var(--fs-sm); color: var(--brand-ink); font-weight: 600; margin: 0 0 var(--s-2); }
.tcard__bio { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

/* --- founding facts ---------------------------------------- */
.facts { display: grid; gap: 0; margin: var(--s-5) 0; }
.fact { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s-4); align-items: baseline; padding: var(--s-4) 0; border-bottom: 1px solid var(--border-soft); }
.fact .yr { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--brand-ink); font-weight: 600; }
.fact p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 560px) { .fact { grid-template-columns: 1fr; gap: var(--s-1); } }

/* --- operating principles ---------------------------------- */
.philosophy { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4); }
.phil { padding: var(--s-4) var(--s-5); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--soft); }
.phil b { display: block; color: var(--ink); margin-bottom: var(--s-1); }
.phil span { font-size: var(--fs-sm); color: var(--muted); }

/* --- contact form ------------------------------------------ */
.paths { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.path-btn {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.03em;
  padding: 0.55em 0.95em; border-radius: var(--r-pill);
  background: var(--white); border: 1px solid var(--border); color: var(--ink-soft); cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.path-btn[aria-pressed="true"] { border-color: transparent; color: var(--white); background: var(--grad); }
.path-btn:hover { border-color: var(--brand); color: var(--brand-ink); }
.path-btn[aria-pressed="true"]:hover { color: var(--white); }

.contact-form { display: grid; gap: var(--s-5); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field-optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  font-family: var(--font-sans); font-size: var(--fs-body); color: var(--ink);
  padding: 0.8em 0.95em; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--white); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-12); }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236B7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.95em center; padding-right: 2.4em; }
.field select:invalid { color: var(--muted); }

.form-success { display: none; padding: var(--s-5); border-radius: var(--r-md); background: var(--grad-soft); border: 1px solid var(--brand-12); }
.form-success.is-visible { display: block; }
.contact-email { margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--muted); }

/* endpoint-gated form: while no endpoint is configured, the direct email is the primary contact path */
.contact-email--primary { font-size: var(--fs-lead); color: var(--ink); margin-top: 0; }

/* team card profile links */
.tcard__links { display: flex; gap: var(--s-3); font-family: var(--font-mono); font-size: var(--fs-xs); margin-top: var(--s-2); }
.tcard__links a { color: var(--brand-ink); text-decoration: none; }
.tcard__links a:hover { text-decoration: underline; }
