:root {
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --ink: #201c1d;
  --muted: #6b6663;
  --line: #e2ddd7;
  --accent: #72000e;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body {
  margin: 0;
  background: #faf9f6;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main { padding-top: 72px; }
.team-wrap { width: min(1240px, calc(100% - 64px)); margin: 0 auto; }
.content-section { padding: 96px 0 104px; }
.section-head { margin-bottom: 56px; }
.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.section-head h1 { font-size: clamp(48px, 5.5vw, 76px); font-weight: 600; line-height: .98; }
.section-head h1 span { color: #ff3a32; }
.section-head h2 { font-size: clamp(36px, 3.5vw, 48px); }
.section-intro { max-width: 720px; margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); line-height: 1.65; }

.executive-section {
  position: relative;
  background: #030303;
  --ink: #faf8f4;
  --muted: rgba(255, 255, 255, .65);
  --line: rgba(255, 255, 255, .16);
  --accent: #ff635b;
  color: var(--ink);
}
.executive-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, #72000e, #ff0000 38%, transparent 82%);
}
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.person-card { min-width: 0; display: flex; flex-direction: column; }
.portrait { aspect-ratio: 1; overflow: hidden; background: #e5dfd3; border-radius: 4px; }
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.portrait-david img { object-position: 85% center; }
.portrait-rebecca img { transform: scale(1.04); }
.person-body { min-width: 0; display: flex; flex: 1; flex-direction: column; padding-top: 28px; }
.person-type {
  color: var(--accent);
  font: 500 11px/1.5 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.person-body :is(h2, h3) {
  margin: 12px 0 0;
  font: 500 clamp(28px, 2.5vw, 34px)/1.1 var(--font-display);
  letter-spacing: -.035em;
}
.person-body :is(h2, h3) span { display: block; }
.email-link {
  align-self: flex-start;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.email-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.bio { margin: 24px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.profile-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.profile-links a:hover { background: rgba(114, 0, 14, .06); border-color: var(--accent); }
.profile-links svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-links img { display: block; width: 17px; height: 17px; object-fit: contain; }
.executive-section .profile-links img { filter: invert(1); }
.executive-section .profile-links a:hover { background: rgba(255, 255, 255, .08); }

.advisory-section { background: #faf9f6; }
.contributors-section { background: #f2f0eb; border-top: 1px solid var(--line); }
:is(.advisory-section, .contributors-section) .section-head { text-align: center; }
.advisory-section .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
:is(.advisory-section, .contributors-section) .person-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: start; gap: 28px; }
:is(.advisory-section, .contributors-section) .portrait { aspect-ratio: 4 / 5; }
:is(.advisory-section, .contributors-section) .person-body { padding-top: 0; }
:is(.advisory-section, .contributors-section) .person-body h3 { font-size: 30px; }
:is(.advisory-section, .contributors-section) .bio { margin-top: 20px; }
.contributors-section .person-card { width: calc((100% - 56px) / 2); margin: 0 auto; }
.contributors-section .person-body h3 { overflow-wrap: anywhere; }
.profile-links .portfolio-link { width: auto; gap: 8px; padding: 0 14px; font-size: 13px; }


@media (max-width: 1100px) {
  .people-grid { gap: 28px; }
  .advisory-section .people-grid { gap: 40px; }
  :is(.advisory-section, .contributors-section) .person-card { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  :is(.advisory-section, .contributors-section) .portrait { aspect-ratio: 1; }
  .contributors-section .person-card { width: calc((100% - 40px) / 2); }
}

@media (max-width: 860px) {
  main { padding-top: 66px; }
  .team-wrap { width: calc(100% - 40px); }
  .content-section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .executive-section .people-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .executive-section .person-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .executive-section .person-body { padding-top: 0; }
  .person-body :is(h2, h3) { font-size: 32px; }
}

@media (max-width: 540px) {
  .team-wrap { width: calc(100% - 28px); }
  .content-section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; text-align: center; }
  .section-head h1 { font-size: clamp(42px, 10.5vw, 54px); }
  .section-head h1 span { display: block; }
  .section-head h2 { font-size: 36px; }
  .executive-section .person-card { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .advisory-section .people-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  :is(.advisory-section, .contributors-section) .person-card { gap: 24px; }
  .contributors-section .person-card { width: 100%; }
  .person-body :is(h2, h3), :is(.advisory-section, .contributors-section) .person-body h3 { font-size: 32px; }
  .bio { margin-top: 20px; margin-bottom: 24px; }
}

@media (max-width: 374px) {
  .team-wrap { width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .profile-links a { transition: none; }
}
