/* Founder profile pages (team/*.html) */
.wrap       { max-width: 740px; margin: 0 auto; padding: 0 2rem; }
.wrap--wide { max-width: 960px; margin: 0 auto; padding: 0 2rem; }

.nav-sub a {
  color: inherit; text-decoration: none;
  border-bottom: 0.5px solid var(--rule);
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s;
}
.nav-sub a:hover { color: var(--gold); border-color: var(--gold); }
.nav-sub a.active { color: var(--gold); border-color: var(--gold); font-weight: 700; }

.hero {
  padding: 5.5rem 0 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -62deg,
    transparent, transparent 80px,
    rgba(162,120,68,0.055) 80px,
    rgba(162,120,68,0.055) 80.5px
  );
  pointer-events: none;
}
.back-link {
  display: inline-flex; align-items: center;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem; color: var(--light);
  text-decoration: none; letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 0.5px solid var(--rule);
  padding-bottom: 0.1rem;
  margin-bottom: 2.4rem;
  position: relative;
  transition: color 0.2s, border-color 0.2s;
}
.back-link:hover { color: var(--gold); border-color: var(--gold); }

.profile-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
  position: relative;
}
.portrait-frame {
  border: 0.5px solid var(--rule);
  background: var(--pale);
  padding: 0.55rem;
  box-shadow: 0 10px 28px rgba(20, 18, 15, 0.04);
}
.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border: 0.5px solid rgba(195,185,172,0.55);
}
.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.66rem; color: var(--gold);
  letter-spacing: 0.10em; text-transform: uppercase;
  margin-bottom: 0.7rem; display: block;
}
.person-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.1rem, 4.5vw, 3.0rem);
  font-weight: 400; line-height: 1.12;
  color: var(--ink); margin-bottom: 0.6rem;
}
.person-role {
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem; color: var(--gold);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.ext-links {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  margin-bottom: 1.4rem;
}
.ext-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.64rem; color: var(--light);
  text-decoration: none; letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 0.5px solid var(--rule);
  padding-bottom: 0.1rem;
  transition: color 0.2s, border-color 0.2s;
}
.ext-link:hover { color: var(--gold); border-color: var(--gold); }
.ext-link svg { width: 13px; height: 13px; flex-shrink: 0; }
.domain-tags {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin-top: 1rem;
}
.domain-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.60rem; color: var(--gold);
  letter-spacing: 0.05em; text-transform: uppercase;
  border: 0.5px solid var(--gold);
  padding: 0.22rem 0.55rem;
}

section {
  padding: 3.6rem 0;
  border-top: 0.5px solid var(--rule);
}
.sec-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem; color: var(--gold);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 0.8rem; display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 400; line-height: 1.22;
  margin-bottom: 1.4rem; color: var(--ink);
}
.section-title em { font-style: italic; }
p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

.sidecard {
  border-left: 2px solid var(--gold);
  padding: 0.8rem 0 0.8rem 1.4rem;
  margin: 2.2rem 0 0; color: var(--ink);
  font-style: italic; font-size: 1.0rem;
  line-height: 1.65;
}
.sidecard strong { font-style: normal; }

.pub-list {
  display: flex; flex-direction: column;
}
.pub-item {
  padding: 1.35rem 0;
  border-bottom: 0.5px solid var(--rule);
}
.pub-item:first-child { border-top: 0.5px solid var(--rule); }
.pub-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.62rem; color: var(--gold);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.35rem; display: block;
}
.pub-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem; color: var(--ink);
  text-decoration: none; line-height: 1.3;
  display: inline-block; margin-bottom: 0.35rem;
  transition: color 0.2s;
}
.pub-title:hover { color: var(--gold); }
.pub-desc {
  font-size: 0.88rem; color: var(--light);
  line-height: 1.58; margin: 0;
}

footer {
  background: var(--dark);
  border-top: 0.5px solid rgba(195,185,172,0.2);
  padding: 2.6rem 0;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 0.8rem;
}
.footer-copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.60rem; color: #5A544E; letter-spacing: 0.04em;
}
.footer-copy a {
  color: #8C827A; text-decoration: none;
  border-bottom: 0.5px solid rgba(140,130,122,0.3);
  padding-bottom: 0.1rem;
}
.footer-copy a:hover { color: var(--gold); border-color: var(--gold); }

@media (max-width: 680px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  .portrait-frame {
    max-width: 210px;
  }
}

.profile-crosslink {
  margin-top: 1.8rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  color: var(--light);
}
