:root {
  --black: #0d0d0d;
  --surface: #111111;
  --gold: #b8960c;
  --champagne: #f5e6a3;
  --white: #f4f4f6;
  --muted: #8c96a8;
  --line: rgba(245, 230, 163, 0.24);
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(13, 13, 13, 0.96), rgba(13, 13, 13, 0.72)),
    url("assets/enterprise-command-center.png") center / cover fixed;
  color: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

.team-page {
  min-height: 100vh;
  padding: clamp(16px, 3vw, 42px);
}

.team-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 52px;
  margin-bottom: clamp(38px, 8vw, 108px);
}

.wordmark {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 500;
}

.wordmark::first-letter {
  color: var(--gold);
}

.ribbon-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.ribbon-links a,
.team-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 14px;
  color: var(--white);
  background: rgba(13, 13, 13, 0.5);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.ribbon-links a:hover {
  color: var(--champagne);
}

.contact-button,
.team-cta a {
  border-color: rgba(184, 150, 12, 0.92) !important;
  color: var(--black) !important;
  background: var(--gold) !important;
}

.team-hero,
.profile-panel,
.team-cta {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.team-hero {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(34px, 6vw, 76px);
}

.team-hero span,
.profile-copy > span,
.expertise-grid span,
.headshot-slot span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
}

.team-hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3rem, 7vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.team-hero p,
.profile-copy p,
.expertise-grid p,
.team-cta p {
  margin: 0;
  color: rgba(244, 244, 246, 0.78);
  font-size: clamp(0.9rem, 1.1vw, 1.02rem);
  line-height: 1.75;
}

.team-hero p {
  max-width: 760px;
}

.profile-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 1px;
  border: 1px solid rgba(245, 230, 163, 0.18);
  background: rgba(245, 230, 163, 0.16);
}

.headshot-slot,
.profile-copy {
  min-width: 0;
  background: rgba(17, 17, 17, 0.94);
}

.headshot-slot {
  display: grid;
  place-items: end start;
  min-height: clamp(360px, 48vw, 620px);
  padding: clamp(22px, 3vw, 42px);
  background:
    linear-gradient(180deg, rgba(184, 150, 12, 0.12), rgba(13, 13, 13, 0.2)),
    repeating-linear-gradient(135deg, rgba(245, 230, 163, 0.08) 0 1px, transparent 1px 18px),
    #111111;
}

.headshot-slot div {
  display: grid;
  gap: 10px;
}

.headshot-slot strong {
  color: var(--champagne);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 4.6rem);
  font-weight: 500;
  line-height: 0.95;
}

.profile-copy {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 58px);
}

.profile-copy h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  border: 1px solid rgba(245, 230, 163, 0.16);
  background: rgba(245, 230, 163, 0.1);
}

.expertise-grid section {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: rgba(13, 13, 13, 0.76);
}

.team-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  margin-bottom: clamp(46px, 8vw, 98px);
  border: 1px solid rgba(184, 150, 12, 0.32);
  border-radius: 4px;
  padding: clamp(18px, 2.8vw, 30px);
  background: rgba(184, 150, 12, 0.1);
}

.team-cta p {
  max-width: 760px;
}

.team-cta a {
  min-height: 50px;
  padding: 0 18px;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .team-ribbon {
    align-items: flex-start;
    flex-direction: column;
  }

  .ribbon-links,
  .ribbon-links a,
  .team-cta a {
    width: 100%;
  }

  .profile-panel,
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .team-cta {
    align-items: stretch;
    flex-direction: column;
  }
}
