/* Page content corrections. Shared navigation and theme live in assets/site-shell.css. */
.stacked-mark-light,
.stacked-mark-dark { display: block; width: min(240px, 70vw); height: auto; margin: 0 auto 22px; mix-blend-mode: normal !important; }
.stacked-mark-dark { display: none; }
:root[data-theme="dark"] .stacked-mark-light { display: none; }
:root[data-theme="dark"] .stacked-mark-dark { display: block; }
.contact-options {
  width: min(100%, 760px);
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.contact-options > .dom { min-width: 0; }
@media (max-width: 520px) {
  .contact-options { grid-template-columns: minmax(0, 1fr); }
  .stacked-mark-light,
  .stacked-mark-dark { width: min(210px, 64vw); margin-bottom: 18px; }
}

/* Public team profiles: pitch-deck roles and supplied portraits. */
.team-section .section-head { margin-bottom: 26px; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: min(100%, 900px);
  margin: 0 auto;
  align-items: stretch;
}
.team-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--if-border);
  border-radius: 20px;
  background: color-mix(in srgb, var(--if-surface) 88%, transparent);
  box-shadow: var(--shadow);
  text-align: left;
}
.team-photo {
  display: block;
  width: 136px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 14px;
  background: #fff;
}
.team-copy h3 { margin: 0 0 5px; font-size: 18px; letter-spacing: -.025em; }
.team-role {
  margin-bottom: 10px;
  color: var(--if-accent);
  font: 700 10px/1.4 "JetBrains Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.team-copy p { margin: 0; color: var(--if-ink-2); font-size: 13px; line-height: 1.6; }
.team-credentials { margin-top: 9px; color: var(--if-ink-3); font-size: 12px; }
.team-copy a { display: inline-block; margin-top: 9px; color: var(--if-ink-2); font-size: 12px; text-underline-offset: 3px; }
@media (max-width: 820px) { .team-grid { grid-template-columns: minmax(0, 1fr); max-width: 620px; } }
@media (max-width: 520px) {
  .team-grid { gap: 14px; }
  .team-card { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: 16px; }
  .team-photo { width: 96px; border-radius: 11px; }
  .team-copy h3 { font-size: 16px; }
  .team-copy p { font-size: 12.5px; line-height: 1.55; }
}
/* Keep the two About profiles on a shared top alignment and content rhythm. */
.team-card { align-items: start; }
